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 | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61. |
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 | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 27 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 28 | |
| 29 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 30 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 32 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 59 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 226 | case $as_dir in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 227 | /*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 252 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 273 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 274 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 442 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 447 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 450 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 451 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 481 | esac |
| 482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
| 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 523 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 542 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
| 550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 552 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 562 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 563 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 565 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
| 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
| 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME= |
| 574 | PACKAGE_TARNAME= |
| 575 | PACKAGE_VERSION= |
| 576 | PACKAGE_STRING= |
| 577 | PACKAGE_BUGREPORT= |
| 578 | |
| 579 | ac_unique_file="version.h" |
| 580 | # Factoring default headers for most tests. |
| 581 | ac_includes_default="\ |
| 582 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 583 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | # include <sys/types.h> |
| 585 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 586 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 587 | # include <sys/stat.h> |
| 588 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
| 592 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 593 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 594 | # include <stdlib.h> |
| 595 | # endif |
| 596 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 597 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 599 | # include <memory.h> |
| 600 | # endif |
| 601 | # include <string.h> |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 604 | # include <strings.h> |
| 605 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 606 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 607 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 610 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <unistd.h> |
| 614 | #endif" |
| 615 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | ac_subst_vars='SHELL |
| 617 | PATH_SEPARATOR |
| 618 | PACKAGE_NAME |
| 619 | PACKAGE_TARNAME |
| 620 | PACKAGE_VERSION |
| 621 | PACKAGE_STRING |
| 622 | PACKAGE_BUGREPORT |
| 623 | exec_prefix |
| 624 | prefix |
| 625 | program_transform_name |
| 626 | bindir |
| 627 | sbindir |
| 628 | libexecdir |
| 629 | datarootdir |
| 630 | datadir |
| 631 | sysconfdir |
| 632 | sharedstatedir |
| 633 | localstatedir |
| 634 | includedir |
| 635 | oldincludedir |
| 636 | docdir |
| 637 | infodir |
| 638 | htmldir |
| 639 | dvidir |
| 640 | pdfdir |
| 641 | psdir |
| 642 | libdir |
| 643 | localedir |
| 644 | mandir |
| 645 | DEFS |
| 646 | ECHO_C |
| 647 | ECHO_N |
| 648 | ECHO_T |
| 649 | LIBS |
| 650 | build_alias |
| 651 | host_alias |
| 652 | target_alias |
| 653 | E2FSPROGS_YEAR |
| 654 | E2FSPROGS_MONTH |
| 655 | E2FSPROGS_DAY |
| 656 | E2FSPROGS_VERSION |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 657 | E2FSPROGS_PKGVER |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 658 | build |
| 659 | build_cpu |
| 660 | build_vendor |
| 661 | build_os |
| 662 | host |
| 663 | host_cpu |
| 664 | host_vendor |
| 665 | host_os |
| 666 | CC |
| 667 | CFLAGS |
| 668 | LDFLAGS |
| 669 | CPPFLAGS |
| 670 | ac_ct_CC |
| 671 | EXEEXT |
| 672 | OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 673 | CPP |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 674 | LD |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 675 | GREP |
| 676 | EGREP |
| 677 | LINUX_INCLUDE |
| 678 | MAINTAINER_CMT |
| 679 | HTREE_CMT |
| 680 | ELF_CMT |
| 681 | BSDLIB_CMT |
| 682 | PROFILE_CMT |
| 683 | CHECKER_CMT |
| 684 | LIB_EXT |
| 685 | STATIC_LIB_EXT |
| 686 | PROFILED_LIB_EXT |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 687 | TEST_IO_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 688 | DEBUGFS_CMT |
| 689 | IMAGER_CMT |
| 690 | RESIZER_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 691 | FSCK_PROG |
| 692 | FSCK_MAN |
| 693 | E2INITRD_PROG |
| 694 | E2INITRD_MAN |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 695 | UUIDD_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 696 | GETTEXT_PACKAGE |
| 697 | PACKAGE |
| 698 | VERSION |
| 699 | SET_MAKE |
| 700 | INSTALL_PROGRAM |
| 701 | INSTALL_SCRIPT |
| 702 | INSTALL_DATA |
| 703 | MKINSTALLDIRS |
| 704 | USE_NLS |
| 705 | MSGFMT |
| 706 | GMSGFMT |
| 707 | XGETTEXT |
| 708 | MSGMERGE |
| 709 | RANLIB |
| 710 | ALLOCA |
| 711 | GLIBC21 |
| 712 | HAVE_POSIX_PRINTF |
| 713 | HAVE_ASPRINTF |
| 714 | HAVE_SNPRINTF |
| 715 | HAVE_WPRINTF |
| 716 | LIBICONV |
| 717 | LTLIBICONV |
| 718 | INTLBISON |
| 719 | BUILD_INCLUDED_LIBINTL |
| 720 | USE_INCLUDED_LIBINTL |
| 721 | CATOBJEXT |
| 722 | DATADIRNAME |
| 723 | INSTOBJEXT |
| 724 | GENCAT |
| 725 | INTLOBJS |
| 726 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 727 | INTLLIBS |
| 728 | LIBINTL |
| 729 | LTLIBINTL |
| 730 | POSUB |
| 731 | BINARY_TYPE |
| 732 | LN |
| 733 | LN_S |
| 734 | MV |
| 735 | CP |
| 736 | RM |
| 737 | CHMOD |
| 738 | AWK |
| 739 | SED |
| 740 | PERL |
| 741 | LDCONFIG |
| 742 | AR |
| 743 | STRIP |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 744 | MAKEINFO |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 745 | BUILD_CC |
| 746 | SIZEOF_SHORT |
| 747 | SIZEOF_INT |
| 748 | SIZEOF_LONG |
| 749 | SIZEOF_LONG_LONG |
| 750 | SOCKET_LIB |
| 751 | DLOPEN_LIB |
| 752 | UNI_DIFF_OPTS |
| 753 | LINUX_CMT |
| 754 | CYGWIN_CMT |
| 755 | UNIX_CMT |
| 756 | root_prefix |
| 757 | root_bindir |
| 758 | root_sbindir |
| 759 | root_libdir |
| 760 | root_sysconfdir |
| 761 | LDFLAG_STATIC |
| 762 | SS_DIR |
| 763 | ET_DIR |
| 764 | DO_TEST_SUITE |
| 765 | INTL_FLAGS |
| 766 | BUILD_CFLAGS |
| 767 | BUILD_LDFLAGS |
| 768 | LIBOBJS |
| 769 | LTLIBOBJS' |
| 770 | ac_subst_files='MCONFIG |
| 771 | MAKEFILE_ELF |
| 772 | MAKEFILE_BSDLIB |
| 773 | MAKEFILE_PROFILE |
| 774 | MAKEFILE_CHECKER |
| 775 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 776 | ASM_TYPES_HEADER |
| 777 | PUBLIC_CONFIG_HEADER' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 778 | ac_precious_vars='build_alias |
| 779 | host_alias |
| 780 | target_alias |
| 781 | CC |
| 782 | CFLAGS |
| 783 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 784 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 785 | CPPFLAGS |
Theodore Ts'o | 7515a74 | 2008-08-26 23:56:00 -0400 | [diff] [blame] | 786 | CPP' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 787 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 788 | |
| 789 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 790 | ac_init_help= |
| 791 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 792 | # The variables have the same names as the options, with |
| 793 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 794 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 795 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 796 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 797 | no_recursion= |
| 798 | prefix=NONE |
| 799 | program_prefix=NONE |
| 800 | program_suffix=NONE |
| 801 | program_transform_name=s,x,x, |
| 802 | silent= |
| 803 | site= |
| 804 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 805 | verbose= |
| 806 | x_includes=NONE |
| 807 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 808 | |
| 809 | # Installation directory options. |
| 810 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 811 | # and all the variables that are supposed to be based on exec_prefix |
| 812 | # by default will actually change. |
| 813 | # 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] | 814 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 815 | bindir='${exec_prefix}/bin' |
| 816 | sbindir='${exec_prefix}/sbin' |
| 817 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 818 | datarootdir='${prefix}/share' |
| 819 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 820 | sysconfdir='${prefix}/etc' |
| 821 | sharedstatedir='${prefix}/com' |
| 822 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 823 | includedir='${prefix}/include' |
| 824 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 825 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 826 | infodir='${datarootdir}/info' |
| 827 | htmldir='${docdir}' |
| 828 | dvidir='${docdir}' |
| 829 | pdfdir='${docdir}' |
| 830 | psdir='${docdir}' |
| 831 | libdir='${exec_prefix}/lib' |
| 832 | localedir='${datarootdir}/locale' |
| 833 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 834 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 835 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 836 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 837 | for ac_option |
| 838 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | # If the previous option needs an argument, assign it. |
| 840 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 841 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 842 | ac_prev= |
| 843 | continue |
| 844 | fi |
| 845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 846 | case $ac_option in |
| 847 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 848 | *) ac_optarg=yes ;; |
| 849 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 850 | |
| 851 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 852 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 853 | case $ac_dashdash$ac_option in |
| 854 | --) |
| 855 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 856 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 857 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 858 | ac_prev=bindir ;; |
| 859 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 860 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 861 | |
| 862 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 863 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 864 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 865 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 866 | |
| 867 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 868 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 869 | ac_prev=cache_file ;; |
| 870 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 871 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 872 | cache_file=$ac_optarg ;; |
| 873 | |
| 874 | --config-cache | -C) |
| 875 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 876 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 877 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 878 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 879 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 880 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 881 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 882 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 883 | | --dataroo | --dataro | --datar) |
| 884 | ac_prev=datarootdir ;; |
| 885 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 886 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 887 | datarootdir=$ac_optarg ;; |
| 888 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 889 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 890 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 891 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 892 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 893 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 894 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 895 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 896 | eval enable_$ac_feature=no ;; |
| 897 | |
| 898 | -docdir | --docdir | --docdi | --doc | --do) |
| 899 | ac_prev=docdir ;; |
| 900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 901 | docdir=$ac_optarg ;; |
| 902 | |
| 903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 904 | ac_prev=dvidir ;; |
| 905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 906 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 907 | |
| 908 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 909 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 910 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 911 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 912 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 913 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 914 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 915 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | |
| 917 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 918 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 919 | | --exec | --exe | --ex) |
| 920 | ac_prev=exec_prefix ;; |
| 921 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 922 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 923 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 924 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 925 | |
| 926 | -gas | --gas | --ga | --g) |
| 927 | # Obsolete; use --with-gas. |
| 928 | with_gas=yes ;; |
| 929 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 930 | -help | --help | --hel | --he | -h) |
| 931 | ac_init_help=long ;; |
| 932 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 933 | ac_init_help=recursive ;; |
| 934 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 935 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 936 | |
| 937 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 938 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 939 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 940 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 941 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 942 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 943 | ac_prev=htmldir ;; |
| 944 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 945 | | --ht=*) |
| 946 | htmldir=$ac_optarg ;; |
| 947 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 948 | -includedir | --includedir | --includedi | --included | --include \ |
| 949 | | --includ | --inclu | --incl | --inc) |
| 950 | ac_prev=includedir ;; |
| 951 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 952 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 953 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 954 | |
| 955 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 956 | ac_prev=infodir ;; |
| 957 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 958 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 959 | |
| 960 | -libdir | --libdir | --libdi | --libd) |
| 961 | ac_prev=libdir ;; |
| 962 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 963 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 964 | |
| 965 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 966 | | --libexe | --libex | --libe) |
| 967 | ac_prev=libexecdir ;; |
| 968 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 969 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 970 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 972 | -localedir | --localedir | --localedi | --localed | --locale) |
| 973 | ac_prev=localedir ;; |
| 974 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 975 | localedir=$ac_optarg ;; |
| 976 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 977 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 978 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 979 | ac_prev=localstatedir ;; |
| 980 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 981 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 982 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | |
| 984 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 985 | ac_prev=mandir ;; |
| 986 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 987 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 988 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 989 | -nfp | --nfp | --nf) |
| 990 | # Obsolete; use --without-fp. |
| 991 | with_fp=no ;; |
| 992 | |
| 993 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | no_create=yes ;; |
| 996 | |
| 997 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 998 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 999 | no_recursion=yes ;; |
| 1000 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1001 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1002 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1003 | | --oldin | --oldi | --old | --ol | --o) |
| 1004 | ac_prev=oldincludedir ;; |
| 1005 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1006 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1007 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1008 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1009 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1010 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1011 | ac_prev=prefix ;; |
| 1012 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1013 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1014 | |
| 1015 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1016 | | --program-pre | --program-pr | --program-p) |
| 1017 | ac_prev=program_prefix ;; |
| 1018 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1019 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1020 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1021 | |
| 1022 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1023 | | --program-suf | --program-su | --program-s) |
| 1024 | ac_prev=program_suffix ;; |
| 1025 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1026 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1027 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1028 | |
| 1029 | -program-transform-name | --program-transform-name \ |
| 1030 | | --program-transform-nam | --program-transform-na \ |
| 1031 | | --program-transform-n | --program-transform- \ |
| 1032 | | --program-transform | --program-transfor \ |
| 1033 | | --program-transfo | --program-transf \ |
| 1034 | | --program-trans | --program-tran \ |
| 1035 | | --progr-tra | --program-tr | --program-t) |
| 1036 | ac_prev=program_transform_name ;; |
| 1037 | -program-transform-name=* | --program-transform-name=* \ |
| 1038 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1039 | | --program-transform-n=* | --program-transform-=* \ |
| 1040 | | --program-transform=* | --program-transfor=* \ |
| 1041 | | --program-transfo=* | --program-transf=* \ |
| 1042 | | --program-trans=* | --program-tran=* \ |
| 1043 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1044 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1046 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1047 | ac_prev=pdfdir ;; |
| 1048 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1049 | pdfdir=$ac_optarg ;; |
| 1050 | |
| 1051 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1052 | ac_prev=psdir ;; |
| 1053 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1054 | psdir=$ac_optarg ;; |
| 1055 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1056 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1057 | | -silent | --silent | --silen | --sile | --sil) |
| 1058 | silent=yes ;; |
| 1059 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1060 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1061 | ac_prev=sbindir ;; |
| 1062 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1063 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1064 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1065 | |
| 1066 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1067 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1068 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1069 | | --sha | --sh) |
| 1070 | ac_prev=sharedstatedir ;; |
| 1071 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1072 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1073 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1074 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1075 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1076 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 | -site | --site | --sit) |
| 1078 | ac_prev=site ;; |
| 1079 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | |
| 1082 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1083 | ac_prev=srcdir ;; |
| 1084 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1085 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1086 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1087 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1088 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1089 | ac_prev=sysconfdir ;; |
| 1090 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1091 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1092 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1093 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1094 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1095 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1096 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | |
| 1099 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1100 | verbose=yes ;; |
| 1101 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1102 | -version | --version | --versio | --versi | --vers | -V) |
| 1103 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1104 | |
| 1105 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1106 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1107 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1108 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1109 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1110 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1111 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1112 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1113 | |
| 1114 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1115 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1116 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1117 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1118 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1119 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1120 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1121 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1122 | |
| 1123 | --x) |
| 1124 | # Obsolete; use --with-x. |
| 1125 | with_x=yes ;; |
| 1126 | |
| 1127 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1128 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1129 | ac_prev=x_includes ;; |
| 1130 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1131 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1132 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1133 | |
| 1134 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1135 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1136 | ac_prev=x_libraries ;; |
| 1137 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1138 | | --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] | 1139 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1140 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1141 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1142 | Try \`$0 --help' for more information." >&2 |
| 1143 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1144 | ;; |
| 1145 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1146 | *=*) |
| 1147 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1148 | # Reject names that are not valid shell variable names. |
| 1149 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1150 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1151 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1152 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | export $ac_envvar ;; |
| 1154 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1155 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1156 | # FIXME: should be removed in autoconf 3.0. |
| 1157 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1158 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1159 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1160 | : ${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] | 1161 | ;; |
| 1162 | |
| 1163 | esac |
| 1164 | done |
| 1165 | |
| 1166 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1167 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1168 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1169 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1170 | fi |
| 1171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1172 | # Be sure to have absolute directory names. |
| 1173 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1174 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1175 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1176 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1177 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1178 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1179 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1180 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1181 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1182 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1183 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1184 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1185 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1186 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1187 | # There might be people who depend on the old broken behavior: `$host' |
| 1188 | # used to hold the argument of --host etc. |
| 1189 | # FIXME: To remove some day. |
| 1190 | build=$build_alias |
| 1191 | host=$host_alias |
| 1192 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1194 | # FIXME: To remove some day. |
| 1195 | if test "x$host_alias" != x; then |
| 1196 | if test "x$build_alias" = x; then |
| 1197 | cross_compiling=maybe |
| 1198 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1199 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1200 | elif test "x$build_alias" != "x$host_alias"; then |
| 1201 | cross_compiling=yes |
| 1202 | fi |
| 1203 | fi |
| 1204 | |
| 1205 | ac_tool_prefix= |
| 1206 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1207 | |
| 1208 | test "$silent" = yes && exec 6>/dev/null |
| 1209 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1210 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1211 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1212 | ac_ls_di=`ls -di .` && |
| 1213 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1214 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1215 | { (exit 1); exit 1; }; } |
| 1216 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1217 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1218 | { (exit 1); exit 1; }; } |
| 1219 | |
| 1220 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1221 | # Find the source files, if location was not specified. |
| 1222 | if test -z "$srcdir"; then |
| 1223 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1224 | # Try the directory containing this script, then the parent directory. |
| 1225 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1227 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1228 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1229 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1230 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1231 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1232 | s//\1/ |
| 1233 | q |
| 1234 | } |
| 1235 | /^X\(\/\/\)[^/].*/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | /^X\(\/\/\)$/{ |
| 1240 | s//\1/ |
| 1241 | q |
| 1242 | } |
| 1243 | /^X\(\/\).*/{ |
| 1244 | s//\1/ |
| 1245 | q |
| 1246 | } |
| 1247 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1248 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1249 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | srcdir=.. |
| 1251 | fi |
| 1252 | else |
| 1253 | ac_srcdir_defaulted=no |
| 1254 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1256 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1257 | { 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] | 1258 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1259 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1260 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1261 | ac_abs_confdir=`( |
| 1262 | 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] | 1263 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1264 | pwd)` |
| 1265 | # When building in place, set srcdir=. |
| 1266 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1267 | srcdir=. |
| 1268 | fi |
| 1269 | # Remove unnecessary trailing slashes from srcdir. |
| 1270 | # Double slashes in file names in object file debugging info |
| 1271 | # mess up M-x gdb in Emacs. |
| 1272 | case $srcdir in |
| 1273 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1274 | esac |
| 1275 | for ac_var in $ac_precious_vars; do |
| 1276 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1277 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1278 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1279 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1280 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1281 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1282 | # |
| 1283 | # Report the --help message. |
| 1284 | # |
| 1285 | if test "$ac_init_help" = "long"; then |
| 1286 | # Omit some internal or obsolete options to make the list less imposing. |
| 1287 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1288 | cat <<_ACEOF |
| 1289 | \`configure' configures this package to adapt to many kinds of systems. |
| 1290 | |
| 1291 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1292 | |
| 1293 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1294 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1295 | |
| 1296 | Defaults for the options are specified in brackets. |
| 1297 | |
| 1298 | Configuration: |
| 1299 | -h, --help display this help and exit |
| 1300 | --help=short display options specific to this package |
| 1301 | --help=recursive display the short help of all the included packages |
| 1302 | -V, --version display version information and exit |
| 1303 | -q, --quiet, --silent do not print \`checking...' messages |
| 1304 | --cache-file=FILE cache test results in FILE [disabled] |
| 1305 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1306 | -n, --no-create do not create output files |
| 1307 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1309 | Installation directories: |
| 1310 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1311 | [$ac_default_prefix] |
| 1312 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1313 | [PREFIX] |
| 1314 | |
| 1315 | By default, \`make install' will install all the files in |
| 1316 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1317 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1318 | for instance \`--prefix=\$HOME'. |
| 1319 | |
| 1320 | For better control, use the options below. |
| 1321 | |
| 1322 | Fine tuning of the installation directories: |
| 1323 | --bindir=DIR user executables [EPREFIX/bin] |
| 1324 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1325 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1326 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1327 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1328 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1329 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1330 | --includedir=DIR C header files [PREFIX/include] |
| 1331 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1332 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1333 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1334 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1335 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1336 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1337 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1338 | --htmldir=DIR html documentation [DOCDIR] |
| 1339 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1340 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1341 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1342 | _ACEOF |
| 1343 | |
| 1344 | cat <<\_ACEOF |
| 1345 | |
| 1346 | System types: |
| 1347 | --build=BUILD configure for building on BUILD [guessed] |
| 1348 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1349 | _ACEOF |
| 1350 | fi |
| 1351 | |
| 1352 | if test -n "$ac_init_help"; then |
| 1353 | |
| 1354 | cat <<\_ACEOF |
| 1355 | |
| 1356 | Optional Features: |
| 1357 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1358 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1359 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1360 | --enable-compression enable EXPERIMENTAL compression support |
| 1361 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1362 | --enable-elf-shlibs select ELF shared libraries |
| 1363 | --enable-bsd-shlibs select BSD shared libraries |
| 1364 | --enable-profile build profiling libraries |
| 1365 | --enable-checker build checker libraries |
| 1366 | --enable-jbd-debug enable journal debugging |
| 1367 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 1368 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1369 | --disable-debugfs disable support of debugfs program |
| 1370 | --disable-imager disable support of e2image program |
| 1371 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1372 | --enable-fsck build fsck wrapper program |
| 1373 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1374 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1375 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1376 | --disable-nls do not use Native Language Support |
| 1377 | --disable-rpath do not hardcode runtime library paths |
| 1378 | |
| 1379 | Optional Packages: |
| 1380 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1381 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1382 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1383 | --with-cc=COMPILER select compiler to use |
| 1384 | --with-linker=LINKER select linker to use |
| 1385 | --with-ccopts=CCOPTS select compiler command line options |
| 1386 | --with-ldopts=LDOPTS select linker command line options |
| 1387 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1388 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1389 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1390 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1391 | --with-included-gettext use the GNU gettext library included here |
| 1392 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1393 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1394 | |
| 1395 | Some influential environment variables: |
| 1396 | CC C compiler command |
| 1397 | CFLAGS C compiler flags |
| 1398 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1399 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1400 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1401 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1402 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1403 | CPP C preprocessor |
| 1404 | |
| 1405 | Use these variables to override the choices made by `configure' or to help |
| 1406 | it to find libraries and programs with nonstandard names/locations. |
| 1407 | |
| 1408 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1409 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1410 | fi |
| 1411 | |
| 1412 | if test "$ac_init_help" = "recursive"; then |
| 1413 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1414 | 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] | 1415 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1416 | ac_builddir=. |
| 1417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1418 | case "$ac_dir" in |
| 1419 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1420 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1421 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1422 | # A ".." for each directory in $ac_dir_suffix. |
| 1423 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1424 | case $ac_top_builddir_sub in |
| 1425 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1426 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1427 | esac ;; |
| 1428 | esac |
| 1429 | ac_abs_top_builddir=$ac_pwd |
| 1430 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1431 | # for backward compatibility: |
| 1432 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1433 | |
| 1434 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1435 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1436 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1437 | ac_top_srcdir=$ac_top_builddir_sub |
| 1438 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1439 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1440 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1441 | ac_top_srcdir=$srcdir |
| 1442 | ac_abs_top_srcdir=$srcdir ;; |
| 1443 | *) # Relative name. |
| 1444 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1445 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1446 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1447 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1448 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1450 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1451 | # Check for guested configure. |
| 1452 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1453 | echo && |
| 1454 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1455 | elif test -f "$ac_srcdir/configure"; then |
| 1456 | echo && |
| 1457 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1458 | else |
| 1459 | 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] | 1460 | fi || ac_status=$? |
| 1461 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1462 | done |
| 1463 | fi |
| 1464 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1465 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | if $ac_init_version; then |
| 1467 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1468 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1469 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1471 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1472 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1473 | This configure script is free software; the Free Software Foundation |
| 1474 | gives unlimited permission to copy, distribute and modify it. |
| 1475 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1476 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1477 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1478 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1479 | This file contains any messages produced by compilers while |
| 1480 | running configure, to aid debugging if configure makes a mistake. |
| 1481 | |
| 1482 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1483 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1484 | |
| 1485 | $ $0 $@ |
| 1486 | |
| 1487 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1488 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1489 | { |
| 1490 | cat <<_ASUNAME |
| 1491 | ## --------- ## |
| 1492 | ## Platform. ## |
| 1493 | ## --------- ## |
| 1494 | |
| 1495 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1496 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1497 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1498 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1499 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1500 | |
| 1501 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1502 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1503 | |
| 1504 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1505 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1506 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1507 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1508 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1509 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1510 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1511 | |
| 1512 | _ASUNAME |
| 1513 | |
| 1514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1515 | for as_dir in $PATH |
| 1516 | do |
| 1517 | IFS=$as_save_IFS |
| 1518 | test -z "$as_dir" && as_dir=. |
| 1519 | echo "PATH: $as_dir" |
| 1520 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1521 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1522 | |
| 1523 | } >&5 |
| 1524 | |
| 1525 | cat >&5 <<_ACEOF |
| 1526 | |
| 1527 | |
| 1528 | ## ----------- ## |
| 1529 | ## Core tests. ## |
| 1530 | ## ----------- ## |
| 1531 | |
| 1532 | _ACEOF |
| 1533 | |
| 1534 | |
| 1535 | # Keep a trace of the command line. |
| 1536 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1537 | # Strip out --silent because we don't want to record it for future runs. |
| 1538 | # Also quote any args containing shell meta-characters. |
| 1539 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1540 | ac_configure_args= |
| 1541 | ac_configure_args0= |
| 1542 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1543 | ac_must_keep_next=false |
| 1544 | for ac_pass in 1 2 |
| 1545 | do |
| 1546 | for ac_arg |
| 1547 | do |
| 1548 | case $ac_arg in |
| 1549 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1550 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1551 | | -silent | --silent | --silen | --sile | --sil) |
| 1552 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1553 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1555 | esac |
| 1556 | case $ac_pass in |
| 1557 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1558 | 2) |
| 1559 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1560 | if test $ac_must_keep_next = true; then |
| 1561 | ac_must_keep_next=false # Got value, back to normal. |
| 1562 | else |
| 1563 | case $ac_arg in |
| 1564 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1565 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1566 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1567 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1568 | case "$ac_configure_args0 " in |
| 1569 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1570 | esac |
| 1571 | ;; |
| 1572 | -* ) ac_must_keep_next=true ;; |
| 1573 | esac |
| 1574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1575 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1576 | ;; |
| 1577 | esac |
| 1578 | done |
| 1579 | done |
| 1580 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1581 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1582 | |
| 1583 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1584 | # config.log. We remove comments because anyway the quotes in there |
| 1585 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1586 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1587 | # 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] | 1588 | trap 'exit_status=$? |
| 1589 | # Save into config.log some information that might help in debugging. |
| 1590 | { |
| 1591 | echo |
| 1592 | |
| 1593 | cat <<\_ASBOX |
| 1594 | ## ---------------- ## |
| 1595 | ## Cache variables. ## |
| 1596 | ## ---------------- ## |
| 1597 | _ASBOX |
| 1598 | echo |
| 1599 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1600 | ( |
| 1601 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1602 | eval ac_val=\$$ac_var |
| 1603 | case $ac_val in #( |
| 1604 | *${as_nl}*) |
| 1605 | case $ac_var in #( |
| 1606 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1607 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1608 | esac |
| 1609 | case $ac_var in #( |
| 1610 | _ | IFS | as_nl) ;; #( |
| 1611 | *) $as_unset $ac_var ;; |
| 1612 | esac ;; |
| 1613 | esac |
| 1614 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1615 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1616 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1617 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1618 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1619 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1620 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1621 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1622 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1623 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1624 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1625 | esac | |
| 1626 | sort |
| 1627 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | echo |
| 1629 | |
| 1630 | cat <<\_ASBOX |
| 1631 | ## ----------------- ## |
| 1632 | ## Output variables. ## |
| 1633 | ## ----------------- ## |
| 1634 | _ASBOX |
| 1635 | echo |
| 1636 | for ac_var in $ac_subst_vars |
| 1637 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1638 | eval ac_val=\$$ac_var |
| 1639 | case $ac_val in |
| 1640 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1641 | esac |
| 1642 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1643 | done | sort |
| 1644 | echo |
| 1645 | |
| 1646 | if test -n "$ac_subst_files"; then |
| 1647 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1648 | ## ------------------- ## |
| 1649 | ## File substitutions. ## |
| 1650 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1651 | _ASBOX |
| 1652 | echo |
| 1653 | for ac_var in $ac_subst_files |
| 1654 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1655 | eval ac_val=\$$ac_var |
| 1656 | case $ac_val in |
| 1657 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1658 | esac |
| 1659 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1660 | done | sort |
| 1661 | echo |
| 1662 | fi |
| 1663 | |
| 1664 | if test -s confdefs.h; then |
| 1665 | cat <<\_ASBOX |
| 1666 | ## ----------- ## |
| 1667 | ## confdefs.h. ## |
| 1668 | ## ----------- ## |
| 1669 | _ASBOX |
| 1670 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1671 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1672 | echo |
| 1673 | fi |
| 1674 | test "$ac_signal" != 0 && |
| 1675 | echo "$as_me: caught signal $ac_signal" |
| 1676 | echo "$as_me: exit $exit_status" |
| 1677 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1678 | rm -f core *.core core.conftest.* && |
| 1679 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1680 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1681 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1682 | for ac_signal in 1 2 13 15; do |
| 1683 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1684 | done |
| 1685 | ac_signal=0 |
| 1686 | |
| 1687 | # 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] | 1688 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1689 | |
| 1690 | # Predefined preprocessor variables. |
| 1691 | |
| 1692 | cat >>confdefs.h <<_ACEOF |
| 1693 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1694 | _ACEOF |
| 1695 | |
| 1696 | |
| 1697 | cat >>confdefs.h <<_ACEOF |
| 1698 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1699 | _ACEOF |
| 1700 | |
| 1701 | |
| 1702 | cat >>confdefs.h <<_ACEOF |
| 1703 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1704 | _ACEOF |
| 1705 | |
| 1706 | |
| 1707 | cat >>confdefs.h <<_ACEOF |
| 1708 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1709 | _ACEOF |
| 1710 | |
| 1711 | |
| 1712 | cat >>confdefs.h <<_ACEOF |
| 1713 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1714 | _ACEOF |
| 1715 | |
| 1716 | |
| 1717 | # 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] | 1718 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1719 | if test -n "$CONFIG_SITE"; then |
| 1720 | set x "$CONFIG_SITE" |
| 1721 | elif test "x$prefix" != xNONE; then |
| 1722 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1723 | else |
| 1724 | set x "$ac_default_prefix/share/config.site" \ |
| 1725 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1727 | shift |
| 1728 | for ac_site_file |
| 1729 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1730 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1731 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1732 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1733 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1734 | . "$ac_site_file" |
| 1735 | fi |
| 1736 | done |
| 1737 | |
| 1738 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1739 | # Some versions of bash will fail to source /dev/null (special |
| 1740 | # files actually), so we avoid doing that. |
| 1741 | if test -f "$cache_file"; then |
| 1742 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1743 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1744 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1745 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1746 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1747 | esac |
| 1748 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1749 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1750 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1751 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1752 | >$cache_file |
| 1753 | fi |
| 1754 | |
| 1755 | # Check that the precious variables saved in the cache have kept the same |
| 1756 | # value. |
| 1757 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1758 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1759 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1760 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1761 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1762 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1763 | case $ac_old_set,$ac_new_set in |
| 1764 | set,) |
| 1765 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1766 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1767 | ac_cache_corrupted=: ;; |
| 1768 | ,set) |
| 1769 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1770 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1771 | ac_cache_corrupted=: ;; |
| 1772 | ,);; |
| 1773 | *) |
| 1774 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1775 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1776 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1777 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1778 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1779 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1780 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1781 | ac_cache_corrupted=: |
| 1782 | fi;; |
| 1783 | esac |
| 1784 | # Pass precious variables to config.status. |
| 1785 | if test "$ac_new_set" = set; then |
| 1786 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1787 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1788 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1789 | esac |
| 1790 | case " $ac_configure_args " in |
| 1791 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1792 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1793 | esac |
| 1794 | fi |
| 1795 | done |
| 1796 | if $ac_cache_corrupted; then |
| 1797 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1798 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1799 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1800 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1801 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1802 | fi |
| 1803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1820 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1821 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1825 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1826 | |
| 1827 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1828 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1829 | for ac_dir in config "$srcdir"/config; do |
| 1830 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1831 | ac_aux_dir=$ac_dir |
| 1832 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1833 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1834 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1835 | ac_aux_dir=$ac_dir |
| 1836 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1837 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1838 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1839 | ac_aux_dir=$ac_dir |
| 1840 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1841 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1842 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1843 | done |
| 1844 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1845 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1846 | 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] | 1847 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1848 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1849 | |
| 1850 | # These three variables are undocumented and unsupported, |
| 1851 | # and are intended to be withdrawn in a future Autoconf release. |
| 1852 | # They can cause serious problems if a builder's source tree is in a directory |
| 1853 | # whose full name contains unusual characters. |
| 1854 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1855 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1856 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1857 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1858 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1859 | MCONFIG=./MCONFIG |
| 1860 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1861 | BINARY_TYPE=bin |
| 1862 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1863 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1864 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1865 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1866 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1867 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1868 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1869 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1870 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1871 | E2FSPROGS_YEAR=$YEAR |
| 1872 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1873 | E2FSPROGS_YEAR=19$YEAR |
| 1874 | else |
| 1875 | E2FSPROGS_YEAR=20$YEAR |
| 1876 | fi |
| 1877 | |
| 1878 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1879 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1880 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1881 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1882 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1883 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1884 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1885 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1886 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1887 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1888 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1889 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1890 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1891 | *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
| 1892 | echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1893 | esac |
| 1894 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1895 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1896 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1897 | |
| 1898 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1899 | |
| 1900 | case $E2FSPROGS_VERSION in |
| 1901 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 1902 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1903 | ;; |
| 1904 | *) |
| 1905 | E2FSPROGS_PKGVER="$base_ver" |
| 1906 | ;; |
| 1907 | esac |
| 1908 | |
| 1909 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1910 | { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
| 1911 | echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
| 1912 | { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
| 1913 | echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1914 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1915 | |
| 1916 | |
| 1917 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1918 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1919 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1920 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1921 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1922 | 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] | 1923 | { (exit 1); exit 1; }; } |
| 1924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1925 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1926 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1927 | if test "${ac_cv_build+set}" = set; then |
| 1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1929 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1930 | ac_build_alias=$build_alias |
| 1931 | test "x$ac_build_alias" = x && |
| 1932 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1933 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1934 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1935 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1936 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1937 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1938 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1939 | 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] | 1940 | { (exit 1); exit 1; }; } |
| 1941 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1942 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1943 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1944 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1945 | case $ac_cv_build in |
| 1946 | *-*-*) ;; |
| 1947 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1948 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1949 | { (exit 1); exit 1; }; };; |
| 1950 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1951 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1952 | ac_save_IFS=$IFS; IFS='-' |
| 1953 | set x $ac_cv_build |
| 1954 | shift |
| 1955 | build_cpu=$1 |
| 1956 | build_vendor=$2 |
| 1957 | shift; shift |
| 1958 | # Remember, the first character of IFS is used to create $*, |
| 1959 | # except with old shells: |
| 1960 | build_os=$* |
| 1961 | IFS=$ac_save_IFS |
| 1962 | 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] | 1963 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1965 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1966 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1967 | if test "${ac_cv_host+set}" = set; then |
| 1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1969 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1970 | if test "x$host_alias" = x; then |
| 1971 | ac_cv_host=$ac_cv_build |
| 1972 | else |
| 1973 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1974 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1975 | 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] | 1976 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1977 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1979 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1980 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1981 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1982 | case $ac_cv_host in |
| 1983 | *-*-*) ;; |
| 1984 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1985 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1986 | { (exit 1); exit 1; }; };; |
| 1987 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1988 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1989 | ac_save_IFS=$IFS; IFS='-' |
| 1990 | set x $ac_cv_host |
| 1991 | shift |
| 1992 | host_cpu=$1 |
| 1993 | host_vendor=$2 |
| 1994 | shift; shift |
| 1995 | # Remember, the first character of IFS is used to create $*, |
| 1996 | # except with old shells: |
| 1997 | host_os=$* |
| 1998 | IFS=$ac_save_IFS |
| 1999 | 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] | 2000 | |
| 2001 | |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2002 | WITH_DIET_LIBC= |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2004 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2005 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2006 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2007 | WITH_DIET_LIBC=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2008 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2009 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2010 | fi |
| 2011 | |
| 2012 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2013 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2014 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2015 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2016 | CC=$withval |
| 2017 | else |
| 2018 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2019 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2020 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2021 | fi |
| 2022 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2023 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2024 | ac_ext=c |
| 2025 | ac_cpp='$CPP $CPPFLAGS' |
| 2026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2029 | if test -n "$ac_tool_prefix"; then |
| 2030 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2031 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2034 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2036 | else |
| 2037 | if test -n "$CC"; then |
| 2038 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2039 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2041 | for as_dir in $PATH |
| 2042 | do |
| 2043 | IFS=$as_save_IFS |
| 2044 | test -z "$as_dir" && as_dir=. |
| 2045 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2047 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2049 | break 2 |
| 2050 | fi |
| 2051 | done |
| 2052 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2053 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2054 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2055 | fi |
| 2056 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2057 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2058 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2059 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2060 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2061 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2063 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2064 | fi |
| 2065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2066 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2067 | fi |
| 2068 | if test -z "$ac_cv_prog_CC"; then |
| 2069 | ac_ct_CC=$CC |
| 2070 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2071 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2072 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2074 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2076 | else |
| 2077 | if test -n "$ac_ct_CC"; then |
| 2078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2079 | else |
| 2080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2081 | for as_dir in $PATH |
| 2082 | do |
| 2083 | IFS=$as_save_IFS |
| 2084 | test -z "$as_dir" && as_dir=. |
| 2085 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2087 | ac_cv_prog_ac_ct_CC="gcc" |
| 2088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2089 | break 2 |
| 2090 | fi |
| 2091 | done |
| 2092 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2093 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2094 | |
| 2095 | fi |
| 2096 | fi |
| 2097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2098 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2099 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2100 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2101 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2103 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2104 | fi |
| 2105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2106 | if test "x$ac_ct_CC" = x; then |
| 2107 | CC="" |
| 2108 | else |
| 2109 | case $cross_compiling:$ac_tool_warned in |
| 2110 | yes:) |
| 2111 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2112 | whose name does not start with the host triplet. If you think this |
| 2113 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2114 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2115 | whose name does not start with the host triplet. If you think this |
| 2116 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2117 | ac_tool_warned=yes ;; |
| 2118 | esac |
| 2119 | CC=$ac_ct_CC |
| 2120 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2121 | else |
| 2122 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2123 | fi |
| 2124 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2125 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2126 | if test -n "$ac_tool_prefix"; then |
| 2127 | # 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] | 2128 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2131 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2133 | else |
| 2134 | if test -n "$CC"; then |
| 2135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2136 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2138 | for as_dir in $PATH |
| 2139 | do |
| 2140 | IFS=$as_save_IFS |
| 2141 | test -z "$as_dir" && as_dir=. |
| 2142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2144 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2146 | break 2 |
| 2147 | fi |
| 2148 | done |
| 2149 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2150 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2151 | |
| 2152 | fi |
| 2153 | fi |
| 2154 | CC=$ac_cv_prog_CC |
| 2155 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2156 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2157 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2158 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2159 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2160 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2161 | fi |
| 2162 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2163 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2164 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2165 | fi |
| 2166 | if test -z "$CC"; then |
| 2167 | # Extract the first word of "cc", so it can be a program name with args. |
| 2168 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2171 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2173 | else |
| 2174 | if test -n "$CC"; then |
| 2175 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2176 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2177 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2179 | for as_dir in $PATH |
| 2180 | do |
| 2181 | IFS=$as_save_IFS |
| 2182 | test -z "$as_dir" && as_dir=. |
| 2183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2185 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2186 | ac_prog_rejected=yes |
| 2187 | continue |
| 2188 | fi |
| 2189 | ac_cv_prog_CC="cc" |
| 2190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2191 | break 2 |
| 2192 | fi |
| 2193 | done |
| 2194 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2195 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2196 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2197 | if test $ac_prog_rejected = yes; then |
| 2198 | # We found a bogon in the path, so make sure we never use it. |
| 2199 | set dummy $ac_cv_prog_CC |
| 2200 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2201 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2202 | # We chose a different compiler from the bogus one. |
| 2203 | # However, it has the same basename, so the bogon will be chosen |
| 2204 | # first if we set CC to just the basename; use the full file name. |
| 2205 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2206 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2207 | fi |
| 2208 | fi |
| 2209 | fi |
| 2210 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2211 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2212 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2213 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2214 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2215 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2216 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2217 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2218 | fi |
| 2219 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2220 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2221 | fi |
| 2222 | if test -z "$CC"; then |
| 2223 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2224 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2225 | do |
| 2226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2228 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2230 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2232 | else |
| 2233 | if test -n "$CC"; then |
| 2234 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2237 | for as_dir in $PATH |
| 2238 | do |
| 2239 | IFS=$as_save_IFS |
| 2240 | test -z "$as_dir" && as_dir=. |
| 2241 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2243 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2245 | break 2 |
| 2246 | fi |
| 2247 | done |
| 2248 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2249 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2250 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2251 | fi |
| 2252 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2253 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2254 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2255 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2256 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2257 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2258 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2259 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2260 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2261 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2262 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2263 | test -n "$CC" && break |
| 2264 | done |
| 2265 | fi |
| 2266 | if test -z "$CC"; then |
| 2267 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2268 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2269 | do |
| 2270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2271 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2276 | else |
| 2277 | if test -n "$ac_ct_CC"; then |
| 2278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2279 | else |
| 2280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2281 | for as_dir in $PATH |
| 2282 | do |
| 2283 | IFS=$as_save_IFS |
| 2284 | test -z "$as_dir" && as_dir=. |
| 2285 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2287 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2289 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2290 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2291 | done |
| 2292 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2293 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2294 | |
| 2295 | fi |
| 2296 | fi |
| 2297 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2298 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2300 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2301 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2302 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2303 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2304 | fi |
| 2305 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | test -n "$ac_ct_CC" && break |
| 2308 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2309 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2310 | if test "x$ac_ct_CC" = x; then |
| 2311 | CC="" |
| 2312 | else |
| 2313 | case $cross_compiling:$ac_tool_warned in |
| 2314 | yes:) |
| 2315 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2316 | whose name does not start with the host triplet. If you think this |
| 2317 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2318 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2319 | whose name does not start with the host triplet. If you think this |
| 2320 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2321 | ac_tool_warned=yes ;; |
| 2322 | esac |
| 2323 | CC=$ac_ct_CC |
| 2324 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2325 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2327 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2328 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2330 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2331 | See \`config.log' for more details." >&5 |
| 2332 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2333 | See \`config.log' for more details." >&2;} |
| 2334 | { (exit 1); exit 1; }; } |
| 2335 | |
| 2336 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2337 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2338 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2339 | { (ac_try="$ac_compiler --version >&5" |
| 2340 | case "(($ac_try" in |
| 2341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2342 | *) ac_try_echo=$ac_try;; |
| 2343 | esac |
| 2344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2345 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2346 | ac_status=$? |
| 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2348 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2349 | { (ac_try="$ac_compiler -v >&5" |
| 2350 | case "(($ac_try" in |
| 2351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2352 | *) ac_try_echo=$ac_try;; |
| 2353 | esac |
| 2354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2355 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2356 | ac_status=$? |
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2358 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2359 | { (ac_try="$ac_compiler -V >&5" |
| 2360 | case "(($ac_try" in |
| 2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2362 | *) ac_try_echo=$ac_try;; |
| 2363 | esac |
| 2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2365 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); } |
| 2369 | |
| 2370 | cat >conftest.$ac_ext <<_ACEOF |
| 2371 | /* confdefs.h. */ |
| 2372 | _ACEOF |
| 2373 | cat confdefs.h >>conftest.$ac_ext |
| 2374 | cat >>conftest.$ac_ext <<_ACEOF |
| 2375 | /* end confdefs.h. */ |
| 2376 | |
| 2377 | int |
| 2378 | main () |
| 2379 | { |
| 2380 | |
| 2381 | ; |
| 2382 | return 0; |
| 2383 | } |
| 2384 | _ACEOF |
| 2385 | ac_clean_files_save=$ac_clean_files |
| 2386 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2387 | # Try to create an executable without -o first, disregard a.out. |
| 2388 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2389 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2390 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2391 | 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] | 2392 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2393 | # |
| 2394 | # List of possible output files, starting from the most likely. |
| 2395 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2396 | # only as a last resort. b.out is created by i960 compilers. |
| 2397 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2398 | # |
| 2399 | # The IRIX 6 linker writes into existing files which may not be |
| 2400 | # executable, retaining their permissions. Remove them first so a |
| 2401 | # subsequent execution test works. |
| 2402 | ac_rmfiles= |
| 2403 | for ac_file in $ac_files |
| 2404 | do |
| 2405 | case $ac_file in |
| 2406 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2407 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2408 | esac |
| 2409 | done |
| 2410 | rm -f $ac_rmfiles |
| 2411 | |
| 2412 | if { (ac_try="$ac_link_default" |
| 2413 | case "(($ac_try" in |
| 2414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2415 | *) ac_try_echo=$ac_try;; |
| 2416 | esac |
| 2417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2418 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2419 | ac_status=$? |
| 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2422 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2423 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2424 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2425 | # so that the user can short-circuit this test for compilers unknown to |
| 2426 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2427 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2428 | do |
| 2429 | test -f "$ac_file" || continue |
| 2430 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2431 | *.$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] | 2432 | ;; |
| 2433 | [ab].out ) |
| 2434 | # We found the default executable, but exeext='' is most |
| 2435 | # certainly right. |
| 2436 | break;; |
| 2437 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2438 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2439 | then :; else |
| 2440 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2441 | fi |
| 2442 | # We set ac_cv_exeext here because the later test for it is not |
| 2443 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2444 | # argument, so we may need to know it at that point already. |
| 2445 | # Even if this section looks crufty: it has the advantage of |
| 2446 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2447 | break;; |
| 2448 | * ) |
| 2449 | break;; |
| 2450 | esac |
| 2451 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2453 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2454 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2455 | ac_file='' |
| 2456 | fi |
| 2457 | |
| 2458 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2459 | echo "${ECHO_T}$ac_file" >&6; } |
| 2460 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2461 | echo "$as_me: failed program was:" >&5 |
| 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2463 | |
| 2464 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2465 | See \`config.log' for more details." >&5 |
| 2466 | echo "$as_me: error: C compiler cannot create executables |
| 2467 | See \`config.log' for more details." >&2;} |
| 2468 | { (exit 77); exit 77; }; } |
| 2469 | fi |
| 2470 | |
| 2471 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2472 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2473 | # 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] | 2474 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2476 | 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] | 2477 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2478 | # If not cross compiling, check that we can run a simple program. |
| 2479 | if test "$cross_compiling" != yes; then |
| 2480 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 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_try") 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 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2491 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2492 | if test "$cross_compiling" = maybe; then |
| 2493 | cross_compiling=yes |
| 2494 | else |
| 2495 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2496 | If you meant to cross compile, use \`--host'. |
| 2497 | See \`config.log' for more details." >&5 |
| 2498 | echo "$as_me: error: cannot run C compiled programs. |
| 2499 | If you meant to cross compile, use \`--host'. |
| 2500 | See \`config.log' for more details." >&2;} |
| 2501 | { (exit 1); exit 1; }; } |
| 2502 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2503 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2504 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2506 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2508 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2509 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2510 | # 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] | 2511 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2512 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2513 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2514 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2515 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2516 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2518 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2519 | if { (ac_try="$ac_link" |
| 2520 | case "(($ac_try" in |
| 2521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2522 | *) ac_try_echo=$ac_try;; |
| 2523 | esac |
| 2524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2525 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2526 | ac_status=$? |
| 2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2528 | (exit $ac_status); }; then |
| 2529 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2530 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2531 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2532 | # `rm'. |
| 2533 | for ac_file in conftest.exe conftest conftest.*; do |
| 2534 | test -f "$ac_file" || continue |
| 2535 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2536 | *.$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] | 2537 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2538 | break;; |
| 2539 | * ) break;; |
| 2540 | esac |
| 2541 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2542 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2544 | See \`config.log' for more details." >&5 |
| 2545 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2546 | See \`config.log' for more details." >&2;} |
| 2547 | { (exit 1); exit 1; }; } |
| 2548 | fi |
| 2549 | |
| 2550 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2551 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2552 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | |
| 2554 | rm -f conftest.$ac_ext |
| 2555 | EXEEXT=$ac_cv_exeext |
| 2556 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2558 | 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] | 2559 | if test "${ac_cv_objext+set}" = set; then |
| 2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2561 | else |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
| 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | int |
| 2570 | main () |
| 2571 | { |
| 2572 | |
| 2573 | ; |
| 2574 | return 0; |
| 2575 | } |
| 2576 | _ACEOF |
| 2577 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2578 | if { (ac_try="$ac_compile" |
| 2579 | case "(($ac_try" in |
| 2580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2581 | *) ac_try_echo=$ac_try;; |
| 2582 | esac |
| 2583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2584 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2585 | ac_status=$? |
| 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2587 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2588 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2589 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2590 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2591 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2592 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2593 | break;; |
| 2594 | esac |
| 2595 | done |
| 2596 | else |
| 2597 | echo "$as_me: failed program was:" >&5 |
| 2598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2599 | |
| 2600 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2601 | See \`config.log' for more details." >&5 |
| 2602 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2603 | See \`config.log' for more details." >&2;} |
| 2604 | { (exit 1); exit 1; }; } |
| 2605 | fi |
| 2606 | |
| 2607 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2609 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2610 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2611 | OBJEXT=$ac_cv_objext |
| 2612 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2613 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2614 | 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] | 2615 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2617 | else |
| 2618 | cat >conftest.$ac_ext <<_ACEOF |
| 2619 | /* confdefs.h. */ |
| 2620 | _ACEOF |
| 2621 | cat confdefs.h >>conftest.$ac_ext |
| 2622 | cat >>conftest.$ac_ext <<_ACEOF |
| 2623 | /* end confdefs.h. */ |
| 2624 | |
| 2625 | int |
| 2626 | main () |
| 2627 | { |
| 2628 | #ifndef __GNUC__ |
| 2629 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2630 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2631 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2632 | ; |
| 2633 | return 0; |
| 2634 | } |
| 2635 | _ACEOF |
| 2636 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2637 | if { (ac_try="$ac_compile" |
| 2638 | case "(($ac_try" in |
| 2639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2640 | *) ac_try_echo=$ac_try;; |
| 2641 | esac |
| 2642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2643 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2644 | ac_status=$? |
| 2645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2646 | rm -f conftest.er1 |
| 2647 | cat conftest.err >&5 |
| 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2649 | (exit $ac_status); } && { |
| 2650 | test -z "$ac_c_werror_flag" || |
| 2651 | test ! -s conftest.err |
| 2652 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2653 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2654 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | echo "$as_me: failed program was:" >&5 |
| 2656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2657 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2658 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2659 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2660 | |
| 2661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2662 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2665 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2666 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2667 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2668 | ac_test_CFLAGS=${CFLAGS+set} |
| 2669 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2670 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2671 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2672 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2674 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2675 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2676 | ac_c_werror_flag=yes |
| 2677 | ac_cv_prog_cc_g=no |
| 2678 | CFLAGS="-g" |
| 2679 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2680 | /* confdefs.h. */ |
| 2681 | _ACEOF |
| 2682 | cat confdefs.h >>conftest.$ac_ext |
| 2683 | cat >>conftest.$ac_ext <<_ACEOF |
| 2684 | /* end confdefs.h. */ |
| 2685 | |
| 2686 | int |
| 2687 | main () |
| 2688 | { |
| 2689 | |
| 2690 | ; |
| 2691 | return 0; |
| 2692 | } |
| 2693 | _ACEOF |
| 2694 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2695 | if { (ac_try="$ac_compile" |
| 2696 | case "(($ac_try" in |
| 2697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2698 | *) ac_try_echo=$ac_try;; |
| 2699 | esac |
| 2700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2701 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2702 | ac_status=$? |
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2704 | rm -f conftest.er1 |
| 2705 | cat conftest.err >&5 |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2707 | (exit $ac_status); } && { |
| 2708 | test -z "$ac_c_werror_flag" || |
| 2709 | test ! -s conftest.err |
| 2710 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2711 | ac_cv_prog_cc_g=yes |
| 2712 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2713 | echo "$as_me: failed program was:" >&5 |
| 2714 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2715 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2716 | CFLAGS="" |
| 2717 | cat >conftest.$ac_ext <<_ACEOF |
| 2718 | /* confdefs.h. */ |
| 2719 | _ACEOF |
| 2720 | cat confdefs.h >>conftest.$ac_ext |
| 2721 | cat >>conftest.$ac_ext <<_ACEOF |
| 2722 | /* end confdefs.h. */ |
| 2723 | |
| 2724 | int |
| 2725 | main () |
| 2726 | { |
| 2727 | |
| 2728 | ; |
| 2729 | return 0; |
| 2730 | } |
| 2731 | _ACEOF |
| 2732 | rm -f conftest.$ac_objext |
| 2733 | if { (ac_try="$ac_compile" |
| 2734 | case "(($ac_try" in |
| 2735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2736 | *) ac_try_echo=$ac_try;; |
| 2737 | esac |
| 2738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2739 | (eval "$ac_compile") 2>conftest.er1 |
| 2740 | ac_status=$? |
| 2741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2742 | rm -f conftest.er1 |
| 2743 | cat conftest.err >&5 |
| 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2745 | (exit $ac_status); } && { |
| 2746 | test -z "$ac_c_werror_flag" || |
| 2747 | test ! -s conftest.err |
| 2748 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2749 | : |
| 2750 | else |
| 2751 | echo "$as_me: failed program was:" >&5 |
| 2752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2753 | |
| 2754 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2755 | CFLAGS="-g" |
| 2756 | cat >conftest.$ac_ext <<_ACEOF |
| 2757 | /* confdefs.h. */ |
| 2758 | _ACEOF |
| 2759 | cat confdefs.h >>conftest.$ac_ext |
| 2760 | cat >>conftest.$ac_ext <<_ACEOF |
| 2761 | /* end confdefs.h. */ |
| 2762 | |
| 2763 | int |
| 2764 | main () |
| 2765 | { |
| 2766 | |
| 2767 | ; |
| 2768 | return 0; |
| 2769 | } |
| 2770 | _ACEOF |
| 2771 | rm -f conftest.$ac_objext |
| 2772 | if { (ac_try="$ac_compile" |
| 2773 | case "(($ac_try" in |
| 2774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2775 | *) ac_try_echo=$ac_try;; |
| 2776 | esac |
| 2777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2778 | (eval "$ac_compile") 2>conftest.er1 |
| 2779 | ac_status=$? |
| 2780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2781 | rm -f conftest.er1 |
| 2782 | cat conftest.err >&5 |
| 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2784 | (exit $ac_status); } && { |
| 2785 | test -z "$ac_c_werror_flag" || |
| 2786 | test ! -s conftest.err |
| 2787 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2788 | ac_cv_prog_cc_g=yes |
| 2789 | else |
| 2790 | echo "$as_me: failed program was:" >&5 |
| 2791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2792 | |
| 2793 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2794 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2795 | |
| 2796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2797 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2798 | |
| 2799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2800 | fi |
| 2801 | |
| 2802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2803 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2804 | fi |
| 2805 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2806 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2807 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2808 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2809 | elif test $ac_cv_prog_cc_g = yes; then |
| 2810 | if test "$GCC" = yes; then |
| 2811 | CFLAGS="-g -O2" |
| 2812 | else |
| 2813 | CFLAGS="-g" |
| 2814 | fi |
| 2815 | else |
| 2816 | if test "$GCC" = yes; then |
| 2817 | CFLAGS="-O2" |
| 2818 | else |
| 2819 | CFLAGS= |
| 2820 | fi |
| 2821 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2822 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2823 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2824 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2826 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2827 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | ac_save_CC=$CC |
| 2829 | cat >conftest.$ac_ext <<_ACEOF |
| 2830 | /* confdefs.h. */ |
| 2831 | _ACEOF |
| 2832 | cat confdefs.h >>conftest.$ac_ext |
| 2833 | cat >>conftest.$ac_ext <<_ACEOF |
| 2834 | /* end confdefs.h. */ |
| 2835 | #include <stdarg.h> |
| 2836 | #include <stdio.h> |
| 2837 | #include <sys/types.h> |
| 2838 | #include <sys/stat.h> |
| 2839 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2840 | struct buf { int x; }; |
| 2841 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2842 | static char *e (p, i) |
| 2843 | char **p; |
| 2844 | int i; |
| 2845 | { |
| 2846 | return p[i]; |
| 2847 | } |
| 2848 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2849 | { |
| 2850 | char *s; |
| 2851 | va_list v; |
| 2852 | va_start (v,p); |
| 2853 | s = g (p, va_arg (v,int)); |
| 2854 | va_end (v); |
| 2855 | return s; |
| 2856 | } |
| 2857 | |
| 2858 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2859 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2860 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2861 | 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] | 2862 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2863 | 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] | 2864 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2865 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2867 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2868 | inside strings and character constants. */ |
| 2869 | #define FOO(x) 'x' |
| 2870 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2872 | int test (int i, double x); |
| 2873 | struct s1 {int (*f) (int a);}; |
| 2874 | struct s2 {int (*f) (double a);}; |
| 2875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2876 | int argc; |
| 2877 | char **argv; |
| 2878 | int |
| 2879 | main () |
| 2880 | { |
| 2881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2882 | ; |
| 2883 | return 0; |
| 2884 | } |
| 2885 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2886 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2887 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2888 | do |
| 2889 | CC="$ac_save_CC $ac_arg" |
| 2890 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2891 | if { (ac_try="$ac_compile" |
| 2892 | case "(($ac_try" in |
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2894 | *) ac_try_echo=$ac_try;; |
| 2895 | esac |
| 2896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2897 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2898 | ac_status=$? |
| 2899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2900 | rm -f conftest.er1 |
| 2901 | cat conftest.err >&5 |
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2903 | (exit $ac_status); } && { |
| 2904 | test -z "$ac_c_werror_flag" || |
| 2905 | test ! -s conftest.err |
| 2906 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2907 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2908 | else |
| 2909 | echo "$as_me: failed program was:" >&5 |
| 2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2912 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2913 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2914 | |
| 2915 | rm -f core conftest.err conftest.$ac_objext |
| 2916 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2918 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | CC=$ac_save_CC |
| 2920 | |
| 2921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2922 | # AC_CACHE_VAL |
| 2923 | case "x$ac_cv_prog_cc_c89" in |
| 2924 | x) |
| 2925 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2926 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2927 | xno) |
| 2928 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2929 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2930 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2931 | CC="$CC $ac_cv_prog_cc_c89" |
| 2932 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2933 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2934 | esac |
| 2935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2937 | ac_ext=c |
| 2938 | ac_cpp='$CPP $CPPFLAGS' |
| 2939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2942 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2943 | ac_ext=c |
| 2944 | ac_cpp='$CPP $CPPFLAGS' |
| 2945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2948 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2949 | 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] | 2950 | # On Suns, sometimes $CPP names a directory. |
| 2951 | if test -n "$CPP" && test -d "$CPP"; then |
| 2952 | CPP= |
| 2953 | fi |
| 2954 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2955 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2957 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2958 | # Double quotes because CPP needs to be expanded |
| 2959 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2960 | do |
| 2961 | ac_preproc_ok=false |
| 2962 | for ac_c_preproc_warn_flag in '' yes |
| 2963 | do |
| 2964 | # Use a header file that comes with gcc, so configuring glibc |
| 2965 | # with a fresh cross-compiler works. |
| 2966 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2967 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2968 | # 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] | 2969 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2970 | cat >conftest.$ac_ext <<_ACEOF |
| 2971 | /* confdefs.h. */ |
| 2972 | _ACEOF |
| 2973 | cat confdefs.h >>conftest.$ac_ext |
| 2974 | cat >>conftest.$ac_ext <<_ACEOF |
| 2975 | /* end confdefs.h. */ |
| 2976 | #ifdef __STDC__ |
| 2977 | # include <limits.h> |
| 2978 | #else |
| 2979 | # include <assert.h> |
| 2980 | #endif |
| 2981 | Syntax error |
| 2982 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2990 | ac_status=$? |
| 2991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2992 | rm -f conftest.er1 |
| 2993 | cat conftest.err >&5 |
| 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2995 | (exit $ac_status); } >/dev/null && { |
| 2996 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2997 | test ! -s conftest.err |
| 2998 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2999 | : |
| 3000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | echo "$as_me: failed program was:" >&5 |
| 3002 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3003 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3004 | # Broken: fails on valid input. |
| 3005 | continue |
| 3006 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3007 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3008 | rm -f conftest.err conftest.$ac_ext |
| 3009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3010 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | # can be detected and how. |
| 3012 | cat >conftest.$ac_ext <<_ACEOF |
| 3013 | /* confdefs.h. */ |
| 3014 | _ACEOF |
| 3015 | cat confdefs.h >>conftest.$ac_ext |
| 3016 | cat >>conftest.$ac_ext <<_ACEOF |
| 3017 | /* end confdefs.h. */ |
| 3018 | #include <ac_nonexistent.h> |
| 3019 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3021 | case "(($ac_try" in |
| 3022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3023 | *) ac_try_echo=$ac_try;; |
| 3024 | esac |
| 3025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3026 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3027 | ac_status=$? |
| 3028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3029 | rm -f conftest.er1 |
| 3030 | cat conftest.err >&5 |
| 3031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3032 | (exit $ac_status); } >/dev/null && { |
| 3033 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3034 | test ! -s conftest.err |
| 3035 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3036 | # Broken: success on invalid input. |
| 3037 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3038 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | echo "$as_me: failed program was:" >&5 |
| 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
| 3042 | # Passes both tests. |
| 3043 | ac_preproc_ok=: |
| 3044 | break |
| 3045 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3046 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3047 | rm -f conftest.err conftest.$ac_ext |
| 3048 | |
| 3049 | done |
| 3050 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3051 | rm -f conftest.err conftest.$ac_ext |
| 3052 | if $ac_preproc_ok; then |
| 3053 | break |
| 3054 | fi |
| 3055 | |
| 3056 | done |
| 3057 | ac_cv_prog_CPP=$CPP |
| 3058 | |
| 3059 | fi |
| 3060 | CPP=$ac_cv_prog_CPP |
| 3061 | else |
| 3062 | ac_cv_prog_CPP=$CPP |
| 3063 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3064 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3065 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3066 | ac_preproc_ok=false |
| 3067 | for ac_c_preproc_warn_flag in '' yes |
| 3068 | do |
| 3069 | # Use a header file that comes with gcc, so configuring glibc |
| 3070 | # with a fresh cross-compiler works. |
| 3071 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3072 | # <limits.h> exists even on freestanding compilers. |
| 3073 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3074 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3075 | cat >conftest.$ac_ext <<_ACEOF |
| 3076 | /* confdefs.h. */ |
| 3077 | _ACEOF |
| 3078 | cat confdefs.h >>conftest.$ac_ext |
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
| 3080 | /* end confdefs.h. */ |
| 3081 | #ifdef __STDC__ |
| 3082 | # include <limits.h> |
| 3083 | #else |
| 3084 | # include <assert.h> |
| 3085 | #endif |
| 3086 | Syntax error |
| 3087 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3088 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3089 | case "(($ac_try" in |
| 3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3091 | *) ac_try_echo=$ac_try;; |
| 3092 | esac |
| 3093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3095 | ac_status=$? |
| 3096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3097 | rm -f conftest.er1 |
| 3098 | cat conftest.err >&5 |
| 3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3100 | (exit $ac_status); } >/dev/null && { |
| 3101 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3102 | test ! -s conftest.err |
| 3103 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3104 | : |
| 3105 | else |
| 3106 | echo "$as_me: failed program was:" >&5 |
| 3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3108 | |
| 3109 | # Broken: fails on valid input. |
| 3110 | continue |
| 3111 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3112 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3113 | rm -f conftest.err conftest.$ac_ext |
| 3114 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3115 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3116 | # can be detected and how. |
| 3117 | cat >conftest.$ac_ext <<_ACEOF |
| 3118 | /* confdefs.h. */ |
| 3119 | _ACEOF |
| 3120 | cat confdefs.h >>conftest.$ac_ext |
| 3121 | cat >>conftest.$ac_ext <<_ACEOF |
| 3122 | /* end confdefs.h. */ |
| 3123 | #include <ac_nonexistent.h> |
| 3124 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3125 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3126 | case "(($ac_try" in |
| 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3128 | *) ac_try_echo=$ac_try;; |
| 3129 | esac |
| 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3131 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3132 | ac_status=$? |
| 3133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3134 | rm -f conftest.er1 |
| 3135 | cat conftest.err >&5 |
| 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3137 | (exit $ac_status); } >/dev/null && { |
| 3138 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3139 | test ! -s conftest.err |
| 3140 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3141 | # Broken: success on invalid input. |
| 3142 | continue |
| 3143 | else |
| 3144 | echo "$as_me: failed program was:" >&5 |
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3146 | |
| 3147 | # Passes both tests. |
| 3148 | ac_preproc_ok=: |
| 3149 | break |
| 3150 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3151 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3152 | rm -f conftest.err conftest.$ac_ext |
| 3153 | |
| 3154 | done |
| 3155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3156 | rm -f conftest.err conftest.$ac_ext |
| 3157 | if $ac_preproc_ok; then |
| 3158 | : |
| 3159 | else |
| 3160 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3161 | See \`config.log' for more details." >&5 |
| 3162 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3163 | See \`config.log' for more details." >&2;} |
| 3164 | { (exit 1); exit 1; }; } |
| 3165 | fi |
| 3166 | |
| 3167 | ac_ext=c |
| 3168 | ac_cpp='$CPP $CPPFLAGS' |
| 3169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3172 | |
| 3173 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3174 | # Check whether --with-linker was given. |
| 3175 | if test "${with_linker+set}" = set; then |
| 3176 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3177 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3178 | LD=$withval |
| 3179 | else |
| 3180 | if test -z "$LD" ; then LD=$CC; fi |
| 3181 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3182 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3183 | fi |
| 3184 | export LD |
| 3185 | |
| 3186 | |
| 3187 | # Check whether --with-ccopts was given. |
| 3188 | if test "${with_ccopts+set}" = set; then |
| 3189 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3190 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3191 | CFLAGS=$withval |
| 3192 | fi |
| 3193 | |
| 3194 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3195 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3196 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3197 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3199 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3200 | # Extract the first word of "grep ggrep" to use in msg output |
| 3201 | if test -z "$GREP"; then |
| 3202 | set dummy grep ggrep; ac_prog_name=$2 |
| 3203 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3205 | else |
| 3206 | ac_path_GREP_found=false |
| 3207 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3209 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3210 | do |
| 3211 | IFS=$as_save_IFS |
| 3212 | test -z "$as_dir" && as_dir=. |
| 3213 | for ac_prog in grep ggrep; do |
| 3214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3215 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3216 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3217 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3218 | # Check for GNU $ac_path_GREP |
| 3219 | case `"$ac_path_GREP" --version 2>&1` in |
| 3220 | *GNU*) |
| 3221 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3222 | *) |
| 3223 | ac_count=0 |
| 3224 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3225 | while : |
| 3226 | do |
| 3227 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3228 | mv "conftest.tmp" "conftest.in" |
| 3229 | cp "conftest.in" "conftest.nl" |
| 3230 | echo 'GREP' >> "conftest.nl" |
| 3231 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3232 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3233 | ac_count=`expr $ac_count + 1` |
| 3234 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3235 | # Best one so far, save it but keep looking for a better one |
| 3236 | ac_cv_path_GREP="$ac_path_GREP" |
| 3237 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3238 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3239 | # 10*(2^10) chars as input seems more than enough |
| 3240 | test $ac_count -gt 10 && break |
| 3241 | done |
| 3242 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3243 | esac |
| 3244 | |
| 3245 | |
| 3246 | $ac_path_GREP_found && break 3 |
| 3247 | done |
| 3248 | done |
| 3249 | |
| 3250 | done |
| 3251 | IFS=$as_save_IFS |
| 3252 | |
| 3253 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3254 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3255 | |
| 3256 | GREP="$ac_cv_path_GREP" |
| 3257 | if test -z "$GREP"; then |
| 3258 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3259 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3260 | { (exit 1); exit 1; }; } |
| 3261 | fi |
| 3262 | |
| 3263 | else |
| 3264 | ac_cv_path_GREP=$GREP |
| 3265 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3266 | |
| 3267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3268 | fi |
| 3269 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3270 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3271 | GREP="$ac_cv_path_GREP" |
| 3272 | |
| 3273 | |
| 3274 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3275 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3276 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3278 | else |
| 3279 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3280 | then ac_cv_path_EGREP="$GREP -E" |
| 3281 | else |
| 3282 | # Extract the first word of "egrep" to use in msg output |
| 3283 | if test -z "$EGREP"; then |
| 3284 | set dummy egrep; ac_prog_name=$2 |
| 3285 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3287 | else |
| 3288 | ac_path_EGREP_found=false |
| 3289 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3291 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3292 | do |
| 3293 | IFS=$as_save_IFS |
| 3294 | test -z "$as_dir" && as_dir=. |
| 3295 | for ac_prog in egrep; do |
| 3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3297 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3298 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3299 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3300 | # Check for GNU $ac_path_EGREP |
| 3301 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3302 | *GNU*) |
| 3303 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3304 | *) |
| 3305 | ac_count=0 |
| 3306 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3307 | while : |
| 3308 | do |
| 3309 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3310 | mv "conftest.tmp" "conftest.in" |
| 3311 | cp "conftest.in" "conftest.nl" |
| 3312 | echo 'EGREP' >> "conftest.nl" |
| 3313 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3314 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3315 | ac_count=`expr $ac_count + 1` |
| 3316 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3317 | # Best one so far, save it but keep looking for a better one |
| 3318 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3319 | ac_path_EGREP_max=$ac_count |
| 3320 | fi |
| 3321 | # 10*(2^10) chars as input seems more than enough |
| 3322 | test $ac_count -gt 10 && break |
| 3323 | done |
| 3324 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3325 | esac |
| 3326 | |
| 3327 | |
| 3328 | $ac_path_EGREP_found && break 3 |
| 3329 | done |
| 3330 | done |
| 3331 | |
| 3332 | done |
| 3333 | IFS=$as_save_IFS |
| 3334 | |
| 3335 | |
| 3336 | fi |
| 3337 | |
| 3338 | EGREP="$ac_cv_path_EGREP" |
| 3339 | if test -z "$EGREP"; then |
| 3340 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3341 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3342 | { (exit 1); exit 1; }; } |
| 3343 | fi |
| 3344 | |
| 3345 | else |
| 3346 | ac_cv_path_EGREP=$EGREP |
| 3347 | fi |
| 3348 | |
| 3349 | |
| 3350 | fi |
| 3351 | fi |
| 3352 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3353 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3354 | EGREP="$ac_cv_path_EGREP" |
| 3355 | |
| 3356 | |
| 3357 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3358 | 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] | 3359 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | cat >conftest.$ac_ext <<_ACEOF |
| 3363 | /* confdefs.h. */ |
| 3364 | _ACEOF |
| 3365 | cat confdefs.h >>conftest.$ac_ext |
| 3366 | cat >>conftest.$ac_ext <<_ACEOF |
| 3367 | /* end confdefs.h. */ |
| 3368 | #include <stdlib.h> |
| 3369 | #include <stdarg.h> |
| 3370 | #include <string.h> |
| 3371 | #include <float.h> |
| 3372 | |
| 3373 | int |
| 3374 | main () |
| 3375 | { |
| 3376 | |
| 3377 | ; |
| 3378 | return 0; |
| 3379 | } |
| 3380 | _ACEOF |
| 3381 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3382 | if { (ac_try="$ac_compile" |
| 3383 | case "(($ac_try" in |
| 3384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3385 | *) ac_try_echo=$ac_try;; |
| 3386 | esac |
| 3387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3388 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3389 | ac_status=$? |
| 3390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3391 | rm -f conftest.er1 |
| 3392 | cat conftest.err >&5 |
| 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3394 | (exit $ac_status); } && { |
| 3395 | test -z "$ac_c_werror_flag" || |
| 3396 | test ! -s conftest.err |
| 3397 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3398 | ac_cv_header_stdc=yes |
| 3399 | else |
| 3400 | echo "$as_me: failed program was:" >&5 |
| 3401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3403 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3404 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3405 | |
| 3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3407 | |
| 3408 | if test $ac_cv_header_stdc = yes; then |
| 3409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3410 | cat >conftest.$ac_ext <<_ACEOF |
| 3411 | /* confdefs.h. */ |
| 3412 | _ACEOF |
| 3413 | cat confdefs.h >>conftest.$ac_ext |
| 3414 | cat >>conftest.$ac_ext <<_ACEOF |
| 3415 | /* end confdefs.h. */ |
| 3416 | #include <string.h> |
| 3417 | |
| 3418 | _ACEOF |
| 3419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3420 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3421 | : |
| 3422 | else |
| 3423 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3424 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3425 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3426 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3427 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3428 | |
| 3429 | if test $ac_cv_header_stdc = yes; then |
| 3430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3431 | cat >conftest.$ac_ext <<_ACEOF |
| 3432 | /* confdefs.h. */ |
| 3433 | _ACEOF |
| 3434 | cat confdefs.h >>conftest.$ac_ext |
| 3435 | cat >>conftest.$ac_ext <<_ACEOF |
| 3436 | /* end confdefs.h. */ |
| 3437 | #include <stdlib.h> |
| 3438 | |
| 3439 | _ACEOF |
| 3440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3441 | $EGREP "free" >/dev/null 2>&1; then |
| 3442 | : |
| 3443 | else |
| 3444 | ac_cv_header_stdc=no |
| 3445 | fi |
| 3446 | rm -f conftest* |
| 3447 | |
| 3448 | fi |
| 3449 | |
| 3450 | if test $ac_cv_header_stdc = yes; then |
| 3451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3452 | if test "$cross_compiling" = yes; then |
| 3453 | : |
| 3454 | else |
| 3455 | cat >conftest.$ac_ext <<_ACEOF |
| 3456 | /* confdefs.h. */ |
| 3457 | _ACEOF |
| 3458 | cat confdefs.h >>conftest.$ac_ext |
| 3459 | cat >>conftest.$ac_ext <<_ACEOF |
| 3460 | /* end confdefs.h. */ |
| 3461 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3462 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3463 | #if ((' ' & 0x0FF) == 0x020) |
| 3464 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3465 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3466 | #else |
| 3467 | # define ISLOWER(c) \ |
| 3468 | (('a' <= (c) && (c) <= 'i') \ |
| 3469 | || ('j' <= (c) && (c) <= 'r') \ |
| 3470 | || ('s' <= (c) && (c) <= 'z')) |
| 3471 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3472 | #endif |
| 3473 | |
| 3474 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3475 | int |
| 3476 | main () |
| 3477 | { |
| 3478 | int i; |
| 3479 | for (i = 0; i < 256; i++) |
| 3480 | if (XOR (islower (i), ISLOWER (i)) |
| 3481 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3482 | return 2; |
| 3483 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3484 | } |
| 3485 | _ACEOF |
| 3486 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3487 | if { (ac_try="$ac_link" |
| 3488 | case "(($ac_try" in |
| 3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3490 | *) ac_try_echo=$ac_try;; |
| 3491 | esac |
| 3492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3493 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3494 | ac_status=$? |
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | { (case "(($ac_try" in |
| 3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3499 | *) ac_try_echo=$ac_try;; |
| 3500 | esac |
| 3501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3502 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3503 | ac_status=$? |
| 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3505 | (exit $ac_status); }; }; then |
| 3506 | : |
| 3507 | else |
| 3508 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3509 | echo "$as_me: failed program was:" >&5 |
| 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3511 | |
| 3512 | ( exit $ac_status ) |
| 3513 | ac_cv_header_stdc=no |
| 3514 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3516 | fi |
| 3517 | |
| 3518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3519 | fi |
| 3520 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3521 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3522 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3523 | if test $ac_cv_header_stdc = yes; then |
| 3524 | |
| 3525 | cat >>confdefs.h <<\_ACEOF |
| 3526 | #define STDC_HEADERS 1 |
| 3527 | _ACEOF |
| 3528 | |
| 3529 | fi |
| 3530 | |
| 3531 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3542 | inttypes.h stdint.h unistd.h |
| 3543 | do |
| 3544 | 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] | 3545 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3547 | 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] | 3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3549 | else |
| 3550 | cat >conftest.$ac_ext <<_ACEOF |
| 3551 | /* confdefs.h. */ |
| 3552 | _ACEOF |
| 3553 | cat confdefs.h >>conftest.$ac_ext |
| 3554 | cat >>conftest.$ac_ext <<_ACEOF |
| 3555 | /* end confdefs.h. */ |
| 3556 | $ac_includes_default |
| 3557 | |
| 3558 | #include <$ac_header> |
| 3559 | _ACEOF |
| 3560 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3561 | if { (ac_try="$ac_compile" |
| 3562 | case "(($ac_try" in |
| 3563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3564 | *) ac_try_echo=$ac_try;; |
| 3565 | esac |
| 3566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3567 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3568 | ac_status=$? |
| 3569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3570 | rm -f conftest.er1 |
| 3571 | cat conftest.err >&5 |
| 3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3573 | (exit $ac_status); } && { |
| 3574 | test -z "$ac_c_werror_flag" || |
| 3575 | test ! -s conftest.err |
| 3576 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3577 | eval "$as_ac_Header=yes" |
| 3578 | else |
| 3579 | echo "$as_me: failed program was:" >&5 |
| 3580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3581 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3582 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3583 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3584 | |
| 3585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3587 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3588 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3589 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3591 | cat >>confdefs.h <<_ACEOF |
| 3592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3593 | _ACEOF |
| 3594 | |
| 3595 | fi |
| 3596 | |
| 3597 | done |
| 3598 | |
| 3599 | |
| 3600 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3601 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3602 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3603 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3606 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3607 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3608 | else |
| 3609 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3610 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3611 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3612 | cat >conftest.$ac_ext <<_ACEOF |
| 3613 | /* confdefs.h. */ |
| 3614 | _ACEOF |
| 3615 | cat confdefs.h >>conftest.$ac_ext |
| 3616 | cat >>conftest.$ac_ext <<_ACEOF |
| 3617 | /* end confdefs.h. */ |
| 3618 | $ac_includes_default |
| 3619 | #include <linux/fs.h> |
| 3620 | _ACEOF |
| 3621 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3622 | if { (ac_try="$ac_compile" |
| 3623 | case "(($ac_try" in |
| 3624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3625 | *) ac_try_echo=$ac_try;; |
| 3626 | esac |
| 3627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3628 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3629 | ac_status=$? |
| 3630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3631 | rm -f conftest.er1 |
| 3632 | cat conftest.err >&5 |
| 3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3634 | (exit $ac_status); } && { |
| 3635 | test -z "$ac_c_werror_flag" || |
| 3636 | test ! -s conftest.err |
| 3637 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3638 | ac_header_compiler=yes |
| 3639 | else |
| 3640 | echo "$as_me: failed program was:" >&5 |
| 3641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3642 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3643 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3644 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3645 | |
| 3646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3647 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3648 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3649 | |
| 3650 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3652 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3653 | cat >conftest.$ac_ext <<_ACEOF |
| 3654 | /* confdefs.h. */ |
| 3655 | _ACEOF |
| 3656 | cat confdefs.h >>conftest.$ac_ext |
| 3657 | cat >>conftest.$ac_ext <<_ACEOF |
| 3658 | /* end confdefs.h. */ |
| 3659 | #include <linux/fs.h> |
| 3660 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3661 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3662 | case "(($ac_try" in |
| 3663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3664 | *) ac_try_echo=$ac_try;; |
| 3665 | esac |
| 3666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3668 | ac_status=$? |
| 3669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3670 | rm -f conftest.er1 |
| 3671 | cat conftest.err >&5 |
| 3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3673 | (exit $ac_status); } >/dev/null && { |
| 3674 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3675 | test ! -s conftest.err |
| 3676 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3677 | ac_header_preproc=yes |
| 3678 | else |
| 3679 | echo "$as_me: failed program was:" >&5 |
| 3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3681 | |
| 3682 | ac_header_preproc=no |
| 3683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3684 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3685 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3686 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3687 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3688 | |
| 3689 | # So? What about this header? |
| 3690 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3691 | yes:no: ) |
| 3692 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3693 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3694 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3695 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3696 | ac_header_preproc=yes |
| 3697 | ;; |
| 3698 | no:yes:* ) |
| 3699 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3700 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3701 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3702 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3703 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3704 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3705 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3706 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3707 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3708 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3709 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3710 | 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] | 3711 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3712 | ;; |
| 3713 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3714 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3715 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3716 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3718 | else |
| 3719 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3720 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3721 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3722 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3723 | |
| 3724 | fi |
| 3725 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3726 | linux_headers=yes |
| 3727 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3728 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3729 | fi |
| 3730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3731 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3732 | if test "$linux_headers" != yes; then |
| 3733 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3734 | fi |
| 3735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3736 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3737 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3738 | if test "$GCC" = yes |
| 3739 | then |
| 3740 | case "$host_cpu" in |
| 3741 | alpha) addcflags="-mieee" ;; |
| 3742 | esac |
| 3743 | fi |
| 3744 | if test "x$addcflags" != x |
| 3745 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3746 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3747 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3748 | CFLAGS="$addcflags $CFLAGS" |
| 3749 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3750 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3751 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3752 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3753 | LIB_EXT=.a |
| 3754 | STATIC_LIB_EXT=.a |
| 3755 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3757 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3758 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3759 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3760 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3761 | LDFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3762 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3764 | |
| 3765 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3766 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3767 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3768 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3769 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3770 | fi |
| 3771 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3772 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3773 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3774 | then |
| 3775 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3776 | { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
| 3777 | echo "${ECHO_T}Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3778 | else |
| 3779 | MAINTAINER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3780 | { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
| 3781 | echo "${ECHO_T}Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3782 | fi |
| 3783 | |
| 3784 | else |
| 3785 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3786 | { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
| 3787 | echo "${ECHO_T}Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3789 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3791 | |
| 3792 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3793 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3794 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3795 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3796 | { echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
| 3797 | echo "${ECHO_T}Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3798 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3799 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3800 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3801 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3802 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3803 | { echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
| 3804 | echo "${ECHO_T}Enabling compression support" >&6; } |
| 3805 | { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 |
| 3806 | echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3807 | fi |
| 3808 | |
| 3809 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3810 | { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
| 3811 | echo "${ECHO_T}Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3813 | fi |
| 3814 | |
| 3815 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3816 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3817 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3818 | then |
| 3819 | HTREE_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3820 | { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
| 3821 | echo "${ECHO_T}Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3822 | else |
| 3823 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3824 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3825 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3826 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3827 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3828 | { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
| 3829 | echo "${ECHO_T}Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3830 | fi |
| 3831 | |
| 3832 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3833 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3834 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3835 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3836 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3837 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3838 | { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
| 3839 | echo "${ECHO_T}Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3840 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3841 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3842 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3843 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3844 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3845 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3846 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3847 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3848 | then |
| 3849 | ELF_CMT=# |
| 3850 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3851 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
| 3852 | echo "${ECHO_T}Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3853 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3854 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3855 | ELF_CMT= |
| 3856 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3857 | case "$host_os" in |
| 3858 | solaris2.*) |
| 3859 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3860 | ;; |
| 3861 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3862 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3863 | LIB_EXT=.so |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3864 | { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
| 3865 | echo "${ECHO_T}Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3866 | fi |
| 3867 | |
| 3868 | else |
| 3869 | MAKEFILE_ELF=/dev/null |
| 3870 | ELF_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3871 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
| 3872 | echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3873 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3874 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3875 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3876 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3877 | |
| 3878 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3879 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3880 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3881 | then |
| 3882 | BSDLIB_CMT=# |
| 3883 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3884 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
| 3885 | echo "${ECHO_T}Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3886 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3887 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3888 | BSDLIB_CMT= |
| 3889 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3890 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3891 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3892 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3893 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3894 | LIB_EXT=.dylib |
| 3895 | ;; |
| 3896 | esac |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3897 | { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
| 3898 | echo "${ECHO_T}Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3899 | fi |
| 3900 | |
| 3901 | else |
| 3902 | MAKEFILE_BSDLIB=/dev/null |
| 3903 | BSDLIB_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3904 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
| 3905 | echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3906 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3907 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3908 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3910 | |
| 3911 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3912 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3913 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3914 | then |
| 3915 | PROFILE_CMT=# |
| 3916 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3917 | { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
| 3918 | echo "${ECHO_T}Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3919 | else |
| 3920 | PROFILE_CMT= |
| 3921 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3922 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3923 | { echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
| 3924 | echo "${ECHO_T}Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3925 | fi |
| 3926 | |
| 3927 | else |
| 3928 | PROFILE_CMT=# |
| 3929 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3930 | { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
| 3931 | echo "${ECHO_T}Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3933 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3934 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3936 | |
| 3937 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3938 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3939 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3940 | then |
| 3941 | CHECKER_CMT=# |
| 3942 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3943 | { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
| 3944 | echo "${ECHO_T}Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3945 | else |
| 3946 | CHECKER_CMT= |
| 3947 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3948 | { echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
| 3949 | echo "${ECHO_T}Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3950 | fi |
| 3951 | |
| 3952 | else |
| 3953 | CHECKER_CMT=# |
| 3954 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3955 | { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
| 3956 | echo "${ECHO_T}Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3958 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3964 | |
| 3965 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3966 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3967 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3968 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3969 | { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
| 3970 | echo "${ECHO_T}Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3971 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3972 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3973 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3974 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3975 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3976 | { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
| 3977 | echo "${ECHO_T}Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3978 | fi |
| 3979 | |
| 3980 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3981 | { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 |
| 3982 | echo "${ECHO_T}Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3983 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3984 | fi |
| 3985 | |
| 3986 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3987 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3988 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3989 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3990 | { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
| 3991 | echo "${ECHO_T}Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3992 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3993 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3994 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3995 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3996 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3997 | { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
| 3998 | echo "${ECHO_T}Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3999 | fi |
| 4000 | |
| 4001 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4002 | { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 |
| 4003 | echo "${ECHO_T}Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4005 | fi |
| 4006 | |
| 4007 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4008 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4009 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4010 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4011 | { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
| 4012 | echo "${ECHO_T}Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 4013 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4014 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 4015 | TEST_IO_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4016 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4017 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4018 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4019 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4020 | { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
| 4021 | echo "${ECHO_T}Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4022 | fi |
| 4023 | |
| 4024 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 4025 | { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 |
| 4026 | echo "${ECHO_T}Enabling testio debugging by default" >&6; } |
| 4027 | cat >>confdefs.h <<\_ACEOF |
| 4028 | #define CONFIG_TESTIO_DEBUG 1 |
| 4029 | _ACEOF |
| 4030 | |
| 4031 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4033 | fi |
| 4034 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 4035 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4036 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4037 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4038 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4039 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4040 | { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
| 4041 | echo "${ECHO_T}Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4042 | DEBUGFS_CMT="#" |
| 4043 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4044 | DEBUGFS_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4045 | { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
| 4046 | echo "${ECHO_T}Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4047 | fi |
| 4048 | |
| 4049 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4050 | { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
| 4051 | echo "${ECHO_T}Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4052 | DEBUGFS_CMT= |
| 4053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4054 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4055 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4056 | |
| 4057 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4058 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4059 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4060 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4061 | { echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
| 4062 | echo "${ECHO_T}Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4063 | IMAGER_CMT="#" |
| 4064 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4065 | IMAGER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4066 | { echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
| 4067 | echo "${ECHO_T}Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4068 | fi |
| 4069 | |
| 4070 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4071 | { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
| 4072 | echo "${ECHO_T}Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4073 | IMAGER_CMT= |
| 4074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4075 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4077 | |
| 4078 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4079 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4080 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4081 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4082 | { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
| 4083 | echo "${ECHO_T}Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4084 | RESIZER_CMT="#" |
| 4085 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4086 | RESIZER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4087 | { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
| 4088 | echo "${ECHO_T}Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4089 | fi |
| 4090 | |
| 4091 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4092 | { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
| 4093 | echo "${ECHO_T}Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4094 | RESIZER_CMT= |
| 4095 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4096 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4099 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4100 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4101 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4102 | then |
| 4103 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4104 | { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
| 4105 | echo "${ECHO_T}Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4106 | else |
| 4107 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4108 | { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
| 4109 | echo "${ECHO_T}Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4110 | fi |
| 4111 | |
| 4112 | else |
| 4113 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4114 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4115 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4116 | { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
| 4117 | echo "${ECHO_T}Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4118 | ;; |
| 4119 | *) |
| 4120 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4121 | { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
| 4122 | echo "${ECHO_T}Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4123 | esac |
| 4124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4125 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4126 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4128 | |
| 4129 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4130 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4131 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4132 | then |
| 4133 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4134 | { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
| 4135 | echo "${ECHO_T}Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4136 | else |
| 4137 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4138 | { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
| 4139 | echo "${ECHO_T}Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4140 | fi |
| 4141 | |
| 4142 | else |
| 4143 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4144 | { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
| 4145 | echo "${ECHO_T}Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4147 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4148 | |
| 4149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4150 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4151 | # Check whether --enable-tls was given. |
| 4152 | if test "${enable_tls+set}" = set; then |
| 4153 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4154 | then |
| 4155 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4156 | { echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
| 4157 | echo "${ECHO_T}Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4158 | else |
| 4159 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4160 | { echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
| 4161 | echo "${ECHO_T}Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4162 | fi |
| 4163 | |
| 4164 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4165 | if test -n "$WITH_DIET_LIBC" |
| 4166 | then |
| 4167 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4168 | { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
| 4169 | echo "${ECHO_T}Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4170 | else |
| 4171 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4172 | { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
| 4173 | echo "${ECHO_T}Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4174 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4175 | |
| 4176 | fi |
| 4177 | |
| 4178 | if test "$try_tls" = "yes" |
| 4179 | then |
| 4180 | |
| 4181 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4182 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4183 | if test "${ac_cv_tls+set}" = set; then |
| 4184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4185 | else |
| 4186 | |
| 4187 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4188 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4189 | case $ax_tls_keyword in |
| 4190 | none) ac_cv_tls=none ; break ;; |
| 4191 | *) |
| 4192 | cat >conftest.$ac_ext <<_ACEOF |
| 4193 | /* confdefs.h. */ |
| 4194 | _ACEOF |
| 4195 | cat confdefs.h >>conftest.$ac_ext |
| 4196 | cat >>conftest.$ac_ext <<_ACEOF |
| 4197 | /* end confdefs.h. */ |
| 4198 | #include <stdlib.h> |
| 4199 | static void |
| 4200 | foo(void) { |
| 4201 | static $ax_tls_keyword int bar; |
| 4202 | exit(1); |
| 4203 | } |
| 4204 | int |
| 4205 | main () |
| 4206 | { |
| 4207 | |
| 4208 | ; |
| 4209 | return 0; |
| 4210 | } |
| 4211 | _ACEOF |
| 4212 | rm -f conftest.$ac_objext |
| 4213 | if { (ac_try="$ac_compile" |
| 4214 | case "(($ac_try" in |
| 4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4216 | *) ac_try_echo=$ac_try;; |
| 4217 | esac |
| 4218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4219 | (eval "$ac_compile") 2>conftest.er1 |
| 4220 | ac_status=$? |
| 4221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4222 | rm -f conftest.er1 |
| 4223 | cat conftest.err >&5 |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); } && { |
| 4226 | test -z "$ac_c_werror_flag" || |
| 4227 | test ! -s conftest.err |
| 4228 | } && test -s conftest.$ac_objext; then |
| 4229 | ac_cv_tls=$ax_tls_keyword ; break |
| 4230 | else |
| 4231 | echo "$as_me: failed program was:" >&5 |
| 4232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4233 | |
| 4234 | ac_cv_tls=none |
| 4235 | |
| 4236 | fi |
| 4237 | |
| 4238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4239 | esac |
| 4240 | done |
| 4241 | |
| 4242 | fi |
| 4243 | |
| 4244 | |
| 4245 | if test "$ac_cv_tls" != "none"; then |
| 4246 | |
| 4247 | cat >>confdefs.h <<_ACEOF |
| 4248 | #define TLS $ac_cv_tls |
| 4249 | _ACEOF |
| 4250 | |
| 4251 | fi |
| 4252 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4253 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4254 | |
| 4255 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4256 | # Check whether --enable-uuidd was given. |
| 4257 | if test "${enable_uuidd+set}" = set; then |
| 4258 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4259 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4260 | { echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
| 4261 | echo "${ECHO_T}Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4262 | UUIDD_CMT="#" |
| 4263 | else |
| 4264 | cat >>confdefs.h <<\_ACEOF |
| 4265 | #define USE_UUIDD 1 |
| 4266 | _ACEOF |
| 4267 | |
| 4268 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4269 | { echo "$as_me:$LINENO: result: Building uuidd" >&5 |
| 4270 | echo "${ECHO_T}Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4271 | fi |
| 4272 | |
| 4273 | else |
| 4274 | cat >>confdefs.h <<\_ACEOF |
| 4275 | #define USE_UUIDD 1 |
| 4276 | _ACEOF |
| 4277 | |
| 4278 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4279 | { echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
| 4280 | echo "${ECHO_T}Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4281 | |
| 4282 | fi |
| 4283 | |
| 4284 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4285 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4286 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4287 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4288 | PACKAGE=e2fsprogs |
| 4289 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4290 | VERSION=0.14.1 |
| 4291 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4292 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4293 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4294 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4295 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4296 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4297 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4298 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4299 | |
| 4300 | |
| 4301 | |
| 4302 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4303 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4304 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4305 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4306 | 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] | 4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4308 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4309 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4310 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4311 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4312 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4313 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4314 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4315 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4316 | *@@@%%%=?*=@@@%%%*) |
| 4317 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4318 | *) |
| 4319 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4320 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4321 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4322 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4323 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4324 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4325 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4326 | SET_MAKE= |
| 4327 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4329 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4330 | SET_MAKE="MAKE=${MAKE-make}" |
| 4331 | fi |
| 4332 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4333 | # Find a good install program. We prefer a C program (faster), |
| 4334 | # so one script is as good as another. But avoid the broken or |
| 4335 | # incompatible versions: |
| 4336 | # SysV /etc/install, /usr/sbin/install |
| 4337 | # SunOS /usr/etc/install |
| 4338 | # IRIX /sbin/install |
| 4339 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4341 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4342 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4343 | # 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] | 4344 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4345 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4346 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4347 | 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] | 4348 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4349 | if test "${ac_cv_path_install+set}" = set; then |
| 4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4351 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4353 | for as_dir in $PATH |
| 4354 | do |
| 4355 | IFS=$as_save_IFS |
| 4356 | test -z "$as_dir" && as_dir=. |
| 4357 | # Account for people who put trailing slashes in PATH elements. |
| 4358 | case $as_dir/ in |
| 4359 | ./ | .// | /cC/* | \ |
| 4360 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4361 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4362 | /usr/ucb/* ) ;; |
| 4363 | *) |
| 4364 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4365 | # Don't use installbsd from OSF since it installs stuff as root |
| 4366 | # by default. |
| 4367 | for ac_prog in ginstall scoinst install; do |
| 4368 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4369 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4370 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4371 | 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] | 4372 | # AIX install. It has an incompatible calling convention. |
| 4373 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4374 | elif test $ac_prog = install && |
| 4375 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4376 | # program-specific install script used by HP pwplus--don't use. |
| 4377 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4378 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4379 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4380 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4381 | fi |
| 4382 | fi |
| 4383 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4384 | done |
| 4385 | ;; |
| 4386 | esac |
| 4387 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4388 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4389 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4390 | |
| 4391 | fi |
| 4392 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4393 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4394 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4395 | # As a last resort, use the slow shell script. Don't cache a |
| 4396 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4397 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4399 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4400 | fi |
| 4401 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4402 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4403 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4404 | |
| 4405 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4406 | # It thinks the first close brace ends the variable substitution. |
| 4407 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4408 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4409 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4410 | |
| 4411 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4412 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4413 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4414 | MKINSTALLDIRS= |
| 4415 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4416 | case "$ac_aux_dir" in |
| 4417 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4418 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4419 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4420 | fi |
| 4421 | if test -z "$MKINSTALLDIRS"; then |
| 4422 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4423 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4424 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4425 | |
| 4426 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4427 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4428 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4429 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4430 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4431 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4432 | else |
| 4433 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4434 | fi |
| 4435 | |
| 4436 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4437 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4438 | |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | |
| 4443 | |
| 4444 | # Prepare PATH_SEPARATOR. |
| 4445 | # The user is always right. |
| 4446 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4447 | echo "#! /bin/sh" >conf$$.sh |
| 4448 | echo "exit 0" >>conf$$.sh |
| 4449 | chmod +x conf$$.sh |
| 4450 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4451 | PATH_SEPARATOR=';' |
| 4452 | else |
| 4453 | PATH_SEPARATOR=: |
| 4454 | fi |
| 4455 | rm -f conf$$.sh |
| 4456 | fi |
| 4457 | |
| 4458 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4459 | # as systems may use methods other than mode bits to determine executability. |
| 4460 | cat >conf$$.file <<_ASEOF |
| 4461 | #! /bin/sh |
| 4462 | exit 0 |
| 4463 | _ASEOF |
| 4464 | chmod +x conf$$.file |
| 4465 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4466 | ac_executable_p="test -x" |
| 4467 | else |
| 4468 | ac_executable_p="test -f" |
| 4469 | fi |
| 4470 | rm -f conf$$.file |
| 4471 | |
| 4472 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4473 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4474 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4476 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4478 | else |
| 4479 | case "$MSGFMT" in |
| 4480 | [\\/]* | ?:[\\/]*) |
| 4481 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4482 | ;; |
| 4483 | *) |
| 4484 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4485 | for ac_dir in $PATH; do |
| 4486 | IFS="$ac_save_IFS" |
| 4487 | test -z "$ac_dir" && ac_dir=. |
| 4488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4489 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4490 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4491 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4492 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4493 | break 2 |
| 4494 | fi |
| 4495 | fi |
| 4496 | done |
| 4497 | done |
| 4498 | IFS="$ac_save_IFS" |
| 4499 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4500 | ;; |
| 4501 | esac |
| 4502 | fi |
| 4503 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4504 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4505 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4506 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4507 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4509 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4510 | fi |
| 4511 | |
| 4512 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4513 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4516 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4518 | else |
| 4519 | case $GMSGFMT in |
| 4520 | [\\/]* | ?:[\\/]*) |
| 4521 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4522 | ;; |
| 4523 | *) |
| 4524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4525 | for as_dir in $PATH |
| 4526 | do |
| 4527 | IFS=$as_save_IFS |
| 4528 | test -z "$as_dir" && as_dir=. |
| 4529 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4531 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4533 | break 2 |
| 4534 | fi |
| 4535 | done |
| 4536 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4537 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4538 | |
| 4539 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4540 | ;; |
| 4541 | esac |
| 4542 | fi |
| 4543 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4544 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4545 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4546 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4547 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4549 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4550 | fi |
| 4551 | |
| 4552 | |
| 4553 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4554 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | # Prepare PATH_SEPARATOR. |
| 4556 | # The user is always right. |
| 4557 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4558 | echo "#! /bin/sh" >conf$$.sh |
| 4559 | echo "exit 0" >>conf$$.sh |
| 4560 | chmod +x conf$$.sh |
| 4561 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4562 | PATH_SEPARATOR=';' |
| 4563 | else |
| 4564 | PATH_SEPARATOR=: |
| 4565 | fi |
| 4566 | rm -f conf$$.sh |
| 4567 | fi |
| 4568 | |
| 4569 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4570 | # as systems may use methods other than mode bits to determine executability. |
| 4571 | cat >conf$$.file <<_ASEOF |
| 4572 | #! /bin/sh |
| 4573 | exit 0 |
| 4574 | _ASEOF |
| 4575 | chmod +x conf$$.file |
| 4576 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4577 | ac_executable_p="test -x" |
| 4578 | else |
| 4579 | ac_executable_p="test -f" |
| 4580 | fi |
| 4581 | rm -f conf$$.file |
| 4582 | |
| 4583 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4584 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4585 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4587 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4589 | else |
| 4590 | case "$XGETTEXT" in |
| 4591 | [\\/]* | ?:[\\/]*) |
| 4592 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4593 | ;; |
| 4594 | *) |
| 4595 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4596 | for ac_dir in $PATH; do |
| 4597 | IFS="$ac_save_IFS" |
| 4598 | test -z "$ac_dir" && ac_dir=. |
| 4599 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4600 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4601 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4602 | (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 |
| 4603 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4604 | break 2 |
| 4605 | fi |
| 4606 | fi |
| 4607 | done |
| 4608 | done |
| 4609 | IFS="$ac_save_IFS" |
| 4610 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4611 | ;; |
| 4612 | esac |
| 4613 | fi |
| 4614 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4615 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4616 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4617 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4618 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4620 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4621 | fi |
| 4622 | |
| 4623 | rm -f messages.po |
| 4624 | |
| 4625 | |
| 4626 | # Prepare PATH_SEPARATOR. |
| 4627 | # The user is always right. |
| 4628 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4629 | echo "#! /bin/sh" >conf$$.sh |
| 4630 | echo "exit 0" >>conf$$.sh |
| 4631 | chmod +x conf$$.sh |
| 4632 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4633 | PATH_SEPARATOR=';' |
| 4634 | else |
| 4635 | PATH_SEPARATOR=: |
| 4636 | fi |
| 4637 | rm -f conf$$.sh |
| 4638 | fi |
| 4639 | |
| 4640 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4641 | # as systems may use methods other than mode bits to determine executability. |
| 4642 | cat >conf$$.file <<_ASEOF |
| 4643 | #! /bin/sh |
| 4644 | exit 0 |
| 4645 | _ASEOF |
| 4646 | chmod +x conf$$.file |
| 4647 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4648 | ac_executable_p="test -x" |
| 4649 | else |
| 4650 | ac_executable_p="test -f" |
| 4651 | fi |
| 4652 | rm -f conf$$.file |
| 4653 | |
| 4654 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4655 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4658 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4660 | else |
| 4661 | case "$MSGMERGE" in |
| 4662 | [\\/]* | ?:[\\/]*) |
| 4663 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4664 | ;; |
| 4665 | *) |
| 4666 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4667 | for ac_dir in $PATH; do |
| 4668 | IFS="$ac_save_IFS" |
| 4669 | test -z "$ac_dir" && ac_dir=. |
| 4670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4671 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4672 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4673 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4674 | break 2 |
| 4675 | fi |
| 4676 | fi |
| 4677 | done |
| 4678 | done |
| 4679 | IFS="$ac_save_IFS" |
| 4680 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4681 | ;; |
| 4682 | esac |
| 4683 | fi |
| 4684 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4685 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4686 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4687 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4688 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4689 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4690 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4691 | fi |
| 4692 | |
| 4693 | |
| 4694 | if test "$GMSGFMT" != ":"; then |
| 4695 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4696 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4697 | : ; |
| 4698 | else |
| 4699 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4700 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4701 | 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] | 4702 | GMSGFMT=":" |
| 4703 | fi |
| 4704 | fi |
| 4705 | |
| 4706 | if test "$XGETTEXT" != ":"; then |
| 4707 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4708 | (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 |
| 4709 | : ; |
| 4710 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4711 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4712 | 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] | 4713 | XGETTEXT=":" |
| 4714 | fi |
| 4715 | rm -f messages.po |
| 4716 | fi |
| 4717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4718 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4719 | |
| 4720 | |
| 4721 | if test -n "$ac_tool_prefix"; then |
| 4722 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4723 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4726 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4728 | else |
| 4729 | if test -n "$RANLIB"; then |
| 4730 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4731 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4733 | for as_dir in $PATH |
| 4734 | do |
| 4735 | IFS=$as_save_IFS |
| 4736 | test -z "$as_dir" && as_dir=. |
| 4737 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4739 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4741 | break 2 |
| 4742 | fi |
| 4743 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4744 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4745 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4746 | |
| 4747 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4748 | fi |
| 4749 | RANLIB=$ac_cv_prog_RANLIB |
| 4750 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4751 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4752 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4753 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4754 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4755 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4756 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4757 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4758 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4759 | fi |
| 4760 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4761 | ac_ct_RANLIB=$RANLIB |
| 4762 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4763 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4764 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4766 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4768 | else |
| 4769 | if test -n "$ac_ct_RANLIB"; then |
| 4770 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4771 | else |
| 4772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4773 | for as_dir in $PATH |
| 4774 | do |
| 4775 | IFS=$as_save_IFS |
| 4776 | test -z "$as_dir" && as_dir=. |
| 4777 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4779 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4781 | break 2 |
| 4782 | fi |
| 4783 | done |
| 4784 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4785 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4787 | fi |
| 4788 | fi |
| 4789 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4790 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4791 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4792 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4793 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4794 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4795 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4796 | fi |
| 4797 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4798 | if test "x$ac_ct_RANLIB" = x; then |
| 4799 | RANLIB=":" |
| 4800 | else |
| 4801 | case $cross_compiling:$ac_tool_warned in |
| 4802 | yes:) |
| 4803 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4804 | whose name does not start with the host triplet. If you think this |
| 4805 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4806 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4807 | whose name does not start with the host triplet. If you think this |
| 4808 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4809 | ac_tool_warned=yes ;; |
| 4810 | esac |
| 4811 | RANLIB=$ac_ct_RANLIB |
| 4812 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4813 | else |
| 4814 | RANLIB="$ac_cv_prog_RANLIB" |
| 4815 | fi |
| 4816 | |
| 4817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4818 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4819 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4820 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4822 | else |
| 4823 | ac_check_lib_save_LIBS=$LIBS |
| 4824 | LIBS="-lcposix $LIBS" |
| 4825 | cat >conftest.$ac_ext <<_ACEOF |
| 4826 | /* confdefs.h. */ |
| 4827 | _ACEOF |
| 4828 | cat confdefs.h >>conftest.$ac_ext |
| 4829 | cat >>conftest.$ac_ext <<_ACEOF |
| 4830 | /* end confdefs.h. */ |
| 4831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4832 | /* Override any GCC internal prototype to avoid an error. |
| 4833 | Use char because int might match the return type of a GCC |
| 4834 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4835 | #ifdef __cplusplus |
| 4836 | extern "C" |
| 4837 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4838 | char strerror (); |
| 4839 | int |
| 4840 | main () |
| 4841 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4842 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4843 | ; |
| 4844 | return 0; |
| 4845 | } |
| 4846 | _ACEOF |
| 4847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4848 | if { (ac_try="$ac_link" |
| 4849 | case "(($ac_try" in |
| 4850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4851 | *) ac_try_echo=$ac_try;; |
| 4852 | esac |
| 4853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4854 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4855 | ac_status=$? |
| 4856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4857 | rm -f conftest.er1 |
| 4858 | cat conftest.err >&5 |
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4860 | (exit $ac_status); } && { |
| 4861 | test -z "$ac_c_werror_flag" || |
| 4862 | test ! -s conftest.err |
| 4863 | } && test -s conftest$ac_exeext && |
| 4864 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4865 | ac_cv_lib_cposix_strerror=yes |
| 4866 | else |
| 4867 | echo "$as_me: failed program was:" >&5 |
| 4868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4870 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4871 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4872 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4873 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4874 | conftest$ac_exeext conftest.$ac_ext |
| 4875 | LIBS=$ac_check_lib_save_LIBS |
| 4876 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4877 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4878 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4879 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4880 | LIBS="$LIBS -lcposix" |
| 4881 | fi |
| 4882 | |
| 4883 | |
| 4884 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4885 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4886 | 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] | 4887 | if test "${ac_cv_c_const+set}" = set; then |
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4889 | else |
| 4890 | cat >conftest.$ac_ext <<_ACEOF |
| 4891 | /* confdefs.h. */ |
| 4892 | _ACEOF |
| 4893 | cat confdefs.h >>conftest.$ac_ext |
| 4894 | cat >>conftest.$ac_ext <<_ACEOF |
| 4895 | /* end confdefs.h. */ |
| 4896 | |
| 4897 | int |
| 4898 | main () |
| 4899 | { |
| 4900 | /* FIXME: Include the comments suggested by Paul. */ |
| 4901 | #ifndef __cplusplus |
| 4902 | /* Ultrix mips cc rejects this. */ |
| 4903 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4904 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4905 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4906 | char const *const *pcpcc; |
| 4907 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4908 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4909 | struct point {int x, y;}; |
| 4910 | static struct point const zero = {0,0}; |
| 4911 | /* AIX XL C 1.02.0.0 rejects this. |
| 4912 | It does not let you subtract one const X* pointer from another in |
| 4913 | an arm of an if-expression whose if-part is not a constant |
| 4914 | expression */ |
| 4915 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4916 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4917 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4918 | ++pcpcc; |
| 4919 | ppc = (char**) pcpcc; |
| 4920 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4921 | { /* SCO 3.2v4 cc rejects this. */ |
| 4922 | char *t; |
| 4923 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4924 | |
| 4925 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4926 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4927 | } |
| 4928 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4929 | int x[] = {25, 17}; |
| 4930 | const int *foo = &x[0]; |
| 4931 | ++foo; |
| 4932 | } |
| 4933 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4934 | typedef const int *iptr; |
| 4935 | iptr p = 0; |
| 4936 | ++p; |
| 4937 | } |
| 4938 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4939 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4940 | struct s { int j; const int *ap[3]; }; |
| 4941 | struct s *b; b->j = 5; |
| 4942 | } |
| 4943 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4944 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4945 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4946 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4947 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4948 | #endif |
| 4949 | |
| 4950 | ; |
| 4951 | return 0; |
| 4952 | } |
| 4953 | _ACEOF |
| 4954 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4955 | if { (ac_try="$ac_compile" |
| 4956 | case "(($ac_try" in |
| 4957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4958 | *) ac_try_echo=$ac_try;; |
| 4959 | esac |
| 4960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4961 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4962 | ac_status=$? |
| 4963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4964 | rm -f conftest.er1 |
| 4965 | cat conftest.err >&5 |
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4967 | (exit $ac_status); } && { |
| 4968 | test -z "$ac_c_werror_flag" || |
| 4969 | test ! -s conftest.err |
| 4970 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4971 | ac_cv_c_const=yes |
| 4972 | else |
| 4973 | echo "$as_me: failed program was:" >&5 |
| 4974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4976 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4978 | |
| 4979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4980 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4981 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4982 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4983 | if test $ac_cv_c_const = no; then |
| 4984 | |
| 4985 | cat >>confdefs.h <<\_ACEOF |
| 4986 | #define const |
| 4987 | _ACEOF |
| 4988 | |
| 4989 | fi |
| 4990 | |
| 4991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4992 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 4993 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4994 | if test "${bh_cv_c_signed+set}" = set; then |
| 4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4996 | else |
| 4997 | cat >conftest.$ac_ext <<_ACEOF |
| 4998 | /* confdefs.h. */ |
| 4999 | _ACEOF |
| 5000 | cat confdefs.h >>conftest.$ac_ext |
| 5001 | cat >>conftest.$ac_ext <<_ACEOF |
| 5002 | /* end confdefs.h. */ |
| 5003 | |
| 5004 | int |
| 5005 | main () |
| 5006 | { |
| 5007 | signed char x; |
| 5008 | ; |
| 5009 | return 0; |
| 5010 | } |
| 5011 | _ACEOF |
| 5012 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5013 | if { (ac_try="$ac_compile" |
| 5014 | case "(($ac_try" in |
| 5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5016 | *) ac_try_echo=$ac_try;; |
| 5017 | esac |
| 5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5019 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5020 | ac_status=$? |
| 5021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5022 | rm -f conftest.er1 |
| 5023 | cat conftest.err >&5 |
| 5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5025 | (exit $ac_status); } && { |
| 5026 | test -z "$ac_c_werror_flag" || |
| 5027 | test ! -s conftest.err |
| 5028 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5029 | bh_cv_c_signed=yes |
| 5030 | else |
| 5031 | echo "$as_me: failed program was:" >&5 |
| 5032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5034 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5035 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5036 | |
| 5037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5038 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5039 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5040 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5041 | if test $bh_cv_c_signed = no; then |
| 5042 | |
| 5043 | cat >>confdefs.h <<\_ACEOF |
| 5044 | #define signed |
| 5045 | _ACEOF |
| 5046 | |
| 5047 | fi |
| 5048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5049 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5050 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5051 | if test "${ac_cv_c_inline+set}" = set; then |
| 5052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5053 | else |
| 5054 | ac_cv_c_inline=no |
| 5055 | for ac_kw in inline __inline__ __inline; do |
| 5056 | cat >conftest.$ac_ext <<_ACEOF |
| 5057 | /* confdefs.h. */ |
| 5058 | _ACEOF |
| 5059 | cat confdefs.h >>conftest.$ac_ext |
| 5060 | cat >>conftest.$ac_ext <<_ACEOF |
| 5061 | /* end confdefs.h. */ |
| 5062 | #ifndef __cplusplus |
| 5063 | typedef int foo_t; |
| 5064 | static $ac_kw foo_t static_foo () {return 0; } |
| 5065 | $ac_kw foo_t foo () {return 0; } |
| 5066 | #endif |
| 5067 | |
| 5068 | _ACEOF |
| 5069 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5070 | if { (ac_try="$ac_compile" |
| 5071 | case "(($ac_try" in |
| 5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5073 | *) ac_try_echo=$ac_try;; |
| 5074 | esac |
| 5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5076 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5077 | ac_status=$? |
| 5078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5079 | rm -f conftest.er1 |
| 5080 | cat conftest.err >&5 |
| 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5082 | (exit $ac_status); } && { |
| 5083 | test -z "$ac_c_werror_flag" || |
| 5084 | test ! -s conftest.err |
| 5085 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5086 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5087 | else |
| 5088 | echo "$as_me: failed program was:" >&5 |
| 5089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5091 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5092 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5093 | |
| 5094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5095 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5096 | done |
| 5097 | |
| 5098 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5099 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5100 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5101 | |
| 5102 | |
| 5103 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5104 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5105 | *) |
| 5106 | case $ac_cv_c_inline in |
| 5107 | no) ac_val=;; |
| 5108 | *) ac_val=$ac_cv_c_inline;; |
| 5109 | esac |
| 5110 | cat >>confdefs.h <<_ACEOF |
| 5111 | #ifndef __cplusplus |
| 5112 | #define inline $ac_val |
| 5113 | #endif |
| 5114 | _ACEOF |
| 5115 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5116 | esac |
| 5117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5118 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5119 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5120 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5122 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5130 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5131 | int |
| 5132 | main () |
| 5133 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5134 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5135 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5136 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5137 | return 0; |
| 5138 | ; |
| 5139 | return 0; |
| 5140 | } |
| 5141 | _ACEOF |
| 5142 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5143 | if { (ac_try="$ac_compile" |
| 5144 | case "(($ac_try" in |
| 5145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5146 | *) ac_try_echo=$ac_try;; |
| 5147 | esac |
| 5148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5149 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5150 | ac_status=$? |
| 5151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5152 | rm -f conftest.er1 |
| 5153 | cat conftest.err >&5 |
| 5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5155 | (exit $ac_status); } && { |
| 5156 | test -z "$ac_c_werror_flag" || |
| 5157 | test ! -s conftest.err |
| 5158 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5159 | ac_cv_type_off_t=yes |
| 5160 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5161 | echo "$as_me: failed program was:" >&5 |
| 5162 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5164 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5165 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5166 | |
| 5167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5168 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5169 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5170 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5171 | if test $ac_cv_type_off_t = yes; then |
| 5172 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5173 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5174 | |
| 5175 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5176 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5177 | _ACEOF |
| 5178 | |
| 5179 | fi |
| 5180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5181 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5182 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5183 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5185 | else |
| 5186 | cat >conftest.$ac_ext <<_ACEOF |
| 5187 | /* confdefs.h. */ |
| 5188 | _ACEOF |
| 5189 | cat confdefs.h >>conftest.$ac_ext |
| 5190 | cat >>conftest.$ac_ext <<_ACEOF |
| 5191 | /* end confdefs.h. */ |
| 5192 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5193 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5194 | int |
| 5195 | main () |
| 5196 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5197 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5198 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5199 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5200 | return 0; |
| 5201 | ; |
| 5202 | return 0; |
| 5203 | } |
| 5204 | _ACEOF |
| 5205 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5206 | if { (ac_try="$ac_compile" |
| 5207 | case "(($ac_try" in |
| 5208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5209 | *) ac_try_echo=$ac_try;; |
| 5210 | esac |
| 5211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5212 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5213 | ac_status=$? |
| 5214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5215 | rm -f conftest.er1 |
| 5216 | cat conftest.err >&5 |
| 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5218 | (exit $ac_status); } && { |
| 5219 | test -z "$ac_c_werror_flag" || |
| 5220 | test ! -s conftest.err |
| 5221 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5222 | ac_cv_type_size_t=yes |
| 5223 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5224 | echo "$as_me: failed program was:" >&5 |
| 5225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5227 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5229 | |
| 5230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5231 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5232 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5233 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5234 | if test $ac_cv_type_size_t = yes; then |
| 5235 | : |
| 5236 | else |
| 5237 | |
| 5238 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5239 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5240 | _ACEOF |
| 5241 | |
| 5242 | fi |
| 5243 | |
| 5244 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5245 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5246 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5247 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5249 | else |
| 5250 | cat >conftest.$ac_ext <<_ACEOF |
| 5251 | /* confdefs.h. */ |
| 5252 | _ACEOF |
| 5253 | cat confdefs.h >>conftest.$ac_ext |
| 5254 | cat >>conftest.$ac_ext <<_ACEOF |
| 5255 | /* end confdefs.h. */ |
| 5256 | long long ll = 1LL; int i = 63; |
| 5257 | int |
| 5258 | main () |
| 5259 | { |
| 5260 | long long llmax = (long long) -1; |
| 5261 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5262 | ; |
| 5263 | return 0; |
| 5264 | } |
| 5265 | _ACEOF |
| 5266 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5267 | if { (ac_try="$ac_link" |
| 5268 | case "(($ac_try" in |
| 5269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5270 | *) ac_try_echo=$ac_try;; |
| 5271 | esac |
| 5272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5273 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5274 | ac_status=$? |
| 5275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5276 | rm -f conftest.er1 |
| 5277 | cat conftest.err >&5 |
| 5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5279 | (exit $ac_status); } && { |
| 5280 | test -z "$ac_c_werror_flag" || |
| 5281 | test ! -s conftest.err |
| 5282 | } && test -s conftest$ac_exeext && |
| 5283 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5284 | ac_cv_type_long_long=yes |
| 5285 | else |
| 5286 | echo "$as_me: failed program was:" >&5 |
| 5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5289 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5291 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5293 | conftest$ac_exeext conftest.$ac_ext |
| 5294 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5295 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5296 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5297 | if test $ac_cv_type_long_long = yes; then |
| 5298 | |
| 5299 | cat >>confdefs.h <<\_ACEOF |
| 5300 | #define HAVE_LONG_LONG 1 |
| 5301 | _ACEOF |
| 5302 | |
| 5303 | fi |
| 5304 | |
| 5305 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5306 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5307 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5308 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5310 | else |
| 5311 | if test "$GCC" = yes; then |
| 5312 | gt_cv_c_long_double=yes |
| 5313 | else |
| 5314 | cat >conftest.$ac_ext <<_ACEOF |
| 5315 | /* confdefs.h. */ |
| 5316 | _ACEOF |
| 5317 | cat confdefs.h >>conftest.$ac_ext |
| 5318 | cat >>conftest.$ac_ext <<_ACEOF |
| 5319 | /* end confdefs.h. */ |
| 5320 | |
| 5321 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5322 | long double foo = 0.0; |
| 5323 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5324 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5325 | |
| 5326 | int |
| 5327 | main () |
| 5328 | { |
| 5329 | |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5335 | if { (ac_try="$ac_compile" |
| 5336 | case "(($ac_try" in |
| 5337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5338 | *) ac_try_echo=$ac_try;; |
| 5339 | esac |
| 5340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5341 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5342 | ac_status=$? |
| 5343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5344 | rm -f conftest.er1 |
| 5345 | cat conftest.err >&5 |
| 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5347 | (exit $ac_status); } && { |
| 5348 | test -z "$ac_c_werror_flag" || |
| 5349 | test ! -s conftest.err |
| 5350 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5351 | gt_cv_c_long_double=yes |
| 5352 | else |
| 5353 | echo "$as_me: failed program was:" >&5 |
| 5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5356 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5357 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5358 | |
| 5359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5360 | fi |
| 5361 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5362 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5363 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5364 | if test $gt_cv_c_long_double = yes; then |
| 5365 | |
| 5366 | cat >>confdefs.h <<\_ACEOF |
| 5367 | #define HAVE_LONG_DOUBLE 1 |
| 5368 | _ACEOF |
| 5369 | |
| 5370 | fi |
| 5371 | |
| 5372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5373 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5374 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5375 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5377 | else |
| 5378 | cat >conftest.$ac_ext <<_ACEOF |
| 5379 | /* confdefs.h. */ |
| 5380 | _ACEOF |
| 5381 | cat confdefs.h >>conftest.$ac_ext |
| 5382 | cat >>conftest.$ac_ext <<_ACEOF |
| 5383 | /* end confdefs.h. */ |
| 5384 | #include <stddef.h> |
| 5385 | wchar_t foo = (wchar_t)'\0'; |
| 5386 | int |
| 5387 | main () |
| 5388 | { |
| 5389 | |
| 5390 | ; |
| 5391 | return 0; |
| 5392 | } |
| 5393 | _ACEOF |
| 5394 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5395 | if { (ac_try="$ac_compile" |
| 5396 | case "(($ac_try" in |
| 5397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5398 | *) ac_try_echo=$ac_try;; |
| 5399 | esac |
| 5400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5401 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5402 | ac_status=$? |
| 5403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5404 | rm -f conftest.er1 |
| 5405 | cat conftest.err >&5 |
| 5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5407 | (exit $ac_status); } && { |
| 5408 | test -z "$ac_c_werror_flag" || |
| 5409 | test ! -s conftest.err |
| 5410 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5411 | gt_cv_c_wchar_t=yes |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5416 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5418 | |
| 5419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5420 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5421 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5422 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5423 | if test $gt_cv_c_wchar_t = yes; then |
| 5424 | |
| 5425 | cat >>confdefs.h <<\_ACEOF |
| 5426 | #define HAVE_WCHAR_T 1 |
| 5427 | _ACEOF |
| 5428 | |
| 5429 | fi |
| 5430 | |
| 5431 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5432 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5433 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5434 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5436 | else |
| 5437 | cat >conftest.$ac_ext <<_ACEOF |
| 5438 | /* confdefs.h. */ |
| 5439 | _ACEOF |
| 5440 | cat confdefs.h >>conftest.$ac_ext |
| 5441 | cat >>conftest.$ac_ext <<_ACEOF |
| 5442 | /* end confdefs.h. */ |
| 5443 | #include <wchar.h> |
| 5444 | wint_t foo = (wchar_t)'\0'; |
| 5445 | int |
| 5446 | main () |
| 5447 | { |
| 5448 | |
| 5449 | ; |
| 5450 | return 0; |
| 5451 | } |
| 5452 | _ACEOF |
| 5453 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5454 | if { (ac_try="$ac_compile" |
| 5455 | case "(($ac_try" in |
| 5456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5457 | *) ac_try_echo=$ac_try;; |
| 5458 | esac |
| 5459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5460 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5461 | ac_status=$? |
| 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5463 | rm -f conftest.er1 |
| 5464 | cat conftest.err >&5 |
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5466 | (exit $ac_status); } && { |
| 5467 | test -z "$ac_c_werror_flag" || |
| 5468 | test ! -s conftest.err |
| 5469 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5470 | gt_cv_c_wint_t=yes |
| 5471 | else |
| 5472 | echo "$as_me: failed program was:" >&5 |
| 5473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5475 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5477 | |
| 5478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5479 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5480 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5481 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5482 | if test $gt_cv_c_wint_t = yes; then |
| 5483 | |
| 5484 | cat >>confdefs.h <<\_ACEOF |
| 5485 | #define HAVE_WINT_T 1 |
| 5486 | _ACEOF |
| 5487 | |
| 5488 | fi |
| 5489 | |
| 5490 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5491 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5492 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5493 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5495 | else |
| 5496 | cat >conftest.$ac_ext <<_ACEOF |
| 5497 | /* confdefs.h. */ |
| 5498 | _ACEOF |
| 5499 | cat confdefs.h >>conftest.$ac_ext |
| 5500 | cat >>conftest.$ac_ext <<_ACEOF |
| 5501 | /* end confdefs.h. */ |
| 5502 | #include <sys/types.h> |
| 5503 | #include <inttypes.h> |
| 5504 | int |
| 5505 | main () |
| 5506 | { |
| 5507 | uintmax_t i = (uintmax_t) -1; |
| 5508 | ; |
| 5509 | return 0; |
| 5510 | } |
| 5511 | _ACEOF |
| 5512 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5513 | if { (ac_try="$ac_compile" |
| 5514 | case "(($ac_try" in |
| 5515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5516 | *) ac_try_echo=$ac_try;; |
| 5517 | esac |
| 5518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5519 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5520 | ac_status=$? |
| 5521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5522 | rm -f conftest.er1 |
| 5523 | cat conftest.err >&5 |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5525 | (exit $ac_status); } && { |
| 5526 | test -z "$ac_c_werror_flag" || |
| 5527 | test ! -s conftest.err |
| 5528 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5529 | jm_ac_cv_header_inttypes_h=yes |
| 5530 | else |
| 5531 | echo "$as_me: failed program was:" >&5 |
| 5532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5534 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5536 | |
| 5537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5538 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5539 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5540 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5541 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5542 | |
| 5543 | cat >>confdefs.h <<_ACEOF |
| 5544 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5545 | _ACEOF |
| 5546 | |
| 5547 | fi |
| 5548 | |
| 5549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5550 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5551 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5552 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5554 | else |
| 5555 | cat >conftest.$ac_ext <<_ACEOF |
| 5556 | /* confdefs.h. */ |
| 5557 | _ACEOF |
| 5558 | cat confdefs.h >>conftest.$ac_ext |
| 5559 | cat >>conftest.$ac_ext <<_ACEOF |
| 5560 | /* end confdefs.h. */ |
| 5561 | #include <sys/types.h> |
| 5562 | #include <stdint.h> |
| 5563 | int |
| 5564 | main () |
| 5565 | { |
| 5566 | uintmax_t i = (uintmax_t) -1; |
| 5567 | ; |
| 5568 | return 0; |
| 5569 | } |
| 5570 | _ACEOF |
| 5571 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5572 | if { (ac_try="$ac_compile" |
| 5573 | case "(($ac_try" in |
| 5574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5575 | *) ac_try_echo=$ac_try;; |
| 5576 | esac |
| 5577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5578 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5579 | ac_status=$? |
| 5580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5581 | rm -f conftest.er1 |
| 5582 | cat conftest.err >&5 |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5584 | (exit $ac_status); } && { |
| 5585 | test -z "$ac_c_werror_flag" || |
| 5586 | test ! -s conftest.err |
| 5587 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5588 | jm_ac_cv_header_stdint_h=yes |
| 5589 | else |
| 5590 | echo "$as_me: failed program was:" >&5 |
| 5591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5592 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5593 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5594 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5595 | |
| 5596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5597 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5598 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5599 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5600 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5601 | |
| 5602 | cat >>confdefs.h <<_ACEOF |
| 5603 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5604 | _ACEOF |
| 5605 | |
| 5606 | fi |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5611 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5612 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5613 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5615 | else |
| 5616 | cat >conftest.$ac_ext <<_ACEOF |
| 5617 | /* confdefs.h. */ |
| 5618 | _ACEOF |
| 5619 | cat confdefs.h >>conftest.$ac_ext |
| 5620 | cat >>conftest.$ac_ext <<_ACEOF |
| 5621 | /* end confdefs.h. */ |
| 5622 | |
| 5623 | #include <stddef.h> |
| 5624 | #include <stdlib.h> |
| 5625 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5626 | #include <stdint.h> |
| 5627 | #endif |
| 5628 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5629 | #include <inttypes.h> |
| 5630 | #endif |
| 5631 | |
| 5632 | int |
| 5633 | main () |
| 5634 | { |
| 5635 | intmax_t x = -1; |
| 5636 | ; |
| 5637 | return 0; |
| 5638 | } |
| 5639 | _ACEOF |
| 5640 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5641 | if { (ac_try="$ac_compile" |
| 5642 | case "(($ac_try" in |
| 5643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5644 | *) ac_try_echo=$ac_try;; |
| 5645 | esac |
| 5646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5647 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | ac_status=$? |
| 5649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5650 | rm -f conftest.er1 |
| 5651 | cat conftest.err >&5 |
| 5652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5653 | (exit $ac_status); } && { |
| 5654 | test -z "$ac_c_werror_flag" || |
| 5655 | test ! -s conftest.err |
| 5656 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5657 | gt_cv_c_intmax_t=yes |
| 5658 | else |
| 5659 | echo "$as_me: failed program was:" >&5 |
| 5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5662 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5664 | |
| 5665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5667 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5668 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5669 | if test $gt_cv_c_intmax_t = yes; then |
| 5670 | |
| 5671 | cat >>confdefs.h <<\_ACEOF |
| 5672 | #define HAVE_INTMAX_T 1 |
| 5673 | _ACEOF |
| 5674 | |
| 5675 | fi |
| 5676 | |
| 5677 | |
| 5678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5679 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5680 | 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] | 5681 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5683 | else |
| 5684 | |
| 5685 | if test "$cross_compiling" = yes; then |
| 5686 | |
| 5687 | cat >conftest.$ac_ext <<_ACEOF |
| 5688 | /* confdefs.h. */ |
| 5689 | _ACEOF |
| 5690 | cat confdefs.h >>conftest.$ac_ext |
| 5691 | cat >>conftest.$ac_ext <<_ACEOF |
| 5692 | /* end confdefs.h. */ |
| 5693 | |
| 5694 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5695 | notposix |
| 5696 | #endif |
| 5697 | |
| 5698 | _ACEOF |
| 5699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5700 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5701 | gt_cv_func_printf_posix="guessing no" |
| 5702 | else |
| 5703 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5704 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5705 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5706 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5707 | |
| 5708 | else |
| 5709 | cat >conftest.$ac_ext <<_ACEOF |
| 5710 | /* confdefs.h. */ |
| 5711 | _ACEOF |
| 5712 | cat confdefs.h >>conftest.$ac_ext |
| 5713 | cat >>conftest.$ac_ext <<_ACEOF |
| 5714 | /* end confdefs.h. */ |
| 5715 | |
| 5716 | #include <stdio.h> |
| 5717 | #include <string.h> |
| 5718 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5719 | dollar expansion (possibly an autoconf bug). */ |
| 5720 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5721 | static char buf[100]; |
| 5722 | int main () |
| 5723 | { |
| 5724 | sprintf (buf, format, 33, 55); |
| 5725 | return (strcmp (buf, "55 33") != 0); |
| 5726 | } |
| 5727 | _ACEOF |
| 5728 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5729 | if { (ac_try="$ac_link" |
| 5730 | case "(($ac_try" in |
| 5731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5732 | *) ac_try_echo=$ac_try;; |
| 5733 | esac |
| 5734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5735 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5736 | ac_status=$? |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5739 | { (case "(($ac_try" in |
| 5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5741 | *) ac_try_echo=$ac_try;; |
| 5742 | esac |
| 5743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5744 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5745 | ac_status=$? |
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5747 | (exit $ac_status); }; }; then |
| 5748 | gt_cv_func_printf_posix=yes |
| 5749 | else |
| 5750 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5751 | echo "$as_me: failed program was:" >&5 |
| 5752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5753 | |
| 5754 | ( exit $ac_status ) |
| 5755 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5756 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | 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] | 5758 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5759 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5760 | |
| 5761 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5762 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5763 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5764 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5765 | case $gt_cv_func_printf_posix in |
| 5766 | *yes) |
| 5767 | |
| 5768 | cat >>confdefs.h <<\_ACEOF |
| 5769 | #define HAVE_POSIX_PRINTF 1 |
| 5770 | _ACEOF |
| 5771 | |
| 5772 | ;; |
| 5773 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5774 | |
| 5775 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5776 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5777 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5778 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5779 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5781 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5782 | cat >conftest.$ac_ext <<_ACEOF |
| 5783 | /* confdefs.h. */ |
| 5784 | _ACEOF |
| 5785 | cat confdefs.h >>conftest.$ac_ext |
| 5786 | cat >>conftest.$ac_ext <<_ACEOF |
| 5787 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5788 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5789 | int |
| 5790 | main () |
| 5791 | { |
| 5792 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5793 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5794 | ; |
| 5795 | return 0; |
| 5796 | } |
| 5797 | _ACEOF |
| 5798 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5799 | if { (ac_try="$ac_link" |
| 5800 | case "(($ac_try" in |
| 5801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5802 | *) ac_try_echo=$ac_try;; |
| 5803 | esac |
| 5804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5805 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5806 | ac_status=$? |
| 5807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5808 | rm -f conftest.er1 |
| 5809 | cat conftest.err >&5 |
| 5810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5811 | (exit $ac_status); } && { |
| 5812 | test -z "$ac_c_werror_flag" || |
| 5813 | test ! -s conftest.err |
| 5814 | } && test -s conftest$ac_exeext && |
| 5815 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5816 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5817 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5818 | echo "$as_me: failed program was:" >&5 |
| 5819 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5821 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5822 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5823 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5825 | conftest$ac_exeext conftest.$ac_ext |
| 5826 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5827 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5828 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5829 | if test $ac_cv_working_alloca_h = yes; then |
| 5830 | |
| 5831 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5832 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5833 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5834 | |
| 5835 | fi |
| 5836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5837 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5838 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5839 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5841 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5842 | cat >conftest.$ac_ext <<_ACEOF |
| 5843 | /* confdefs.h. */ |
| 5844 | _ACEOF |
| 5845 | cat confdefs.h >>conftest.$ac_ext |
| 5846 | cat >>conftest.$ac_ext <<_ACEOF |
| 5847 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5848 | #ifdef __GNUC__ |
| 5849 | # define alloca __builtin_alloca |
| 5850 | #else |
| 5851 | # ifdef _MSC_VER |
| 5852 | # include <malloc.h> |
| 5853 | # define alloca _alloca |
| 5854 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5855 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5856 | # include <alloca.h> |
| 5857 | # else |
| 5858 | # ifdef _AIX |
| 5859 | #pragma alloca |
| 5860 | # else |
| 5861 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5862 | char *alloca (); |
| 5863 | # endif |
| 5864 | # endif |
| 5865 | # endif |
| 5866 | # endif |
| 5867 | #endif |
| 5868 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5869 | int |
| 5870 | main () |
| 5871 | { |
| 5872 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5873 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5874 | ; |
| 5875 | return 0; |
| 5876 | } |
| 5877 | _ACEOF |
| 5878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5879 | if { (ac_try="$ac_link" |
| 5880 | case "(($ac_try" in |
| 5881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5882 | *) ac_try_echo=$ac_try;; |
| 5883 | esac |
| 5884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5885 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5886 | ac_status=$? |
| 5887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5888 | rm -f conftest.er1 |
| 5889 | cat conftest.err >&5 |
| 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5891 | (exit $ac_status); } && { |
| 5892 | test -z "$ac_c_werror_flag" || |
| 5893 | test ! -s conftest.err |
| 5894 | } && test -s conftest$ac_exeext && |
| 5895 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5896 | ac_cv_func_alloca_works=yes |
| 5897 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5898 | echo "$as_me: failed program was:" >&5 |
| 5899 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5900 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5901 | ac_cv_func_alloca_works=no |
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 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5905 | conftest$ac_exeext conftest.$ac_ext |
| 5906 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5907 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5908 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5909 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5910 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5911 | |
| 5912 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5913 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5914 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5915 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5916 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5917 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5918 | # that cause trouble. Some versions do not even contain alloca or |
| 5919 | # contain a buggy version. If you still want to use their alloca, |
| 5920 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5922 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5923 | |
| 5924 | cat >>confdefs.h <<\_ACEOF |
| 5925 | #define C_ALLOCA 1 |
| 5926 | _ACEOF |
| 5927 | |
| 5928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5929 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5930 | 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] | 5931 | if test "${ac_cv_os_cray+set}" = set; then |
| 5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5933 | else |
| 5934 | cat >conftest.$ac_ext <<_ACEOF |
| 5935 | /* confdefs.h. */ |
| 5936 | _ACEOF |
| 5937 | cat confdefs.h >>conftest.$ac_ext |
| 5938 | cat >>conftest.$ac_ext <<_ACEOF |
| 5939 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5940 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5941 | webecray |
| 5942 | #else |
| 5943 | wenotbecray |
| 5944 | #endif |
| 5945 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5946 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5948 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5949 | ac_cv_os_cray=yes |
| 5950 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5951 | ac_cv_os_cray=no |
| 5952 | fi |
| 5953 | rm -f conftest* |
| 5954 | |
| 5955 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5956 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5958 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5959 | for ac_func in _getb67 GETB67 getb67; do |
| 5960 | 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] | 5961 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 5963 | 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] | 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5965 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5966 | cat >conftest.$ac_ext <<_ACEOF |
| 5967 | /* confdefs.h. */ |
| 5968 | _ACEOF |
| 5969 | cat confdefs.h >>conftest.$ac_ext |
| 5970 | cat >>conftest.$ac_ext <<_ACEOF |
| 5971 | /* end confdefs.h. */ |
| 5972 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5974 | #define $ac_func innocuous_$ac_func |
| 5975 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5976 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5977 | which can conflict with char $ac_func (); below. |
| 5978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5979 | <limits.h> exists even on freestanding compilers. */ |
| 5980 | |
| 5981 | #ifdef __STDC__ |
| 5982 | # include <limits.h> |
| 5983 | #else |
| 5984 | # include <assert.h> |
| 5985 | #endif |
| 5986 | |
| 5987 | #undef $ac_func |
| 5988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5989 | /* Override any GCC internal prototype to avoid an error. |
| 5990 | Use char because int might match the return type of a GCC |
| 5991 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5992 | #ifdef __cplusplus |
| 5993 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5994 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5995 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5996 | /* The GNU C library defines this for functions which it implements |
| 5997 | to always fail with ENOSYS. Some functions are actually named |
| 5998 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5999 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6000 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6001 | #endif |
| 6002 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6003 | int |
| 6004 | main () |
| 6005 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6006 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6007 | ; |
| 6008 | return 0; |
| 6009 | } |
| 6010 | _ACEOF |
| 6011 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6012 | if { (ac_try="$ac_link" |
| 6013 | case "(($ac_try" in |
| 6014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6015 | *) ac_try_echo=$ac_try;; |
| 6016 | esac |
| 6017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6018 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6019 | ac_status=$? |
| 6020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6021 | rm -f conftest.er1 |
| 6022 | cat conftest.err >&5 |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6024 | (exit $ac_status); } && { |
| 6025 | test -z "$ac_c_werror_flag" || |
| 6026 | test ! -s conftest.err |
| 6027 | } && test -s conftest$ac_exeext && |
| 6028 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6030 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6031 | echo "$as_me: failed program was:" >&5 |
| 6032 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6034 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6035 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6036 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6038 | conftest$ac_exeext conftest.$ac_ext |
| 6039 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6040 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6041 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6042 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6044 | |
| 6045 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6046 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6047 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6048 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6050 | fi |
| 6051 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6052 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6053 | fi |
| 6054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6055 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6056 | 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] | 6057 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6059 | else |
| 6060 | if test "$cross_compiling" = yes; then |
| 6061 | ac_cv_c_stack_direction=0 |
| 6062 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6063 | cat >conftest.$ac_ext <<_ACEOF |
| 6064 | /* confdefs.h. */ |
| 6065 | _ACEOF |
| 6066 | cat confdefs.h >>conftest.$ac_ext |
| 6067 | cat >>conftest.$ac_ext <<_ACEOF |
| 6068 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6069 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6070 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6071 | find_stack_direction () |
| 6072 | { |
| 6073 | static char *addr = 0; |
| 6074 | auto char dummy; |
| 6075 | if (addr == 0) |
| 6076 | { |
| 6077 | addr = &dummy; |
| 6078 | return find_stack_direction (); |
| 6079 | } |
| 6080 | else |
| 6081 | return (&dummy > addr) ? 1 : -1; |
| 6082 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6083 | |
| 6084 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6085 | main () |
| 6086 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6087 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6088 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | _ACEOF |
| 6090 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6091 | if { (ac_try="$ac_link" |
| 6092 | case "(($ac_try" in |
| 6093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6094 | *) ac_try_echo=$ac_try;; |
| 6095 | esac |
| 6096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6097 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6101 | { (case "(($ac_try" in |
| 6102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6103 | *) ac_try_echo=$ac_try;; |
| 6104 | esac |
| 6105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6106 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6107 | ac_status=$? |
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6109 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6110 | ac_cv_c_stack_direction=1 |
| 6111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6112 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6113 | echo "$as_me: failed program was:" >&5 |
| 6114 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6115 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6116 | ( exit $ac_status ) |
| 6117 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6118 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6119 | 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] | 6120 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6121 | |
| 6122 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6123 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6124 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6125 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6127 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6128 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6129 | _ACEOF |
| 6130 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6131 | |
| 6132 | fi |
| 6133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6134 | |
| 6135 | |
| 6136 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6137 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6138 | 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] | 6139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6142 | 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] | 6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6144 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6145 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6147 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6148 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6149 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6150 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6151 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6152 | cat >conftest.$ac_ext <<_ACEOF |
| 6153 | /* confdefs.h. */ |
| 6154 | _ACEOF |
| 6155 | cat confdefs.h >>conftest.$ac_ext |
| 6156 | cat >>conftest.$ac_ext <<_ACEOF |
| 6157 | /* end confdefs.h. */ |
| 6158 | $ac_includes_default |
| 6159 | #include <$ac_header> |
| 6160 | _ACEOF |
| 6161 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6162 | if { (ac_try="$ac_compile" |
| 6163 | case "(($ac_try" in |
| 6164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6165 | *) ac_try_echo=$ac_try;; |
| 6166 | esac |
| 6167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6168 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6169 | ac_status=$? |
| 6170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6171 | rm -f conftest.er1 |
| 6172 | cat conftest.err >&5 |
| 6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6174 | (exit $ac_status); } && { |
| 6175 | test -z "$ac_c_werror_flag" || |
| 6176 | test ! -s conftest.err |
| 6177 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6178 | ac_header_compiler=yes |
| 6179 | else |
| 6180 | echo "$as_me: failed program was:" >&5 |
| 6181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6182 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6183 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6184 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6185 | |
| 6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6187 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6188 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6189 | |
| 6190 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6191 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6193 | cat >conftest.$ac_ext <<_ACEOF |
| 6194 | /* confdefs.h. */ |
| 6195 | _ACEOF |
| 6196 | cat confdefs.h >>conftest.$ac_ext |
| 6197 | cat >>conftest.$ac_ext <<_ACEOF |
| 6198 | /* end confdefs.h. */ |
| 6199 | #include <$ac_header> |
| 6200 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6201 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6202 | case "(($ac_try" in |
| 6203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6204 | *) ac_try_echo=$ac_try;; |
| 6205 | esac |
| 6206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6207 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6208 | ac_status=$? |
| 6209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6210 | rm -f conftest.er1 |
| 6211 | cat conftest.err >&5 |
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6213 | (exit $ac_status); } >/dev/null && { |
| 6214 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6215 | test ! -s conftest.err |
| 6216 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6217 | ac_header_preproc=yes |
| 6218 | else |
| 6219 | echo "$as_me: failed program was:" >&5 |
| 6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6221 | |
| 6222 | ac_header_preproc=no |
| 6223 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6225 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6226 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6227 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6228 | |
| 6229 | # So? What about this header? |
| 6230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6231 | yes:no: ) |
| 6232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6236 | ac_header_preproc=yes |
| 6237 | ;; |
| 6238 | no:yes:* ) |
| 6239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6250 | 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] | 6251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6252 | ;; |
| 6253 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6254 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6256 | 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] | 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6258 | else |
| 6259 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6261 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6262 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6263 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6264 | |
| 6265 | fi |
| 6266 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6267 | cat >>confdefs.h <<_ACEOF |
| 6268 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6269 | _ACEOF |
| 6270 | |
| 6271 | fi |
| 6272 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6273 | done |
| 6274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6276 | for ac_func in getpagesize |
| 6277 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6278 | 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] | 6279 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6280 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6281 | 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] | 6282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6283 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6284 | cat >conftest.$ac_ext <<_ACEOF |
| 6285 | /* confdefs.h. */ |
| 6286 | _ACEOF |
| 6287 | cat confdefs.h >>conftest.$ac_ext |
| 6288 | cat >>conftest.$ac_ext <<_ACEOF |
| 6289 | /* end confdefs.h. */ |
| 6290 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6291 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6292 | #define $ac_func innocuous_$ac_func |
| 6293 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6294 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6295 | which can conflict with char $ac_func (); below. |
| 6296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6297 | <limits.h> exists even on freestanding compilers. */ |
| 6298 | |
| 6299 | #ifdef __STDC__ |
| 6300 | # include <limits.h> |
| 6301 | #else |
| 6302 | # include <assert.h> |
| 6303 | #endif |
| 6304 | |
| 6305 | #undef $ac_func |
| 6306 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6307 | /* Override any GCC internal prototype to avoid an error. |
| 6308 | Use char because int might match the return type of a GCC |
| 6309 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6310 | #ifdef __cplusplus |
| 6311 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6312 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6313 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6314 | /* The GNU C library defines this for functions which it implements |
| 6315 | to always fail with ENOSYS. Some functions are actually named |
| 6316 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6317 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6318 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6319 | #endif |
| 6320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6321 | int |
| 6322 | main () |
| 6323 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6324 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6325 | ; |
| 6326 | return 0; |
| 6327 | } |
| 6328 | _ACEOF |
| 6329 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6330 | if { (ac_try="$ac_link" |
| 6331 | case "(($ac_try" in |
| 6332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6333 | *) ac_try_echo=$ac_try;; |
| 6334 | esac |
| 6335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6336 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6337 | ac_status=$? |
| 6338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6339 | rm -f conftest.er1 |
| 6340 | cat conftest.err >&5 |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6342 | (exit $ac_status); } && { |
| 6343 | test -z "$ac_c_werror_flag" || |
| 6344 | test ! -s conftest.err |
| 6345 | } && test -s conftest$ac_exeext && |
| 6346 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6348 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6349 | echo "$as_me: failed program was:" >&5 |
| 6350 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6352 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6353 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6354 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6356 | conftest$ac_exeext conftest.$ac_ext |
| 6357 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6358 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6360 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6362 | cat >>confdefs.h <<_ACEOF |
| 6363 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6364 | _ACEOF |
| 6365 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6366 | fi |
| 6367 | done |
| 6368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6369 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6370 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6371 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6373 | else |
| 6374 | if test "$cross_compiling" = yes; then |
| 6375 | ac_cv_func_mmap_fixed_mapped=no |
| 6376 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6377 | cat >conftest.$ac_ext <<_ACEOF |
| 6378 | /* confdefs.h. */ |
| 6379 | _ACEOF |
| 6380 | cat confdefs.h >>conftest.$ac_ext |
| 6381 | cat >>conftest.$ac_ext <<_ACEOF |
| 6382 | /* end confdefs.h. */ |
| 6383 | $ac_includes_default |
| 6384 | /* malloc might have been renamed as rpl_malloc. */ |
| 6385 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6386 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6387 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6388 | Here is a matrix of mmap possibilities: |
| 6389 | mmap private not fixed |
| 6390 | mmap private fixed at somewhere currently unmapped |
| 6391 | mmap private fixed at somewhere already mapped |
| 6392 | mmap shared not fixed |
| 6393 | mmap shared fixed at somewhere currently unmapped |
| 6394 | mmap shared fixed at somewhere already mapped |
| 6395 | For private mappings, we should verify that changes cannot be read() |
| 6396 | back from the file, nor mmap's back from the file at a different |
| 6397 | address. (There have been systems where private was not correctly |
| 6398 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6399 | 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] | 6400 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6401 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6402 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6403 | |
| 6404 | Grep wants private fixed already mapped. |
| 6405 | The main things grep needs to know about mmap are: |
| 6406 | * does it exist and is it safe to write into the mmap'd area |
| 6407 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6408 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6409 | #include <fcntl.h> |
| 6410 | #include <sys/mman.h> |
| 6411 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6412 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | char *malloc (); |
| 6414 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6415 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6417 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6418 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6419 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6420 | # define HAVE_SYS_PARAM_H 1 |
| 6421 | # endif |
| 6422 | |
| 6423 | # ifdef _SC_PAGESIZE |
| 6424 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6425 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6426 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6427 | # include <sys/param.h> |
| 6428 | # ifdef EXEC_PAGESIZE |
| 6429 | # define getpagesize() EXEC_PAGESIZE |
| 6430 | # else /* no EXEC_PAGESIZE */ |
| 6431 | # ifdef NBPG |
| 6432 | # define getpagesize() NBPG * CLSIZE |
| 6433 | # ifndef CLSIZE |
| 6434 | # define CLSIZE 1 |
| 6435 | # endif /* no CLSIZE */ |
| 6436 | # else /* no NBPG */ |
| 6437 | # ifdef NBPC |
| 6438 | # define getpagesize() NBPC |
| 6439 | # else /* no NBPC */ |
| 6440 | # ifdef PAGESIZE |
| 6441 | # define getpagesize() PAGESIZE |
| 6442 | # endif /* PAGESIZE */ |
| 6443 | # endif /* no NBPC */ |
| 6444 | # endif /* no NBPG */ |
| 6445 | # endif /* no EXEC_PAGESIZE */ |
| 6446 | # else /* no HAVE_SYS_PARAM_H */ |
| 6447 | # define getpagesize() 8192 /* punt totally */ |
| 6448 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6449 | # endif /* no _SC_PAGESIZE */ |
| 6450 | |
| 6451 | #endif /* no HAVE_GETPAGESIZE */ |
| 6452 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6453 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6454 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6455 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6456 | char *data, *data2, *data3; |
| 6457 | int i, pagesize; |
| 6458 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6460 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6462 | /* First, make a file with some known garbage in it. */ |
| 6463 | data = (char *) malloc (pagesize); |
| 6464 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6465 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6466 | for (i = 0; i < pagesize; ++i) |
| 6467 | *(data + i) = rand (); |
| 6468 | umask (0); |
| 6469 | fd = creat ("conftest.mmap", 0600); |
| 6470 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6471 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6472 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6473 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6474 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6475 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6476 | /* Next, try to mmap the file at a fixed address which already has |
| 6477 | something else allocated at it. If we can, also make sure that |
| 6478 | we see the same garbage. */ |
| 6479 | fd = open ("conftest.mmap", O_RDWR); |
| 6480 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6481 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6482 | data2 = (char *) malloc (2 * pagesize); |
| 6483 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6484 | return 1; |
| 6485 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6487 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6488 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6489 | for (i = 0; i < pagesize; ++i) |
| 6490 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6491 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | /* Finally, make sure that changes to the mapped area do not |
| 6494 | percolate back to the file as seen by read(). (This is a bug on |
| 6495 | some variants of i386 svr4.0.) */ |
| 6496 | for (i = 0; i < pagesize; ++i) |
| 6497 | *(data2 + i) = *(data2 + i) + 1; |
| 6498 | data3 = (char *) malloc (pagesize); |
| 6499 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6500 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6502 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6503 | for (i = 0; i < pagesize; ++i) |
| 6504 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6505 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6506 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6507 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6508 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6509 | _ACEOF |
| 6510 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6511 | if { (ac_try="$ac_link" |
| 6512 | case "(($ac_try" in |
| 6513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6514 | *) ac_try_echo=$ac_try;; |
| 6515 | esac |
| 6516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6517 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6518 | ac_status=$? |
| 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6521 | { (case "(($ac_try" in |
| 6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6523 | *) ac_try_echo=$ac_try;; |
| 6524 | esac |
| 6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6526 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | ac_status=$? |
| 6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6529 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6530 | ac_cv_func_mmap_fixed_mapped=yes |
| 6531 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6533 | echo "$as_me: failed program was:" >&5 |
| 6534 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | ( exit $ac_status ) |
| 6537 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6538 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6539 | 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] | 6540 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6541 | |
| 6542 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6544 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6545 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6546 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6547 | |
| 6548 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6549 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6550 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6551 | |
| 6552 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6553 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6554 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6556 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6557 | 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] | 6558 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6560 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | cat >conftest.$ac_ext <<_ACEOF |
| 6562 | /* confdefs.h. */ |
| 6563 | _ACEOF |
| 6564 | cat confdefs.h >>conftest.$ac_ext |
| 6565 | cat >>conftest.$ac_ext <<_ACEOF |
| 6566 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6567 | |
| 6568 | #include <features.h> |
| 6569 | #ifdef __GNU_LIBRARY__ |
| 6570 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6571 | Lucky GNU user |
| 6572 | #endif |
| 6573 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6574 | |
| 6575 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6577 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6578 | ac_cv_gnu_library_2_1=yes |
| 6579 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6580 | ac_cv_gnu_library_2_1=no |
| 6581 | fi |
| 6582 | rm -f conftest* |
| 6583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6584 | |
| 6585 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6587 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6588 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6589 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6590 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6591 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6592 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6593 | |
| 6594 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6595 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6596 | 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] | 6597 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6599 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6601 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6602 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6603 | # Guess based on the CPU. |
| 6604 | case "$host_cpu" in |
| 6605 | alpha* | i3456786 | m68k | s390*) |
| 6606 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6607 | *) |
| 6608 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6609 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6610 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6611 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6612 | cat >conftest.$ac_ext <<_ACEOF |
| 6613 | /* confdefs.h. */ |
| 6614 | _ACEOF |
| 6615 | cat confdefs.h >>conftest.$ac_ext |
| 6616 | cat >>conftest.$ac_ext <<_ACEOF |
| 6617 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6618 | |
| 6619 | #include <stdlib.h> |
| 6620 | #include <signal.h> |
| 6621 | |
| 6622 | static void |
| 6623 | #ifdef __cplusplus |
| 6624 | sigfpe_handler (int sig) |
| 6625 | #else |
| 6626 | sigfpe_handler (sig) int sig; |
| 6627 | #endif |
| 6628 | { |
| 6629 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6630 | exit (sig != SIGFPE); |
| 6631 | } |
| 6632 | |
| 6633 | int x = 1; |
| 6634 | int y = 0; |
| 6635 | int z; |
| 6636 | int nan; |
| 6637 | |
| 6638 | int main () |
| 6639 | { |
| 6640 | signal (SIGFPE, sigfpe_handler); |
| 6641 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6642 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6643 | signal (SIGTRAP, sigfpe_handler); |
| 6644 | #endif |
| 6645 | /* Linux/SPARC yields signal SIGILL. */ |
| 6646 | #if defined (__sparc__) && defined (__linux__) |
| 6647 | signal (SIGILL, sigfpe_handler); |
| 6648 | #endif |
| 6649 | |
| 6650 | z = x / y; |
| 6651 | nan = y / y; |
| 6652 | exit (1); |
| 6653 | } |
| 6654 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6655 | _ACEOF |
| 6656 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6657 | if { (ac_try="$ac_link" |
| 6658 | case "(($ac_try" in |
| 6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6660 | *) ac_try_echo=$ac_try;; |
| 6661 | esac |
| 6662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6663 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6667 | { (case "(($ac_try" in |
| 6668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6669 | *) ac_try_echo=$ac_try;; |
| 6670 | esac |
| 6671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6672 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6676 | gt_cv_int_divbyzero_sigfpe=yes |
| 6677 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6678 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6679 | echo "$as_me: failed program was:" >&5 |
| 6680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6681 | |
| 6682 | ( exit $ac_status ) |
| 6683 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6684 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6685 | 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] | 6686 | fi |
| 6687 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6688 | |
| 6689 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6690 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6691 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6692 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6693 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6694 | *yes) value=1;; |
| 6695 | *) value=0;; |
| 6696 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | |
| 6698 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6699 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6700 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6701 | |
| 6702 | |
| 6703 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6704 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6705 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6706 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6708 | else |
| 6709 | cat >conftest.$ac_ext <<_ACEOF |
| 6710 | /* confdefs.h. */ |
| 6711 | _ACEOF |
| 6712 | cat confdefs.h >>conftest.$ac_ext |
| 6713 | cat >>conftest.$ac_ext <<_ACEOF |
| 6714 | /* end confdefs.h. */ |
| 6715 | unsigned long long ull = 1ULL; int i = 63; |
| 6716 | int |
| 6717 | main () |
| 6718 | { |
| 6719 | unsigned long long ullmax = (unsigned long long) -1; |
| 6720 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6721 | ; |
| 6722 | return 0; |
| 6723 | } |
| 6724 | _ACEOF |
| 6725 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6726 | if { (ac_try="$ac_link" |
| 6727 | case "(($ac_try" in |
| 6728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6729 | *) ac_try_echo=$ac_try;; |
| 6730 | esac |
| 6731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6732 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6733 | ac_status=$? |
| 6734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6735 | rm -f conftest.er1 |
| 6736 | cat conftest.err >&5 |
| 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6738 | (exit $ac_status); } && { |
| 6739 | test -z "$ac_c_werror_flag" || |
| 6740 | test ! -s conftest.err |
| 6741 | } && test -s conftest$ac_exeext && |
| 6742 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6743 | ac_cv_type_unsigned_long_long=yes |
| 6744 | else |
| 6745 | echo "$as_me: failed program was:" >&5 |
| 6746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6747 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6748 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6750 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6752 | conftest$ac_exeext conftest.$ac_ext |
| 6753 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6754 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6755 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6756 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6757 | |
| 6758 | cat >>confdefs.h <<\_ACEOF |
| 6759 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6760 | _ACEOF |
| 6761 | |
| 6762 | fi |
| 6763 | |
| 6764 | |
| 6765 | |
| 6766 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6767 | 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] | 6768 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6769 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6770 | && ac_type='unsigned long long' \ |
| 6771 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6772 | |
| 6773 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6774 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | _ACEOF |
| 6776 | |
| 6777 | else |
| 6778 | |
| 6779 | cat >>confdefs.h <<\_ACEOF |
| 6780 | #define HAVE_UINTMAX_T 1 |
| 6781 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6782 | |
| 6783 | fi |
| 6784 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6785 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6787 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6788 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6790 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6791 | |
| 6792 | cat >conftest.$ac_ext <<_ACEOF |
| 6793 | /* confdefs.h. */ |
| 6794 | _ACEOF |
| 6795 | cat confdefs.h >>conftest.$ac_ext |
| 6796 | cat >>conftest.$ac_ext <<_ACEOF |
| 6797 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6798 | #include <sys/types.h> |
| 6799 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | int |
| 6801 | main () |
| 6802 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6803 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6804 | ; |
| 6805 | return 0; |
| 6806 | } |
| 6807 | _ACEOF |
| 6808 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6809 | if { (ac_try="$ac_compile" |
| 6810 | case "(($ac_try" in |
| 6811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6812 | *) ac_try_echo=$ac_try;; |
| 6813 | esac |
| 6814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6815 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | ac_status=$? |
| 6817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6818 | rm -f conftest.er1 |
| 6819 | cat conftest.err >&5 |
| 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6821 | (exit $ac_status); } && { |
| 6822 | test -z "$ac_c_werror_flag" || |
| 6823 | test ! -s conftest.err |
| 6824 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6825 | gt_cv_header_inttypes_h=yes |
| 6826 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | echo "$as_me: failed program was:" >&5 |
| 6828 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6829 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6830 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6832 | |
| 6833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6834 | |
| 6835 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6836 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6837 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6838 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6839 | |
| 6840 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6841 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6843 | |
| 6844 | fi |
| 6845 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6846 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6847 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6848 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6849 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6850 | 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] | 6851 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6853 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6854 | |
| 6855 | cat >conftest.$ac_ext <<_ACEOF |
| 6856 | /* confdefs.h. */ |
| 6857 | _ACEOF |
| 6858 | cat confdefs.h >>conftest.$ac_ext |
| 6859 | cat >>conftest.$ac_ext <<_ACEOF |
| 6860 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6861 | #include <inttypes.h> |
| 6862 | #ifdef PRId32 |
| 6863 | char *p = PRId32; |
| 6864 | #endif |
| 6865 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | int |
| 6867 | main () |
| 6868 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6869 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6870 | ; |
| 6871 | return 0; |
| 6872 | } |
| 6873 | _ACEOF |
| 6874 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6875 | if { (ac_try="$ac_compile" |
| 6876 | case "(($ac_try" in |
| 6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6878 | *) ac_try_echo=$ac_try;; |
| 6879 | esac |
| 6880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6881 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6882 | ac_status=$? |
| 6883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6884 | rm -f conftest.er1 |
| 6885 | cat conftest.err >&5 |
| 6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6887 | (exit $ac_status); } && { |
| 6888 | test -z "$ac_c_werror_flag" || |
| 6889 | test ! -s conftest.err |
| 6890 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6891 | gt_cv_inttypes_pri_broken=no |
| 6892 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6893 | echo "$as_me: failed program was:" >&5 |
| 6894 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6895 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6896 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6898 | |
| 6899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | |
| 6901 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6902 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6903 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6904 | fi |
| 6905 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6906 | |
| 6907 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6908 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6909 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6910 | |
| 6911 | fi |
| 6912 | |
| 6913 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6915 | for ac_header in stdint.h |
| 6916 | do |
| 6917 | 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] | 6918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6921 | 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] | 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6924 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6926 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6927 | else |
| 6928 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6929 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | cat >conftest.$ac_ext <<_ACEOF |
| 6932 | /* confdefs.h. */ |
| 6933 | _ACEOF |
| 6934 | cat confdefs.h >>conftest.$ac_ext |
| 6935 | cat >>conftest.$ac_ext <<_ACEOF |
| 6936 | /* end confdefs.h. */ |
| 6937 | $ac_includes_default |
| 6938 | #include <$ac_header> |
| 6939 | _ACEOF |
| 6940 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6941 | if { (ac_try="$ac_compile" |
| 6942 | case "(($ac_try" in |
| 6943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6944 | *) ac_try_echo=$ac_try;; |
| 6945 | esac |
| 6946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6947 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | ac_status=$? |
| 6949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6950 | rm -f conftest.er1 |
| 6951 | cat conftest.err >&5 |
| 6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6953 | (exit $ac_status); } && { |
| 6954 | test -z "$ac_c_werror_flag" || |
| 6955 | test ! -s conftest.err |
| 6956 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6957 | ac_header_compiler=yes |
| 6958 | else |
| 6959 | echo "$as_me: failed program was:" >&5 |
| 6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6962 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6964 | |
| 6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6966 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6967 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6968 | |
| 6969 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6970 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6971 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6972 | cat >conftest.$ac_ext <<_ACEOF |
| 6973 | /* confdefs.h. */ |
| 6974 | _ACEOF |
| 6975 | cat confdefs.h >>conftest.$ac_ext |
| 6976 | cat >>conftest.$ac_ext <<_ACEOF |
| 6977 | /* end confdefs.h. */ |
| 6978 | #include <$ac_header> |
| 6979 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6980 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6981 | case "(($ac_try" in |
| 6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6983 | *) ac_try_echo=$ac_try;; |
| 6984 | esac |
| 6985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6987 | ac_status=$? |
| 6988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6989 | rm -f conftest.er1 |
| 6990 | cat conftest.err >&5 |
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6992 | (exit $ac_status); } >/dev/null && { |
| 6993 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6994 | test ! -s conftest.err |
| 6995 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6996 | ac_header_preproc=yes |
| 6997 | else |
| 6998 | echo "$as_me: failed program was:" >&5 |
| 6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7000 | |
| 7001 | ac_header_preproc=no |
| 7002 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7003 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7004 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7005 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7006 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7007 | |
| 7008 | # So? What about this header? |
| 7009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7010 | yes:no: ) |
| 7011 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7012 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7014 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7015 | ac_header_preproc=yes |
| 7016 | ;; |
| 7017 | no:yes:* ) |
| 7018 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7019 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7020 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7021 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7022 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7023 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7024 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7025 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7028 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7029 | 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] | 7030 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7031 | ;; |
| 7032 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7033 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7035 | 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] | 7036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7037 | else |
| 7038 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7039 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7040 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7041 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7042 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7043 | |
| 7044 | fi |
| 7045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7046 | cat >>confdefs.h <<_ACEOF |
| 7047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7048 | _ACEOF |
| 7049 | |
| 7050 | fi |
| 7051 | |
| 7052 | done |
| 7053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7054 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7055 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7056 | result= |
| 7057 | cat >conftest.$ac_ext <<_ACEOF |
| 7058 | /* confdefs.h. */ |
| 7059 | _ACEOF |
| 7060 | cat confdefs.h >>conftest.$ac_ext |
| 7061 | cat >>conftest.$ac_ext <<_ACEOF |
| 7062 | /* end confdefs.h. */ |
| 7063 | |
| 7064 | #include <limits.h> |
| 7065 | #if HAVE_STDINT_H |
| 7066 | #include <stdint.h> |
| 7067 | #endif |
| 7068 | #ifdef SIZE_MAX |
| 7069 | Found it |
| 7070 | #endif |
| 7071 | |
| 7072 | _ACEOF |
| 7073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7074 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7075 | result=yes |
| 7076 | fi |
| 7077 | rm -f conftest* |
| 7078 | |
| 7079 | if test -z "$result"; then |
| 7080 | if test "$cross_compiling" = yes; then |
| 7081 | # Depending upon the size, compute the lo and hi bounds. |
| 7082 | cat >conftest.$ac_ext <<_ACEOF |
| 7083 | /* confdefs.h. */ |
| 7084 | _ACEOF |
| 7085 | cat confdefs.h >>conftest.$ac_ext |
| 7086 | cat >>conftest.$ac_ext <<_ACEOF |
| 7087 | /* end confdefs.h. */ |
| 7088 | #include <stddef.h> |
| 7089 | int |
| 7090 | main () |
| 7091 | { |
| 7092 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7093 | test_array [0] = 0 |
| 7094 | |
| 7095 | ; |
| 7096 | return 0; |
| 7097 | } |
| 7098 | _ACEOF |
| 7099 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7100 | if { (ac_try="$ac_compile" |
| 7101 | case "(($ac_try" in |
| 7102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7103 | *) ac_try_echo=$ac_try;; |
| 7104 | esac |
| 7105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7106 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | ac_status=$? |
| 7108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7109 | rm -f conftest.er1 |
| 7110 | cat conftest.err >&5 |
| 7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7112 | (exit $ac_status); } && { |
| 7113 | test -z "$ac_c_werror_flag" || |
| 7114 | test ! -s conftest.err |
| 7115 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7116 | ac_lo=0 ac_mid=0 |
| 7117 | while :; do |
| 7118 | cat >conftest.$ac_ext <<_ACEOF |
| 7119 | /* confdefs.h. */ |
| 7120 | _ACEOF |
| 7121 | cat confdefs.h >>conftest.$ac_ext |
| 7122 | cat >>conftest.$ac_ext <<_ACEOF |
| 7123 | /* end confdefs.h. */ |
| 7124 | #include <stddef.h> |
| 7125 | int |
| 7126 | main () |
| 7127 | { |
| 7128 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7129 | test_array [0] = 0 |
| 7130 | |
| 7131 | ; |
| 7132 | return 0; |
| 7133 | } |
| 7134 | _ACEOF |
| 7135 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7136 | if { (ac_try="$ac_compile" |
| 7137 | case "(($ac_try" in |
| 7138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7139 | *) ac_try_echo=$ac_try;; |
| 7140 | esac |
| 7141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7142 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | ac_status=$? |
| 7144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7145 | rm -f conftest.er1 |
| 7146 | cat conftest.err >&5 |
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7148 | (exit $ac_status); } && { |
| 7149 | test -z "$ac_c_werror_flag" || |
| 7150 | test ! -s conftest.err |
| 7151 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7152 | ac_hi=$ac_mid; break |
| 7153 | else |
| 7154 | echo "$as_me: failed program was:" >&5 |
| 7155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7156 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7157 | ac_lo=`expr $ac_mid + 1` |
| 7158 | if test $ac_lo -le $ac_mid; then |
| 7159 | ac_lo= ac_hi= |
| 7160 | break |
| 7161 | fi |
| 7162 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7164 | |
| 7165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7166 | done |
| 7167 | else |
| 7168 | echo "$as_me: failed program was:" >&5 |
| 7169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7171 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7172 | /* confdefs.h. */ |
| 7173 | _ACEOF |
| 7174 | cat confdefs.h >>conftest.$ac_ext |
| 7175 | cat >>conftest.$ac_ext <<_ACEOF |
| 7176 | /* end confdefs.h. */ |
| 7177 | #include <stddef.h> |
| 7178 | int |
| 7179 | main () |
| 7180 | { |
| 7181 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7182 | test_array [0] = 0 |
| 7183 | |
| 7184 | ; |
| 7185 | return 0; |
| 7186 | } |
| 7187 | _ACEOF |
| 7188 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7189 | if { (ac_try="$ac_compile" |
| 7190 | case "(($ac_try" in |
| 7191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7192 | *) ac_try_echo=$ac_try;; |
| 7193 | esac |
| 7194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7195 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | ac_status=$? |
| 7197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7198 | rm -f conftest.er1 |
| 7199 | cat conftest.err >&5 |
| 7200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7201 | (exit $ac_status); } && { |
| 7202 | test -z "$ac_c_werror_flag" || |
| 7203 | test ! -s conftest.err |
| 7204 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7205 | ac_hi=-1 ac_mid=-1 |
| 7206 | while :; do |
| 7207 | cat >conftest.$ac_ext <<_ACEOF |
| 7208 | /* confdefs.h. */ |
| 7209 | _ACEOF |
| 7210 | cat confdefs.h >>conftest.$ac_ext |
| 7211 | cat >>conftest.$ac_ext <<_ACEOF |
| 7212 | /* end confdefs.h. */ |
| 7213 | #include <stddef.h> |
| 7214 | int |
| 7215 | main () |
| 7216 | { |
| 7217 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7218 | test_array [0] = 0 |
| 7219 | |
| 7220 | ; |
| 7221 | return 0; |
| 7222 | } |
| 7223 | _ACEOF |
| 7224 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7225 | if { (ac_try="$ac_compile" |
| 7226 | case "(($ac_try" in |
| 7227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7228 | *) ac_try_echo=$ac_try;; |
| 7229 | esac |
| 7230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7231 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | ac_status=$? |
| 7233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7234 | rm -f conftest.er1 |
| 7235 | cat conftest.err >&5 |
| 7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7237 | (exit $ac_status); } && { |
| 7238 | test -z "$ac_c_werror_flag" || |
| 7239 | test ! -s conftest.err |
| 7240 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7241 | ac_lo=$ac_mid; break |
| 7242 | else |
| 7243 | echo "$as_me: failed program was:" >&5 |
| 7244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7245 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7246 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7247 | if test $ac_mid -le $ac_hi; then |
| 7248 | ac_lo= ac_hi= |
| 7249 | break |
| 7250 | fi |
| 7251 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7253 | |
| 7254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | done |
| 7256 | else |
| 7257 | echo "$as_me: failed program was:" >&5 |
| 7258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7260 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7261 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7262 | |
| 7263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7264 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7265 | |
| 7266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7267 | # Binary search between lo and hi bounds. |
| 7268 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7269 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7270 | cat >conftest.$ac_ext <<_ACEOF |
| 7271 | /* confdefs.h. */ |
| 7272 | _ACEOF |
| 7273 | cat confdefs.h >>conftest.$ac_ext |
| 7274 | cat >>conftest.$ac_ext <<_ACEOF |
| 7275 | /* end confdefs.h. */ |
| 7276 | #include <stddef.h> |
| 7277 | int |
| 7278 | main () |
| 7279 | { |
| 7280 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7281 | test_array [0] = 0 |
| 7282 | |
| 7283 | ; |
| 7284 | return 0; |
| 7285 | } |
| 7286 | _ACEOF |
| 7287 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7288 | if { (ac_try="$ac_compile" |
| 7289 | case "(($ac_try" in |
| 7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7291 | *) ac_try_echo=$ac_try;; |
| 7292 | esac |
| 7293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7294 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7295 | ac_status=$? |
| 7296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7297 | rm -f conftest.er1 |
| 7298 | cat conftest.err >&5 |
| 7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7300 | (exit $ac_status); } && { |
| 7301 | test -z "$ac_c_werror_flag" || |
| 7302 | test ! -s conftest.err |
| 7303 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7304 | ac_hi=$ac_mid |
| 7305 | else |
| 7306 | echo "$as_me: failed program was:" >&5 |
| 7307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7309 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7311 | |
| 7312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7313 | done |
| 7314 | case $ac_lo in |
| 7315 | ?*) res_hi=$ac_lo;; |
| 7316 | '') result=? ;; |
| 7317 | esac |
| 7318 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7319 | cat >conftest.$ac_ext <<_ACEOF |
| 7320 | /* confdefs.h. */ |
| 7321 | _ACEOF |
| 7322 | cat confdefs.h >>conftest.$ac_ext |
| 7323 | cat >>conftest.$ac_ext <<_ACEOF |
| 7324 | /* end confdefs.h. */ |
| 7325 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7326 | static long int longval () { return ~(size_t)0 / 10; } |
| 7327 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | #include <stdio.h> |
| 7329 | #include <stdlib.h> |
| 7330 | int |
| 7331 | main () |
| 7332 | { |
| 7333 | |
| 7334 | FILE *f = fopen ("conftest.val", "w"); |
| 7335 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7336 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7337 | if ((~(size_t)0 / 10) < 0) |
| 7338 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7339 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7340 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7341 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7342 | fprintf (f, "%ld\n", i); |
| 7343 | } |
| 7344 | else |
| 7345 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7346 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7347 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7348 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7349 | fprintf (f, "%lu\n", i); |
| 7350 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7351 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7352 | |
| 7353 | ; |
| 7354 | return 0; |
| 7355 | } |
| 7356 | _ACEOF |
| 7357 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7358 | if { (ac_try="$ac_link" |
| 7359 | case "(($ac_try" in |
| 7360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7361 | *) ac_try_echo=$ac_try;; |
| 7362 | esac |
| 7363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7364 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7365 | ac_status=$? |
| 7366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7368 | { (case "(($ac_try" in |
| 7369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7370 | *) ac_try_echo=$ac_try;; |
| 7371 | esac |
| 7372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7373 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7374 | ac_status=$? |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 | (exit $ac_status); }; }; then |
| 7377 | res_hi=`cat conftest.val` |
| 7378 | else |
| 7379 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7380 | echo "$as_me: failed program was:" >&5 |
| 7381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7382 | |
| 7383 | ( exit $ac_status ) |
| 7384 | result=? |
| 7385 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7386 | 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] | 7387 | fi |
| 7388 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7389 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7390 | if test "$cross_compiling" = yes; then |
| 7391 | # Depending upon the size, compute the lo and hi bounds. |
| 7392 | cat >conftest.$ac_ext <<_ACEOF |
| 7393 | /* confdefs.h. */ |
| 7394 | _ACEOF |
| 7395 | cat confdefs.h >>conftest.$ac_ext |
| 7396 | cat >>conftest.$ac_ext <<_ACEOF |
| 7397 | /* end confdefs.h. */ |
| 7398 | #include <stddef.h> |
| 7399 | int |
| 7400 | main () |
| 7401 | { |
| 7402 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7403 | test_array [0] = 0 |
| 7404 | |
| 7405 | ; |
| 7406 | return 0; |
| 7407 | } |
| 7408 | _ACEOF |
| 7409 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7410 | if { (ac_try="$ac_compile" |
| 7411 | case "(($ac_try" in |
| 7412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7413 | *) ac_try_echo=$ac_try;; |
| 7414 | esac |
| 7415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7416 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7417 | ac_status=$? |
| 7418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7419 | rm -f conftest.er1 |
| 7420 | cat conftest.err >&5 |
| 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7422 | (exit $ac_status); } && { |
| 7423 | test -z "$ac_c_werror_flag" || |
| 7424 | test ! -s conftest.err |
| 7425 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7426 | ac_lo=0 ac_mid=0 |
| 7427 | while :; do |
| 7428 | cat >conftest.$ac_ext <<_ACEOF |
| 7429 | /* confdefs.h. */ |
| 7430 | _ACEOF |
| 7431 | cat confdefs.h >>conftest.$ac_ext |
| 7432 | cat >>conftest.$ac_ext <<_ACEOF |
| 7433 | /* end confdefs.h. */ |
| 7434 | #include <stddef.h> |
| 7435 | int |
| 7436 | main () |
| 7437 | { |
| 7438 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7439 | test_array [0] = 0 |
| 7440 | |
| 7441 | ; |
| 7442 | return 0; |
| 7443 | } |
| 7444 | _ACEOF |
| 7445 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7446 | if { (ac_try="$ac_compile" |
| 7447 | case "(($ac_try" in |
| 7448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7449 | *) ac_try_echo=$ac_try;; |
| 7450 | esac |
| 7451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7452 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | ac_status=$? |
| 7454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7455 | rm -f conftest.er1 |
| 7456 | cat conftest.err >&5 |
| 7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7458 | (exit $ac_status); } && { |
| 7459 | test -z "$ac_c_werror_flag" || |
| 7460 | test ! -s conftest.err |
| 7461 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | ac_hi=$ac_mid; break |
| 7463 | else |
| 7464 | echo "$as_me: failed program was:" >&5 |
| 7465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7466 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7467 | ac_lo=`expr $ac_mid + 1` |
| 7468 | if test $ac_lo -le $ac_mid; then |
| 7469 | ac_lo= ac_hi= |
| 7470 | break |
| 7471 | fi |
| 7472 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7474 | |
| 7475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7476 | done |
| 7477 | else |
| 7478 | echo "$as_me: failed program was:" >&5 |
| 7479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7480 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7481 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | /* confdefs.h. */ |
| 7483 | _ACEOF |
| 7484 | cat confdefs.h >>conftest.$ac_ext |
| 7485 | cat >>conftest.$ac_ext <<_ACEOF |
| 7486 | /* end confdefs.h. */ |
| 7487 | #include <stddef.h> |
| 7488 | int |
| 7489 | main () |
| 7490 | { |
| 7491 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7492 | test_array [0] = 0 |
| 7493 | |
| 7494 | ; |
| 7495 | return 0; |
| 7496 | } |
| 7497 | _ACEOF |
| 7498 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7499 | if { (ac_try="$ac_compile" |
| 7500 | case "(($ac_try" in |
| 7501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7502 | *) ac_try_echo=$ac_try;; |
| 7503 | esac |
| 7504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7505 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7506 | ac_status=$? |
| 7507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7508 | rm -f conftest.er1 |
| 7509 | cat conftest.err >&5 |
| 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7511 | (exit $ac_status); } && { |
| 7512 | test -z "$ac_c_werror_flag" || |
| 7513 | test ! -s conftest.err |
| 7514 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7515 | ac_hi=-1 ac_mid=-1 |
| 7516 | while :; do |
| 7517 | cat >conftest.$ac_ext <<_ACEOF |
| 7518 | /* confdefs.h. */ |
| 7519 | _ACEOF |
| 7520 | cat confdefs.h >>conftest.$ac_ext |
| 7521 | cat >>conftest.$ac_ext <<_ACEOF |
| 7522 | /* end confdefs.h. */ |
| 7523 | #include <stddef.h> |
| 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7528 | test_array [0] = 0 |
| 7529 | |
| 7530 | ; |
| 7531 | return 0; |
| 7532 | } |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7535 | if { (ac_try="$ac_compile" |
| 7536 | case "(($ac_try" in |
| 7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7538 | *) ac_try_echo=$ac_try;; |
| 7539 | esac |
| 7540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7541 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | ac_status=$? |
| 7543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7544 | rm -f conftest.er1 |
| 7545 | cat conftest.err >&5 |
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7547 | (exit $ac_status); } && { |
| 7548 | test -z "$ac_c_werror_flag" || |
| 7549 | test ! -s conftest.err |
| 7550 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7551 | ac_lo=$ac_mid; break |
| 7552 | else |
| 7553 | echo "$as_me: failed program was:" >&5 |
| 7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7556 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7557 | if test $ac_mid -le $ac_hi; then |
| 7558 | ac_lo= ac_hi= |
| 7559 | break |
| 7560 | fi |
| 7561 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7562 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7563 | |
| 7564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | done |
| 7566 | else |
| 7567 | echo "$as_me: failed program was:" >&5 |
| 7568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7570 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7572 | |
| 7573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7575 | |
| 7576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7577 | # Binary search between lo and hi bounds. |
| 7578 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7579 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7580 | cat >conftest.$ac_ext <<_ACEOF |
| 7581 | /* confdefs.h. */ |
| 7582 | _ACEOF |
| 7583 | cat confdefs.h >>conftest.$ac_ext |
| 7584 | cat >>conftest.$ac_ext <<_ACEOF |
| 7585 | /* end confdefs.h. */ |
| 7586 | #include <stddef.h> |
| 7587 | int |
| 7588 | main () |
| 7589 | { |
| 7590 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7591 | test_array [0] = 0 |
| 7592 | |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
| 7597 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7598 | if { (ac_try="$ac_compile" |
| 7599 | case "(($ac_try" in |
| 7600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7601 | *) ac_try_echo=$ac_try;; |
| 7602 | esac |
| 7603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7604 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7605 | ac_status=$? |
| 7606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7607 | rm -f conftest.er1 |
| 7608 | cat conftest.err >&5 |
| 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7610 | (exit $ac_status); } && { |
| 7611 | test -z "$ac_c_werror_flag" || |
| 7612 | test ! -s conftest.err |
| 7613 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7614 | ac_hi=$ac_mid |
| 7615 | else |
| 7616 | echo "$as_me: failed program was:" >&5 |
| 7617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7619 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7621 | |
| 7622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7623 | done |
| 7624 | case $ac_lo in |
| 7625 | ?*) res_lo=$ac_lo;; |
| 7626 | '') result=? ;; |
| 7627 | esac |
| 7628 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | cat >conftest.$ac_ext <<_ACEOF |
| 7630 | /* confdefs.h. */ |
| 7631 | _ACEOF |
| 7632 | cat confdefs.h >>conftest.$ac_ext |
| 7633 | cat >>conftest.$ac_ext <<_ACEOF |
| 7634 | /* end confdefs.h. */ |
| 7635 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7636 | static long int longval () { return ~(size_t)0 % 10; } |
| 7637 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | #include <stdio.h> |
| 7639 | #include <stdlib.h> |
| 7640 | int |
| 7641 | main () |
| 7642 | { |
| 7643 | |
| 7644 | FILE *f = fopen ("conftest.val", "w"); |
| 7645 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7646 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7647 | if ((~(size_t)0 % 10) < 0) |
| 7648 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7649 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7650 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7651 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7652 | fprintf (f, "%ld\n", i); |
| 7653 | } |
| 7654 | else |
| 7655 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7656 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7657 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7658 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7659 | fprintf (f, "%lu\n", i); |
| 7660 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7661 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7662 | |
| 7663 | ; |
| 7664 | return 0; |
| 7665 | } |
| 7666 | _ACEOF |
| 7667 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7668 | if { (ac_try="$ac_link" |
| 7669 | case "(($ac_try" in |
| 7670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7671 | *) ac_try_echo=$ac_try;; |
| 7672 | esac |
| 7673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7674 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7675 | ac_status=$? |
| 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7678 | { (case "(($ac_try" in |
| 7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7680 | *) ac_try_echo=$ac_try;; |
| 7681 | esac |
| 7682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7683 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7684 | ac_status=$? |
| 7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7686 | (exit $ac_status); }; }; then |
| 7687 | res_lo=`cat conftest.val` |
| 7688 | else |
| 7689 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7690 | echo "$as_me: failed program was:" >&5 |
| 7691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7692 | |
| 7693 | ( exit $ac_status ) |
| 7694 | result=? |
| 7695 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7696 | 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] | 7697 | fi |
| 7698 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7699 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7700 | if test "$cross_compiling" = yes; then |
| 7701 | # Depending upon the size, compute the lo and hi bounds. |
| 7702 | cat >conftest.$ac_ext <<_ACEOF |
| 7703 | /* confdefs.h. */ |
| 7704 | _ACEOF |
| 7705 | cat confdefs.h >>conftest.$ac_ext |
| 7706 | cat >>conftest.$ac_ext <<_ACEOF |
| 7707 | /* end confdefs.h. */ |
| 7708 | #include <stddef.h> |
| 7709 | int |
| 7710 | main () |
| 7711 | { |
| 7712 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7713 | test_array [0] = 0 |
| 7714 | |
| 7715 | ; |
| 7716 | return 0; |
| 7717 | } |
| 7718 | _ACEOF |
| 7719 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7720 | if { (ac_try="$ac_compile" |
| 7721 | case "(($ac_try" in |
| 7722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7723 | *) ac_try_echo=$ac_try;; |
| 7724 | esac |
| 7725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7726 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7727 | ac_status=$? |
| 7728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7729 | rm -f conftest.er1 |
| 7730 | cat conftest.err >&5 |
| 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7732 | (exit $ac_status); } && { |
| 7733 | test -z "$ac_c_werror_flag" || |
| 7734 | test ! -s conftest.err |
| 7735 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7736 | ac_lo=0 ac_mid=0 |
| 7737 | while :; do |
| 7738 | cat >conftest.$ac_ext <<_ACEOF |
| 7739 | /* confdefs.h. */ |
| 7740 | _ACEOF |
| 7741 | cat confdefs.h >>conftest.$ac_ext |
| 7742 | cat >>conftest.$ac_ext <<_ACEOF |
| 7743 | /* end confdefs.h. */ |
| 7744 | #include <stddef.h> |
| 7745 | int |
| 7746 | main () |
| 7747 | { |
| 7748 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7749 | test_array [0] = 0 |
| 7750 | |
| 7751 | ; |
| 7752 | return 0; |
| 7753 | } |
| 7754 | _ACEOF |
| 7755 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7756 | if { (ac_try="$ac_compile" |
| 7757 | case "(($ac_try" in |
| 7758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7759 | *) ac_try_echo=$ac_try;; |
| 7760 | esac |
| 7761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7762 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7763 | ac_status=$? |
| 7764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7765 | rm -f conftest.er1 |
| 7766 | cat conftest.err >&5 |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7768 | (exit $ac_status); } && { |
| 7769 | test -z "$ac_c_werror_flag" || |
| 7770 | test ! -s conftest.err |
| 7771 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7772 | ac_hi=$ac_mid; break |
| 7773 | else |
| 7774 | echo "$as_me: failed program was:" >&5 |
| 7775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7777 | ac_lo=`expr $ac_mid + 1` |
| 7778 | if test $ac_lo -le $ac_mid; then |
| 7779 | ac_lo= ac_hi= |
| 7780 | break |
| 7781 | fi |
| 7782 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7784 | |
| 7785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7786 | done |
| 7787 | else |
| 7788 | echo "$as_me: failed program was:" >&5 |
| 7789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7791 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7792 | /* confdefs.h. */ |
| 7793 | _ACEOF |
| 7794 | cat confdefs.h >>conftest.$ac_ext |
| 7795 | cat >>conftest.$ac_ext <<_ACEOF |
| 7796 | /* end confdefs.h. */ |
| 7797 | #include <stddef.h> |
| 7798 | int |
| 7799 | main () |
| 7800 | { |
| 7801 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7802 | test_array [0] = 0 |
| 7803 | |
| 7804 | ; |
| 7805 | return 0; |
| 7806 | } |
| 7807 | _ACEOF |
| 7808 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7809 | if { (ac_try="$ac_compile" |
| 7810 | case "(($ac_try" in |
| 7811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7812 | *) ac_try_echo=$ac_try;; |
| 7813 | esac |
| 7814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7815 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7816 | ac_status=$? |
| 7817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7818 | rm -f conftest.er1 |
| 7819 | cat conftest.err >&5 |
| 7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7821 | (exit $ac_status); } && { |
| 7822 | test -z "$ac_c_werror_flag" || |
| 7823 | test ! -s conftest.err |
| 7824 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7825 | ac_hi=-1 ac_mid=-1 |
| 7826 | while :; do |
| 7827 | cat >conftest.$ac_ext <<_ACEOF |
| 7828 | /* confdefs.h. */ |
| 7829 | _ACEOF |
| 7830 | cat confdefs.h >>conftest.$ac_ext |
| 7831 | cat >>conftest.$ac_ext <<_ACEOF |
| 7832 | /* end confdefs.h. */ |
| 7833 | #include <stddef.h> |
| 7834 | int |
| 7835 | main () |
| 7836 | { |
| 7837 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7838 | test_array [0] = 0 |
| 7839 | |
| 7840 | ; |
| 7841 | return 0; |
| 7842 | } |
| 7843 | _ACEOF |
| 7844 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7845 | if { (ac_try="$ac_compile" |
| 7846 | case "(($ac_try" in |
| 7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7848 | *) ac_try_echo=$ac_try;; |
| 7849 | esac |
| 7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7851 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | ac_status=$? |
| 7853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7854 | rm -f conftest.er1 |
| 7855 | cat conftest.err >&5 |
| 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7857 | (exit $ac_status); } && { |
| 7858 | test -z "$ac_c_werror_flag" || |
| 7859 | test ! -s conftest.err |
| 7860 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7861 | ac_lo=$ac_mid; break |
| 7862 | else |
| 7863 | echo "$as_me: failed program was:" >&5 |
| 7864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7866 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7867 | if test $ac_mid -le $ac_hi; then |
| 7868 | ac_lo= ac_hi= |
| 7869 | break |
| 7870 | fi |
| 7871 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7872 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7873 | |
| 7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7875 | done |
| 7876 | else |
| 7877 | echo "$as_me: failed program was:" >&5 |
| 7878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7880 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7881 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7882 | |
| 7883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7885 | |
| 7886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7887 | # Binary search between lo and hi bounds. |
| 7888 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7889 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7890 | cat >conftest.$ac_ext <<_ACEOF |
| 7891 | /* confdefs.h. */ |
| 7892 | _ACEOF |
| 7893 | cat confdefs.h >>conftest.$ac_ext |
| 7894 | cat >>conftest.$ac_ext <<_ACEOF |
| 7895 | /* end confdefs.h. */ |
| 7896 | #include <stddef.h> |
| 7897 | int |
| 7898 | main () |
| 7899 | { |
| 7900 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7901 | test_array [0] = 0 |
| 7902 | |
| 7903 | ; |
| 7904 | return 0; |
| 7905 | } |
| 7906 | _ACEOF |
| 7907 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7908 | if { (ac_try="$ac_compile" |
| 7909 | case "(($ac_try" in |
| 7910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7911 | *) ac_try_echo=$ac_try;; |
| 7912 | esac |
| 7913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7914 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7915 | ac_status=$? |
| 7916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7917 | rm -f conftest.er1 |
| 7918 | cat conftest.err >&5 |
| 7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7920 | (exit $ac_status); } && { |
| 7921 | test -z "$ac_c_werror_flag" || |
| 7922 | test ! -s conftest.err |
| 7923 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7924 | ac_hi=$ac_mid |
| 7925 | else |
| 7926 | echo "$as_me: failed program was:" >&5 |
| 7927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7929 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7930 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7931 | |
| 7932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7933 | done |
| 7934 | case $ac_lo in |
| 7935 | ?*) fits_in_uint=$ac_lo;; |
| 7936 | '') result=? ;; |
| 7937 | esac |
| 7938 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | cat >conftest.$ac_ext <<_ACEOF |
| 7940 | /* confdefs.h. */ |
| 7941 | _ACEOF |
| 7942 | cat confdefs.h >>conftest.$ac_ext |
| 7943 | cat >>conftest.$ac_ext <<_ACEOF |
| 7944 | /* end confdefs.h. */ |
| 7945 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7946 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7947 | 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] | 7948 | #include <stdio.h> |
| 7949 | #include <stdlib.h> |
| 7950 | int |
| 7951 | main () |
| 7952 | { |
| 7953 | |
| 7954 | FILE *f = fopen ("conftest.val", "w"); |
| 7955 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7956 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7957 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7958 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7959 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7960 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7961 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7962 | fprintf (f, "%ld\n", i); |
| 7963 | } |
| 7964 | else |
| 7965 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7966 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7967 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7968 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7969 | fprintf (f, "%lu\n", i); |
| 7970 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7971 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7972 | |
| 7973 | ; |
| 7974 | return 0; |
| 7975 | } |
| 7976 | _ACEOF |
| 7977 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7978 | if { (ac_try="$ac_link" |
| 7979 | case "(($ac_try" in |
| 7980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7981 | *) ac_try_echo=$ac_try;; |
| 7982 | esac |
| 7983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7984 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7985 | ac_status=$? |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7988 | { (case "(($ac_try" in |
| 7989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7990 | *) ac_try_echo=$ac_try;; |
| 7991 | esac |
| 7992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7993 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7994 | ac_status=$? |
| 7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7996 | (exit $ac_status); }; }; then |
| 7997 | fits_in_uint=`cat conftest.val` |
| 7998 | else |
| 7999 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8000 | echo "$as_me: failed program was:" >&5 |
| 8001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8002 | |
| 8003 | ( exit $ac_status ) |
| 8004 | result=? |
| 8005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8006 | 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] | 8007 | fi |
| 8008 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8010 | if test "$fits_in_uint" = 1; then |
| 8011 | cat >conftest.$ac_ext <<_ACEOF |
| 8012 | /* confdefs.h. */ |
| 8013 | _ACEOF |
| 8014 | cat confdefs.h >>conftest.$ac_ext |
| 8015 | cat >>conftest.$ac_ext <<_ACEOF |
| 8016 | /* end confdefs.h. */ |
| 8017 | #include <stddef.h> |
| 8018 | extern size_t foo; |
| 8019 | extern unsigned long foo; |
| 8020 | |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | |
| 8025 | ; |
| 8026 | return 0; |
| 8027 | } |
| 8028 | _ACEOF |
| 8029 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8030 | if { (ac_try="$ac_compile" |
| 8031 | case "(($ac_try" in |
| 8032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8033 | *) ac_try_echo=$ac_try;; |
| 8034 | esac |
| 8035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8036 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8037 | ac_status=$? |
| 8038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8039 | rm -f conftest.er1 |
| 8040 | cat conftest.err >&5 |
| 8041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8042 | (exit $ac_status); } && { |
| 8043 | test -z "$ac_c_werror_flag" || |
| 8044 | test ! -s conftest.err |
| 8045 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8046 | fits_in_uint=0 |
| 8047 | else |
| 8048 | echo "$as_me: failed program was:" >&5 |
| 8049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8050 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8051 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8052 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8053 | |
| 8054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8055 | fi |
| 8056 | if test -z "$result"; then |
| 8057 | if test "$fits_in_uint" = 1; then |
| 8058 | result="$res_hi$res_lo"U |
| 8059 | else |
| 8060 | result="$res_hi$res_lo"UL |
| 8061 | fi |
| 8062 | else |
| 8063 | result='~(size_t)0' |
| 8064 | fi |
| 8065 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8066 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8067 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8068 | if test "$result" != yes; then |
| 8069 | |
| 8070 | cat >>confdefs.h <<_ACEOF |
| 8071 | #define SIZE_MAX $result |
| 8072 | _ACEOF |
| 8073 | |
| 8074 | fi |
| 8075 | |
| 8076 | |
| 8077 | |
| 8078 | |
| 8079 | for ac_header in stdint.h |
| 8080 | do |
| 8081 | 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] | 8082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8083 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8085 | 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] | 8086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8088 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8090 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8091 | else |
| 8092 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8093 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8094 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8095 | cat >conftest.$ac_ext <<_ACEOF |
| 8096 | /* confdefs.h. */ |
| 8097 | _ACEOF |
| 8098 | cat confdefs.h >>conftest.$ac_ext |
| 8099 | cat >>conftest.$ac_ext <<_ACEOF |
| 8100 | /* end confdefs.h. */ |
| 8101 | $ac_includes_default |
| 8102 | #include <$ac_header> |
| 8103 | _ACEOF |
| 8104 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8105 | if { (ac_try="$ac_compile" |
| 8106 | case "(($ac_try" in |
| 8107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8108 | *) ac_try_echo=$ac_try;; |
| 8109 | esac |
| 8110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8111 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8112 | ac_status=$? |
| 8113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8114 | rm -f conftest.er1 |
| 8115 | cat conftest.err >&5 |
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8117 | (exit $ac_status); } && { |
| 8118 | test -z "$ac_c_werror_flag" || |
| 8119 | test ! -s conftest.err |
| 8120 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8121 | ac_header_compiler=yes |
| 8122 | else |
| 8123 | echo "$as_me: failed program was:" >&5 |
| 8124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8126 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8127 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8128 | |
| 8129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8130 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8131 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8132 | |
| 8133 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8134 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8135 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8136 | cat >conftest.$ac_ext <<_ACEOF |
| 8137 | /* confdefs.h. */ |
| 8138 | _ACEOF |
| 8139 | cat confdefs.h >>conftest.$ac_ext |
| 8140 | cat >>conftest.$ac_ext <<_ACEOF |
| 8141 | /* end confdefs.h. */ |
| 8142 | #include <$ac_header> |
| 8143 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8144 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8145 | case "(($ac_try" in |
| 8146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8147 | *) ac_try_echo=$ac_try;; |
| 8148 | esac |
| 8149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8150 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | ac_status=$? |
| 8152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8153 | rm -f conftest.er1 |
| 8154 | cat conftest.err >&5 |
| 8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8156 | (exit $ac_status); } >/dev/null && { |
| 8157 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8158 | test ! -s conftest.err |
| 8159 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8160 | ac_header_preproc=yes |
| 8161 | else |
| 8162 | echo "$as_me: failed program was:" >&5 |
| 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8164 | |
| 8165 | ac_header_preproc=no |
| 8166 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8168 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8169 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8170 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8171 | |
| 8172 | # So? What about this header? |
| 8173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8174 | yes:no: ) |
| 8175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8179 | ac_header_preproc=yes |
| 8180 | ;; |
| 8181 | no:yes:* ) |
| 8182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8193 | 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] | 8194 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8195 | ;; |
| 8196 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8199 | 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] | 8200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8201 | else |
| 8202 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8203 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8206 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8207 | |
| 8208 | fi |
| 8209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8210 | cat >>confdefs.h <<_ACEOF |
| 8211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8212 | _ACEOF |
| 8213 | |
| 8214 | fi |
| 8215 | |
| 8216 | done |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | if test "X$prefix" = "XNONE"; then |
| 8221 | acl_final_prefix="$ac_default_prefix" |
| 8222 | else |
| 8223 | acl_final_prefix="$prefix" |
| 8224 | fi |
| 8225 | if test "X$exec_prefix" = "XNONE"; then |
| 8226 | acl_final_exec_prefix='${prefix}' |
| 8227 | else |
| 8228 | acl_final_exec_prefix="$exec_prefix" |
| 8229 | fi |
| 8230 | acl_save_prefix="$prefix" |
| 8231 | prefix="$acl_final_prefix" |
| 8232 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8233 | prefix="$acl_save_prefix" |
| 8234 | |
| 8235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8236 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8237 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8238 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8239 | else |
| 8240 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8241 | fi |
| 8242 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | # Prepare PATH_SEPARATOR. |
| 8244 | # The user is always right. |
| 8245 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8246 | echo "#! /bin/sh" >conf$$.sh |
| 8247 | echo "exit 0" >>conf$$.sh |
| 8248 | chmod +x conf$$.sh |
| 8249 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8250 | PATH_SEPARATOR=';' |
| 8251 | else |
| 8252 | PATH_SEPARATOR=: |
| 8253 | fi |
| 8254 | rm -f conf$$.sh |
| 8255 | fi |
| 8256 | ac_prog=ld |
| 8257 | if test "$GCC" = yes; then |
| 8258 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8259 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8260 | 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] | 8261 | case $host in |
| 8262 | *-*-mingw*) |
| 8263 | # gcc leaves a trailing carriage return which upsets mingw |
| 8264 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8265 | *) |
| 8266 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8267 | esac |
| 8268 | case $ac_prog in |
| 8269 | # Accept absolute paths. |
| 8270 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8271 | re_direlt='/[^/][^/]*/\.\./' |
| 8272 | # Canonicalize the path of ld |
| 8273 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8274 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8275 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8276 | done |
| 8277 | test -z "$LD" && LD="$ac_prog" |
| 8278 | ;; |
| 8279 | "") |
| 8280 | # If it fails, then pretend we aren't using GCC. |
| 8281 | ac_prog=ld |
| 8282 | ;; |
| 8283 | *) |
| 8284 | # If it is relative, then search for the first ld in PATH. |
| 8285 | with_gnu_ld=unknown |
| 8286 | ;; |
| 8287 | esac |
| 8288 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8289 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8290 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8291 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8292 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8293 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8294 | fi |
| 8295 | if test "${acl_cv_path_LD+set}" = set; then |
| 8296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8297 | else |
| 8298 | if test -z "$LD"; then |
| 8299 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8300 | for ac_dir in $PATH; do |
| 8301 | test -z "$ac_dir" && ac_dir=. |
| 8302 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8303 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8304 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8305 | # but apparently some GNU ld's only accept -v. |
| 8306 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8307 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8308 | *GNU* | *'with BFD'*) |
| 8309 | test "$with_gnu_ld" != no && break ;; |
| 8310 | *) |
| 8311 | test "$with_gnu_ld" != yes && break ;; |
| 8312 | esac |
| 8313 | fi |
| 8314 | done |
| 8315 | IFS="$ac_save_ifs" |
| 8316 | else |
| 8317 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8318 | fi |
| 8319 | fi |
| 8320 | |
| 8321 | LD="$acl_cv_path_LD" |
| 8322 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8323 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8324 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8325 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8326 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8327 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8328 | fi |
| 8329 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8330 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8331 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8332 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8333 | 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] | 8334 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8336 | else |
| 8337 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8338 | case `$LD -v 2>&1 </dev/null` in |
| 8339 | *GNU* | *'with BFD'*) |
| 8340 | acl_cv_prog_gnu_ld=yes ;; |
| 8341 | *) |
| 8342 | acl_cv_prog_gnu_ld=no ;; |
| 8343 | esac |
| 8344 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8345 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8346 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8347 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8348 | |
| 8349 | |
| 8350 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8351 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8352 | 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] | 8353 | if test "${acl_cv_rpath+set}" = set; then |
| 8354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8355 | else |
| 8356 | |
| 8357 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8358 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8359 | . ./conftest.sh |
| 8360 | rm -f ./conftest.sh |
| 8361 | acl_cv_rpath=done |
| 8362 | |
| 8363 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8364 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8365 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8366 | wl="$acl_cv_wl" |
| 8367 | libext="$acl_cv_libext" |
| 8368 | shlibext="$acl_cv_shlibext" |
| 8369 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8370 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8371 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8372 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8373 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8374 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8375 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8376 | else |
| 8377 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8378 | fi |
| 8379 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8387 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8389 | acl_save_prefix="$prefix" |
| 8390 | prefix="$acl_final_prefix" |
| 8391 | acl_save_exec_prefix="$exec_prefix" |
| 8392 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8393 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8394 | eval additional_includedir=\"$includedir\" |
| 8395 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8396 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8397 | exec_prefix="$acl_save_exec_prefix" |
| 8398 | prefix="$acl_save_prefix" |
| 8399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8401 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8402 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8403 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8404 | if test "X$withval" = "Xno"; then |
| 8405 | use_additional=no |
| 8406 | else |
| 8407 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8408 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8409 | acl_save_prefix="$prefix" |
| 8410 | prefix="$acl_final_prefix" |
| 8411 | acl_save_exec_prefix="$exec_prefix" |
| 8412 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8413 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8414 | eval additional_includedir=\"$includedir\" |
| 8415 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8416 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8417 | exec_prefix="$acl_save_exec_prefix" |
| 8418 | prefix="$acl_save_prefix" |
| 8419 | |
| 8420 | else |
| 8421 | additional_includedir="$withval/include" |
| 8422 | additional_libdir="$withval/lib" |
| 8423 | fi |
| 8424 | fi |
| 8425 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8426 | fi |
| 8427 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8428 | LIBICONV= |
| 8429 | LTLIBICONV= |
| 8430 | INCICONV= |
| 8431 | rpathdirs= |
| 8432 | ltrpathdirs= |
| 8433 | names_already_handled= |
| 8434 | names_next_round='iconv ' |
| 8435 | while test -n "$names_next_round"; do |
| 8436 | names_this_round="$names_next_round" |
| 8437 | names_next_round= |
| 8438 | for name in $names_this_round; do |
| 8439 | already_handled= |
| 8440 | for n in $names_already_handled; do |
| 8441 | if test "$n" = "$name"; then |
| 8442 | already_handled=yes |
| 8443 | break |
| 8444 | fi |
| 8445 | done |
| 8446 | if test -z "$already_handled"; then |
| 8447 | names_already_handled="$names_already_handled $name" |
| 8448 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8449 | eval value=\"\$HAVE_LIB$uppername\" |
| 8450 | if test -n "$value"; then |
| 8451 | if test "$value" = yes; then |
| 8452 | eval value=\"\$LIB$uppername\" |
| 8453 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8454 | eval value=\"\$LTLIB$uppername\" |
| 8455 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8456 | else |
| 8457 | : |
| 8458 | fi |
| 8459 | else |
| 8460 | found_dir= |
| 8461 | found_la= |
| 8462 | found_so= |
| 8463 | found_a= |
| 8464 | if test $use_additional = yes; then |
| 8465 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8466 | found_dir="$additional_libdir" |
| 8467 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8468 | if test -f "$additional_libdir/lib$name.la"; then |
| 8469 | found_la="$additional_libdir/lib$name.la" |
| 8470 | fi |
| 8471 | else |
| 8472 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8473 | found_dir="$additional_libdir" |
| 8474 | found_a="$additional_libdir/lib$name.$libext" |
| 8475 | if test -f "$additional_libdir/lib$name.la"; then |
| 8476 | found_la="$additional_libdir/lib$name.la" |
| 8477 | fi |
| 8478 | fi |
| 8479 | fi |
| 8480 | fi |
| 8481 | if test "X$found_dir" = "X"; then |
| 8482 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8483 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8484 | acl_save_prefix="$prefix" |
| 8485 | prefix="$acl_final_prefix" |
| 8486 | acl_save_exec_prefix="$exec_prefix" |
| 8487 | exec_prefix="$acl_final_exec_prefix" |
| 8488 | eval x=\"$x\" |
| 8489 | exec_prefix="$acl_save_exec_prefix" |
| 8490 | prefix="$acl_save_prefix" |
| 8491 | |
| 8492 | case "$x" in |
| 8493 | -L*) |
| 8494 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8495 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8496 | found_dir="$dir" |
| 8497 | found_so="$dir/lib$name.$shlibext" |
| 8498 | if test -f "$dir/lib$name.la"; then |
| 8499 | found_la="$dir/lib$name.la" |
| 8500 | fi |
| 8501 | else |
| 8502 | if test -f "$dir/lib$name.$libext"; then |
| 8503 | found_dir="$dir" |
| 8504 | found_a="$dir/lib$name.$libext" |
| 8505 | if test -f "$dir/lib$name.la"; then |
| 8506 | found_la="$dir/lib$name.la" |
| 8507 | fi |
| 8508 | fi |
| 8509 | fi |
| 8510 | ;; |
| 8511 | esac |
| 8512 | if test "X$found_dir" != "X"; then |
| 8513 | break |
| 8514 | fi |
| 8515 | done |
| 8516 | fi |
| 8517 | if test "X$found_dir" != "X"; then |
| 8518 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8519 | if test "X$found_so" != "X"; then |
| 8520 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8521 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8522 | else |
| 8523 | haveit= |
| 8524 | for x in $ltrpathdirs; do |
| 8525 | if test "X$x" = "X$found_dir"; then |
| 8526 | haveit=yes |
| 8527 | break |
| 8528 | fi |
| 8529 | done |
| 8530 | if test -z "$haveit"; then |
| 8531 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8532 | fi |
| 8533 | if test "$hardcode_direct" = yes; then |
| 8534 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8535 | else |
| 8536 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8537 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8538 | haveit= |
| 8539 | for x in $rpathdirs; do |
| 8540 | if test "X$x" = "X$found_dir"; then |
| 8541 | haveit=yes |
| 8542 | break |
| 8543 | fi |
| 8544 | done |
| 8545 | if test -z "$haveit"; then |
| 8546 | rpathdirs="$rpathdirs $found_dir" |
| 8547 | fi |
| 8548 | else |
| 8549 | haveit= |
| 8550 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8551 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8552 | acl_save_prefix="$prefix" |
| 8553 | prefix="$acl_final_prefix" |
| 8554 | acl_save_exec_prefix="$exec_prefix" |
| 8555 | exec_prefix="$acl_final_exec_prefix" |
| 8556 | eval x=\"$x\" |
| 8557 | exec_prefix="$acl_save_exec_prefix" |
| 8558 | prefix="$acl_save_prefix" |
| 8559 | |
| 8560 | if test "X$x" = "X-L$found_dir"; then |
| 8561 | haveit=yes |
| 8562 | break |
| 8563 | fi |
| 8564 | done |
| 8565 | if test -z "$haveit"; then |
| 8566 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8567 | fi |
| 8568 | if test "$hardcode_minus_L" != no; then |
| 8569 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8570 | else |
| 8571 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8572 | fi |
| 8573 | fi |
| 8574 | fi |
| 8575 | fi |
| 8576 | else |
| 8577 | if test "X$found_a" != "X"; then |
| 8578 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8579 | else |
| 8580 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8581 | fi |
| 8582 | fi |
| 8583 | additional_includedir= |
| 8584 | case "$found_dir" in |
| 8585 | */lib | */lib/) |
| 8586 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8587 | additional_includedir="$basedir/include" |
| 8588 | ;; |
| 8589 | esac |
| 8590 | if test "X$additional_includedir" != "X"; then |
| 8591 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8592 | haveit= |
| 8593 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8594 | if test -n "$GCC"; then |
| 8595 | case $host_os in |
| 8596 | linux*) haveit=yes;; |
| 8597 | esac |
| 8598 | fi |
| 8599 | fi |
| 8600 | if test -z "$haveit"; then |
| 8601 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8602 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8603 | acl_save_prefix="$prefix" |
| 8604 | prefix="$acl_final_prefix" |
| 8605 | acl_save_exec_prefix="$exec_prefix" |
| 8606 | exec_prefix="$acl_final_exec_prefix" |
| 8607 | eval x=\"$x\" |
| 8608 | exec_prefix="$acl_save_exec_prefix" |
| 8609 | prefix="$acl_save_prefix" |
| 8610 | |
| 8611 | if test "X$x" = "X-I$additional_includedir"; then |
| 8612 | haveit=yes |
| 8613 | break |
| 8614 | fi |
| 8615 | done |
| 8616 | if test -z "$haveit"; then |
| 8617 | if test -d "$additional_includedir"; then |
| 8618 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8619 | fi |
| 8620 | fi |
| 8621 | fi |
| 8622 | fi |
| 8623 | fi |
| 8624 | if test -n "$found_la"; then |
| 8625 | save_libdir="$libdir" |
| 8626 | case "$found_la" in |
| 8627 | */* | *\\*) . "$found_la" ;; |
| 8628 | *) . "./$found_la" ;; |
| 8629 | esac |
| 8630 | libdir="$save_libdir" |
| 8631 | for dep in $dependency_libs; do |
| 8632 | case "$dep" in |
| 8633 | -L*) |
| 8634 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8635 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8636 | haveit= |
| 8637 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8638 | if test -n "$GCC"; then |
| 8639 | case $host_os in |
| 8640 | linux*) haveit=yes;; |
| 8641 | esac |
| 8642 | fi |
| 8643 | fi |
| 8644 | if test -z "$haveit"; then |
| 8645 | haveit= |
| 8646 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8647 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8648 | acl_save_prefix="$prefix" |
| 8649 | prefix="$acl_final_prefix" |
| 8650 | acl_save_exec_prefix="$exec_prefix" |
| 8651 | exec_prefix="$acl_final_exec_prefix" |
| 8652 | eval x=\"$x\" |
| 8653 | exec_prefix="$acl_save_exec_prefix" |
| 8654 | prefix="$acl_save_prefix" |
| 8655 | |
| 8656 | if test "X$x" = "X-L$additional_libdir"; then |
| 8657 | haveit=yes |
| 8658 | break |
| 8659 | fi |
| 8660 | done |
| 8661 | if test -z "$haveit"; then |
| 8662 | if test -d "$additional_libdir"; then |
| 8663 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8664 | fi |
| 8665 | fi |
| 8666 | haveit= |
| 8667 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8669 | acl_save_prefix="$prefix" |
| 8670 | prefix="$acl_final_prefix" |
| 8671 | acl_save_exec_prefix="$exec_prefix" |
| 8672 | exec_prefix="$acl_final_exec_prefix" |
| 8673 | eval x=\"$x\" |
| 8674 | exec_prefix="$acl_save_exec_prefix" |
| 8675 | prefix="$acl_save_prefix" |
| 8676 | |
| 8677 | if test "X$x" = "X-L$additional_libdir"; then |
| 8678 | haveit=yes |
| 8679 | break |
| 8680 | fi |
| 8681 | done |
| 8682 | if test -z "$haveit"; then |
| 8683 | if test -d "$additional_libdir"; then |
| 8684 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8685 | fi |
| 8686 | fi |
| 8687 | fi |
| 8688 | fi |
| 8689 | ;; |
| 8690 | -R*) |
| 8691 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8692 | if test "$enable_rpath" != no; then |
| 8693 | haveit= |
| 8694 | for x in $rpathdirs; do |
| 8695 | if test "X$x" = "X$dir"; then |
| 8696 | haveit=yes |
| 8697 | break |
| 8698 | fi |
| 8699 | done |
| 8700 | if test -z "$haveit"; then |
| 8701 | rpathdirs="$rpathdirs $dir" |
| 8702 | fi |
| 8703 | haveit= |
| 8704 | for x in $ltrpathdirs; do |
| 8705 | if test "X$x" = "X$dir"; then |
| 8706 | haveit=yes |
| 8707 | break |
| 8708 | fi |
| 8709 | done |
| 8710 | if test -z "$haveit"; then |
| 8711 | ltrpathdirs="$ltrpathdirs $dir" |
| 8712 | fi |
| 8713 | fi |
| 8714 | ;; |
| 8715 | -l*) |
| 8716 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8717 | ;; |
| 8718 | *.la) |
| 8719 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8720 | ;; |
| 8721 | *) |
| 8722 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8723 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8724 | ;; |
| 8725 | esac |
| 8726 | done |
| 8727 | fi |
| 8728 | else |
| 8729 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8730 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8731 | fi |
| 8732 | fi |
| 8733 | fi |
| 8734 | done |
| 8735 | done |
| 8736 | if test "X$rpathdirs" != "X"; then |
| 8737 | if test -n "$hardcode_libdir_separator"; then |
| 8738 | alldirs= |
| 8739 | for found_dir in $rpathdirs; do |
| 8740 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8741 | done |
| 8742 | acl_save_libdir="$libdir" |
| 8743 | libdir="$alldirs" |
| 8744 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8745 | libdir="$acl_save_libdir" |
| 8746 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8747 | else |
| 8748 | for found_dir in $rpathdirs; do |
| 8749 | acl_save_libdir="$libdir" |
| 8750 | libdir="$found_dir" |
| 8751 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8752 | libdir="$acl_save_libdir" |
| 8753 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8754 | done |
| 8755 | fi |
| 8756 | fi |
| 8757 | if test "X$ltrpathdirs" != "X"; then |
| 8758 | for found_dir in $ltrpathdirs; do |
| 8759 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8760 | done |
| 8761 | fi |
| 8762 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8763 | |
| 8764 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8766 | |
| 8767 | |
| 8768 | |
| 8769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8770 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8771 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8772 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8774 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8775 | cat >conftest.$ac_ext <<_ACEOF |
| 8776 | /* confdefs.h. */ |
| 8777 | _ACEOF |
| 8778 | cat confdefs.h >>conftest.$ac_ext |
| 8779 | cat >>conftest.$ac_ext <<_ACEOF |
| 8780 | /* end confdefs.h. */ |
| 8781 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8782 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8783 | int |
| 8784 | main () |
| 8785 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8786 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8787 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8788 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8789 | return 0; |
| 8790 | ; |
| 8791 | return 0; |
| 8792 | } |
| 8793 | _ACEOF |
| 8794 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8795 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8802 | ac_status=$? |
| 8803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8804 | rm -f conftest.er1 |
| 8805 | cat conftest.err >&5 |
| 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8807 | (exit $ac_status); } && { |
| 8808 | test -z "$ac_c_werror_flag" || |
| 8809 | test ! -s conftest.err |
| 8810 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8811 | ac_cv_type_ptrdiff_t=yes |
| 8812 | else |
| 8813 | echo "$as_me: failed program was:" >&5 |
| 8814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8816 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8818 | |
| 8819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8821 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8822 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8823 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8824 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8825 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8826 | |
| 8827 | cat >>confdefs.h <<\_ACEOF |
| 8828 | #define ptrdiff_t long |
| 8829 | _ACEOF |
| 8830 | |
| 8831 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8832 | fi |
| 8833 | |
| 8834 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8835 | |
| 8836 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8837 | |
| 8838 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8839 | |
| 8840 | |
| 8841 | |
| 8842 | |
| 8843 | |
| 8844 | 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] | 8845 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8846 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8847 | 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] | 8848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8849 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8850 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8851 | 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] | 8852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8853 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8856 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8857 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8858 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8859 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8860 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8861 | cat >conftest.$ac_ext <<_ACEOF |
| 8862 | /* confdefs.h. */ |
| 8863 | _ACEOF |
| 8864 | cat confdefs.h >>conftest.$ac_ext |
| 8865 | cat >>conftest.$ac_ext <<_ACEOF |
| 8866 | /* end confdefs.h. */ |
| 8867 | $ac_includes_default |
| 8868 | #include <$ac_header> |
| 8869 | _ACEOF |
| 8870 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8871 | if { (ac_try="$ac_compile" |
| 8872 | case "(($ac_try" in |
| 8873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8874 | *) ac_try_echo=$ac_try;; |
| 8875 | esac |
| 8876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8877 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8878 | ac_status=$? |
| 8879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8880 | rm -f conftest.er1 |
| 8881 | cat conftest.err >&5 |
| 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8883 | (exit $ac_status); } && { |
| 8884 | test -z "$ac_c_werror_flag" || |
| 8885 | test ! -s conftest.err |
| 8886 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8887 | ac_header_compiler=yes |
| 8888 | else |
| 8889 | echo "$as_me: failed program was:" >&5 |
| 8890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8892 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8893 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8894 | |
| 8895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8896 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8897 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8898 | |
| 8899 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8900 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8901 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8902 | cat >conftest.$ac_ext <<_ACEOF |
| 8903 | /* confdefs.h. */ |
| 8904 | _ACEOF |
| 8905 | cat confdefs.h >>conftest.$ac_ext |
| 8906 | cat >>conftest.$ac_ext <<_ACEOF |
| 8907 | /* end confdefs.h. */ |
| 8908 | #include <$ac_header> |
| 8909 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8910 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8911 | case "(($ac_try" in |
| 8912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8913 | *) ac_try_echo=$ac_try;; |
| 8914 | esac |
| 8915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8916 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8917 | ac_status=$? |
| 8918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8919 | rm -f conftest.er1 |
| 8920 | cat conftest.err >&5 |
| 8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8922 | (exit $ac_status); } >/dev/null && { |
| 8923 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8924 | test ! -s conftest.err |
| 8925 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8926 | ac_header_preproc=yes |
| 8927 | else |
| 8928 | echo "$as_me: failed program was:" >&5 |
| 8929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8930 | |
| 8931 | ac_header_preproc=no |
| 8932 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8934 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8935 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8936 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8937 | |
| 8938 | # So? What about this header? |
| 8939 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8940 | yes:no: ) |
| 8941 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8942 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8943 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8944 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8945 | ac_header_preproc=yes |
| 8946 | ;; |
| 8947 | no:yes:* ) |
| 8948 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8949 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8950 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8951 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8952 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8953 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8954 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8955 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8957 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8958 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8959 | 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] | 8960 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8961 | ;; |
| 8962 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8963 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8965 | 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] | 8966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8967 | else |
| 8968 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8969 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8970 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8971 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8972 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8973 | |
| 8974 | fi |
| 8975 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8976 | cat >>confdefs.h <<_ACEOF |
| 8977 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8978 | _ACEOF |
| 8979 | |
| 8980 | fi |
| 8981 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8982 | done |
| 8983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8984 | |
| 8985 | |
| 8986 | |
| 8987 | |
| 8988 | |
| 8989 | |
| 8990 | |
| 8991 | |
| 8992 | |
| 8993 | |
| 8994 | |
| 8995 | |
| 8996 | |
| 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | |
| 9007 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9008 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9009 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9010 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9011 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9012 | 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] | 9013 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9015 | 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] | 9016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9018 | cat >conftest.$ac_ext <<_ACEOF |
| 9019 | /* confdefs.h. */ |
| 9020 | _ACEOF |
| 9021 | cat confdefs.h >>conftest.$ac_ext |
| 9022 | cat >>conftest.$ac_ext <<_ACEOF |
| 9023 | /* end confdefs.h. */ |
| 9024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9026 | #define $ac_func innocuous_$ac_func |
| 9027 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9028 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9029 | which can conflict with char $ac_func (); below. |
| 9030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9031 | <limits.h> exists even on freestanding compilers. */ |
| 9032 | |
| 9033 | #ifdef __STDC__ |
| 9034 | # include <limits.h> |
| 9035 | #else |
| 9036 | # include <assert.h> |
| 9037 | #endif |
| 9038 | |
| 9039 | #undef $ac_func |
| 9040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9041 | /* Override any GCC internal prototype to avoid an error. |
| 9042 | Use char because int might match the return type of a GCC |
| 9043 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9044 | #ifdef __cplusplus |
| 9045 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9046 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9047 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9048 | /* The GNU C library defines this for functions which it implements |
| 9049 | to always fail with ENOSYS. Some functions are actually named |
| 9050 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9051 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9052 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9053 | #endif |
| 9054 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | int |
| 9056 | main () |
| 9057 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9058 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9059 | ; |
| 9060 | return 0; |
| 9061 | } |
| 9062 | _ACEOF |
| 9063 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9064 | if { (ac_try="$ac_link" |
| 9065 | case "(($ac_try" in |
| 9066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9067 | *) ac_try_echo=$ac_try;; |
| 9068 | esac |
| 9069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9070 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9071 | ac_status=$? |
| 9072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9073 | rm -f conftest.er1 |
| 9074 | cat conftest.err >&5 |
| 9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9076 | (exit $ac_status); } && { |
| 9077 | test -z "$ac_c_werror_flag" || |
| 9078 | test ! -s conftest.err |
| 9079 | } && test -s conftest$ac_exeext && |
| 9080 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9081 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9082 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9083 | echo "$as_me: failed program was:" >&5 |
| 9084 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9086 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9088 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9090 | conftest$ac_exeext conftest.$ac_ext |
| 9091 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9092 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9093 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9094 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9096 | cat >>confdefs.h <<_ACEOF |
| 9097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9098 | _ACEOF |
| 9099 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9100 | fi |
| 9101 | done |
| 9102 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9103 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9105 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9106 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9107 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9109 | else |
| 9110 | cat >conftest.$ac_ext <<_ACEOF |
| 9111 | /* confdefs.h. */ |
| 9112 | _ACEOF |
| 9113 | cat confdefs.h >>conftest.$ac_ext |
| 9114 | cat >>conftest.$ac_ext <<_ACEOF |
| 9115 | /* end confdefs.h. */ |
| 9116 | #include <stdio.h> |
| 9117 | int |
| 9118 | main () |
| 9119 | { |
| 9120 | |
| 9121 | #ifndef _snprintf |
| 9122 | char *p = (char *) _snprintf; |
| 9123 | #endif |
| 9124 | |
| 9125 | ; |
| 9126 | return 0; |
| 9127 | } |
| 9128 | _ACEOF |
| 9129 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9130 | if { (ac_try="$ac_compile" |
| 9131 | case "(($ac_try" in |
| 9132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9133 | *) ac_try_echo=$ac_try;; |
| 9134 | esac |
| 9135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9136 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9137 | ac_status=$? |
| 9138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9139 | rm -f conftest.er1 |
| 9140 | cat conftest.err >&5 |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9142 | (exit $ac_status); } && { |
| 9143 | test -z "$ac_c_werror_flag" || |
| 9144 | test ! -s conftest.err |
| 9145 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9146 | ac_cv_have_decl__snprintf=yes |
| 9147 | else |
| 9148 | echo "$as_me: failed program was:" >&5 |
| 9149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9151 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9153 | |
| 9154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9155 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9156 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9157 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9158 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9159 | gt_value=1 |
| 9160 | else |
| 9161 | gt_value=0 |
| 9162 | fi |
| 9163 | |
| 9164 | cat >>confdefs.h <<_ACEOF |
| 9165 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9166 | _ACEOF |
| 9167 | |
| 9168 | |
| 9169 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9170 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9171 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9172 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9174 | else |
| 9175 | cat >conftest.$ac_ext <<_ACEOF |
| 9176 | /* confdefs.h. */ |
| 9177 | _ACEOF |
| 9178 | cat confdefs.h >>conftest.$ac_ext |
| 9179 | cat >>conftest.$ac_ext <<_ACEOF |
| 9180 | /* end confdefs.h. */ |
| 9181 | #include <stdio.h> |
| 9182 | int |
| 9183 | main () |
| 9184 | { |
| 9185 | |
| 9186 | #ifndef _snwprintf |
| 9187 | char *p = (char *) _snwprintf; |
| 9188 | #endif |
| 9189 | |
| 9190 | ; |
| 9191 | return 0; |
| 9192 | } |
| 9193 | _ACEOF |
| 9194 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9195 | if { (ac_try="$ac_compile" |
| 9196 | case "(($ac_try" in |
| 9197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9198 | *) ac_try_echo=$ac_try;; |
| 9199 | esac |
| 9200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9201 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9202 | ac_status=$? |
| 9203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9204 | rm -f conftest.er1 |
| 9205 | cat conftest.err >&5 |
| 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9207 | (exit $ac_status); } && { |
| 9208 | test -z "$ac_c_werror_flag" || |
| 9209 | test ! -s conftest.err |
| 9210 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9211 | ac_cv_have_decl__snwprintf=yes |
| 9212 | else |
| 9213 | echo "$as_me: failed program was:" >&5 |
| 9214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9215 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9216 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9217 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9218 | |
| 9219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9220 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9221 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9222 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9223 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9224 | gt_value=1 |
| 9225 | else |
| 9226 | gt_value=0 |
| 9227 | fi |
| 9228 | |
| 9229 | cat >>confdefs.h <<_ACEOF |
| 9230 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9231 | _ACEOF |
| 9232 | |
| 9233 | |
| 9234 | |
| 9235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9237 | 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] | 9238 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9240 | else |
| 9241 | cat >conftest.$ac_ext <<_ACEOF |
| 9242 | /* confdefs.h. */ |
| 9243 | _ACEOF |
| 9244 | cat confdefs.h >>conftest.$ac_ext |
| 9245 | cat >>conftest.$ac_ext <<_ACEOF |
| 9246 | /* end confdefs.h. */ |
| 9247 | #include <stdio.h> |
| 9248 | int |
| 9249 | main () |
| 9250 | { |
| 9251 | |
| 9252 | #ifndef feof_unlocked |
| 9253 | char *p = (char *) feof_unlocked; |
| 9254 | #endif |
| 9255 | |
| 9256 | ; |
| 9257 | return 0; |
| 9258 | } |
| 9259 | _ACEOF |
| 9260 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9261 | if { (ac_try="$ac_compile" |
| 9262 | case "(($ac_try" in |
| 9263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9264 | *) ac_try_echo=$ac_try;; |
| 9265 | esac |
| 9266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9267 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9268 | ac_status=$? |
| 9269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9270 | rm -f conftest.er1 |
| 9271 | cat conftest.err >&5 |
| 9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9273 | (exit $ac_status); } && { |
| 9274 | test -z "$ac_c_werror_flag" || |
| 9275 | test ! -s conftest.err |
| 9276 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9277 | ac_cv_have_decl_feof_unlocked=yes |
| 9278 | else |
| 9279 | echo "$as_me: failed program was:" >&5 |
| 9280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9282 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9283 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9284 | |
| 9285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9286 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9287 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9288 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9289 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9290 | gt_value=1 |
| 9291 | else |
| 9292 | gt_value=0 |
| 9293 | fi |
| 9294 | |
| 9295 | cat >>confdefs.h <<_ACEOF |
| 9296 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9297 | _ACEOF |
| 9298 | |
| 9299 | |
| 9300 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9301 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9302 | 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] | 9303 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9305 | else |
| 9306 | cat >conftest.$ac_ext <<_ACEOF |
| 9307 | /* confdefs.h. */ |
| 9308 | _ACEOF |
| 9309 | cat confdefs.h >>conftest.$ac_ext |
| 9310 | cat >>conftest.$ac_ext <<_ACEOF |
| 9311 | /* end confdefs.h. */ |
| 9312 | #include <stdio.h> |
| 9313 | int |
| 9314 | main () |
| 9315 | { |
| 9316 | |
| 9317 | #ifndef fgets_unlocked |
| 9318 | char *p = (char *) fgets_unlocked; |
| 9319 | #endif |
| 9320 | |
| 9321 | ; |
| 9322 | return 0; |
| 9323 | } |
| 9324 | _ACEOF |
| 9325 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9326 | if { (ac_try="$ac_compile" |
| 9327 | case "(($ac_try" in |
| 9328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9329 | *) ac_try_echo=$ac_try;; |
| 9330 | esac |
| 9331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9332 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | ac_status=$? |
| 9334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9335 | rm -f conftest.er1 |
| 9336 | cat conftest.err >&5 |
| 9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9338 | (exit $ac_status); } && { |
| 9339 | test -z "$ac_c_werror_flag" || |
| 9340 | test ! -s conftest.err |
| 9341 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9342 | ac_cv_have_decl_fgets_unlocked=yes |
| 9343 | else |
| 9344 | echo "$as_me: failed program was:" >&5 |
| 9345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9346 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9347 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9349 | |
| 9350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9351 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9352 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9353 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9354 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9355 | gt_value=1 |
| 9356 | else |
| 9357 | gt_value=0 |
| 9358 | fi |
| 9359 | |
| 9360 | cat >>confdefs.h <<_ACEOF |
| 9361 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9362 | _ACEOF |
| 9363 | |
| 9364 | |
| 9365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9366 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9367 | 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] | 9368 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9370 | else |
| 9371 | cat >conftest.$ac_ext <<_ACEOF |
| 9372 | /* confdefs.h. */ |
| 9373 | _ACEOF |
| 9374 | cat confdefs.h >>conftest.$ac_ext |
| 9375 | cat >>conftest.$ac_ext <<_ACEOF |
| 9376 | /* end confdefs.h. */ |
| 9377 | #include <stdio.h> |
| 9378 | int |
| 9379 | main () |
| 9380 | { |
| 9381 | |
| 9382 | #ifndef getc_unlocked |
| 9383 | char *p = (char *) getc_unlocked; |
| 9384 | #endif |
| 9385 | |
| 9386 | ; |
| 9387 | return 0; |
| 9388 | } |
| 9389 | _ACEOF |
| 9390 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9391 | if { (ac_try="$ac_compile" |
| 9392 | case "(($ac_try" in |
| 9393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9394 | *) ac_try_echo=$ac_try;; |
| 9395 | esac |
| 9396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9397 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9398 | ac_status=$? |
| 9399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9400 | rm -f conftest.er1 |
| 9401 | cat conftest.err >&5 |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9403 | (exit $ac_status); } && { |
| 9404 | test -z "$ac_c_werror_flag" || |
| 9405 | test ! -s conftest.err |
| 9406 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9407 | ac_cv_have_decl_getc_unlocked=yes |
| 9408 | else |
| 9409 | echo "$as_me: failed program was:" >&5 |
| 9410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9412 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9413 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9414 | |
| 9415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9416 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9417 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9418 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9419 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9420 | gt_value=1 |
| 9421 | else |
| 9422 | gt_value=0 |
| 9423 | fi |
| 9424 | |
| 9425 | cat >>confdefs.h <<_ACEOF |
| 9426 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9427 | _ACEOF |
| 9428 | |
| 9429 | |
| 9430 | |
| 9431 | case $gt_cv_func_printf_posix in |
| 9432 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9433 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9434 | esac |
| 9435 | |
| 9436 | if test "$ac_cv_func_asprintf" = yes; then |
| 9437 | HAVE_ASPRINTF=1 |
| 9438 | else |
| 9439 | HAVE_ASPRINTF=0 |
| 9440 | fi |
| 9441 | |
| 9442 | if test "$ac_cv_func_snprintf" = yes; then |
| 9443 | HAVE_SNPRINTF=1 |
| 9444 | else |
| 9445 | HAVE_SNPRINTF=0 |
| 9446 | fi |
| 9447 | |
| 9448 | if test "$ac_cv_func_wprintf" = yes; then |
| 9449 | HAVE_WPRINTF=1 |
| 9450 | else |
| 9451 | HAVE_WPRINTF=0 |
| 9452 | fi |
| 9453 | |
| 9454 | |
| 9455 | |
| 9456 | |
| 9457 | |
| 9458 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9459 | |
| 9460 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9461 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9462 | for element in $INCICONV; do |
| 9463 | haveit= |
| 9464 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9466 | acl_save_prefix="$prefix" |
| 9467 | prefix="$acl_final_prefix" |
| 9468 | acl_save_exec_prefix="$exec_prefix" |
| 9469 | exec_prefix="$acl_final_exec_prefix" |
| 9470 | eval x=\"$x\" |
| 9471 | exec_prefix="$acl_save_exec_prefix" |
| 9472 | prefix="$acl_save_prefix" |
| 9473 | |
| 9474 | if test "X$x" = "X$element"; then |
| 9475 | haveit=yes |
| 9476 | break |
| 9477 | fi |
| 9478 | done |
| 9479 | if test -z "$haveit"; then |
| 9480 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9481 | fi |
| 9482 | done |
| 9483 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9485 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9486 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9487 | if test "${am_cv_func_iconv+set}" = set; then |
| 9488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9489 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9490 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9491 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9492 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9493 | cat >conftest.$ac_ext <<_ACEOF |
| 9494 | /* confdefs.h. */ |
| 9495 | _ACEOF |
| 9496 | cat confdefs.h >>conftest.$ac_ext |
| 9497 | cat >>conftest.$ac_ext <<_ACEOF |
| 9498 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9499 | #include <stdlib.h> |
| 9500 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9501 | int |
| 9502 | main () |
| 9503 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9504 | iconv_t cd = iconv_open("",""); |
| 9505 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9506 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9507 | ; |
| 9508 | return 0; |
| 9509 | } |
| 9510 | _ACEOF |
| 9511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9512 | if { (ac_try="$ac_link" |
| 9513 | case "(($ac_try" in |
| 9514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9515 | *) ac_try_echo=$ac_try;; |
| 9516 | esac |
| 9517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9518 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9519 | ac_status=$? |
| 9520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9521 | rm -f conftest.er1 |
| 9522 | cat conftest.err >&5 |
| 9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9524 | (exit $ac_status); } && { |
| 9525 | test -z "$ac_c_werror_flag" || |
| 9526 | test ! -s conftest.err |
| 9527 | } && test -s conftest$ac_exeext && |
| 9528 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9529 | am_cv_func_iconv=yes |
| 9530 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9531 | echo "$as_me: failed program was:" >&5 |
| 9532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9534 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9536 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9537 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9538 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9539 | if test "$am_cv_func_iconv" != yes; then |
| 9540 | am_save_LIBS="$LIBS" |
| 9541 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9542 | cat >conftest.$ac_ext <<_ACEOF |
| 9543 | /* confdefs.h. */ |
| 9544 | _ACEOF |
| 9545 | cat confdefs.h >>conftest.$ac_ext |
| 9546 | cat >>conftest.$ac_ext <<_ACEOF |
| 9547 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9548 | #include <stdlib.h> |
| 9549 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9550 | int |
| 9551 | main () |
| 9552 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9553 | iconv_t cd = iconv_open("",""); |
| 9554 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9555 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9556 | ; |
| 9557 | return 0; |
| 9558 | } |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9561 | if { (ac_try="$ac_link" |
| 9562 | case "(($ac_try" in |
| 9563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9564 | *) ac_try_echo=$ac_try;; |
| 9565 | esac |
| 9566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9567 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9568 | ac_status=$? |
| 9569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9570 | rm -f conftest.er1 |
| 9571 | cat conftest.err >&5 |
| 9572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9573 | (exit $ac_status); } && { |
| 9574 | test -z "$ac_c_werror_flag" || |
| 9575 | test ! -s conftest.err |
| 9576 | } && test -s conftest$ac_exeext && |
| 9577 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9578 | am_cv_lib_iconv=yes |
| 9579 | am_cv_func_iconv=yes |
| 9580 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9581 | echo "$as_me: failed program was:" >&5 |
| 9582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9584 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9586 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9587 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9588 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9589 | LIBS="$am_save_LIBS" |
| 9590 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9593 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9594 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9595 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9596 | |
| 9597 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9598 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9599 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9600 | |
| 9601 | fi |
| 9602 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9603 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9604 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9605 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9606 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9607 | else |
| 9608 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9609 | LIBICONV= |
| 9610 | LTLIBICONV= |
| 9611 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9612 | |
| 9613 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9614 | |
| 9615 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9616 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9617 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9620 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9621 | |
| 9622 | cat >conftest.$ac_ext <<_ACEOF |
| 9623 | /* confdefs.h. */ |
| 9624 | _ACEOF |
| 9625 | cat confdefs.h >>conftest.$ac_ext |
| 9626 | cat >>conftest.$ac_ext <<_ACEOF |
| 9627 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9628 | |
| 9629 | #include <stdlib.h> |
| 9630 | #include <iconv.h> |
| 9631 | extern |
| 9632 | #ifdef __cplusplus |
| 9633 | "C" |
| 9634 | #endif |
| 9635 | #if defined(__STDC__) || defined(__cplusplus) |
| 9636 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9637 | #else |
| 9638 | size_t iconv(); |
| 9639 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9641 | int |
| 9642 | main () |
| 9643 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9644 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9645 | ; |
| 9646 | return 0; |
| 9647 | } |
| 9648 | _ACEOF |
| 9649 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9650 | if { (ac_try="$ac_compile" |
| 9651 | case "(($ac_try" in |
| 9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9653 | *) ac_try_echo=$ac_try;; |
| 9654 | esac |
| 9655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9656 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9657 | ac_status=$? |
| 9658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9659 | rm -f conftest.er1 |
| 9660 | cat conftest.err >&5 |
| 9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9662 | (exit $ac_status); } && { |
| 9663 | test -z "$ac_c_werror_flag" || |
| 9664 | test ! -s conftest.err |
| 9665 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9666 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9667 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9668 | echo "$as_me: failed program was:" >&5 |
| 9669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9670 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9671 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9672 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9673 | |
| 9674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9675 | 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] | 9676 | fi |
| 9677 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9678 | 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] | 9679 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9680 | }$am_cv_proto_iconv" >&5 |
| 9681 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9682 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9683 | |
| 9684 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9685 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9686 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9687 | |
| 9688 | fi |
| 9689 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9691 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9692 | 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] | 9693 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9695 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9696 | cat >conftest.$ac_ext <<_ACEOF |
| 9697 | /* confdefs.h. */ |
| 9698 | _ACEOF |
| 9699 | cat confdefs.h >>conftest.$ac_ext |
| 9700 | cat >>conftest.$ac_ext <<_ACEOF |
| 9701 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9702 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9703 | int |
| 9704 | main () |
| 9705 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9706 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9707 | ; |
| 9708 | return 0; |
| 9709 | } |
| 9710 | _ACEOF |
| 9711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9712 | if { (ac_try="$ac_link" |
| 9713 | case "(($ac_try" in |
| 9714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9715 | *) ac_try_echo=$ac_try;; |
| 9716 | esac |
| 9717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9718 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9719 | ac_status=$? |
| 9720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9721 | rm -f conftest.er1 |
| 9722 | cat conftest.err >&5 |
| 9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9724 | (exit $ac_status); } && { |
| 9725 | test -z "$ac_c_werror_flag" || |
| 9726 | test ! -s conftest.err |
| 9727 | } && test -s conftest$ac_exeext && |
| 9728 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9729 | am_cv_langinfo_codeset=yes |
| 9730 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9731 | echo "$as_me: failed program was:" >&5 |
| 9732 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9734 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9735 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9736 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9738 | conftest$ac_exeext conftest.$ac_ext |
| 9739 | |
| 9740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9741 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9742 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9743 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9744 | |
| 9745 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9746 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9747 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9748 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9749 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9750 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9751 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9753 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9754 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9757 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9758 | cat >conftest.$ac_ext <<_ACEOF |
| 9759 | /* confdefs.h. */ |
| 9760 | _ACEOF |
| 9761 | cat confdefs.h >>conftest.$ac_ext |
| 9762 | cat >>conftest.$ac_ext <<_ACEOF |
| 9763 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9764 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9765 | int |
| 9766 | main () |
| 9767 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9768 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9769 | ; |
| 9770 | return 0; |
| 9771 | } |
| 9772 | _ACEOF |
| 9773 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9774 | if { (ac_try="$ac_link" |
| 9775 | case "(($ac_try" in |
| 9776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9777 | *) ac_try_echo=$ac_try;; |
| 9778 | esac |
| 9779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9780 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9781 | ac_status=$? |
| 9782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9783 | rm -f conftest.er1 |
| 9784 | cat conftest.err >&5 |
| 9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9786 | (exit $ac_status); } && { |
| 9787 | test -z "$ac_c_werror_flag" || |
| 9788 | test ! -s conftest.err |
| 9789 | } && test -s conftest$ac_exeext && |
| 9790 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9791 | am_cv_val_LC_MESSAGES=yes |
| 9792 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | echo "$as_me: failed program was:" >&5 |
| 9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9796 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9797 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9798 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9800 | conftest$ac_exeext conftest.$ac_ext |
| 9801 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9803 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9804 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9805 | |
| 9806 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9807 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9808 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9809 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9810 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9811 | |
| 9812 | fi |
| 9813 | |
| 9814 | for ac_prog in bison |
| 9815 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9816 | # 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] | 9817 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9818 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9822 | else |
| 9823 | if test -n "$INTLBISON"; then |
| 9824 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9825 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9827 | for as_dir in $PATH |
| 9828 | do |
| 9829 | IFS=$as_save_IFS |
| 9830 | test -z "$as_dir" && as_dir=. |
| 9831 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9833 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9835 | break 2 |
| 9836 | fi |
| 9837 | done |
| 9838 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9839 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9840 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9841 | fi |
| 9842 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9844 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9845 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9846 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9847 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9849 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9850 | fi |
| 9851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9852 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9853 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9854 | done |
| 9855 | |
| 9856 | if test -z "$INTLBISON"; then |
| 9857 | ac_verc_fail=yes |
| 9858 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9859 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9860 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9861 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9862 | case $ac_prog_version in |
| 9863 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9864 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9865 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9866 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9867 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9868 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9869 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9870 | fi |
| 9871 | if test $ac_verc_fail = yes; then |
| 9872 | INTLBISON=: |
| 9873 | fi |
| 9874 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9875 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9876 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9877 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9878 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9879 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9890 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9891 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 9892 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9893 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9894 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9895 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9896 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9897 | fi |
| 9898 | |
| 9899 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9900 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9901 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9902 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9903 | |
| 9904 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9905 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9906 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9908 | LIBINTL= |
| 9909 | LTLIBINTL= |
| 9910 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9911 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9912 | if test "$USE_NLS" = "yes"; then |
| 9913 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9915 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9916 | 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] | 9917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9918 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9919 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9920 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9921 | else |
| 9922 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9923 | fi |
| 9924 | |
| 9925 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9926 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9927 | |
| 9928 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9929 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9930 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9931 | |
| 9932 | |
| 9933 | |
| 9934 | |
| 9935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9936 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9937 | 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] | 9938 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9940 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9941 | cat >conftest.$ac_ext <<_ACEOF |
| 9942 | /* confdefs.h. */ |
| 9943 | _ACEOF |
| 9944 | cat confdefs.h >>conftest.$ac_ext |
| 9945 | cat >>conftest.$ac_ext <<_ACEOF |
| 9946 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9947 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9948 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9949 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9950 | int |
| 9951 | main () |
| 9952 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9953 | bindtextdomain ("", ""); |
| 9954 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9955 | ; |
| 9956 | return 0; |
| 9957 | } |
| 9958 | _ACEOF |
| 9959 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9960 | if { (ac_try="$ac_link" |
| 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_link") 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 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9972 | (exit $ac_status); } && { |
| 9973 | test -z "$ac_c_werror_flag" || |
| 9974 | test ! -s conftest.err |
| 9975 | } && test -s conftest$ac_exeext && |
| 9976 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9977 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9978 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9979 | echo "$as_me: failed program was:" >&5 |
| 9980 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9982 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9983 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9984 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9986 | conftest$ac_exeext conftest.$ac_ext |
| 9987 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9988 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9989 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9990 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9991 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9992 | |
| 9993 | |
| 9994 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9995 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9996 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9997 | acl_save_prefix="$prefix" |
| 9998 | prefix="$acl_final_prefix" |
| 9999 | acl_save_exec_prefix="$exec_prefix" |
| 10000 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10001 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10002 | eval additional_includedir=\"$includedir\" |
| 10003 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10004 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10005 | exec_prefix="$acl_save_exec_prefix" |
| 10006 | prefix="$acl_save_prefix" |
| 10007 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10009 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10010 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10011 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10012 | if test "X$withval" = "Xno"; then |
| 10013 | use_additional=no |
| 10014 | else |
| 10015 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10017 | acl_save_prefix="$prefix" |
| 10018 | prefix="$acl_final_prefix" |
| 10019 | acl_save_exec_prefix="$exec_prefix" |
| 10020 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10021 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10022 | eval additional_includedir=\"$includedir\" |
| 10023 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10025 | exec_prefix="$acl_save_exec_prefix" |
| 10026 | prefix="$acl_save_prefix" |
| 10027 | |
| 10028 | else |
| 10029 | additional_includedir="$withval/include" |
| 10030 | additional_libdir="$withval/lib" |
| 10031 | fi |
| 10032 | fi |
| 10033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10034 | fi |
| 10035 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10036 | LIBINTL= |
| 10037 | LTLIBINTL= |
| 10038 | INCINTL= |
| 10039 | rpathdirs= |
| 10040 | ltrpathdirs= |
| 10041 | names_already_handled= |
| 10042 | names_next_round='intl ' |
| 10043 | while test -n "$names_next_round"; do |
| 10044 | names_this_round="$names_next_round" |
| 10045 | names_next_round= |
| 10046 | for name in $names_this_round; do |
| 10047 | already_handled= |
| 10048 | for n in $names_already_handled; do |
| 10049 | if test "$n" = "$name"; then |
| 10050 | already_handled=yes |
| 10051 | break |
| 10052 | fi |
| 10053 | done |
| 10054 | if test -z "$already_handled"; then |
| 10055 | names_already_handled="$names_already_handled $name" |
| 10056 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10057 | eval value=\"\$HAVE_LIB$uppername\" |
| 10058 | if test -n "$value"; then |
| 10059 | if test "$value" = yes; then |
| 10060 | eval value=\"\$LIB$uppername\" |
| 10061 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10062 | eval value=\"\$LTLIB$uppername\" |
| 10063 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10064 | else |
| 10065 | : |
| 10066 | fi |
| 10067 | else |
| 10068 | found_dir= |
| 10069 | found_la= |
| 10070 | found_so= |
| 10071 | found_a= |
| 10072 | if test $use_additional = yes; then |
| 10073 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10074 | found_dir="$additional_libdir" |
| 10075 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10076 | if test -f "$additional_libdir/lib$name.la"; then |
| 10077 | found_la="$additional_libdir/lib$name.la" |
| 10078 | fi |
| 10079 | else |
| 10080 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10081 | found_dir="$additional_libdir" |
| 10082 | found_a="$additional_libdir/lib$name.$libext" |
| 10083 | if test -f "$additional_libdir/lib$name.la"; then |
| 10084 | found_la="$additional_libdir/lib$name.la" |
| 10085 | fi |
| 10086 | fi |
| 10087 | fi |
| 10088 | fi |
| 10089 | if test "X$found_dir" = "X"; then |
| 10090 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10091 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10092 | acl_save_prefix="$prefix" |
| 10093 | prefix="$acl_final_prefix" |
| 10094 | acl_save_exec_prefix="$exec_prefix" |
| 10095 | exec_prefix="$acl_final_exec_prefix" |
| 10096 | eval x=\"$x\" |
| 10097 | exec_prefix="$acl_save_exec_prefix" |
| 10098 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10099 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10100 | case "$x" in |
| 10101 | -L*) |
| 10102 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10103 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10104 | found_dir="$dir" |
| 10105 | found_so="$dir/lib$name.$shlibext" |
| 10106 | if test -f "$dir/lib$name.la"; then |
| 10107 | found_la="$dir/lib$name.la" |
| 10108 | fi |
| 10109 | else |
| 10110 | if test -f "$dir/lib$name.$libext"; then |
| 10111 | found_dir="$dir" |
| 10112 | found_a="$dir/lib$name.$libext" |
| 10113 | if test -f "$dir/lib$name.la"; then |
| 10114 | found_la="$dir/lib$name.la" |
| 10115 | fi |
| 10116 | fi |
| 10117 | fi |
| 10118 | ;; |
| 10119 | esac |
| 10120 | if test "X$found_dir" != "X"; then |
| 10121 | break |
| 10122 | fi |
| 10123 | done |
| 10124 | fi |
| 10125 | if test "X$found_dir" != "X"; then |
| 10126 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10127 | if test "X$found_so" != "X"; then |
| 10128 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10129 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10130 | else |
| 10131 | haveit= |
| 10132 | for x in $ltrpathdirs; do |
| 10133 | if test "X$x" = "X$found_dir"; then |
| 10134 | haveit=yes |
| 10135 | break |
| 10136 | fi |
| 10137 | done |
| 10138 | if test -z "$haveit"; then |
| 10139 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10140 | fi |
| 10141 | if test "$hardcode_direct" = yes; then |
| 10142 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10143 | else |
| 10144 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10145 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10146 | haveit= |
| 10147 | for x in $rpathdirs; do |
| 10148 | if test "X$x" = "X$found_dir"; then |
| 10149 | haveit=yes |
| 10150 | break |
| 10151 | fi |
| 10152 | done |
| 10153 | if test -z "$haveit"; then |
| 10154 | rpathdirs="$rpathdirs $found_dir" |
| 10155 | fi |
| 10156 | else |
| 10157 | haveit= |
| 10158 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10159 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10160 | acl_save_prefix="$prefix" |
| 10161 | prefix="$acl_final_prefix" |
| 10162 | acl_save_exec_prefix="$exec_prefix" |
| 10163 | exec_prefix="$acl_final_exec_prefix" |
| 10164 | eval x=\"$x\" |
| 10165 | exec_prefix="$acl_save_exec_prefix" |
| 10166 | prefix="$acl_save_prefix" |
| 10167 | |
| 10168 | if test "X$x" = "X-L$found_dir"; then |
| 10169 | haveit=yes |
| 10170 | break |
| 10171 | fi |
| 10172 | done |
| 10173 | if test -z "$haveit"; then |
| 10174 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10175 | fi |
| 10176 | if test "$hardcode_minus_L" != no; then |
| 10177 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10178 | else |
| 10179 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10180 | fi |
| 10181 | fi |
| 10182 | fi |
| 10183 | fi |
| 10184 | else |
| 10185 | if test "X$found_a" != "X"; then |
| 10186 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10187 | else |
| 10188 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10189 | fi |
| 10190 | fi |
| 10191 | additional_includedir= |
| 10192 | case "$found_dir" in |
| 10193 | */lib | */lib/) |
| 10194 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10195 | additional_includedir="$basedir/include" |
| 10196 | ;; |
| 10197 | esac |
| 10198 | if test "X$additional_includedir" != "X"; then |
| 10199 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10200 | haveit= |
| 10201 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10202 | if test -n "$GCC"; then |
| 10203 | case $host_os in |
| 10204 | linux*) haveit=yes;; |
| 10205 | esac |
| 10206 | fi |
| 10207 | fi |
| 10208 | if test -z "$haveit"; then |
| 10209 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10210 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10211 | acl_save_prefix="$prefix" |
| 10212 | prefix="$acl_final_prefix" |
| 10213 | acl_save_exec_prefix="$exec_prefix" |
| 10214 | exec_prefix="$acl_final_exec_prefix" |
| 10215 | eval x=\"$x\" |
| 10216 | exec_prefix="$acl_save_exec_prefix" |
| 10217 | prefix="$acl_save_prefix" |
| 10218 | |
| 10219 | if test "X$x" = "X-I$additional_includedir"; then |
| 10220 | haveit=yes |
| 10221 | break |
| 10222 | fi |
| 10223 | done |
| 10224 | if test -z "$haveit"; then |
| 10225 | if test -d "$additional_includedir"; then |
| 10226 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10227 | fi |
| 10228 | fi |
| 10229 | fi |
| 10230 | fi |
| 10231 | fi |
| 10232 | if test -n "$found_la"; then |
| 10233 | save_libdir="$libdir" |
| 10234 | case "$found_la" in |
| 10235 | */* | *\\*) . "$found_la" ;; |
| 10236 | *) . "./$found_la" ;; |
| 10237 | esac |
| 10238 | libdir="$save_libdir" |
| 10239 | for dep in $dependency_libs; do |
| 10240 | case "$dep" in |
| 10241 | -L*) |
| 10242 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10243 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10244 | haveit= |
| 10245 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10246 | if test -n "$GCC"; then |
| 10247 | case $host_os in |
| 10248 | linux*) haveit=yes;; |
| 10249 | esac |
| 10250 | fi |
| 10251 | fi |
| 10252 | if test -z "$haveit"; then |
| 10253 | haveit= |
| 10254 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10255 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10256 | acl_save_prefix="$prefix" |
| 10257 | prefix="$acl_final_prefix" |
| 10258 | acl_save_exec_prefix="$exec_prefix" |
| 10259 | exec_prefix="$acl_final_exec_prefix" |
| 10260 | eval x=\"$x\" |
| 10261 | exec_prefix="$acl_save_exec_prefix" |
| 10262 | prefix="$acl_save_prefix" |
| 10263 | |
| 10264 | if test "X$x" = "X-L$additional_libdir"; then |
| 10265 | haveit=yes |
| 10266 | break |
| 10267 | fi |
| 10268 | done |
| 10269 | if test -z "$haveit"; then |
| 10270 | if test -d "$additional_libdir"; then |
| 10271 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10272 | fi |
| 10273 | fi |
| 10274 | haveit= |
| 10275 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10276 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10277 | acl_save_prefix="$prefix" |
| 10278 | prefix="$acl_final_prefix" |
| 10279 | acl_save_exec_prefix="$exec_prefix" |
| 10280 | exec_prefix="$acl_final_exec_prefix" |
| 10281 | eval x=\"$x\" |
| 10282 | exec_prefix="$acl_save_exec_prefix" |
| 10283 | prefix="$acl_save_prefix" |
| 10284 | |
| 10285 | if test "X$x" = "X-L$additional_libdir"; then |
| 10286 | haveit=yes |
| 10287 | break |
| 10288 | fi |
| 10289 | done |
| 10290 | if test -z "$haveit"; then |
| 10291 | if test -d "$additional_libdir"; then |
| 10292 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10293 | fi |
| 10294 | fi |
| 10295 | fi |
| 10296 | fi |
| 10297 | ;; |
| 10298 | -R*) |
| 10299 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10300 | if test "$enable_rpath" != no; then |
| 10301 | haveit= |
| 10302 | for x in $rpathdirs; do |
| 10303 | if test "X$x" = "X$dir"; then |
| 10304 | haveit=yes |
| 10305 | break |
| 10306 | fi |
| 10307 | done |
| 10308 | if test -z "$haveit"; then |
| 10309 | rpathdirs="$rpathdirs $dir" |
| 10310 | fi |
| 10311 | haveit= |
| 10312 | for x in $ltrpathdirs; do |
| 10313 | if test "X$x" = "X$dir"; then |
| 10314 | haveit=yes |
| 10315 | break |
| 10316 | fi |
| 10317 | done |
| 10318 | if test -z "$haveit"; then |
| 10319 | ltrpathdirs="$ltrpathdirs $dir" |
| 10320 | fi |
| 10321 | fi |
| 10322 | ;; |
| 10323 | -l*) |
| 10324 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10325 | ;; |
| 10326 | *.la) |
| 10327 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10328 | ;; |
| 10329 | *) |
| 10330 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10331 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10332 | ;; |
| 10333 | esac |
| 10334 | done |
| 10335 | fi |
| 10336 | else |
| 10337 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10338 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10339 | fi |
| 10340 | fi |
| 10341 | fi |
| 10342 | done |
| 10343 | done |
| 10344 | if test "X$rpathdirs" != "X"; then |
| 10345 | if test -n "$hardcode_libdir_separator"; then |
| 10346 | alldirs= |
| 10347 | for found_dir in $rpathdirs; do |
| 10348 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10349 | done |
| 10350 | acl_save_libdir="$libdir" |
| 10351 | libdir="$alldirs" |
| 10352 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10353 | libdir="$acl_save_libdir" |
| 10354 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10355 | else |
| 10356 | for found_dir in $rpathdirs; do |
| 10357 | acl_save_libdir="$libdir" |
| 10358 | libdir="$found_dir" |
| 10359 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10360 | libdir="$acl_save_libdir" |
| 10361 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10362 | done |
| 10363 | fi |
| 10364 | fi |
| 10365 | if test "X$ltrpathdirs" != "X"; then |
| 10366 | for found_dir in $ltrpathdirs; do |
| 10367 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10368 | done |
| 10369 | fi |
| 10370 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10371 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10372 | 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] | 10373 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10375 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10376 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10377 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10378 | gt_save_LIBS="$LIBS" |
| 10379 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10380 | cat >conftest.$ac_ext <<_ACEOF |
| 10381 | /* confdefs.h. */ |
| 10382 | _ACEOF |
| 10383 | cat confdefs.h >>conftest.$ac_ext |
| 10384 | cat >>conftest.$ac_ext <<_ACEOF |
| 10385 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10386 | #include <libintl.h> |
| 10387 | extern int _nl_msg_cat_cntr; |
| 10388 | extern |
| 10389 | #ifdef __cplusplus |
| 10390 | "C" |
| 10391 | #endif |
| 10392 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10393 | int |
| 10394 | main () |
| 10395 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10396 | bindtextdomain ("", ""); |
| 10397 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10398 | ; |
| 10399 | return 0; |
| 10400 | } |
| 10401 | _ACEOF |
| 10402 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10403 | if { (ac_try="$ac_link" |
| 10404 | case "(($ac_try" in |
| 10405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10406 | *) ac_try_echo=$ac_try;; |
| 10407 | esac |
| 10408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10409 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10410 | ac_status=$? |
| 10411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10412 | rm -f conftest.er1 |
| 10413 | cat conftest.err >&5 |
| 10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10415 | (exit $ac_status); } && { |
| 10416 | test -z "$ac_c_werror_flag" || |
| 10417 | test ! -s conftest.err |
| 10418 | } && test -s conftest$ac_exeext && |
| 10419 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10420 | gt_cv_func_gnugettext1_libintl=yes |
| 10421 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10422 | echo "$as_me: failed program was:" >&5 |
| 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10425 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10427 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10429 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10430 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10431 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10432 | cat >conftest.$ac_ext <<_ACEOF |
| 10433 | /* confdefs.h. */ |
| 10434 | _ACEOF |
| 10435 | cat confdefs.h >>conftest.$ac_ext |
| 10436 | cat >>conftest.$ac_ext <<_ACEOF |
| 10437 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10438 | #include <libintl.h> |
| 10439 | extern int _nl_msg_cat_cntr; |
| 10440 | extern |
| 10441 | #ifdef __cplusplus |
| 10442 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10443 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10444 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10445 | int |
| 10446 | main () |
| 10447 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10448 | bindtextdomain ("", ""); |
| 10449 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10450 | ; |
| 10451 | return 0; |
| 10452 | } |
| 10453 | _ACEOF |
| 10454 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10455 | if { (ac_try="$ac_link" |
| 10456 | case "(($ac_try" in |
| 10457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10458 | *) ac_try_echo=$ac_try;; |
| 10459 | esac |
| 10460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10461 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10462 | ac_status=$? |
| 10463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10464 | rm -f conftest.er1 |
| 10465 | cat conftest.err >&5 |
| 10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10467 | (exit $ac_status); } && { |
| 10468 | test -z "$ac_c_werror_flag" || |
| 10469 | test ! -s conftest.err |
| 10470 | } && test -s conftest$ac_exeext && |
| 10471 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10472 | LIBINTL="$LIBINTL $LIBICONV" |
| 10473 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10474 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10475 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10476 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10477 | echo "$as_me: failed program was:" >&5 |
| 10478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10479 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10480 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10482 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10484 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10485 | fi |
| 10486 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10487 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10489 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10490 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10491 | fi |
| 10492 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10493 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10494 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10495 | && test "$PACKAGE" != gettext-runtime \ |
| 10496 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10497 | gt_use_preinstalled_gnugettext=yes |
| 10498 | else |
| 10499 | LIBINTL= |
| 10500 | LTLIBINTL= |
| 10501 | INCINTL= |
| 10502 | fi |
| 10503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10504 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10505 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10506 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10507 | fi |
| 10508 | fi |
| 10509 | |
| 10510 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10511 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10512 | USE_INCLUDED_LIBINTL=yes |
| 10513 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10514 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10515 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10516 | fi |
| 10517 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10518 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10519 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10520 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10521 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10522 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10524 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10525 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10526 | |
| 10527 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10528 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10529 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10530 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10531 | else |
| 10532 | USE_NLS=no |
| 10533 | fi |
| 10534 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10535 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10536 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10537 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10538 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10539 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10540 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10541 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10542 | 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] | 10543 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10544 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10545 | gt_source="external libintl" |
| 10546 | else |
| 10547 | gt_source="libc" |
| 10548 | fi |
| 10549 | else |
| 10550 | gt_source="included intl directory" |
| 10551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10552 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10553 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10554 | fi |
| 10555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10556 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10557 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10558 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10559 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10560 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10561 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10562 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10563 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10565 | for element in $INCINTL; do |
| 10566 | haveit= |
| 10567 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10569 | acl_save_prefix="$prefix" |
| 10570 | prefix="$acl_final_prefix" |
| 10571 | acl_save_exec_prefix="$exec_prefix" |
| 10572 | exec_prefix="$acl_final_exec_prefix" |
| 10573 | eval x=\"$x\" |
| 10574 | exec_prefix="$acl_save_exec_prefix" |
| 10575 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10576 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10577 | if test "X$x" = "X$element"; then |
| 10578 | haveit=yes |
| 10579 | break |
| 10580 | fi |
| 10581 | done |
| 10582 | if test -z "$haveit"; then |
| 10583 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10584 | fi |
| 10585 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10586 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10587 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10588 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10589 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10590 | cat >>confdefs.h <<\_ACEOF |
| 10591 | #define HAVE_GETTEXT 1 |
| 10592 | _ACEOF |
| 10593 | |
| 10594 | |
| 10595 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10596 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10597 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10598 | |
| 10599 | fi |
| 10600 | |
| 10601 | POSUB=po |
| 10602 | fi |
| 10603 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10604 | |
| 10605 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10606 | BUILD_INCLUDED_LIBINTL=yes |
| 10607 | fi |
| 10608 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10609 | |
| 10610 | |
| 10611 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10612 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10613 | nls_cv_header_intl= |
| 10614 | nls_cv_header_libgt= |
| 10615 | |
| 10616 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10617 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10618 | |
| 10619 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10620 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10621 | |
| 10622 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10623 | |
| 10624 | |
| 10625 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10626 | INTLOBJS="\$(GETTOBJS)" |
| 10627 | fi |
| 10628 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10629 | |
| 10630 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10631 | |
| 10632 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10633 | |
| 10634 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10635 | |
| 10636 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10642 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10643 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10644 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10645 | 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] | 10646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10647 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10648 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10649 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10650 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10651 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10652 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10653 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10654 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10655 | *@@@%%%=?*=@@@%%%*) |
| 10656 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10657 | *) |
| 10658 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10659 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10660 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10662 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10663 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10664 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10665 | SET_MAKE= |
| 10666 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10668 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10669 | SET_MAKE="MAKE=${MAKE-make}" |
| 10670 | fi |
| 10671 | |
| 10672 | # Extract the first word of "ln", so it can be a program name with args. |
| 10673 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10674 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10676 | if test "${ac_cv_path_LN+set}" = set; then |
| 10677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10678 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10679 | case $LN in |
| 10680 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10681 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10682 | ;; |
| 10683 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10685 | for as_dir in $PATH |
| 10686 | do |
| 10687 | IFS=$as_save_IFS |
| 10688 | test -z "$as_dir" && as_dir=. |
| 10689 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10691 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10693 | break 2 |
| 10694 | fi |
| 10695 | done |
| 10696 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10697 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10698 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10699 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10700 | ;; |
| 10701 | esac |
| 10702 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10703 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10704 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10705 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10706 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10707 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10708 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10709 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10710 | fi |
| 10711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10712 | |
| 10713 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10714 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10715 | LN_S=$as_ln_s |
| 10716 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10717 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10718 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10719 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10720 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10721 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10722 | fi |
| 10723 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10724 | # Extract the first word of "mv", so it can be a program name with args. |
| 10725 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10728 | if test "${ac_cv_path_MV+set}" = set; then |
| 10729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10730 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10731 | case $MV in |
| 10732 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10733 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10734 | ;; |
| 10735 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10737 | for as_dir in $PATH |
| 10738 | do |
| 10739 | IFS=$as_save_IFS |
| 10740 | test -z "$as_dir" && as_dir=. |
| 10741 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10745 | break 2 |
| 10746 | fi |
| 10747 | done |
| 10748 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10749 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10750 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10751 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10752 | ;; |
| 10753 | esac |
| 10754 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10755 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10756 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10757 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10758 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10759 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10760 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10761 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10762 | fi |
| 10763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10764 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10765 | # Extract the first word of "cp", so it can be a program name with args. |
| 10766 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10769 | if test "${ac_cv_path_CP+set}" = set; then |
| 10770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10771 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10772 | case $CP in |
| 10773 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10774 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10775 | ;; |
| 10776 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10778 | for as_dir in $PATH |
| 10779 | do |
| 10780 | IFS=$as_save_IFS |
| 10781 | test -z "$as_dir" && as_dir=. |
| 10782 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10784 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10786 | break 2 |
| 10787 | fi |
| 10788 | done |
| 10789 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10790 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10791 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10792 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10793 | ;; |
| 10794 | esac |
| 10795 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10796 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10797 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10798 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10799 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10800 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10801 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10802 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10803 | fi |
| 10804 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10805 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10806 | # Extract the first word of "rm", so it can be a program name with args. |
| 10807 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10808 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10810 | if test "${ac_cv_path_RM+set}" = set; then |
| 10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10812 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10813 | case $RM in |
| 10814 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10815 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10816 | ;; |
| 10817 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10819 | for as_dir in $PATH |
| 10820 | do |
| 10821 | IFS=$as_save_IFS |
| 10822 | test -z "$as_dir" && as_dir=. |
| 10823 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10825 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10827 | break 2 |
| 10828 | fi |
| 10829 | done |
| 10830 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10831 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10832 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10833 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10834 | ;; |
| 10835 | esac |
| 10836 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10837 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10838 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10839 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 10840 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10841 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10843 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10844 | fi |
| 10845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10846 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10847 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10848 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10851 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10853 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10854 | case $CHMOD in |
| 10855 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10856 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10857 | ;; |
| 10858 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10860 | for as_dir in $PATH |
| 10861 | do |
| 10862 | IFS=$as_save_IFS |
| 10863 | test -z "$as_dir" && as_dir=. |
| 10864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10866 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10868 | break 2 |
| 10869 | fi |
| 10870 | done |
| 10871 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10872 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10873 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10874 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10875 | ;; |
| 10876 | esac |
| 10877 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10878 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10879 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10880 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10881 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10882 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10884 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10885 | fi |
| 10886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10887 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10888 | for ac_prog in gawk mawk nawk awk |
| 10889 | do |
| 10890 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10891 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10894 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10896 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10897 | if test -n "$AWK"; then |
| 10898 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10899 | else |
| 10900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10901 | for as_dir in $PATH |
| 10902 | do |
| 10903 | IFS=$as_save_IFS |
| 10904 | test -z "$as_dir" && as_dir=. |
| 10905 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10907 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10909 | break 2 |
| 10910 | fi |
| 10911 | done |
| 10912 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10913 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10914 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10915 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10916 | fi |
| 10917 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10918 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10919 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10920 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10921 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10922 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10923 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10924 | fi |
| 10925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10926 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10927 | test -n "$AWK" && break |
| 10928 | done |
| 10929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 10931 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 10932 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10934 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10935 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10936 | then ac_cv_path_EGREP="$GREP -E" |
| 10937 | else |
| 10938 | # Extract the first word of "egrep" to use in msg output |
| 10939 | if test -z "$EGREP"; then |
| 10940 | set dummy egrep; ac_prog_name=$2 |
| 10941 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 10942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10943 | else |
| 10944 | ac_path_EGREP_found=false |
| 10945 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10947 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10948 | do |
| 10949 | IFS=$as_save_IFS |
| 10950 | test -z "$as_dir" && as_dir=. |
| 10951 | for ac_prog in egrep; do |
| 10952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10953 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10954 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10955 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 10956 | # Check for GNU $ac_path_EGREP |
| 10957 | case `"$ac_path_EGREP" --version 2>&1` in |
| 10958 | *GNU*) |
| 10959 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10960 | *) |
| 10961 | ac_count=0 |
| 10962 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 10963 | while : |
| 10964 | do |
| 10965 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10966 | mv "conftest.tmp" "conftest.in" |
| 10967 | cp "conftest.in" "conftest.nl" |
| 10968 | echo 'EGREP' >> "conftest.nl" |
| 10969 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10970 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10971 | ac_count=`expr $ac_count + 1` |
| 10972 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10973 | # Best one so far, save it but keep looking for a better one |
| 10974 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 10975 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10976 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10977 | # 10*(2^10) chars as input seems more than enough |
| 10978 | test $ac_count -gt 10 && break |
| 10979 | done |
| 10980 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10981 | esac |
| 10982 | |
| 10983 | |
| 10984 | $ac_path_EGREP_found && break 3 |
| 10985 | done |
| 10986 | done |
| 10987 | |
| 10988 | done |
| 10989 | IFS=$as_save_IFS |
| 10990 | |
| 10991 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10992 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10993 | |
| 10994 | EGREP="$ac_cv_path_EGREP" |
| 10995 | if test -z "$EGREP"; then |
| 10996 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 10997 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 10998 | { (exit 1); exit 1; }; } |
| 10999 | fi |
| 11000 | |
| 11001 | else |
| 11002 | ac_cv_path_EGREP=$EGREP |
| 11003 | fi |
| 11004 | |
| 11005 | |
| 11006 | fi |
| 11007 | fi |
| 11008 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11009 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11010 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11011 | |
| 11012 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11013 | # Extract the first word of "sed", so it can be a program name with args. |
| 11014 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11015 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11017 | if test "${ac_cv_path_SED+set}" = set; then |
| 11018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11020 | case $SED in |
| 11021 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11022 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11023 | ;; |
| 11024 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11026 | for as_dir in $PATH |
| 11027 | do |
| 11028 | IFS=$as_save_IFS |
| 11029 | test -z "$as_dir" && as_dir=. |
| 11030 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11032 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11034 | break 2 |
| 11035 | fi |
| 11036 | done |
| 11037 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11038 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11039 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11040 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11041 | ;; |
| 11042 | esac |
| 11043 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11044 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11045 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11046 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11047 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11048 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11049 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11050 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11051 | fi |
| 11052 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11053 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11054 | # Extract the first word of "perl", so it can be a program name with args. |
| 11055 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11056 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11058 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11060 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11061 | case $PERL in |
| 11062 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11063 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11064 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11065 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11067 | for as_dir in $PATH |
| 11068 | do |
| 11069 | IFS=$as_save_IFS |
| 11070 | test -z "$as_dir" && as_dir=. |
| 11071 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11073 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11075 | break 2 |
| 11076 | fi |
| 11077 | done |
| 11078 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11079 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11080 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11081 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11082 | ;; |
| 11083 | esac |
| 11084 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11085 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11086 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11087 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11088 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11089 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11090 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11091 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11092 | fi |
| 11093 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11094 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11095 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11096 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11099 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11101 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11102 | case $LDCONFIG in |
| 11103 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11104 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11105 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11106 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11108 | for as_dir in $PATH |
| 11109 | do |
| 11110 | IFS=$as_save_IFS |
| 11111 | test -z "$as_dir" && as_dir=. |
| 11112 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11114 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11116 | break 2 |
| 11117 | fi |
| 11118 | done |
| 11119 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11120 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11121 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11122 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11123 | ;; |
| 11124 | esac |
| 11125 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11126 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11127 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11128 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11129 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11130 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11131 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11132 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11133 | fi |
| 11134 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11136 | if test -n "$ac_tool_prefix"; then |
| 11137 | # 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] | 11138 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11139 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11141 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11143 | else |
| 11144 | if test -n "$AR"; then |
| 11145 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11148 | for as_dir in $PATH |
| 11149 | do |
| 11150 | IFS=$as_save_IFS |
| 11151 | test -z "$as_dir" && as_dir=. |
| 11152 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11154 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11156 | break 2 |
| 11157 | fi |
| 11158 | done |
| 11159 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11160 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11161 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11162 | fi |
| 11163 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11164 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11165 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11166 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11167 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11168 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11170 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11171 | fi |
| 11172 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11174 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11175 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11176 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11177 | # Extract the first word of "ar", so it can be a program name with args. |
| 11178 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11181 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11183 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11184 | if test -n "$ac_ct_AR"; then |
| 11185 | 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] | 11186 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11188 | for as_dir in $PATH |
| 11189 | do |
| 11190 | IFS=$as_save_IFS |
| 11191 | test -z "$as_dir" && as_dir=. |
| 11192 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11194 | ac_cv_prog_ac_ct_AR="ar" |
| 11195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11196 | break 2 |
| 11197 | fi |
| 11198 | done |
| 11199 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11200 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11201 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11202 | fi |
| 11203 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11204 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11205 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11206 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11207 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11208 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11209 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11210 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11211 | fi |
| 11212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11213 | if test "x$ac_ct_AR" = x; then |
| 11214 | AR="ar" |
| 11215 | else |
| 11216 | case $cross_compiling:$ac_tool_warned in |
| 11217 | yes:) |
| 11218 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11219 | whose name does not start with the host triplet. If you think this |
| 11220 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11221 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11222 | whose name does not start with the host triplet. If you think this |
| 11223 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11224 | ac_tool_warned=yes ;; |
| 11225 | esac |
| 11226 | AR=$ac_ct_AR |
| 11227 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11228 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11229 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11230 | fi |
| 11231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11232 | if test -n "$ac_tool_prefix"; then |
| 11233 | # 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] | 11234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11239 | else |
| 11240 | if test -n "$RANLIB"; then |
| 11241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11244 | for as_dir in $PATH |
| 11245 | do |
| 11246 | IFS=$as_save_IFS |
| 11247 | test -z "$as_dir" && as_dir=. |
| 11248 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11252 | break 2 |
| 11253 | fi |
| 11254 | done |
| 11255 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11256 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11257 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11258 | fi |
| 11259 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11260 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11261 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11263 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11264 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11266 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11267 | fi |
| 11268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11270 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11271 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11272 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11273 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11274 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11279 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11280 | if test -n "$ac_ct_RANLIB"; then |
| 11281 | 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] | 11282 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11284 | for as_dir in $PATH |
| 11285 | do |
| 11286 | IFS=$as_save_IFS |
| 11287 | test -z "$as_dir" && as_dir=. |
| 11288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11290 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11292 | break 2 |
| 11293 | fi |
| 11294 | done |
| 11295 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11296 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11297 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11298 | fi |
| 11299 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11300 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11301 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11302 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11303 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11304 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11306 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11307 | fi |
| 11308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11309 | if test "x$ac_ct_RANLIB" = x; then |
| 11310 | RANLIB=":" |
| 11311 | else |
| 11312 | case $cross_compiling:$ac_tool_warned in |
| 11313 | yes:) |
| 11314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11315 | whose name does not start with the host triplet. If you think this |
| 11316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11318 | whose name does not start with the host triplet. If you think this |
| 11319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11320 | ac_tool_warned=yes ;; |
| 11321 | esac |
| 11322 | RANLIB=$ac_ct_RANLIB |
| 11323 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11324 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11325 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11326 | fi |
| 11327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11328 | if test -n "$ac_tool_prefix"; then |
| 11329 | # 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] | 11330 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11333 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11335 | else |
| 11336 | if test -n "$STRIP"; then |
| 11337 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11338 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11340 | for as_dir in $PATH |
| 11341 | do |
| 11342 | IFS=$as_save_IFS |
| 11343 | test -z "$as_dir" && as_dir=. |
| 11344 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11346 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11348 | break 2 |
| 11349 | fi |
| 11350 | done |
| 11351 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11352 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11353 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11354 | fi |
| 11355 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11356 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11357 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11358 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11359 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11360 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11362 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11363 | fi |
| 11364 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11365 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11366 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11367 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11368 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11369 | # Extract the first word of "strip", so it can be a program name with args. |
| 11370 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11373 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11375 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | if test -n "$ac_ct_STRIP"; then |
| 11377 | 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] | 11378 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11380 | for as_dir in $PATH |
| 11381 | do |
| 11382 | IFS=$as_save_IFS |
| 11383 | test -z "$as_dir" && as_dir=. |
| 11384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11386 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11388 | break 2 |
| 11389 | fi |
| 11390 | done |
| 11391 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11392 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11393 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11394 | fi |
| 11395 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11396 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11397 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11398 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11399 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11400 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11401 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11402 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11403 | fi |
| 11404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11405 | if test "x$ac_ct_STRIP" = x; then |
| 11406 | STRIP=":" |
| 11407 | else |
| 11408 | case $cross_compiling:$ac_tool_warned in |
| 11409 | yes:) |
| 11410 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11411 | whose name does not start with the host triplet. If you think this |
| 11412 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11413 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11414 | whose name does not start with the host triplet. If you think this |
| 11415 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11416 | ac_tool_warned=yes ;; |
| 11417 | esac |
| 11418 | STRIP=$ac_ct_STRIP |
| 11419 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11420 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11421 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11422 | fi |
| 11423 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 11424 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 11425 | set dummy makeinfo; ac_word=$2 |
| 11426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11428 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
| 11429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11430 | else |
| 11431 | if test -n "$MAKEINFO"; then |
| 11432 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 11433 | else |
| 11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11435 | for as_dir in $PATH |
| 11436 | do |
| 11437 | IFS=$as_save_IFS |
| 11438 | test -z "$as_dir" && as_dir=. |
| 11439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11441 | ac_cv_prog_MAKEINFO="makeinfo" |
| 11442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11443 | break 2 |
| 11444 | fi |
| 11445 | done |
| 11446 | done |
| 11447 | IFS=$as_save_IFS |
| 11448 | |
| 11449 | fi |
| 11450 | fi |
| 11451 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 11452 | if test -n "$MAKEINFO"; then |
| 11453 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 11454 | echo "${ECHO_T}$MAKEINFO" >&6; } |
| 11455 | else |
| 11456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11457 | echo "${ECHO_T}no" >&6; } |
| 11458 | fi |
| 11459 | |
| 11460 | |
| 11461 | if test "_$MAKEINFO" = "_"; then |
| 11462 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 11463 | else |
| 11464 | case "$MAKEINFO" in |
| 11465 | */missing.*) |
| 11466 | { echo "$as_me:$LINENO: WARNING: |
| 11467 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
| 11468 | echo "$as_me: WARNING: |
| 11469 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 11470 | ;; |
| 11471 | *) |
| 11472 | ;; |
| 11473 | esac |
| 11474 | fi |
| 11475 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11476 | # Find a good install program. We prefer a C program (faster), |
| 11477 | # so one script is as good as another. But avoid the broken or |
| 11478 | # incompatible versions: |
| 11479 | # SysV /etc/install, /usr/sbin/install |
| 11480 | # SunOS /usr/etc/install |
| 11481 | # IRIX /sbin/install |
| 11482 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11484 | # 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] | 11485 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11486 | # 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] | 11487 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11488 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11489 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11490 | 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] | 11491 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11492 | if test "${ac_cv_path_install+set}" = set; then |
| 11493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11494 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11496 | for as_dir in $PATH |
| 11497 | do |
| 11498 | IFS=$as_save_IFS |
| 11499 | test -z "$as_dir" && as_dir=. |
| 11500 | # Account for people who put trailing slashes in PATH elements. |
| 11501 | case $as_dir/ in |
| 11502 | ./ | .// | /cC/* | \ |
| 11503 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11504 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11505 | /usr/ucb/* ) ;; |
| 11506 | *) |
| 11507 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11508 | # Don't use installbsd from OSF since it installs stuff as root |
| 11509 | # by default. |
| 11510 | for ac_prog in ginstall scoinst install; do |
| 11511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11512 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11513 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11514 | 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] | 11515 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11516 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11517 | elif test $ac_prog = install && |
| 11518 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11519 | # program-specific install script used by HP pwplus--don't use. |
| 11520 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11521 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11522 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11523 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11524 | fi |
| 11525 | fi |
| 11526 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11527 | done |
| 11528 | ;; |
| 11529 | esac |
| 11530 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11531 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11532 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11533 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11534 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11535 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11536 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11537 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11538 | # As a last resort, use the slow shell script. Don't cache a |
| 11539 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11540 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11541 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11542 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11543 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11544 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11545 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11546 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11547 | |
| 11548 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11549 | # It thinks the first close brace ends the variable substitution. |
| 11550 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11553 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11554 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11555 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11556 | # See if we need a separate native compiler. |
| 11557 | if test $cross_compiling = no; then |
| 11558 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11559 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11560 | else |
| 11561 | for ac_prog in gcc cc |
| 11562 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11563 | # 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] | 11564 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11567 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11569 | else |
| 11570 | if test -n "$BUILD_CC"; then |
| 11571 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11572 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11574 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11575 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11576 | IFS=$as_save_IFS |
| 11577 | test -z "$as_dir" && as_dir=. |
| 11578 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11580 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11582 | break 2 |
| 11583 | fi |
| 11584 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11585 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11586 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11587 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | fi |
| 11589 | fi |
| 11590 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11591 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11592 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11593 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11595 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11596 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11597 | fi |
| 11598 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11600 | test -n "$BUILD_CC" && break |
| 11601 | done |
| 11602 | |
| 11603 | fi |
| 11604 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 11605 | |
| 11606 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11607 | |
| 11608 | |
| 11609 | |
| 11610 | |
| 11611 | |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
| 11626 | |
| 11627 | |
| 11628 | |
| 11629 | |
| 11630 | |
| 11631 | |
| 11632 | |
| 11633 | |
| 11634 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11635 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11636 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 11637 | |
| 11638 | |
Theodore Ts'o | 3d05802 | 2008-07-12 22:06:30 -0400 | [diff] [blame] | 11639 | |
Theodore Ts'o | 6ec9ef1 | 2008-08-22 12:15:56 -0400 | [diff] [blame] | 11640 | |
| 11641 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11642 | do |
| 11643 | 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] | 11644 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11645 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11647 | 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] | 11648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11650 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11651 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11652 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11653 | else |
| 11654 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11655 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11656 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | /* confdefs.h. */ |
| 11659 | _ACEOF |
| 11660 | cat confdefs.h >>conftest.$ac_ext |
| 11661 | cat >>conftest.$ac_ext <<_ACEOF |
| 11662 | /* end confdefs.h. */ |
| 11663 | $ac_includes_default |
| 11664 | #include <$ac_header> |
| 11665 | _ACEOF |
| 11666 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11667 | if { (ac_try="$ac_compile" |
| 11668 | case "(($ac_try" in |
| 11669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11670 | *) ac_try_echo=$ac_try;; |
| 11671 | esac |
| 11672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11673 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11674 | ac_status=$? |
| 11675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11676 | rm -f conftest.er1 |
| 11677 | cat conftest.err >&5 |
| 11678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11679 | (exit $ac_status); } && { |
| 11680 | test -z "$ac_c_werror_flag" || |
| 11681 | test ! -s conftest.err |
| 11682 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11683 | ac_header_compiler=yes |
| 11684 | else |
| 11685 | echo "$as_me: failed program was:" >&5 |
| 11686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11687 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11688 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11689 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11690 | |
| 11691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11692 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11693 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11694 | |
| 11695 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11696 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | cat >conftest.$ac_ext <<_ACEOF |
| 11699 | /* confdefs.h. */ |
| 11700 | _ACEOF |
| 11701 | cat confdefs.h >>conftest.$ac_ext |
| 11702 | cat >>conftest.$ac_ext <<_ACEOF |
| 11703 | /* end confdefs.h. */ |
| 11704 | #include <$ac_header> |
| 11705 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11706 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11707 | case "(($ac_try" in |
| 11708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11709 | *) ac_try_echo=$ac_try;; |
| 11710 | esac |
| 11711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11712 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11713 | ac_status=$? |
| 11714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11715 | rm -f conftest.er1 |
| 11716 | cat conftest.err >&5 |
| 11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11718 | (exit $ac_status); } >/dev/null && { |
| 11719 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11720 | test ! -s conftest.err |
| 11721 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11722 | ac_header_preproc=yes |
| 11723 | else |
| 11724 | echo "$as_me: failed program was:" >&5 |
| 11725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11726 | |
| 11727 | ac_header_preproc=no |
| 11728 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11730 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11731 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11732 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11733 | |
| 11734 | # So? What about this header? |
| 11735 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11736 | yes:no: ) |
| 11737 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11738 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11740 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11741 | ac_header_preproc=yes |
| 11742 | ;; |
| 11743 | no:yes:* ) |
| 11744 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11745 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11746 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11747 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11748 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11749 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11750 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11751 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11753 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11754 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11755 | 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] | 11756 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11757 | ;; |
| 11758 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11761 | 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] | 11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11763 | else |
| 11764 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11765 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11766 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11768 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11769 | |
| 11770 | fi |
| 11771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11772 | cat >>confdefs.h <<_ACEOF |
| 11773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11774 | _ACEOF |
| 11775 | |
| 11776 | fi |
| 11777 | |
| 11778 | done |
| 11779 | |
| 11780 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11781 | |
| 11782 | for ac_header in sys/disk.h sys/mount.h |
| 11783 | do |
| 11784 | 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] | 11785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11787 | 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] | 11788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11789 | else |
| 11790 | cat >conftest.$ac_ext <<_ACEOF |
| 11791 | /* confdefs.h. */ |
| 11792 | _ACEOF |
| 11793 | cat confdefs.h >>conftest.$ac_ext |
| 11794 | cat >>conftest.$ac_ext <<_ACEOF |
| 11795 | /* end confdefs.h. */ |
| 11796 | |
| 11797 | #if HAVE_SYS_QUEUE_H |
| 11798 | #include <sys/queue.h> |
| 11799 | #endif |
| 11800 | |
| 11801 | |
| 11802 | #include <$ac_header> |
| 11803 | _ACEOF |
| 11804 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11805 | if { (ac_try="$ac_compile" |
| 11806 | case "(($ac_try" in |
| 11807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11808 | *) ac_try_echo=$ac_try;; |
| 11809 | esac |
| 11810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11811 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11812 | ac_status=$? |
| 11813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11814 | rm -f conftest.er1 |
| 11815 | cat conftest.err >&5 |
| 11816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11817 | (exit $ac_status); } && { |
| 11818 | test -z "$ac_c_werror_flag" || |
| 11819 | test ! -s conftest.err |
| 11820 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11821 | eval "$as_ac_Header=yes" |
| 11822 | else |
| 11823 | echo "$as_me: failed program was:" >&5 |
| 11824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11826 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11827 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | |
| 11829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11830 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11831 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11833 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11835 | cat >>confdefs.h <<_ACEOF |
| 11836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11837 | _ACEOF |
| 11838 | |
| 11839 | fi |
| 11840 | |
| 11841 | done |
| 11842 | |
| 11843 | |
| 11844 | for ac_header in net/if.h |
| 11845 | do |
| 11846 | 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] | 11847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11849 | 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] | 11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11851 | else |
| 11852 | cat >conftest.$ac_ext <<_ACEOF |
| 11853 | /* confdefs.h. */ |
| 11854 | _ACEOF |
| 11855 | cat confdefs.h >>conftest.$ac_ext |
| 11856 | cat >>conftest.$ac_ext <<_ACEOF |
| 11857 | /* end confdefs.h. */ |
| 11858 | |
| 11859 | #if HAVE_SYS_TYPES_H |
| 11860 | #include <sys/types.h> |
| 11861 | #endif |
| 11862 | #if HAVE_SYS_SOCKET |
| 11863 | #include <sys/socket.h> |
| 11864 | #endif |
| 11865 | |
| 11866 | |
| 11867 | #include <$ac_header> |
| 11868 | _ACEOF |
| 11869 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | if { (ac_try="$ac_compile" |
| 11871 | case "(($ac_try" in |
| 11872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11873 | *) ac_try_echo=$ac_try;; |
| 11874 | esac |
| 11875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11876 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11877 | ac_status=$? |
| 11878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11879 | rm -f conftest.er1 |
| 11880 | cat conftest.err >&5 |
| 11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11882 | (exit $ac_status); } && { |
| 11883 | test -z "$ac_c_werror_flag" || |
| 11884 | test ! -s conftest.err |
| 11885 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11886 | eval "$as_ac_Header=yes" |
| 11887 | else |
| 11888 | echo "$as_me: failed program was:" >&5 |
| 11889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11890 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11891 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11892 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11893 | |
| 11894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11895 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11896 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11897 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11898 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11900 | cat >>confdefs.h <<_ACEOF |
| 11901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11902 | _ACEOF |
| 11903 | |
| 11904 | fi |
| 11905 | |
| 11906 | done |
| 11907 | |
| 11908 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11909 | for ac_func in vprintf |
| 11910 | do |
| 11911 | 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] | 11912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11914 | 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] | 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11916 | else |
| 11917 | cat >conftest.$ac_ext <<_ACEOF |
| 11918 | /* confdefs.h. */ |
| 11919 | _ACEOF |
| 11920 | cat confdefs.h >>conftest.$ac_ext |
| 11921 | cat >>conftest.$ac_ext <<_ACEOF |
| 11922 | /* end confdefs.h. */ |
| 11923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11925 | #define $ac_func innocuous_$ac_func |
| 11926 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11927 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11928 | which can conflict with char $ac_func (); below. |
| 11929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11930 | <limits.h> exists even on freestanding compilers. */ |
| 11931 | |
| 11932 | #ifdef __STDC__ |
| 11933 | # include <limits.h> |
| 11934 | #else |
| 11935 | # include <assert.h> |
| 11936 | #endif |
| 11937 | |
| 11938 | #undef $ac_func |
| 11939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11940 | /* Override any GCC internal prototype to avoid an error. |
| 11941 | Use char because int might match the return type of a GCC |
| 11942 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | #ifdef __cplusplus |
| 11944 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11945 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11946 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11947 | /* The GNU C library defines this for functions which it implements |
| 11948 | to always fail with ENOSYS. Some functions are actually named |
| 11949 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11951 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11952 | #endif |
| 11953 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11954 | int |
| 11955 | main () |
| 11956 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11957 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
| 11961 | _ACEOF |
| 11962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11963 | if { (ac_try="$ac_link" |
| 11964 | case "(($ac_try" in |
| 11965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11966 | *) ac_try_echo=$ac_try;; |
| 11967 | esac |
| 11968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11969 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11970 | ac_status=$? |
| 11971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11972 | rm -f conftest.er1 |
| 11973 | cat conftest.err >&5 |
| 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11975 | (exit $ac_status); } && { |
| 11976 | test -z "$ac_c_werror_flag" || |
| 11977 | test ! -s conftest.err |
| 11978 | } && test -s conftest$ac_exeext && |
| 11979 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | eval "$as_ac_var=yes" |
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 | echo "$as_me: failed program was:" >&5 |
| 11983 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11984 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11985 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11986 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11987 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11988 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11989 | conftest$ac_exeext conftest.$ac_ext |
| 11990 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11991 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11993 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11995 | cat >>confdefs.h <<_ACEOF |
| 11996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11997 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11998 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11999 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12000 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12003 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12004 | cat >conftest.$ac_ext <<_ACEOF |
| 12005 | /* confdefs.h. */ |
| 12006 | _ACEOF |
| 12007 | cat confdefs.h >>conftest.$ac_ext |
| 12008 | cat >>conftest.$ac_ext <<_ACEOF |
| 12009 | /* end confdefs.h. */ |
| 12010 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12012 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12013 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12014 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12015 | which can conflict with char _doprnt (); below. |
| 12016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12017 | <limits.h> exists even on freestanding compilers. */ |
| 12018 | |
| 12019 | #ifdef __STDC__ |
| 12020 | # include <limits.h> |
| 12021 | #else |
| 12022 | # include <assert.h> |
| 12023 | #endif |
| 12024 | |
| 12025 | #undef _doprnt |
| 12026 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12027 | /* Override any GCC internal prototype to avoid an error. |
| 12028 | Use char because int might match the return type of a GCC |
| 12029 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12030 | #ifdef __cplusplus |
| 12031 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12032 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12033 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12034 | /* The GNU C library defines this for functions which it implements |
| 12035 | to always fail with ENOSYS. Some functions are actually named |
| 12036 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12037 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12038 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12039 | #endif |
| 12040 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12041 | int |
| 12042 | main () |
| 12043 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12044 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12045 | ; |
| 12046 | return 0; |
| 12047 | } |
| 12048 | _ACEOF |
| 12049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12050 | if { (ac_try="$ac_link" |
| 12051 | case "(($ac_try" in |
| 12052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12053 | *) ac_try_echo=$ac_try;; |
| 12054 | esac |
| 12055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12056 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12057 | ac_status=$? |
| 12058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12059 | rm -f conftest.er1 |
| 12060 | cat conftest.err >&5 |
| 12061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12062 | (exit $ac_status); } && { |
| 12063 | test -z "$ac_c_werror_flag" || |
| 12064 | test ! -s conftest.err |
| 12065 | } && test -s conftest$ac_exeext && |
| 12066 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12067 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12068 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12069 | echo "$as_me: failed program was:" >&5 |
| 12070 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12072 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12073 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12074 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12076 | conftest$ac_exeext conftest.$ac_ext |
| 12077 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12078 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12079 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12080 | if test $ac_cv_func__doprnt = yes; then |
| 12081 | |
| 12082 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12083 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12084 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12085 | |
| 12086 | fi |
| 12087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | fi |
| 12089 | done |
| 12090 | |
| 12091 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12092 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12093 | 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] | 12094 | 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] | 12095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12096 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12097 | cat >conftest.$ac_ext <<_ACEOF |
| 12098 | /* confdefs.h. */ |
| 12099 | _ACEOF |
| 12100 | cat confdefs.h >>conftest.$ac_ext |
| 12101 | cat >>conftest.$ac_ext <<_ACEOF |
| 12102 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12103 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12104 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12105 | int |
| 12106 | main () |
| 12107 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12108 | static struct dirent ac_aggr; |
| 12109 | if (ac_aggr.d_reclen) |
| 12110 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12111 | ; |
| 12112 | return 0; |
| 12113 | } |
| 12114 | _ACEOF |
| 12115 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12116 | if { (ac_try="$ac_compile" |
| 12117 | case "(($ac_try" in |
| 12118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12119 | *) ac_try_echo=$ac_try;; |
| 12120 | esac |
| 12121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12122 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12123 | ac_status=$? |
| 12124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12125 | rm -f conftest.er1 |
| 12126 | cat conftest.err >&5 |
| 12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12128 | (exit $ac_status); } && { |
| 12129 | test -z "$ac_c_werror_flag" || |
| 12130 | test ! -s conftest.err |
| 12131 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12132 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12133 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12134 | echo "$as_me: failed program was:" >&5 |
| 12135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12137 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12138 | /* confdefs.h. */ |
| 12139 | _ACEOF |
| 12140 | cat confdefs.h >>conftest.$ac_ext |
| 12141 | cat >>conftest.$ac_ext <<_ACEOF |
| 12142 | /* end confdefs.h. */ |
| 12143 | #include <dirent.h> |
| 12144 | |
| 12145 | int |
| 12146 | main () |
| 12147 | { |
| 12148 | static struct dirent ac_aggr; |
| 12149 | if (sizeof ac_aggr.d_reclen) |
| 12150 | return 0; |
| 12151 | ; |
| 12152 | return 0; |
| 12153 | } |
| 12154 | _ACEOF |
| 12155 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12156 | if { (ac_try="$ac_compile" |
| 12157 | case "(($ac_try" in |
| 12158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12159 | *) ac_try_echo=$ac_try;; |
| 12160 | esac |
| 12161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12162 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12163 | ac_status=$? |
| 12164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12165 | rm -f conftest.er1 |
| 12166 | cat conftest.err >&5 |
| 12167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12168 | (exit $ac_status); } && { |
| 12169 | test -z "$ac_c_werror_flag" || |
| 12170 | test ! -s conftest.err |
| 12171 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12172 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12173 | else |
| 12174 | echo "$as_me: failed program was:" >&5 |
| 12175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12177 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12179 | |
| 12180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12182 | |
| 12183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12184 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12185 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12186 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12187 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12188 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12189 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12191 | |
| 12192 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12195 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12196 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12198 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | cat >conftest.$ac_ext <<_ACEOF |
| 12200 | /* confdefs.h. */ |
| 12201 | _ACEOF |
| 12202 | cat confdefs.h >>conftest.$ac_ext |
| 12203 | cat >>conftest.$ac_ext <<_ACEOF |
| 12204 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12205 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12207 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12208 | int |
| 12209 | main () |
| 12210 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12212 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12214 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
| 12219 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12220 | if { (ac_try="$ac_compile" |
| 12221 | case "(($ac_try" in |
| 12222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12223 | *) ac_try_echo=$ac_try;; |
| 12224 | esac |
| 12225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12226 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12227 | ac_status=$? |
| 12228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12229 | rm -f conftest.er1 |
| 12230 | cat conftest.err >&5 |
| 12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12232 | (exit $ac_status); } && { |
| 12233 | test -z "$ac_c_werror_flag" || |
| 12234 | test ! -s conftest.err |
| 12235 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12236 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12237 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12238 | echo "$as_me: failed program was:" >&5 |
| 12239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12240 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12241 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12242 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12243 | |
| 12244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12246 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12247 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12248 | if test $ac_cv_type_ssize_t = yes; then |
| 12249 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12250 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12252 | |
| 12253 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12254 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12255 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12256 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12257 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12259 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12260 | cat >conftest.$ac_ext <<_ACEOF |
| 12261 | /* confdefs.h. */ |
| 12262 | _ACEOF |
| 12263 | cat confdefs.h >>conftest.$ac_ext |
| 12264 | cat >>conftest.$ac_ext <<_ACEOF |
| 12265 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12266 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12268 | int |
| 12269 | main () |
| 12270 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12271 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12272 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12273 | #endif |
| 12274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12275 | ; |
| 12276 | return 0; |
| 12277 | } |
| 12278 | _ACEOF |
| 12279 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12280 | if { (ac_try="$ac_compile" |
| 12281 | case "(($ac_try" in |
| 12282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12283 | *) ac_try_echo=$ac_try;; |
| 12284 | esac |
| 12285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12286 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12287 | ac_status=$? |
| 12288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12289 | rm -f conftest.er1 |
| 12290 | cat conftest.err >&5 |
| 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12292 | (exit $ac_status); } && { |
| 12293 | test -z "$ac_c_werror_flag" || |
| 12294 | test ! -s conftest.err |
| 12295 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12296 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12297 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12298 | echo "$as_me: failed program was:" >&5 |
| 12299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12300 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12301 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12303 | |
| 12304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12305 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12306 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12307 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12308 | if test $ac_cv_have_decl_llseek = yes; then |
| 12309 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12310 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12311 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12312 | |
| 12313 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12314 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12315 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12316 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12317 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12319 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | /* confdefs.h. */ |
| 12322 | _ACEOF |
| 12323 | cat confdefs.h >>conftest.$ac_ext |
| 12324 | cat >>conftest.$ac_ext <<_ACEOF |
| 12325 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12326 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12327 | #define _LARGEFILE64_SOURCE |
| 12328 | #include <unistd.h> |
| 12329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12330 | int |
| 12331 | main () |
| 12332 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12333 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12334 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12335 | #endif |
| 12336 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12337 | ; |
| 12338 | return 0; |
| 12339 | } |
| 12340 | _ACEOF |
| 12341 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12342 | if { (ac_try="$ac_compile" |
| 12343 | case "(($ac_try" in |
| 12344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12345 | *) ac_try_echo=$ac_try;; |
| 12346 | esac |
| 12347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12348 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12349 | ac_status=$? |
| 12350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12351 | rm -f conftest.er1 |
| 12352 | cat conftest.err >&5 |
| 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12354 | (exit $ac_status); } && { |
| 12355 | test -z "$ac_c_werror_flag" || |
| 12356 | test ! -s conftest.err |
| 12357 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12358 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12359 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12360 | echo "$as_me: failed program was:" >&5 |
| 12361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12363 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12364 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12365 | |
| 12366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12368 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12369 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12370 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12371 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12372 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12373 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12374 | |
| 12375 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12376 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12377 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12378 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12379 | if test "${ac_cv_type_short+set}" = set; then |
| 12380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12381 | else |
| 12382 | cat >conftest.$ac_ext <<_ACEOF |
| 12383 | /* confdefs.h. */ |
| 12384 | _ACEOF |
| 12385 | cat confdefs.h >>conftest.$ac_ext |
| 12386 | cat >>conftest.$ac_ext <<_ACEOF |
| 12387 | /* end confdefs.h. */ |
| 12388 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12389 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12390 | int |
| 12391 | main () |
| 12392 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12393 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12394 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12395 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12396 | return 0; |
| 12397 | ; |
| 12398 | return 0; |
| 12399 | } |
| 12400 | _ACEOF |
| 12401 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12402 | if { (ac_try="$ac_compile" |
| 12403 | case "(($ac_try" in |
| 12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12405 | *) ac_try_echo=$ac_try;; |
| 12406 | esac |
| 12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12408 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12409 | ac_status=$? |
| 12410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12411 | rm -f conftest.er1 |
| 12412 | cat conftest.err >&5 |
| 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12414 | (exit $ac_status); } && { |
| 12415 | test -z "$ac_c_werror_flag" || |
| 12416 | test ! -s conftest.err |
| 12417 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12418 | ac_cv_type_short=yes |
| 12419 | else |
| 12420 | echo "$as_me: failed program was:" >&5 |
| 12421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12422 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12423 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12424 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12425 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12427 | fi |
| 12428 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12429 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12430 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12431 | # The cast to long int works around a bug in the HP C Compiler |
| 12432 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12433 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12434 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12435 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12436 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12439 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12440 | if test "$cross_compiling" = yes; then |
| 12441 | # Depending upon the size, compute the lo and hi bounds. |
| 12442 | cat >conftest.$ac_ext <<_ACEOF |
| 12443 | /* confdefs.h. */ |
| 12444 | _ACEOF |
| 12445 | cat confdefs.h >>conftest.$ac_ext |
| 12446 | cat >>conftest.$ac_ext <<_ACEOF |
| 12447 | /* end confdefs.h. */ |
| 12448 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12449 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12450 | int |
| 12451 | main () |
| 12452 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12453 | 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] | 12454 | test_array [0] = 0 |
| 12455 | |
| 12456 | ; |
| 12457 | return 0; |
| 12458 | } |
| 12459 | _ACEOF |
| 12460 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12461 | if { (ac_try="$ac_compile" |
| 12462 | case "(($ac_try" in |
| 12463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12464 | *) ac_try_echo=$ac_try;; |
| 12465 | esac |
| 12466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12467 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12468 | ac_status=$? |
| 12469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12470 | rm -f conftest.er1 |
| 12471 | cat conftest.err >&5 |
| 12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12473 | (exit $ac_status); } && { |
| 12474 | test -z "$ac_c_werror_flag" || |
| 12475 | test ! -s conftest.err |
| 12476 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | ac_lo=0 ac_mid=0 |
| 12478 | while :; do |
| 12479 | cat >conftest.$ac_ext <<_ACEOF |
| 12480 | /* confdefs.h. */ |
| 12481 | _ACEOF |
| 12482 | cat confdefs.h >>conftest.$ac_ext |
| 12483 | cat >>conftest.$ac_ext <<_ACEOF |
| 12484 | /* end confdefs.h. */ |
| 12485 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12486 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12487 | int |
| 12488 | main () |
| 12489 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12490 | 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] | 12491 | test_array [0] = 0 |
| 12492 | |
| 12493 | ; |
| 12494 | return 0; |
| 12495 | } |
| 12496 | _ACEOF |
| 12497 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12498 | if { (ac_try="$ac_compile" |
| 12499 | case "(($ac_try" in |
| 12500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12501 | *) ac_try_echo=$ac_try;; |
| 12502 | esac |
| 12503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12504 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | ac_status=$? |
| 12506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12507 | rm -f conftest.er1 |
| 12508 | cat conftest.err >&5 |
| 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12510 | (exit $ac_status); } && { |
| 12511 | test -z "$ac_c_werror_flag" || |
| 12512 | test ! -s conftest.err |
| 12513 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12514 | ac_hi=$ac_mid; break |
| 12515 | else |
| 12516 | echo "$as_me: failed program was:" >&5 |
| 12517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12518 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12519 | ac_lo=`expr $ac_mid + 1` |
| 12520 | if test $ac_lo -le $ac_mid; then |
| 12521 | ac_lo= ac_hi= |
| 12522 | break |
| 12523 | fi |
| 12524 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12525 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12526 | |
| 12527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12528 | done |
| 12529 | else |
| 12530 | echo "$as_me: failed program was:" >&5 |
| 12531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12532 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12533 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12534 | /* confdefs.h. */ |
| 12535 | _ACEOF |
| 12536 | cat confdefs.h >>conftest.$ac_ext |
| 12537 | cat >>conftest.$ac_ext <<_ACEOF |
| 12538 | /* end confdefs.h. */ |
| 12539 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12540 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12541 | int |
| 12542 | main () |
| 12543 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12544 | 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] | 12545 | test_array [0] = 0 |
| 12546 | |
| 12547 | ; |
| 12548 | return 0; |
| 12549 | } |
| 12550 | _ACEOF |
| 12551 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12552 | if { (ac_try="$ac_compile" |
| 12553 | case "(($ac_try" in |
| 12554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12555 | *) ac_try_echo=$ac_try;; |
| 12556 | esac |
| 12557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12558 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | ac_status=$? |
| 12560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12561 | rm -f conftest.er1 |
| 12562 | cat conftest.err >&5 |
| 12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12564 | (exit $ac_status); } && { |
| 12565 | test -z "$ac_c_werror_flag" || |
| 12566 | test ! -s conftest.err |
| 12567 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12568 | ac_hi=-1 ac_mid=-1 |
| 12569 | while :; do |
| 12570 | cat >conftest.$ac_ext <<_ACEOF |
| 12571 | /* confdefs.h. */ |
| 12572 | _ACEOF |
| 12573 | cat confdefs.h >>conftest.$ac_ext |
| 12574 | cat >>conftest.$ac_ext <<_ACEOF |
| 12575 | /* end confdefs.h. */ |
| 12576 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12577 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12578 | int |
| 12579 | main () |
| 12580 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12581 | 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] | 12582 | test_array [0] = 0 |
| 12583 | |
| 12584 | ; |
| 12585 | return 0; |
| 12586 | } |
| 12587 | _ACEOF |
| 12588 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12589 | if { (ac_try="$ac_compile" |
| 12590 | case "(($ac_try" in |
| 12591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12592 | *) ac_try_echo=$ac_try;; |
| 12593 | esac |
| 12594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12595 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12596 | ac_status=$? |
| 12597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12598 | rm -f conftest.er1 |
| 12599 | cat conftest.err >&5 |
| 12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12601 | (exit $ac_status); } && { |
| 12602 | test -z "$ac_c_werror_flag" || |
| 12603 | test ! -s conftest.err |
| 12604 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12605 | ac_lo=$ac_mid; break |
| 12606 | else |
| 12607 | echo "$as_me: failed program was:" >&5 |
| 12608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12610 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12611 | if test $ac_mid -le $ac_hi; then |
| 12612 | ac_lo= ac_hi= |
| 12613 | break |
| 12614 | fi |
| 12615 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12616 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12617 | |
| 12618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12619 | done |
| 12620 | else |
| 12621 | echo "$as_me: failed program was:" >&5 |
| 12622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12623 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12624 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12625 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12626 | |
| 12627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12629 | |
| 12630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12631 | # Binary search between lo and hi bounds. |
| 12632 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12633 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12634 | cat >conftest.$ac_ext <<_ACEOF |
| 12635 | /* confdefs.h. */ |
| 12636 | _ACEOF |
| 12637 | cat confdefs.h >>conftest.$ac_ext |
| 12638 | cat >>conftest.$ac_ext <<_ACEOF |
| 12639 | /* end confdefs.h. */ |
| 12640 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12641 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12642 | int |
| 12643 | main () |
| 12644 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12645 | 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] | 12646 | test_array [0] = 0 |
| 12647 | |
| 12648 | ; |
| 12649 | return 0; |
| 12650 | } |
| 12651 | _ACEOF |
| 12652 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12653 | if { (ac_try="$ac_compile" |
| 12654 | case "(($ac_try" in |
| 12655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12656 | *) ac_try_echo=$ac_try;; |
| 12657 | esac |
| 12658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12659 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12660 | ac_status=$? |
| 12661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12662 | rm -f conftest.er1 |
| 12663 | cat conftest.err >&5 |
| 12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12665 | (exit $ac_status); } && { |
| 12666 | test -z "$ac_c_werror_flag" || |
| 12667 | test ! -s conftest.err |
| 12668 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12669 | ac_hi=$ac_mid |
| 12670 | else |
| 12671 | echo "$as_me: failed program was:" >&5 |
| 12672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12674 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12675 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12676 | |
| 12677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12678 | done |
| 12679 | case $ac_lo in |
| 12680 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12681 | '') if test "$ac_cv_type_short" = yes; then |
| 12682 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12683 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12684 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12685 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12686 | { (exit 77); exit 77; }; } |
| 12687 | else |
| 12688 | ac_cv_sizeof_short=0 |
| 12689 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12691 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12692 | cat >conftest.$ac_ext <<_ACEOF |
| 12693 | /* confdefs.h. */ |
| 12694 | _ACEOF |
| 12695 | cat confdefs.h >>conftest.$ac_ext |
| 12696 | cat >>conftest.$ac_ext <<_ACEOF |
| 12697 | /* end confdefs.h. */ |
| 12698 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12699 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12700 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12701 | 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] | 12702 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12703 | #include <stdlib.h> |
| 12704 | int |
| 12705 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12706 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12707 | |
| 12708 | FILE *f = fopen ("conftest.val", "w"); |
| 12709 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12710 | return 1; |
| 12711 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12712 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12713 | long int i = longval (); |
| 12714 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12715 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12716 | fprintf (f, "%ld\n", i); |
| 12717 | } |
| 12718 | else |
| 12719 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12720 | unsigned long int i = ulongval (); |
| 12721 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12722 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12723 | fprintf (f, "%lu\n", i); |
| 12724 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12725 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12726 | |
| 12727 | ; |
| 12728 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12729 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12730 | _ACEOF |
| 12731 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12732 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12742 | { (case "(($ac_try" in |
| 12743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12744 | *) ac_try_echo=$ac_try;; |
| 12745 | esac |
| 12746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12747 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12748 | ac_status=$? |
| 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12750 | (exit $ac_status); }; }; then |
| 12751 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12752 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12753 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12754 | echo "$as_me: failed program was:" >&5 |
| 12755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12756 | |
| 12757 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12758 | if test "$ac_cv_type_short" = yes; then |
| 12759 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12760 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12761 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12762 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12763 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12764 | else |
| 12765 | ac_cv_sizeof_short=0 |
| 12766 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12767 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12768 | 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] | 12769 | fi |
| 12770 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12772 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12773 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12774 | |
| 12775 | |
| 12776 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12777 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12778 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12779 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12780 | |
| 12781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12782 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12783 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12784 | if test "${ac_cv_type_int+set}" = set; then |
| 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12786 | else |
| 12787 | cat >conftest.$ac_ext <<_ACEOF |
| 12788 | /* confdefs.h. */ |
| 12789 | _ACEOF |
| 12790 | cat confdefs.h >>conftest.$ac_ext |
| 12791 | cat >>conftest.$ac_ext <<_ACEOF |
| 12792 | /* end confdefs.h. */ |
| 12793 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12794 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12795 | int |
| 12796 | main () |
| 12797 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12798 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12799 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12800 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12801 | return 0; |
| 12802 | ; |
| 12803 | return 0; |
| 12804 | } |
| 12805 | _ACEOF |
| 12806 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12807 | if { (ac_try="$ac_compile" |
| 12808 | case "(($ac_try" in |
| 12809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12810 | *) ac_try_echo=$ac_try;; |
| 12811 | esac |
| 12812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12813 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12814 | ac_status=$? |
| 12815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12816 | rm -f conftest.er1 |
| 12817 | cat conftest.err >&5 |
| 12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12819 | (exit $ac_status); } && { |
| 12820 | test -z "$ac_c_werror_flag" || |
| 12821 | test ! -s conftest.err |
| 12822 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12823 | ac_cv_type_int=yes |
| 12824 | else |
| 12825 | echo "$as_me: failed program was:" >&5 |
| 12826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12828 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12829 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12830 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12832 | fi |
| 12833 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12834 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12835 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12836 | # The cast to long int works around a bug in the HP C Compiler |
| 12837 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12838 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12839 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12840 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12841 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12842 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12844 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12845 | if test "$cross_compiling" = yes; then |
| 12846 | # Depending upon the size, compute the lo and hi bounds. |
| 12847 | cat >conftest.$ac_ext <<_ACEOF |
| 12848 | /* confdefs.h. */ |
| 12849 | _ACEOF |
| 12850 | cat confdefs.h >>conftest.$ac_ext |
| 12851 | cat >>conftest.$ac_ext <<_ACEOF |
| 12852 | /* end confdefs.h. */ |
| 12853 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12854 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12855 | int |
| 12856 | main () |
| 12857 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12858 | 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] | 12859 | test_array [0] = 0 |
| 12860 | |
| 12861 | ; |
| 12862 | return 0; |
| 12863 | } |
| 12864 | _ACEOF |
| 12865 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12866 | if { (ac_try="$ac_compile" |
| 12867 | case "(($ac_try" in |
| 12868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12869 | *) ac_try_echo=$ac_try;; |
| 12870 | esac |
| 12871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12872 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12873 | ac_status=$? |
| 12874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12875 | rm -f conftest.er1 |
| 12876 | cat conftest.err >&5 |
| 12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12878 | (exit $ac_status); } && { |
| 12879 | test -z "$ac_c_werror_flag" || |
| 12880 | test ! -s conftest.err |
| 12881 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12882 | ac_lo=0 ac_mid=0 |
| 12883 | while :; do |
| 12884 | cat >conftest.$ac_ext <<_ACEOF |
| 12885 | /* confdefs.h. */ |
| 12886 | _ACEOF |
| 12887 | cat confdefs.h >>conftest.$ac_ext |
| 12888 | cat >>conftest.$ac_ext <<_ACEOF |
| 12889 | /* end confdefs.h. */ |
| 12890 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12891 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12892 | int |
| 12893 | main () |
| 12894 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12895 | 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] | 12896 | test_array [0] = 0 |
| 12897 | |
| 12898 | ; |
| 12899 | return 0; |
| 12900 | } |
| 12901 | _ACEOF |
| 12902 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12903 | if { (ac_try="$ac_compile" |
| 12904 | case "(($ac_try" in |
| 12905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12906 | *) ac_try_echo=$ac_try;; |
| 12907 | esac |
| 12908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12909 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12910 | ac_status=$? |
| 12911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12912 | rm -f conftest.er1 |
| 12913 | cat conftest.err >&5 |
| 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12915 | (exit $ac_status); } && { |
| 12916 | test -z "$ac_c_werror_flag" || |
| 12917 | test ! -s conftest.err |
| 12918 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12919 | ac_hi=$ac_mid; break |
| 12920 | else |
| 12921 | echo "$as_me: failed program was:" >&5 |
| 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12924 | ac_lo=`expr $ac_mid + 1` |
| 12925 | if test $ac_lo -le $ac_mid; then |
| 12926 | ac_lo= ac_hi= |
| 12927 | break |
| 12928 | fi |
| 12929 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12930 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12931 | |
| 12932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12933 | done |
| 12934 | else |
| 12935 | echo "$as_me: failed program was:" >&5 |
| 12936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12937 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12938 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12939 | /* confdefs.h. */ |
| 12940 | _ACEOF |
| 12941 | cat confdefs.h >>conftest.$ac_ext |
| 12942 | cat >>conftest.$ac_ext <<_ACEOF |
| 12943 | /* end confdefs.h. */ |
| 12944 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12945 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12946 | int |
| 12947 | main () |
| 12948 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12949 | 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] | 12950 | test_array [0] = 0 |
| 12951 | |
| 12952 | ; |
| 12953 | return 0; |
| 12954 | } |
| 12955 | _ACEOF |
| 12956 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12957 | if { (ac_try="$ac_compile" |
| 12958 | case "(($ac_try" in |
| 12959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12960 | *) ac_try_echo=$ac_try;; |
| 12961 | esac |
| 12962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12963 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12964 | ac_status=$? |
| 12965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12966 | rm -f conftest.er1 |
| 12967 | cat conftest.err >&5 |
| 12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12969 | (exit $ac_status); } && { |
| 12970 | test -z "$ac_c_werror_flag" || |
| 12971 | test ! -s conftest.err |
| 12972 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12973 | ac_hi=-1 ac_mid=-1 |
| 12974 | while :; do |
| 12975 | cat >conftest.$ac_ext <<_ACEOF |
| 12976 | /* confdefs.h. */ |
| 12977 | _ACEOF |
| 12978 | cat confdefs.h >>conftest.$ac_ext |
| 12979 | cat >>conftest.$ac_ext <<_ACEOF |
| 12980 | /* end confdefs.h. */ |
| 12981 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12982 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12983 | int |
| 12984 | main () |
| 12985 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12986 | 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] | 12987 | test_array [0] = 0 |
| 12988 | |
| 12989 | ; |
| 12990 | return 0; |
| 12991 | } |
| 12992 | _ACEOF |
| 12993 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12994 | if { (ac_try="$ac_compile" |
| 12995 | case "(($ac_try" in |
| 12996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12997 | *) ac_try_echo=$ac_try;; |
| 12998 | esac |
| 12999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13000 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13001 | ac_status=$? |
| 13002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13003 | rm -f conftest.er1 |
| 13004 | cat conftest.err >&5 |
| 13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13006 | (exit $ac_status); } && { |
| 13007 | test -z "$ac_c_werror_flag" || |
| 13008 | test ! -s conftest.err |
| 13009 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13010 | ac_lo=$ac_mid; break |
| 13011 | else |
| 13012 | echo "$as_me: failed program was:" >&5 |
| 13013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13015 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13016 | if test $ac_mid -le $ac_hi; then |
| 13017 | ac_lo= ac_hi= |
| 13018 | break |
| 13019 | fi |
| 13020 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13021 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13022 | |
| 13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13024 | done |
| 13025 | else |
| 13026 | echo "$as_me: failed program was:" >&5 |
| 13027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13029 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13031 | |
| 13032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13033 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13034 | |
| 13035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | # Binary search between lo and hi bounds. |
| 13037 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13038 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13039 | cat >conftest.$ac_ext <<_ACEOF |
| 13040 | /* confdefs.h. */ |
| 13041 | _ACEOF |
| 13042 | cat confdefs.h >>conftest.$ac_ext |
| 13043 | cat >>conftest.$ac_ext <<_ACEOF |
| 13044 | /* end confdefs.h. */ |
| 13045 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13046 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13047 | int |
| 13048 | main () |
| 13049 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13050 | 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] | 13051 | test_array [0] = 0 |
| 13052 | |
| 13053 | ; |
| 13054 | return 0; |
| 13055 | } |
| 13056 | _ACEOF |
| 13057 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13058 | if { (ac_try="$ac_compile" |
| 13059 | case "(($ac_try" in |
| 13060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13061 | *) ac_try_echo=$ac_try;; |
| 13062 | esac |
| 13063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13064 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13065 | ac_status=$? |
| 13066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13067 | rm -f conftest.er1 |
| 13068 | cat conftest.err >&5 |
| 13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13070 | (exit $ac_status); } && { |
| 13071 | test -z "$ac_c_werror_flag" || |
| 13072 | test ! -s conftest.err |
| 13073 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13074 | ac_hi=$ac_mid |
| 13075 | else |
| 13076 | echo "$as_me: failed program was:" >&5 |
| 13077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13078 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13079 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13080 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13081 | |
| 13082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13083 | done |
| 13084 | case $ac_lo in |
| 13085 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13086 | '') if test "$ac_cv_type_int" = yes; then |
| 13087 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13088 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13089 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13090 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13091 | { (exit 77); exit 77; }; } |
| 13092 | else |
| 13093 | ac_cv_sizeof_int=0 |
| 13094 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13095 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13096 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13097 | cat >conftest.$ac_ext <<_ACEOF |
| 13098 | /* confdefs.h. */ |
| 13099 | _ACEOF |
| 13100 | cat confdefs.h >>conftest.$ac_ext |
| 13101 | cat >>conftest.$ac_ext <<_ACEOF |
| 13102 | /* end confdefs.h. */ |
| 13103 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13104 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13105 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13106 | 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] | 13107 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13108 | #include <stdlib.h> |
| 13109 | int |
| 13110 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13111 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13112 | |
| 13113 | FILE *f = fopen ("conftest.val", "w"); |
| 13114 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13115 | return 1; |
| 13116 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13117 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13118 | long int i = longval (); |
| 13119 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13120 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13121 | fprintf (f, "%ld\n", i); |
| 13122 | } |
| 13123 | else |
| 13124 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13125 | unsigned long int i = ulongval (); |
| 13126 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13127 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13128 | fprintf (f, "%lu\n", i); |
| 13129 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13130 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13131 | |
| 13132 | ; |
| 13133 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13134 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13135 | _ACEOF |
| 13136 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13137 | if { (ac_try="$ac_link" |
| 13138 | case "(($ac_try" in |
| 13139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13140 | *) ac_try_echo=$ac_try;; |
| 13141 | esac |
| 13142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13143 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13144 | ac_status=$? |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13147 | { (case "(($ac_try" in |
| 13148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13149 | *) ac_try_echo=$ac_try;; |
| 13150 | esac |
| 13151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13152 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13153 | ac_status=$? |
| 13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13155 | (exit $ac_status); }; }; then |
| 13156 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13157 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13158 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13159 | echo "$as_me: failed program was:" >&5 |
| 13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13161 | |
| 13162 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13163 | if test "$ac_cv_type_int" = yes; then |
| 13164 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13165 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13166 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13167 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13168 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13169 | else |
| 13170 | ac_cv_sizeof_int=0 |
| 13171 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13172 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13173 | 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] | 13174 | fi |
| 13175 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13176 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13177 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13178 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13179 | |
| 13180 | |
| 13181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13182 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13183 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13184 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13185 | |
| 13186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13187 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13188 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13189 | if test "${ac_cv_type_long+set}" = set; then |
| 13190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13191 | else |
| 13192 | cat >conftest.$ac_ext <<_ACEOF |
| 13193 | /* confdefs.h. */ |
| 13194 | _ACEOF |
| 13195 | cat confdefs.h >>conftest.$ac_ext |
| 13196 | cat >>conftest.$ac_ext <<_ACEOF |
| 13197 | /* end confdefs.h. */ |
| 13198 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13199 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13200 | int |
| 13201 | main () |
| 13202 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13203 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13204 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13205 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13206 | return 0; |
| 13207 | ; |
| 13208 | return 0; |
| 13209 | } |
| 13210 | _ACEOF |
| 13211 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13212 | if { (ac_try="$ac_compile" |
| 13213 | case "(($ac_try" in |
| 13214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13215 | *) ac_try_echo=$ac_try;; |
| 13216 | esac |
| 13217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13218 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13219 | ac_status=$? |
| 13220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13221 | rm -f conftest.er1 |
| 13222 | cat conftest.err >&5 |
| 13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13224 | (exit $ac_status); } && { |
| 13225 | test -z "$ac_c_werror_flag" || |
| 13226 | test ! -s conftest.err |
| 13227 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13228 | ac_cv_type_long=yes |
| 13229 | else |
| 13230 | echo "$as_me: failed program was:" >&5 |
| 13231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13232 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13233 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13234 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13237 | fi |
| 13238 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13239 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13240 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13241 | # The cast to long int works around a bug in the HP C Compiler |
| 13242 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13243 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13244 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13245 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13246 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13247 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13249 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13250 | if test "$cross_compiling" = yes; then |
| 13251 | # Depending upon the size, compute the lo and hi bounds. |
| 13252 | cat >conftest.$ac_ext <<_ACEOF |
| 13253 | /* confdefs.h. */ |
| 13254 | _ACEOF |
| 13255 | cat confdefs.h >>conftest.$ac_ext |
| 13256 | cat >>conftest.$ac_ext <<_ACEOF |
| 13257 | /* end confdefs.h. */ |
| 13258 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13259 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13260 | int |
| 13261 | main () |
| 13262 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13263 | 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] | 13264 | test_array [0] = 0 |
| 13265 | |
| 13266 | ; |
| 13267 | return 0; |
| 13268 | } |
| 13269 | _ACEOF |
| 13270 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13271 | if { (ac_try="$ac_compile" |
| 13272 | case "(($ac_try" in |
| 13273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13274 | *) ac_try_echo=$ac_try;; |
| 13275 | esac |
| 13276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13277 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13278 | ac_status=$? |
| 13279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13280 | rm -f conftest.er1 |
| 13281 | cat conftest.err >&5 |
| 13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13283 | (exit $ac_status); } && { |
| 13284 | test -z "$ac_c_werror_flag" || |
| 13285 | test ! -s conftest.err |
| 13286 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13287 | ac_lo=0 ac_mid=0 |
| 13288 | while :; do |
| 13289 | cat >conftest.$ac_ext <<_ACEOF |
| 13290 | /* confdefs.h. */ |
| 13291 | _ACEOF |
| 13292 | cat confdefs.h >>conftest.$ac_ext |
| 13293 | cat >>conftest.$ac_ext <<_ACEOF |
| 13294 | /* end confdefs.h. */ |
| 13295 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13296 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13297 | int |
| 13298 | main () |
| 13299 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13300 | 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] | 13301 | test_array [0] = 0 |
| 13302 | |
| 13303 | ; |
| 13304 | return 0; |
| 13305 | } |
| 13306 | _ACEOF |
| 13307 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13308 | if { (ac_try="$ac_compile" |
| 13309 | case "(($ac_try" in |
| 13310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13311 | *) ac_try_echo=$ac_try;; |
| 13312 | esac |
| 13313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13314 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13315 | ac_status=$? |
| 13316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13317 | rm -f conftest.er1 |
| 13318 | cat conftest.err >&5 |
| 13319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13320 | (exit $ac_status); } && { |
| 13321 | test -z "$ac_c_werror_flag" || |
| 13322 | test ! -s conftest.err |
| 13323 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13324 | ac_hi=$ac_mid; break |
| 13325 | else |
| 13326 | echo "$as_me: failed program was:" >&5 |
| 13327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13328 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13329 | ac_lo=`expr $ac_mid + 1` |
| 13330 | if test $ac_lo -le $ac_mid; then |
| 13331 | ac_lo= ac_hi= |
| 13332 | break |
| 13333 | fi |
| 13334 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13335 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13336 | |
| 13337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13338 | done |
| 13339 | else |
| 13340 | echo "$as_me: failed program was:" >&5 |
| 13341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13343 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13344 | /* confdefs.h. */ |
| 13345 | _ACEOF |
| 13346 | cat confdefs.h >>conftest.$ac_ext |
| 13347 | cat >>conftest.$ac_ext <<_ACEOF |
| 13348 | /* end confdefs.h. */ |
| 13349 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13350 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13351 | int |
| 13352 | main () |
| 13353 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13354 | 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] | 13355 | test_array [0] = 0 |
| 13356 | |
| 13357 | ; |
| 13358 | return 0; |
| 13359 | } |
| 13360 | _ACEOF |
| 13361 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13362 | if { (ac_try="$ac_compile" |
| 13363 | case "(($ac_try" in |
| 13364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13365 | *) ac_try_echo=$ac_try;; |
| 13366 | esac |
| 13367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13368 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13369 | ac_status=$? |
| 13370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13371 | rm -f conftest.er1 |
| 13372 | cat conftest.err >&5 |
| 13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13374 | (exit $ac_status); } && { |
| 13375 | test -z "$ac_c_werror_flag" || |
| 13376 | test ! -s conftest.err |
| 13377 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13378 | ac_hi=-1 ac_mid=-1 |
| 13379 | while :; do |
| 13380 | cat >conftest.$ac_ext <<_ACEOF |
| 13381 | /* confdefs.h. */ |
| 13382 | _ACEOF |
| 13383 | cat confdefs.h >>conftest.$ac_ext |
| 13384 | cat >>conftest.$ac_ext <<_ACEOF |
| 13385 | /* end confdefs.h. */ |
| 13386 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13387 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13388 | int |
| 13389 | main () |
| 13390 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13391 | 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] | 13392 | test_array [0] = 0 |
| 13393 | |
| 13394 | ; |
| 13395 | return 0; |
| 13396 | } |
| 13397 | _ACEOF |
| 13398 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13399 | if { (ac_try="$ac_compile" |
| 13400 | case "(($ac_try" in |
| 13401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13402 | *) ac_try_echo=$ac_try;; |
| 13403 | esac |
| 13404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13405 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13406 | ac_status=$? |
| 13407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13408 | rm -f conftest.er1 |
| 13409 | cat conftest.err >&5 |
| 13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13411 | (exit $ac_status); } && { |
| 13412 | test -z "$ac_c_werror_flag" || |
| 13413 | test ! -s conftest.err |
| 13414 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13415 | ac_lo=$ac_mid; break |
| 13416 | else |
| 13417 | echo "$as_me: failed program was:" >&5 |
| 13418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13420 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13421 | if test $ac_mid -le $ac_hi; then |
| 13422 | ac_lo= ac_hi= |
| 13423 | break |
| 13424 | fi |
| 13425 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13427 | |
| 13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13429 | done |
| 13430 | else |
| 13431 | echo "$as_me: failed program was:" >&5 |
| 13432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13433 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13434 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13435 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13436 | |
| 13437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13438 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13439 | |
| 13440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13441 | # Binary search between lo and hi bounds. |
| 13442 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13443 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13444 | cat >conftest.$ac_ext <<_ACEOF |
| 13445 | /* confdefs.h. */ |
| 13446 | _ACEOF |
| 13447 | cat confdefs.h >>conftest.$ac_ext |
| 13448 | cat >>conftest.$ac_ext <<_ACEOF |
| 13449 | /* end confdefs.h. */ |
| 13450 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13451 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13452 | int |
| 13453 | main () |
| 13454 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13455 | 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] | 13456 | test_array [0] = 0 |
| 13457 | |
| 13458 | ; |
| 13459 | return 0; |
| 13460 | } |
| 13461 | _ACEOF |
| 13462 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13463 | if { (ac_try="$ac_compile" |
| 13464 | case "(($ac_try" in |
| 13465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13466 | *) ac_try_echo=$ac_try;; |
| 13467 | esac |
| 13468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13469 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13470 | ac_status=$? |
| 13471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13472 | rm -f conftest.er1 |
| 13473 | cat conftest.err >&5 |
| 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13475 | (exit $ac_status); } && { |
| 13476 | test -z "$ac_c_werror_flag" || |
| 13477 | test ! -s conftest.err |
| 13478 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13479 | ac_hi=$ac_mid |
| 13480 | else |
| 13481 | echo "$as_me: failed program was:" >&5 |
| 13482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13484 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13486 | |
| 13487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13488 | done |
| 13489 | case $ac_lo in |
| 13490 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13491 | '') if test "$ac_cv_type_long" = yes; then |
| 13492 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13493 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13494 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13495 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13496 | { (exit 77); exit 77; }; } |
| 13497 | else |
| 13498 | ac_cv_sizeof_long=0 |
| 13499 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13500 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13501 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13502 | cat >conftest.$ac_ext <<_ACEOF |
| 13503 | /* confdefs.h. */ |
| 13504 | _ACEOF |
| 13505 | cat confdefs.h >>conftest.$ac_ext |
| 13506 | cat >>conftest.$ac_ext <<_ACEOF |
| 13507 | /* end confdefs.h. */ |
| 13508 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13509 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13510 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13511 | 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] | 13512 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13513 | #include <stdlib.h> |
| 13514 | int |
| 13515 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13516 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13517 | |
| 13518 | FILE *f = fopen ("conftest.val", "w"); |
| 13519 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13520 | return 1; |
| 13521 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13522 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13523 | long int i = longval (); |
| 13524 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13525 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13526 | fprintf (f, "%ld\n", i); |
| 13527 | } |
| 13528 | else |
| 13529 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13530 | unsigned long int i = ulongval (); |
| 13531 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13532 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13533 | fprintf (f, "%lu\n", i); |
| 13534 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13535 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13536 | |
| 13537 | ; |
| 13538 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13539 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13540 | _ACEOF |
| 13541 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13542 | if { (ac_try="$ac_link" |
| 13543 | case "(($ac_try" in |
| 13544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13545 | *) ac_try_echo=$ac_try;; |
| 13546 | esac |
| 13547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13548 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13552 | { (case "(($ac_try" in |
| 13553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13554 | *) ac_try_echo=$ac_try;; |
| 13555 | esac |
| 13556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13557 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13558 | ac_status=$? |
| 13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13560 | (exit $ac_status); }; }; then |
| 13561 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13562 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13564 | echo "$as_me: failed program was:" >&5 |
| 13565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13566 | |
| 13567 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13568 | if test "$ac_cv_type_long" = yes; then |
| 13569 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13570 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13571 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13572 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13573 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13574 | else |
| 13575 | ac_cv_sizeof_long=0 |
| 13576 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13578 | 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] | 13579 | fi |
| 13580 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13581 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13582 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13583 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13584 | |
| 13585 | |
| 13586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13587 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13588 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13589 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13590 | |
| 13591 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13592 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13593 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13594 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13596 | else |
| 13597 | cat >conftest.$ac_ext <<_ACEOF |
| 13598 | /* confdefs.h. */ |
| 13599 | _ACEOF |
| 13600 | cat confdefs.h >>conftest.$ac_ext |
| 13601 | cat >>conftest.$ac_ext <<_ACEOF |
| 13602 | /* end confdefs.h. */ |
| 13603 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13604 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13605 | int |
| 13606 | main () |
| 13607 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13608 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13609 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13610 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13611 | return 0; |
| 13612 | ; |
| 13613 | return 0; |
| 13614 | } |
| 13615 | _ACEOF |
| 13616 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13617 | if { (ac_try="$ac_compile" |
| 13618 | case "(($ac_try" in |
| 13619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13620 | *) ac_try_echo=$ac_try;; |
| 13621 | esac |
| 13622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13623 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13624 | ac_status=$? |
| 13625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13626 | rm -f conftest.er1 |
| 13627 | cat conftest.err >&5 |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13629 | (exit $ac_status); } && { |
| 13630 | test -z "$ac_c_werror_flag" || |
| 13631 | test ! -s conftest.err |
| 13632 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13633 | ac_cv_type_long_long=yes |
| 13634 | else |
| 13635 | echo "$as_me: failed program was:" >&5 |
| 13636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13637 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13638 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13639 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13640 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13642 | fi |
| 13643 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13644 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13645 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13646 | # The cast to long int works around a bug in the HP C Compiler |
| 13647 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13648 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13649 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13650 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13651 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13652 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13654 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13655 | if test "$cross_compiling" = yes; then |
| 13656 | # Depending upon the size, compute the lo and hi bounds. |
| 13657 | cat >conftest.$ac_ext <<_ACEOF |
| 13658 | /* confdefs.h. */ |
| 13659 | _ACEOF |
| 13660 | cat confdefs.h >>conftest.$ac_ext |
| 13661 | cat >>conftest.$ac_ext <<_ACEOF |
| 13662 | /* end confdefs.h. */ |
| 13663 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13664 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13665 | int |
| 13666 | main () |
| 13667 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13668 | 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] | 13669 | test_array [0] = 0 |
| 13670 | |
| 13671 | ; |
| 13672 | return 0; |
| 13673 | } |
| 13674 | _ACEOF |
| 13675 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13676 | if { (ac_try="$ac_compile" |
| 13677 | case "(($ac_try" in |
| 13678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13679 | *) ac_try_echo=$ac_try;; |
| 13680 | esac |
| 13681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13682 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13683 | ac_status=$? |
| 13684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13685 | rm -f conftest.er1 |
| 13686 | cat conftest.err >&5 |
| 13687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13688 | (exit $ac_status); } && { |
| 13689 | test -z "$ac_c_werror_flag" || |
| 13690 | test ! -s conftest.err |
| 13691 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13692 | ac_lo=0 ac_mid=0 |
| 13693 | while :; do |
| 13694 | cat >conftest.$ac_ext <<_ACEOF |
| 13695 | /* confdefs.h. */ |
| 13696 | _ACEOF |
| 13697 | cat confdefs.h >>conftest.$ac_ext |
| 13698 | cat >>conftest.$ac_ext <<_ACEOF |
| 13699 | /* end confdefs.h. */ |
| 13700 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13701 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13702 | int |
| 13703 | main () |
| 13704 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13705 | 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] | 13706 | test_array [0] = 0 |
| 13707 | |
| 13708 | ; |
| 13709 | return 0; |
| 13710 | } |
| 13711 | _ACEOF |
| 13712 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13713 | if { (ac_try="$ac_compile" |
| 13714 | case "(($ac_try" in |
| 13715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13716 | *) ac_try_echo=$ac_try;; |
| 13717 | esac |
| 13718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13719 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13720 | ac_status=$? |
| 13721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13722 | rm -f conftest.er1 |
| 13723 | cat conftest.err >&5 |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13725 | (exit $ac_status); } && { |
| 13726 | test -z "$ac_c_werror_flag" || |
| 13727 | test ! -s conftest.err |
| 13728 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13729 | ac_hi=$ac_mid; break |
| 13730 | else |
| 13731 | echo "$as_me: failed program was:" >&5 |
| 13732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13734 | ac_lo=`expr $ac_mid + 1` |
| 13735 | if test $ac_lo -le $ac_mid; then |
| 13736 | ac_lo= ac_hi= |
| 13737 | break |
| 13738 | fi |
| 13739 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13741 | |
| 13742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13743 | done |
| 13744 | else |
| 13745 | echo "$as_me: failed program was:" >&5 |
| 13746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13747 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13748 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13749 | /* confdefs.h. */ |
| 13750 | _ACEOF |
| 13751 | cat confdefs.h >>conftest.$ac_ext |
| 13752 | cat >>conftest.$ac_ext <<_ACEOF |
| 13753 | /* end confdefs.h. */ |
| 13754 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13755 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13756 | int |
| 13757 | main () |
| 13758 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13759 | 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] | 13760 | test_array [0] = 0 |
| 13761 | |
| 13762 | ; |
| 13763 | return 0; |
| 13764 | } |
| 13765 | _ACEOF |
| 13766 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13767 | if { (ac_try="$ac_compile" |
| 13768 | case "(($ac_try" in |
| 13769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13770 | *) ac_try_echo=$ac_try;; |
| 13771 | esac |
| 13772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13773 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13774 | ac_status=$? |
| 13775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13776 | rm -f conftest.er1 |
| 13777 | cat conftest.err >&5 |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13779 | (exit $ac_status); } && { |
| 13780 | test -z "$ac_c_werror_flag" || |
| 13781 | test ! -s conftest.err |
| 13782 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13783 | ac_hi=-1 ac_mid=-1 |
| 13784 | while :; do |
| 13785 | cat >conftest.$ac_ext <<_ACEOF |
| 13786 | /* confdefs.h. */ |
| 13787 | _ACEOF |
| 13788 | cat confdefs.h >>conftest.$ac_ext |
| 13789 | cat >>conftest.$ac_ext <<_ACEOF |
| 13790 | /* end confdefs.h. */ |
| 13791 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13792 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13793 | int |
| 13794 | main () |
| 13795 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13796 | 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] | 13797 | test_array [0] = 0 |
| 13798 | |
| 13799 | ; |
| 13800 | return 0; |
| 13801 | } |
| 13802 | _ACEOF |
| 13803 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | if { (ac_try="$ac_compile" |
| 13805 | case "(($ac_try" in |
| 13806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13807 | *) ac_try_echo=$ac_try;; |
| 13808 | esac |
| 13809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13810 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | ac_status=$? |
| 13812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13813 | rm -f conftest.er1 |
| 13814 | cat conftest.err >&5 |
| 13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13816 | (exit $ac_status); } && { |
| 13817 | test -z "$ac_c_werror_flag" || |
| 13818 | test ! -s conftest.err |
| 13819 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13820 | ac_lo=$ac_mid; break |
| 13821 | else |
| 13822 | echo "$as_me: failed program was:" >&5 |
| 13823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13824 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13825 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13826 | if test $ac_mid -le $ac_hi; then |
| 13827 | ac_lo= ac_hi= |
| 13828 | break |
| 13829 | fi |
| 13830 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13832 | |
| 13833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13834 | done |
| 13835 | else |
| 13836 | echo "$as_me: failed program was:" >&5 |
| 13837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13838 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13839 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13840 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13841 | |
| 13842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13844 | |
| 13845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13846 | # Binary search between lo and hi bounds. |
| 13847 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13848 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13849 | cat >conftest.$ac_ext <<_ACEOF |
| 13850 | /* confdefs.h. */ |
| 13851 | _ACEOF |
| 13852 | cat confdefs.h >>conftest.$ac_ext |
| 13853 | cat >>conftest.$ac_ext <<_ACEOF |
| 13854 | /* end confdefs.h. */ |
| 13855 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13856 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13857 | int |
| 13858 | main () |
| 13859 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13860 | 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] | 13861 | test_array [0] = 0 |
| 13862 | |
| 13863 | ; |
| 13864 | return 0; |
| 13865 | } |
| 13866 | _ACEOF |
| 13867 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13868 | if { (ac_try="$ac_compile" |
| 13869 | case "(($ac_try" in |
| 13870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13871 | *) ac_try_echo=$ac_try;; |
| 13872 | esac |
| 13873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13874 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13875 | ac_status=$? |
| 13876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13877 | rm -f conftest.er1 |
| 13878 | cat conftest.err >&5 |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13880 | (exit $ac_status); } && { |
| 13881 | test -z "$ac_c_werror_flag" || |
| 13882 | test ! -s conftest.err |
| 13883 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13884 | ac_hi=$ac_mid |
| 13885 | else |
| 13886 | echo "$as_me: failed program was:" >&5 |
| 13887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13889 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13890 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13891 | |
| 13892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13893 | done |
| 13894 | case $ac_lo in |
| 13895 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13896 | '') if test "$ac_cv_type_long_long" = yes; then |
| 13897 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13898 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13899 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13900 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13901 | { (exit 77); exit 77; }; } |
| 13902 | else |
| 13903 | ac_cv_sizeof_long_long=0 |
| 13904 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13905 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13906 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13907 | cat >conftest.$ac_ext <<_ACEOF |
| 13908 | /* confdefs.h. */ |
| 13909 | _ACEOF |
| 13910 | cat confdefs.h >>conftest.$ac_ext |
| 13911 | cat >>conftest.$ac_ext <<_ACEOF |
| 13912 | /* end confdefs.h. */ |
| 13913 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13914 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13915 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13916 | 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] | 13917 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13918 | #include <stdlib.h> |
| 13919 | int |
| 13920 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13921 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13922 | |
| 13923 | FILE *f = fopen ("conftest.val", "w"); |
| 13924 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13925 | return 1; |
| 13926 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13927 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13928 | long int i = longval (); |
| 13929 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13930 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13931 | fprintf (f, "%ld\n", i); |
| 13932 | } |
| 13933 | else |
| 13934 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13935 | unsigned long int i = ulongval (); |
| 13936 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13937 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13938 | fprintf (f, "%lu\n", i); |
| 13939 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13940 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13941 | |
| 13942 | ; |
| 13943 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13944 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13945 | _ACEOF |
| 13946 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13947 | if { (ac_try="$ac_link" |
| 13948 | case "(($ac_try" in |
| 13949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13950 | *) ac_try_echo=$ac_try;; |
| 13951 | esac |
| 13952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13953 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13954 | ac_status=$? |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13957 | { (case "(($ac_try" in |
| 13958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13959 | *) ac_try_echo=$ac_try;; |
| 13960 | esac |
| 13961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13962 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13963 | ac_status=$? |
| 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13965 | (exit $ac_status); }; }; then |
| 13966 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13967 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13969 | echo "$as_me: failed program was:" >&5 |
| 13970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13971 | |
| 13972 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13973 | if test "$ac_cv_type_long_long" = yes; then |
| 13974 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13975 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13976 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13977 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13978 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13979 | else |
| 13980 | ac_cv_sizeof_long_long=0 |
| 13981 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13982 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13983 | 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] | 13984 | fi |
| 13985 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13986 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13987 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 13988 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13989 | |
| 13990 | |
| 13991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13992 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13993 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13994 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13995 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13996 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13997 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 13998 | SIZEOF_INT=$ac_cv_sizeof_int |
| 13999 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14000 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14001 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14002 | |
| 14003 | |
| 14004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14005 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14006 | 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] | 14007 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14009 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14010 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14011 | cat >conftest.$ac_ext <<_ACEOF |
| 14012 | /* confdefs.h. */ |
| 14013 | _ACEOF |
| 14014 | cat confdefs.h >>conftest.$ac_ext |
| 14015 | cat >>conftest.$ac_ext <<_ACEOF |
| 14016 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14017 | #include <sys/types.h> |
| 14018 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14019 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14020 | int |
| 14021 | main () |
| 14022 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14023 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14024 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14025 | bogus endian macros |
| 14026 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14027 | |
| 14028 | ; |
| 14029 | return 0; |
| 14030 | } |
| 14031 | _ACEOF |
| 14032 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14033 | if { (ac_try="$ac_compile" |
| 14034 | case "(($ac_try" in |
| 14035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14036 | *) ac_try_echo=$ac_try;; |
| 14037 | esac |
| 14038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14039 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14040 | ac_status=$? |
| 14041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14042 | rm -f conftest.er1 |
| 14043 | cat conftest.err >&5 |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14045 | (exit $ac_status); } && { |
| 14046 | test -z "$ac_c_werror_flag" || |
| 14047 | test ! -s conftest.err |
| 14048 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14049 | # 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] | 14050 | cat >conftest.$ac_ext <<_ACEOF |
| 14051 | /* confdefs.h. */ |
| 14052 | _ACEOF |
| 14053 | cat confdefs.h >>conftest.$ac_ext |
| 14054 | cat >>conftest.$ac_ext <<_ACEOF |
| 14055 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14056 | #include <sys/types.h> |
| 14057 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14058 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14059 | int |
| 14060 | main () |
| 14061 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14062 | #if BYTE_ORDER != BIG_ENDIAN |
| 14063 | not big endian |
| 14064 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14065 | |
| 14066 | ; |
| 14067 | return 0; |
| 14068 | } |
| 14069 | _ACEOF |
| 14070 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14071 | if { (ac_try="$ac_compile" |
| 14072 | case "(($ac_try" in |
| 14073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14074 | *) ac_try_echo=$ac_try;; |
| 14075 | esac |
| 14076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14077 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14078 | ac_status=$? |
| 14079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14080 | rm -f conftest.er1 |
| 14081 | cat conftest.err >&5 |
| 14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14083 | (exit $ac_status); } && { |
| 14084 | test -z "$ac_c_werror_flag" || |
| 14085 | test ! -s conftest.err |
| 14086 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14087 | ac_cv_c_bigendian=yes |
| 14088 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14089 | echo "$as_me: failed program was:" >&5 |
| 14090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14091 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14092 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14093 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14094 | |
| 14095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14096 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14097 | echo "$as_me: failed program was:" >&5 |
| 14098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14100 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14101 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14102 | # try to guess the endianness by grepping values into an object file |
| 14103 | ac_cv_c_bigendian=unknown |
| 14104 | cat >conftest.$ac_ext <<_ACEOF |
| 14105 | /* confdefs.h. */ |
| 14106 | _ACEOF |
| 14107 | cat confdefs.h >>conftest.$ac_ext |
| 14108 | cat >>conftest.$ac_ext <<_ACEOF |
| 14109 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14110 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14111 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14112 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14113 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14114 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14115 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14116 | int |
| 14117 | main () |
| 14118 | { |
| 14119 | _ascii (); _ebcdic (); |
| 14120 | ; |
| 14121 | return 0; |
| 14122 | } |
| 14123 | _ACEOF |
| 14124 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14125 | if { (ac_try="$ac_compile" |
| 14126 | case "(($ac_try" in |
| 14127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14128 | *) ac_try_echo=$ac_try;; |
| 14129 | esac |
| 14130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14131 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14132 | ac_status=$? |
| 14133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14134 | rm -f conftest.er1 |
| 14135 | cat conftest.err >&5 |
| 14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14137 | (exit $ac_status); } && { |
| 14138 | test -z "$ac_c_werror_flag" || |
| 14139 | test ! -s conftest.err |
| 14140 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14141 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14142 | ac_cv_c_bigendian=yes |
| 14143 | fi |
| 14144 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14145 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14146 | ac_cv_c_bigendian=no |
| 14147 | else |
| 14148 | # finding both strings is unlikely to happen, but who knows? |
| 14149 | ac_cv_c_bigendian=unknown |
| 14150 | fi |
| 14151 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14152 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | echo "$as_me: failed program was:" >&5 |
| 14154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14155 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14156 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14157 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14158 | |
| 14159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14160 | else |
| 14161 | cat >conftest.$ac_ext <<_ACEOF |
| 14162 | /* confdefs.h. */ |
| 14163 | _ACEOF |
| 14164 | cat confdefs.h >>conftest.$ac_ext |
| 14165 | cat >>conftest.$ac_ext <<_ACEOF |
| 14166 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14167 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14168 | int |
| 14169 | main () |
| 14170 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14171 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14172 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14173 | union |
| 14174 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14175 | long int l; |
| 14176 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14177 | } u; |
| 14178 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14179 | return u.c[sizeof (long int) - 1] == 1; |
| 14180 | |
| 14181 | ; |
| 14182 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14183 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14184 | _ACEOF |
| 14185 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14186 | if { (ac_try="$ac_link" |
| 14187 | case "(($ac_try" in |
| 14188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14189 | *) ac_try_echo=$ac_try;; |
| 14190 | esac |
| 14191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14192 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14193 | ac_status=$? |
| 14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14196 | { (case "(($ac_try" in |
| 14197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14198 | *) ac_try_echo=$ac_try;; |
| 14199 | esac |
| 14200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14201 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14205 | ac_cv_c_bigendian=no |
| 14206 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14208 | echo "$as_me: failed program was:" >&5 |
| 14209 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14210 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14211 | ( exit $ac_status ) |
| 14212 | ac_cv_c_bigendian=yes |
| 14213 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14214 | 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] | 14215 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14216 | |
| 14217 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14218 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14219 | |
| 14220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14221 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14222 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14223 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14224 | case $ac_cv_c_bigendian in |
| 14225 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14227 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14228 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14229 | _ACEOF |
| 14230 | ;; |
| 14231 | no) |
| 14232 | ;; |
| 14233 | *) |
| 14234 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14235 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14236 | echo "$as_me: error: unknown endianness |
| 14237 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14238 | { (exit 1); exit 1; }; } ;; |
| 14239 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14240 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14241 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 14242 | ASM_TYPES_HEADER=./asm_types.h |
| 14243 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 14244 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 14245 | > public_config.h |
| 14246 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 14247 | uniq tmp_config.$$ >> public_config.h |
| 14248 | else |
| 14249 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 14250 | fi |
| 14251 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 14252 | uniq tmp_config.$$ >> public_config.h |
| 14253 | else |
| 14254 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 14255 | fi |
| 14256 | rm -f tmp_config.$$ |
| 14257 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 14258 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14259 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14260 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14261 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14262 | 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] | 14263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14264 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14266 | 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] | 14267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14269 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14270 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14271 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14273 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14274 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14276 | cat >conftest.$ac_ext <<_ACEOF |
| 14277 | /* confdefs.h. */ |
| 14278 | _ACEOF |
| 14279 | cat confdefs.h >>conftest.$ac_ext |
| 14280 | cat >>conftest.$ac_ext <<_ACEOF |
| 14281 | /* end confdefs.h. */ |
| 14282 | $ac_includes_default |
| 14283 | #include <$ac_header> |
| 14284 | _ACEOF |
| 14285 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14286 | if { (ac_try="$ac_compile" |
| 14287 | case "(($ac_try" in |
| 14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14289 | *) ac_try_echo=$ac_try;; |
| 14290 | esac |
| 14291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14292 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14293 | ac_status=$? |
| 14294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14295 | rm -f conftest.er1 |
| 14296 | cat conftest.err >&5 |
| 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14298 | (exit $ac_status); } && { |
| 14299 | test -z "$ac_c_werror_flag" || |
| 14300 | test ! -s conftest.err |
| 14301 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14302 | ac_header_compiler=yes |
| 14303 | else |
| 14304 | echo "$as_me: failed program was:" >&5 |
| 14305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14306 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14307 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14308 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14309 | |
| 14310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14311 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14312 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14313 | |
| 14314 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14315 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14316 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14317 | cat >conftest.$ac_ext <<_ACEOF |
| 14318 | /* confdefs.h. */ |
| 14319 | _ACEOF |
| 14320 | cat confdefs.h >>conftest.$ac_ext |
| 14321 | cat >>conftest.$ac_ext <<_ACEOF |
| 14322 | /* end confdefs.h. */ |
| 14323 | #include <$ac_header> |
| 14324 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14325 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14326 | case "(($ac_try" in |
| 14327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14328 | *) ac_try_echo=$ac_try;; |
| 14329 | esac |
| 14330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14331 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14332 | ac_status=$? |
| 14333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14334 | rm -f conftest.er1 |
| 14335 | cat conftest.err >&5 |
| 14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14337 | (exit $ac_status); } >/dev/null && { |
| 14338 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14339 | test ! -s conftest.err |
| 14340 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14341 | ac_header_preproc=yes |
| 14342 | else |
| 14343 | echo "$as_me: failed program was:" >&5 |
| 14344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14345 | |
| 14346 | ac_header_preproc=no |
| 14347 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14348 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14349 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14350 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14351 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14352 | |
| 14353 | # So? What about this header? |
| 14354 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14355 | yes:no: ) |
| 14356 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14357 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14359 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14360 | ac_header_preproc=yes |
| 14361 | ;; |
| 14362 | no:yes:* ) |
| 14363 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14364 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14365 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14366 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14367 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14368 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14369 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14370 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14371 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14372 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14373 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14374 | 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] | 14375 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | ;; |
| 14377 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14378 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14380 | 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] | 14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14382 | else |
| 14383 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14385 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14386 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14387 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14388 | |
| 14389 | fi |
| 14390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14391 | cat >>confdefs.h <<_ACEOF |
| 14392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14393 | _ACEOF |
| 14394 | |
| 14395 | fi |
| 14396 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14397 | done |
| 14398 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14399 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14400 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14401 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14403 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | cat >conftest.$ac_ext <<_ACEOF |
| 14405 | /* confdefs.h. */ |
| 14406 | _ACEOF |
| 14407 | cat confdefs.h >>conftest.$ac_ext |
| 14408 | cat >>conftest.$ac_ext <<_ACEOF |
| 14409 | /* end confdefs.h. */ |
| 14410 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14411 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14412 | int |
| 14413 | main () |
| 14414 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14415 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14416 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14417 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | return 0; |
| 14419 | ; |
| 14420 | return 0; |
| 14421 | } |
| 14422 | _ACEOF |
| 14423 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14424 | if { (ac_try="$ac_compile" |
| 14425 | case "(($ac_try" in |
| 14426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14427 | *) ac_try_echo=$ac_try;; |
| 14428 | esac |
| 14429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14430 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14431 | ac_status=$? |
| 14432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14433 | rm -f conftest.er1 |
| 14434 | cat conftest.err >&5 |
| 14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14436 | (exit $ac_status); } && { |
| 14437 | test -z "$ac_c_werror_flag" || |
| 14438 | test ! -s conftest.err |
| 14439 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14440 | ac_cv_type_intptr_t=yes |
| 14441 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14442 | echo "$as_me: failed program was:" >&5 |
| 14443 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14444 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14445 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14446 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14447 | |
| 14448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14449 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14450 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14451 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14452 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14453 | |
| 14454 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14455 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14456 | _ACEOF |
| 14457 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14459 | fi |
| 14460 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14461 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14462 | 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] | 14463 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14465 | else |
| 14466 | cat >conftest.$ac_ext <<_ACEOF |
| 14467 | /* confdefs.h. */ |
| 14468 | _ACEOF |
| 14469 | cat confdefs.h >>conftest.$ac_ext |
| 14470 | cat >>conftest.$ac_ext <<_ACEOF |
| 14471 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14472 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14473 | int |
| 14474 | main () |
| 14475 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14476 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14477 | ; |
| 14478 | return 0; |
| 14479 | } |
| 14480 | _ACEOF |
| 14481 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14482 | if { (ac_try="$ac_compile" |
| 14483 | case "(($ac_try" in |
| 14484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14485 | *) ac_try_echo=$ac_try;; |
| 14486 | esac |
| 14487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14488 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14489 | ac_status=$? |
| 14490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14491 | rm -f conftest.er1 |
| 14492 | cat conftest.err >&5 |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14494 | (exit $ac_status); } && { |
| 14495 | test -z "$ac_c_werror_flag" || |
| 14496 | test ! -s conftest.err |
| 14497 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14498 | e2fsprogs_cv_struct_st_flags=yes |
| 14499 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14500 | echo "$as_me: failed program was:" >&5 |
| 14501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14503 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14504 | fi |
| 14505 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14507 | fi |
| 14508 | |
| 14509 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14510 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14511 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14512 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14513 | 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] | 14514 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14516 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14517 | cat >conftest.$ac_ext <<_ACEOF |
| 14518 | /* confdefs.h. */ |
| 14519 | _ACEOF |
| 14520 | cat confdefs.h >>conftest.$ac_ext |
| 14521 | cat >>conftest.$ac_ext <<_ACEOF |
| 14522 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14523 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14524 | int |
| 14525 | main () |
| 14526 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14527 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14528 | ; |
| 14529 | return 0; |
| 14530 | } |
| 14531 | _ACEOF |
| 14532 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14533 | if { (ac_try="$ac_compile" |
| 14534 | case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14540 | ac_status=$? |
| 14541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14542 | rm -f conftest.er1 |
| 14543 | cat conftest.err >&5 |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14545 | (exit $ac_status); } && { |
| 14546 | test -z "$ac_c_werror_flag" || |
| 14547 | test ! -s conftest.err |
| 14548 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14549 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14551 | echo "$as_me: failed program was:" >&5 |
| 14552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14553 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14554 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14555 | fi |
| 14556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14558 | fi |
| 14559 | |
| 14560 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14561 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14562 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14563 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14564 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14565 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14566 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14567 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14569 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14570 | 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] | 14571 | 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] | 14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14573 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14574 | cat >conftest.$ac_ext <<_ACEOF |
| 14575 | /* confdefs.h. */ |
| 14576 | _ACEOF |
| 14577 | cat confdefs.h >>conftest.$ac_ext |
| 14578 | cat >>conftest.$ac_ext <<_ACEOF |
| 14579 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14580 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14581 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14583 | int |
| 14584 | main () |
| 14585 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14586 | static struct sockaddr ac_aggr; |
| 14587 | if (ac_aggr.sa_len) |
| 14588 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14589 | ; |
| 14590 | return 0; |
| 14591 | } |
| 14592 | _ACEOF |
| 14593 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14594 | if { (ac_try="$ac_compile" |
| 14595 | case "(($ac_try" in |
| 14596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14597 | *) ac_try_echo=$ac_try;; |
| 14598 | esac |
| 14599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14600 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14601 | ac_status=$? |
| 14602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14603 | rm -f conftest.er1 |
| 14604 | cat conftest.err >&5 |
| 14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14606 | (exit $ac_status); } && { |
| 14607 | test -z "$ac_c_werror_flag" || |
| 14608 | test ! -s conftest.err |
| 14609 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14610 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14611 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14612 | echo "$as_me: failed program was:" >&5 |
| 14613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14615 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14616 | /* confdefs.h. */ |
| 14617 | _ACEOF |
| 14618 | cat confdefs.h >>conftest.$ac_ext |
| 14619 | cat >>conftest.$ac_ext <<_ACEOF |
| 14620 | /* end confdefs.h. */ |
| 14621 | #include <sys/types.h> |
| 14622 | #include <sys/socket.h> |
| 14623 | |
| 14624 | int |
| 14625 | main () |
| 14626 | { |
| 14627 | static struct sockaddr ac_aggr; |
| 14628 | if (sizeof ac_aggr.sa_len) |
| 14629 | return 0; |
| 14630 | ; |
| 14631 | return 0; |
| 14632 | } |
| 14633 | _ACEOF |
| 14634 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14635 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14642 | ac_status=$? |
| 14643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14644 | rm -f conftest.er1 |
| 14645 | cat conftest.err >&5 |
| 14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14647 | (exit $ac_status); } && { |
| 14648 | test -z "$ac_c_werror_flag" || |
| 14649 | test ! -s conftest.err |
| 14650 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14651 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14652 | else |
| 14653 | echo "$as_me: failed program was:" >&5 |
| 14654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14655 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14656 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14657 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14658 | |
| 14659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14660 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14661 | |
| 14662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14664 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14665 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14666 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14667 | |
| 14668 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14669 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14670 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14671 | |
| 14672 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14673 | |
| 14674 | |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | |
| 14681 | |
| 14682 | |
| 14683 | |
| 14684 | |
| 14685 | |
| 14686 | |
| 14687 | |
| 14688 | |
| 14689 | |
| 14690 | |
| 14691 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14692 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14693 | |
| 14694 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14695 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14696 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14697 | |
| 14698 | |
| 14699 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14700 | |
| 14701 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14702 | |
Theodore Ts'o | c13ab4f | 2008-07-13 16:17:57 -0400 | [diff] [blame] | 14703 | |
| 14704 | |
| 14705 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14706 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14707 | 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] | 14708 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14710 | 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] | 14711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14712 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14713 | cat >conftest.$ac_ext <<_ACEOF |
| 14714 | /* confdefs.h. */ |
| 14715 | _ACEOF |
| 14716 | cat confdefs.h >>conftest.$ac_ext |
| 14717 | cat >>conftest.$ac_ext <<_ACEOF |
| 14718 | /* end confdefs.h. */ |
| 14719 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14721 | #define $ac_func innocuous_$ac_func |
| 14722 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14723 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14724 | which can conflict with char $ac_func (); below. |
| 14725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14726 | <limits.h> exists even on freestanding compilers. */ |
| 14727 | |
| 14728 | #ifdef __STDC__ |
| 14729 | # include <limits.h> |
| 14730 | #else |
| 14731 | # include <assert.h> |
| 14732 | #endif |
| 14733 | |
| 14734 | #undef $ac_func |
| 14735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14736 | /* Override any GCC internal prototype to avoid an error. |
| 14737 | Use char because int might match the return type of a GCC |
| 14738 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14739 | #ifdef __cplusplus |
| 14740 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14741 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14742 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14743 | /* The GNU C library defines this for functions which it implements |
| 14744 | to always fail with ENOSYS. Some functions are actually named |
| 14745 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14746 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14747 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14748 | #endif |
| 14749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14750 | int |
| 14751 | main () |
| 14752 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14753 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14754 | ; |
| 14755 | return 0; |
| 14756 | } |
| 14757 | _ACEOF |
| 14758 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14759 | if { (ac_try="$ac_link" |
| 14760 | case "(($ac_try" in |
| 14761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14762 | *) ac_try_echo=$ac_try;; |
| 14763 | esac |
| 14764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14765 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14766 | ac_status=$? |
| 14767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14768 | rm -f conftest.er1 |
| 14769 | cat conftest.err >&5 |
| 14770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14771 | (exit $ac_status); } && { |
| 14772 | test -z "$ac_c_werror_flag" || |
| 14773 | test ! -s conftest.err |
| 14774 | } && test -s conftest$ac_exeext && |
| 14775 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14776 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14777 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14778 | echo "$as_me: failed program was:" >&5 |
| 14779 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14780 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14781 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14782 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14783 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14785 | conftest$ac_exeext conftest.$ac_ext |
| 14786 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14787 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14788 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14789 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14790 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14791 | cat >>confdefs.h <<_ACEOF |
| 14792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14793 | _ACEOF |
| 14794 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14795 | fi |
| 14796 | done |
| 14797 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14798 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14799 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14800 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14801 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14803 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14804 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14805 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14806 | cat >conftest.$ac_ext <<_ACEOF |
| 14807 | /* confdefs.h. */ |
| 14808 | _ACEOF |
| 14809 | cat confdefs.h >>conftest.$ac_ext |
| 14810 | cat >>conftest.$ac_ext <<_ACEOF |
| 14811 | /* end confdefs.h. */ |
| 14812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14813 | /* Override any GCC internal prototype to avoid an error. |
| 14814 | Use char because int might match the return type of a GCC |
| 14815 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14816 | #ifdef __cplusplus |
| 14817 | extern "C" |
| 14818 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14819 | char socket (); |
| 14820 | int |
| 14821 | main () |
| 14822 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14823 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14824 | ; |
| 14825 | return 0; |
| 14826 | } |
| 14827 | _ACEOF |
| 14828 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14829 | if { (ac_try="$ac_link" |
| 14830 | case "(($ac_try" in |
| 14831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14832 | *) ac_try_echo=$ac_try;; |
| 14833 | esac |
| 14834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14835 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14836 | ac_status=$? |
| 14837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14838 | rm -f conftest.er1 |
| 14839 | cat conftest.err >&5 |
| 14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14841 | (exit $ac_status); } && { |
| 14842 | test -z "$ac_c_werror_flag" || |
| 14843 | test ! -s conftest.err |
| 14844 | } && test -s conftest$ac_exeext && |
| 14845 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14846 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14847 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14848 | echo "$as_me: failed program was:" >&5 |
| 14849 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14850 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14851 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14853 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14855 | conftest$ac_exeext conftest.$ac_ext |
| 14856 | LIBS=$ac_check_lib_save_LIBS |
| 14857 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14858 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14859 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14860 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14861 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14862 | fi |
| 14863 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14864 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14865 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14866 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14867 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14868 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14870 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14871 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14872 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14873 | cat >conftest.$ac_ext <<_ACEOF |
| 14874 | /* confdefs.h. */ |
| 14875 | _ACEOF |
| 14876 | cat confdefs.h >>conftest.$ac_ext |
| 14877 | cat >>conftest.$ac_ext <<_ACEOF |
| 14878 | /* end confdefs.h. */ |
| 14879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14880 | /* Override any GCC internal prototype to avoid an error. |
| 14881 | Use char because int might match the return type of a GCC |
| 14882 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14883 | #ifdef __cplusplus |
| 14884 | extern "C" |
| 14885 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14886 | char dlopen (); |
| 14887 | int |
| 14888 | main () |
| 14889 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14890 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14891 | ; |
| 14892 | return 0; |
| 14893 | } |
| 14894 | _ACEOF |
| 14895 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14896 | if { (ac_try="$ac_link" |
| 14897 | case "(($ac_try" in |
| 14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14899 | *) ac_try_echo=$ac_try;; |
| 14900 | esac |
| 14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14902 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14903 | ac_status=$? |
| 14904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14905 | rm -f conftest.er1 |
| 14906 | cat conftest.err >&5 |
| 14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14908 | (exit $ac_status); } && { |
| 14909 | test -z "$ac_c_werror_flag" || |
| 14910 | test ! -s conftest.err |
| 14911 | } && test -s conftest$ac_exeext && |
| 14912 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14913 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14914 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14915 | echo "$as_me: failed program was:" >&5 |
| 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14918 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14920 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14922 | conftest$ac_exeext conftest.$ac_ext |
| 14923 | LIBS=$ac_check_lib_save_LIBS |
| 14924 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14926 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14927 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14928 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14929 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14930 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14931 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14932 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14933 | fi |
| 14934 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14936 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 14937 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14938 | if test "${ac_cv_have_optreset+set}" = set; then |
| 14939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | cat >conftest.$ac_ext <<_ACEOF |
| 14942 | /* confdefs.h. */ |
| 14943 | _ACEOF |
| 14944 | cat confdefs.h >>conftest.$ac_ext |
| 14945 | cat >>conftest.$ac_ext <<_ACEOF |
| 14946 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14947 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14948 | |
| 14949 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14951 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14952 | ac_cv_have_optreset=yes |
| 14953 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14954 | ac_cv_have_optreset=no |
| 14955 | fi |
| 14956 | rm -f conftest* |
| 14957 | |
| 14958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14959 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 14960 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14961 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14962 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14963 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14964 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14965 | |
| 14966 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14967 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 14968 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 14969 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14970 | UNI_DIFF_OPTS=-u |
| 14971 | else |
| 14972 | UNI_DIFF_OPTS=-c |
| 14973 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14974 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 14975 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14976 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14977 | case "$host_os" in |
| 14978 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14979 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14980 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14981 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14982 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14983 | ;; |
| 14984 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14985 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14986 | CYGWIN_CMT="#" |
| 14987 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14988 | case "$host_os" in |
| 14989 | linux*) |
| 14990 | LINUX_CMT= |
| 14991 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14992 | cygwin) |
| 14993 | CYGWIN_CMT= |
| 14994 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14995 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14996 | esac |
| 14997 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14998 | |
| 14999 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15000 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15001 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15002 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 15003 | root_prefix=""; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15004 | { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
| 15005 | echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15006 | fi |
| 15007 | ;; |
| 15008 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15009 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15010 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15011 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15012 | prefix="/usr"; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15013 | { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
| 15014 | echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15015 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15016 | { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
| 15017 | echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15018 | mandir=/usr/share/man |
| 15019 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15020 | fi |
| 15021 | ;; |
| 15022 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15023 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15024 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15025 | root_prefix="$ac_default_prefix" |
| 15026 | else |
| 15027 | root_prefix="$prefix" |
| 15028 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15029 | root_bindir=$bindir |
| 15030 | root_sbindir=$sbindir |
| 15031 | root_libdir=$libdir |
| 15032 | root_sysconfdir=$sysconfdir |
| 15033 | else |
| 15034 | root_bindir='${root_prefix}/bin' |
| 15035 | root_sbindir='${root_prefix}/sbin' |
| 15036 | root_libdir='${root_prefix}/lib' |
| 15037 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15038 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15039 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15040 | root_bindir=$bindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15041 | { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
| 15042 | echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15043 | fi |
| 15044 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15045 | root_sbindir=$sbindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15046 | { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
| 15047 | echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15048 | fi |
| 15049 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15050 | root_libdir=$libdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15051 | { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
| 15052 | echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15053 | fi |
| 15054 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15055 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15056 | { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
| 15057 | echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15058 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15059 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15060 | |
| 15061 | |
| 15062 | |
| 15063 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15064 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15065 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15066 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15068 | else |
| 15069 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15070 | cat >conftest.$ac_ext <<_ACEOF |
| 15071 | /* confdefs.h. */ |
| 15072 | _ACEOF |
| 15073 | cat confdefs.h >>conftest.$ac_ext |
| 15074 | cat >>conftest.$ac_ext <<_ACEOF |
| 15075 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15076 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15077 | int |
| 15078 | main () |
| 15079 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15080 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15081 | ; |
| 15082 | return 0; |
| 15083 | } |
| 15084 | _ACEOF |
| 15085 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15086 | if { (ac_try="$ac_link" |
| 15087 | case "(($ac_try" in |
| 15088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15089 | *) ac_try_echo=$ac_try;; |
| 15090 | esac |
| 15091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15092 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15093 | ac_status=$? |
| 15094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15095 | rm -f conftest.er1 |
| 15096 | cat conftest.err >&5 |
| 15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15098 | (exit $ac_status); } && { |
| 15099 | test -z "$ac_c_werror_flag" || |
| 15100 | test ! -s conftest.err |
| 15101 | } && test -s conftest$ac_exeext && |
| 15102 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15103 | ac_cv_e2fsprogs_use_static=yes |
| 15104 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15105 | echo "$as_me: failed program was:" >&5 |
| 15106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15108 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15109 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15110 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15111 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15112 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15113 | LDFLAGS=$SAVE_LDFLAGS |
| 15114 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15115 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15116 | case "$host_os" in |
| 15117 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15118 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15119 | ;; |
| 15120 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15121 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15122 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15123 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15124 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15125 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15126 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15127 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15128 | case "$host_os" in |
| 15129 | darwin*) |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15130 | { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
| 15131 | echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15132 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15133 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15134 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15135 | |
| 15136 | ;; |
| 15137 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15138 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15139 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15140 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15141 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15142 | if test "$cross_compiling" = yes ; then |
| 15143 | DO_TEST_SUITE= |
| 15144 | else |
| 15145 | DO_TEST_SUITE=check |
| 15146 | fi |
| 15147 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15148 | INTL_FLAGS= |
| 15149 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15150 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15151 | fi |
| 15152 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15153 | if test $cross_compiling = no; then |
| 15154 | BUILD_CFLAGS="$CFLAGS" |
| 15155 | BUILD_LDFLAGS="$LDFLAGS" |
| 15156 | else |
| 15157 | BUILD_CFLAGS= |
| 15158 | BUILD_LDFLAGS= |
| 15159 | fi |
| 15160 | |
| 15161 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15162 | test -d lib || mkdir lib |
| 15163 | test -d include || mkdir include |
| 15164 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15165 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15166 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15167 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15168 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15169 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15170 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15171 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15172 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15173 | 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] | 15174 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15175 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15176 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15177 | if test -d `dirname ${srcdir}/$i` ; then |
| 15178 | outlist="$outlist $i" |
| 15179 | fi |
| 15180 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15181 | ac_config_files="$ac_config_files $outlist" |
| 15182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15183 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15184 | # This file is a shell script that caches the results of configure |
| 15185 | # 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] | 15186 | # scripts and configure runs, see configure's option --config-cache. |
| 15187 | # It is not useful on other systems. If it contains results you don't |
| 15188 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15189 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15190 | # config.status only pays attention to the cache file if you give it |
| 15191 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15192 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15193 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15194 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15195 | # following values. |
| 15196 | |
| 15197 | _ACEOF |
| 15198 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15199 | # The following way of writing the cache mishandles newlines in values, |
| 15200 | # 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] | 15201 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15202 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15203 | # 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] | 15204 | ( |
| 15205 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15206 | eval ac_val=\$$ac_var |
| 15207 | case $ac_val in #( |
| 15208 | *${as_nl}*) |
| 15209 | case $ac_var in #( |
| 15210 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15211 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15212 | esac |
| 15213 | case $ac_var in #( |
| 15214 | _ | IFS | as_nl) ;; #( |
| 15215 | *) $as_unset $ac_var ;; |
| 15216 | esac ;; |
| 15217 | esac |
| 15218 | done |
| 15219 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15220 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15221 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15222 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15223 | # `set' does not quote correctly, so add quotes (double-quote |
| 15224 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15225 | sed -n \ |
| 15226 | "s/'/'\\\\''/g; |
| 15227 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15228 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15229 | *) |
| 15230 | # `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] | 15231 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15232 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15233 | esac | |
| 15234 | sort |
| 15235 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15236 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15237 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15238 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15239 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15240 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15241 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15242 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15243 | :end' >>confcache |
| 15244 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15245 | if test -w "$cache_file"; then |
| 15246 | test "x$cache_file" != "x/dev/null" && |
| 15247 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15248 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15249 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15250 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15251 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15252 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15253 | fi |
| 15254 | fi |
| 15255 | rm -f confcache |
| 15256 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15257 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15258 | # Let make expand exec_prefix. |
| 15259 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15260 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15261 | # Transform confdefs.h into DEFS. |
| 15262 | # Protect against shell expansion while executing Makefile rules. |
| 15263 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15264 | # |
| 15265 | # 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] | 15266 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15267 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15268 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15269 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15270 | :clear |
| 15271 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15272 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15273 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15274 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15275 | b any |
| 15276 | :quote |
| 15277 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15278 | s/\[/\\&/g |
| 15279 | s/\]/\\&/g |
| 15280 | s/\$/$$/g |
| 15281 | H |
| 15282 | :any |
| 15283 | ${ |
| 15284 | g |
| 15285 | s/^\n// |
| 15286 | s/\n/ /g |
| 15287 | p |
| 15288 | } |
| 15289 | ' |
| 15290 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15291 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15292 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15293 | ac_libobjs= |
| 15294 | ac_ltlibobjs= |
| 15295 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15296 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15297 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15298 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15299 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15300 | # will be set to the directory where LIBOBJS objects are built. |
| 15301 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15302 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15303 | done |
| 15304 | LIBOBJS=$ac_libobjs |
| 15305 | |
| 15306 | LTLIBOBJS=$ac_ltlibobjs |
| 15307 | |
| 15308 | |
| 15309 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15310 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15311 | ac_clean_files_save=$ac_clean_files |
| 15312 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15313 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15314 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15315 | cat >$CONFIG_STATUS <<_ACEOF |
| 15316 | #! $SHELL |
| 15317 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15318 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15319 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15320 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15321 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15322 | debug=false |
| 15323 | ac_cs_recheck=false |
| 15324 | ac_cs_silent=false |
| 15325 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15326 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15328 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15329 | ## --------------------- ## |
| 15330 | ## M4sh Initialization. ## |
| 15331 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15332 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15333 | # Be more Bourne compatible |
| 15334 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15335 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15336 | emulate sh |
| 15337 | NULLCMD=: |
| 15338 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15339 | # is contrary to our usage. Disable this feature. |
| 15340 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15341 | setopt NO_GLOB_SUBST |
| 15342 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15343 | case `(set -o) 2>/dev/null` in |
| 15344 | *posix*) set -o posix ;; |
| 15345 | esac |
| 15346 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15347 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15348 | |
| 15349 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15350 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15352 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15353 | # Avoid depending upon Character Ranges. |
| 15354 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15355 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15356 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15357 | as_cr_digits='0123456789' |
| 15358 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15359 | |
| 15360 | # The user is always right. |
| 15361 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15362 | echo "#! /bin/sh" >conf$$.sh |
| 15363 | echo "exit 0" >>conf$$.sh |
| 15364 | chmod +x conf$$.sh |
| 15365 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15366 | PATH_SEPARATOR=';' |
| 15367 | else |
| 15368 | PATH_SEPARATOR=: |
| 15369 | fi |
| 15370 | rm -f conf$$.sh |
| 15371 | fi |
| 15372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15373 | # Support unset when possible. |
| 15374 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15375 | as_unset=unset |
| 15376 | else |
| 15377 | as_unset=false |
| 15378 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15380 | |
| 15381 | # IFS |
| 15382 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15383 | # there to prevent editors from complaining about space-tab. |
| 15384 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15385 | # splitting by setting IFS to empty value.) |
| 15386 | as_nl=' |
| 15387 | ' |
| 15388 | IFS=" "" $as_nl" |
| 15389 | |
| 15390 | # Find who we are. Look in the path if we contain no directory separator. |
| 15391 | case $0 in |
| 15392 | *[\\/]* ) as_myself=$0 ;; |
| 15393 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15394 | for as_dir in $PATH |
| 15395 | do |
| 15396 | IFS=$as_save_IFS |
| 15397 | test -z "$as_dir" && as_dir=. |
| 15398 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15399 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15400 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15401 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15402 | ;; |
| 15403 | esac |
| 15404 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15405 | # in which case we are not to be found in the path. |
| 15406 | if test "x$as_myself" = x; then |
| 15407 | as_myself=$0 |
| 15408 | fi |
| 15409 | if test ! -f "$as_myself"; then |
| 15410 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15411 | { (exit 1); exit 1; } |
| 15412 | fi |
| 15413 | |
| 15414 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15415 | for as_var in ENV MAIL MAILPATH |
| 15416 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15417 | done |
| 15418 | PS1='$ ' |
| 15419 | PS2='> ' |
| 15420 | PS4='+ ' |
| 15421 | |
| 15422 | # NLS nuisances. |
| 15423 | for as_var in \ |
| 15424 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15425 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15426 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15427 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15428 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15429 | eval $as_var=C; export $as_var |
| 15430 | else |
| 15431 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15432 | fi |
| 15433 | done |
| 15434 | |
| 15435 | # Required to use basename. |
| 15436 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15437 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15438 | as_expr=expr |
| 15439 | else |
| 15440 | as_expr=false |
| 15441 | fi |
| 15442 | |
| 15443 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15444 | as_basename=basename |
| 15445 | else |
| 15446 | as_basename=false |
| 15447 | fi |
| 15448 | |
| 15449 | |
| 15450 | # Name of the executable. |
| 15451 | as_me=`$as_basename -- "$0" || |
| 15452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15453 | X"$0" : 'X\(//\)$' \| \ |
| 15454 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15455 | echo X/"$0" | |
| 15456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15457 | s//\1/ |
| 15458 | q |
| 15459 | } |
| 15460 | /^X\/\(\/\/\)$/{ |
| 15461 | s//\1/ |
| 15462 | q |
| 15463 | } |
| 15464 | /^X\/\(\/\).*/{ |
| 15465 | s//\1/ |
| 15466 | q |
| 15467 | } |
| 15468 | s/.*/./; q'` |
| 15469 | |
| 15470 | # CDPATH. |
| 15471 | $as_unset CDPATH |
| 15472 | |
| 15473 | |
| 15474 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15475 | as_lineno_1=$LINENO |
| 15476 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15477 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15478 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15480 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15481 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15482 | # line-number line after each line using $LINENO; the second 'sed' |
| 15483 | # does the real work. The second script uses 'N' to pair each |
| 15484 | # line-number line with the line containing $LINENO, and appends |
| 15485 | # trailing '-' during substitution so that $LINENO is not a special |
| 15486 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15487 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15488 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15489 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15490 | sed -n ' |
| 15491 | p |
| 15492 | /[$]LINENO/= |
| 15493 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15494 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15495 | s/[$]LINENO.*/&-/ |
| 15496 | t lineno |
| 15497 | b |
| 15498 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15499 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15500 | :loop |
| 15501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15502 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15503 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15504 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15505 | chmod +x "$as_me.lineno" || |
| 15506 | { 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] | 15507 | { (exit 1); exit 1; }; } |
| 15508 | |
| 15509 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15510 | # (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] | 15511 | # original and so on. Autoconf is especially sensitive to this). |
| 15512 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15513 | # Exit status is that of the last command. |
| 15514 | exit |
| 15515 | } |
| 15516 | |
| 15517 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15518 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15519 | as_dirname=dirname |
| 15520 | else |
| 15521 | as_dirname=false |
| 15522 | fi |
| 15523 | |
| 15524 | ECHO_C= ECHO_N= ECHO_T= |
| 15525 | case `echo -n x` in |
| 15526 | -n*) |
| 15527 | case `echo 'x\c'` in |
| 15528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15529 | *) ECHO_C='\c';; |
| 15530 | esac;; |
| 15531 | *) |
| 15532 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15533 | esac |
| 15534 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15535 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15536 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15537 | as_expr=expr |
| 15538 | else |
| 15539 | as_expr=false |
| 15540 | fi |
| 15541 | |
| 15542 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15543 | if test -d conf$$.dir; then |
| 15544 | rm -f conf$$.dir/conf$$.file |
| 15545 | else |
| 15546 | rm -f conf$$.dir |
| 15547 | mkdir conf$$.dir |
| 15548 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15549 | echo >conf$$.file |
| 15550 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15551 | as_ln_s='ln -s' |
| 15552 | # ... but there are two gotchas: |
| 15553 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15554 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15555 | # In both cases, we have to default to `cp -p'. |
| 15556 | 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] | 15557 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15558 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15559 | as_ln_s=ln |
| 15560 | else |
| 15561 | as_ln_s='cp -p' |
| 15562 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15563 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15564 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15565 | |
| 15566 | if mkdir -p . 2>/dev/null; then |
| 15567 | as_mkdir_p=: |
| 15568 | else |
| 15569 | test -d ./-p && rmdir ./-p |
| 15570 | as_mkdir_p=false |
| 15571 | fi |
| 15572 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15573 | if test -x / >/dev/null 2>&1; then |
| 15574 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15575 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15576 | if ls -dL / >/dev/null 2>&1; then |
| 15577 | as_ls_L_option=L |
| 15578 | else |
| 15579 | as_ls_L_option= |
| 15580 | fi |
| 15581 | as_test_x=' |
| 15582 | eval sh -c '\'' |
| 15583 | if test -d "$1"; then |
| 15584 | test -d "$1/."; |
| 15585 | else |
| 15586 | case $1 in |
| 15587 | -*)set "./$1";; |
| 15588 | esac; |
| 15589 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15590 | ???[sx]*):;;*)false;;esac;fi |
| 15591 | '\'' sh |
| 15592 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15593 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15594 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15595 | |
| 15596 | # Sed expression to map a string onto a valid CPP name. |
| 15597 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15598 | |
| 15599 | # Sed expression to map a string onto a valid variable name. |
| 15600 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15601 | |
| 15602 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15603 | exec 6>&1 |
| 15604 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15605 | # 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] | 15606 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15607 | # values after options handling. |
| 15608 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15609 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15610 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15611 | |
| 15612 | CONFIG_FILES = $CONFIG_FILES |
| 15613 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15614 | CONFIG_LINKS = $CONFIG_LINKS |
| 15615 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15616 | $ $0 $@ |
| 15617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15618 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15619 | " |
| 15620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15621 | _ACEOF |
| 15622 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15623 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15624 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15625 | config_files="$ac_config_files" |
| 15626 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15627 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15628 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15629 | |
| 15630 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15631 | ac_cs_usage="\ |
| 15632 | \`$as_me' instantiates files from templates according to the |
| 15633 | current configuration. |
| 15634 | |
| 15635 | Usage: $0 [OPTIONS] [FILE]... |
| 15636 | |
| 15637 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15638 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15639 | -q, --quiet do not print progress messages |
| 15640 | -d, --debug don't remove temporary files |
| 15641 | --recheck update $as_me by reconfiguring in the same conditions |
| 15642 | --file=FILE[:TEMPLATE] |
| 15643 | instantiate the configuration file FILE |
| 15644 | |
| 15645 | Configuration files: |
| 15646 | $config_files |
| 15647 | |
| 15648 | Configuration commands: |
| 15649 | $config_commands |
| 15650 | |
| 15651 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15653 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15654 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15655 | ac_cs_version="\\ |
| 15656 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15657 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15658 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15660 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15661 | This config.status script is free software; the Free Software Foundation |
| 15662 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15663 | |
| 15664 | ac_pwd='$ac_pwd' |
| 15665 | srcdir='$srcdir' |
| 15666 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15667 | _ACEOF |
| 15668 | |
| 15669 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15670 | # If no file are specified by the user, then we need to provide default |
| 15671 | # value. By we need to know if files were specified by the user. |
| 15672 | ac_need_defaults=: |
| 15673 | while test $# != 0 |
| 15674 | do |
| 15675 | case $1 in |
| 15676 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15677 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15678 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15679 | ac_shift=: |
| 15680 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15681 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15682 | ac_option=$1 |
| 15683 | ac_optarg=$2 |
| 15684 | ac_shift=shift |
| 15685 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15686 | esac |
| 15687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15688 | case $ac_option in |
| 15689 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15690 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15691 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15692 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15693 | echo "$ac_cs_version"; exit ;; |
| 15694 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15695 | debug=: ;; |
| 15696 | --file | --fil | --fi | --f ) |
| 15697 | $ac_shift |
| 15698 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15699 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15700 | --he | --h | --help | --hel | -h ) |
| 15701 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15702 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15703 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15704 | ac_cs_silent=: ;; |
| 15705 | |
| 15706 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15707 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15708 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15709 | { (exit 1); exit 1; }; } ;; |
| 15710 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15711 | *) ac_config_targets="$ac_config_targets $1" |
| 15712 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15713 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15714 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15715 | shift |
| 15716 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15717 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15718 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15720 | if $ac_cs_silent; then |
| 15721 | exec 6>/dev/null |
| 15722 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15723 | fi |
| 15724 | |
| 15725 | _ACEOF |
| 15726 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15727 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15728 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15729 | CONFIG_SHELL=$SHELL |
| 15730 | export CONFIG_SHELL |
| 15731 | 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] | 15732 | fi |
| 15733 | |
| 15734 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15735 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15736 | exec 5>>config.log |
| 15737 | { |
| 15738 | echo |
| 15739 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15740 | ## Running $as_me. ## |
| 15741 | _ASBOX |
| 15742 | echo "$ac_log" |
| 15743 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15744 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15745 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15746 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15747 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15748 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15749 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15750 | # 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] | 15751 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15752 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15753 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15754 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15755 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15756 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15757 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15758 | _ACEOF |
| 15759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15760 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15761 | |
| 15762 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15763 | for ac_config_target in $ac_config_targets |
| 15764 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15765 | case $ac_config_target in |
| 15766 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15767 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15768 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15769 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15770 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15771 | { (exit 1); exit 1; }; };; |
| 15772 | esac |
| 15773 | done |
| 15774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15776 | # If the user did not use the arguments to specify the items to instantiate, |
| 15777 | # then the envvar interface is used. Set only those that are not. |
| 15778 | # We use the long form for the default assignment because of an extremely |
| 15779 | # bizarre bug on SunOS 4.1.3. |
| 15780 | if $ac_need_defaults; then |
| 15781 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15782 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15783 | fi |
| 15784 | |
| 15785 | # 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] | 15786 | # 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] | 15787 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15788 | # Hook for its removal unless debugging. |
| 15789 | # Note that there is a small window in which the directory will not be cleaned: |
| 15790 | # 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] | 15791 | $debug || |
| 15792 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15793 | tmp= |
| 15794 | trap 'exit_status=$? |
| 15795 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15796 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15797 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15798 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15799 | # Create a (secure) tmp directory for tmp files. |
| 15800 | |
| 15801 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15802 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15803 | test -n "$tmp" && test -d "$tmp" |
| 15804 | } || |
| 15805 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15806 | tmp=./conf$$-$RANDOM |
| 15807 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15808 | } || |
| 15809 | { |
| 15810 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15811 | { (exit 1); exit 1; } |
| 15812 | } |
| 15813 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15814 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15815 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15816 | # |
| 15817 | |
| 15818 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15819 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15820 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15821 | |
| 15822 | _ACEOF |
| 15823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15824 | # Create sed commands to just substitute file output variables. |
| 15825 | |
| 15826 | # Remaining file output variables are in a fragment that also has non-file |
| 15827 | # output varibles. |
| 15828 | |
| 15829 | |
| 15830 | |
| 15831 | ac_delim='%!_!# ' |
| 15832 | for ac_last_try in false false false false false :; do |
| 15833 | cat >conf$$subs.sed <<_ACEOF |
| 15834 | SHELL!$SHELL$ac_delim |
| 15835 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15836 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15837 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15838 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15839 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15840 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15841 | exec_prefix!$exec_prefix$ac_delim |
| 15842 | prefix!$prefix$ac_delim |
| 15843 | program_transform_name!$program_transform_name$ac_delim |
| 15844 | bindir!$bindir$ac_delim |
| 15845 | sbindir!$sbindir$ac_delim |
| 15846 | libexecdir!$libexecdir$ac_delim |
| 15847 | datarootdir!$datarootdir$ac_delim |
| 15848 | datadir!$datadir$ac_delim |
| 15849 | sysconfdir!$sysconfdir$ac_delim |
| 15850 | sharedstatedir!$sharedstatedir$ac_delim |
| 15851 | localstatedir!$localstatedir$ac_delim |
| 15852 | includedir!$includedir$ac_delim |
| 15853 | oldincludedir!$oldincludedir$ac_delim |
| 15854 | docdir!$docdir$ac_delim |
| 15855 | infodir!$infodir$ac_delim |
| 15856 | htmldir!$htmldir$ac_delim |
| 15857 | dvidir!$dvidir$ac_delim |
| 15858 | pdfdir!$pdfdir$ac_delim |
| 15859 | psdir!$psdir$ac_delim |
| 15860 | libdir!$libdir$ac_delim |
| 15861 | localedir!$localedir$ac_delim |
| 15862 | mandir!$mandir$ac_delim |
| 15863 | DEFS!$DEFS$ac_delim |
| 15864 | ECHO_C!$ECHO_C$ac_delim |
| 15865 | ECHO_N!$ECHO_N$ac_delim |
| 15866 | ECHO_T!$ECHO_T$ac_delim |
| 15867 | LIBS!$LIBS$ac_delim |
| 15868 | build_alias!$build_alias$ac_delim |
| 15869 | host_alias!$host_alias$ac_delim |
| 15870 | target_alias!$target_alias$ac_delim |
| 15871 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15872 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15873 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15874 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15875 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15876 | build!$build$ac_delim |
| 15877 | build_cpu!$build_cpu$ac_delim |
| 15878 | build_vendor!$build_vendor$ac_delim |
| 15879 | build_os!$build_os$ac_delim |
| 15880 | host!$host$ac_delim |
| 15881 | host_cpu!$host_cpu$ac_delim |
| 15882 | host_vendor!$host_vendor$ac_delim |
| 15883 | host_os!$host_os$ac_delim |
| 15884 | CC!$CC$ac_delim |
| 15885 | CFLAGS!$CFLAGS$ac_delim |
| 15886 | LDFLAGS!$LDFLAGS$ac_delim |
| 15887 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15888 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15889 | EXEEXT!$EXEEXT$ac_delim |
| 15890 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15891 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15892 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15893 | GREP!$GREP$ac_delim |
| 15894 | EGREP!$EGREP$ac_delim |
| 15895 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 15896 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 15897 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 15898 | ELF_CMT!$ELF_CMT$ac_delim |
| 15899 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 15900 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 15901 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 15902 | LIB_EXT!$LIB_EXT$ac_delim |
| 15903 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 15904 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 15905 | TEST_IO_CMT!$TEST_IO_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15906 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15907 | _ACEOF |
| 15908 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15909 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15910 | break |
| 15911 | elif $ac_last_try; then |
| 15912 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15913 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15914 | { (exit 1); exit 1; }; } |
| 15915 | else |
| 15916 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15917 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15918 | done |
| 15919 | |
| 15920 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15921 | if test -n "$ac_eof"; then |
| 15922 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15923 | ac_eof=`expr $ac_eof + 1` |
| 15924 | fi |
| 15925 | |
| 15926 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15927 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 15928 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15929 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 15930 | r $MCONFIG |
| 15931 | d |
| 15932 | } |
| 15933 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 15934 | r $MAKEFILE_ELF |
| 15935 | d |
| 15936 | } |
| 15937 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 15938 | r $MAKEFILE_BSDLIB |
| 15939 | d |
| 15940 | } |
| 15941 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 15942 | r $MAKEFILE_PROFILE |
| 15943 | d |
| 15944 | } |
| 15945 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 15946 | r $MAKEFILE_CHECKER |
| 15947 | d |
| 15948 | } |
| 15949 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 15950 | r $MAKEFILE_LIBRARY |
| 15951 | d |
| 15952 | } |
| 15953 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 15954 | r $ASM_TYPES_HEADER |
| 15955 | d |
| 15956 | } |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15957 | /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ |
| 15958 | r $PUBLIC_CONFIG_HEADER |
| 15959 | d |
| 15960 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15961 | _ACEOF |
| 15962 | sed ' |
| 15963 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15964 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15965 | :n |
| 15966 | t n |
| 15967 | s/'"$ac_delim"'$/,g/; t |
| 15968 | s/$/\\/; p |
| 15969 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15970 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15971 | rm -f conf$$subs.sed |
| 15972 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15973 | CEOF$ac_eof |
| 15974 | _ACEOF |
| 15975 | |
| 15976 | |
| 15977 | ac_delim='%!_!# ' |
| 15978 | for ac_last_try in false false false false false :; do |
| 15979 | cat >conf$$subs.sed <<_ACEOF |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 15980 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15981 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 15982 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15983 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 15984 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 15985 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 15986 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15987 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 15988 | PACKAGE!$PACKAGE$ac_delim |
| 15989 | VERSION!$VERSION$ac_delim |
| 15990 | SET_MAKE!$SET_MAKE$ac_delim |
| 15991 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 15992 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 15993 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 15994 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 15995 | USE_NLS!$USE_NLS$ac_delim |
| 15996 | MSGFMT!$MSGFMT$ac_delim |
| 15997 | GMSGFMT!$GMSGFMT$ac_delim |
| 15998 | XGETTEXT!$XGETTEXT$ac_delim |
| 15999 | MSGMERGE!$MSGMERGE$ac_delim |
| 16000 | RANLIB!$RANLIB$ac_delim |
| 16001 | ALLOCA!$ALLOCA$ac_delim |
| 16002 | GLIBC21!$GLIBC21$ac_delim |
| 16003 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 16004 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 16005 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 16006 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 16007 | LIBICONV!$LIBICONV$ac_delim |
| 16008 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 16009 | INTLBISON!$INTLBISON$ac_delim |
| 16010 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16011 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16012 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16013 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16014 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16015 | GENCAT!$GENCAT$ac_delim |
| 16016 | INTLOBJS!$INTLOBJS$ac_delim |
| 16017 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16018 | INTLLIBS!$INTLLIBS$ac_delim |
| 16019 | LIBINTL!$LIBINTL$ac_delim |
| 16020 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16021 | POSUB!$POSUB$ac_delim |
| 16022 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16023 | LN!$LN$ac_delim |
| 16024 | LN_S!$LN_S$ac_delim |
| 16025 | MV!$MV$ac_delim |
| 16026 | CP!$CP$ac_delim |
| 16027 | RM!$RM$ac_delim |
| 16028 | CHMOD!$CHMOD$ac_delim |
| 16029 | AWK!$AWK$ac_delim |
| 16030 | SED!$SED$ac_delim |
| 16031 | PERL!$PERL$ac_delim |
| 16032 | LDCONFIG!$LDCONFIG$ac_delim |
| 16033 | AR!$AR$ac_delim |
| 16034 | STRIP!$STRIP$ac_delim |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 16035 | MAKEINFO!$MAKEINFO$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16036 | BUILD_CC!$BUILD_CC$ac_delim |
| 16037 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16038 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16039 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16040 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16041 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16042 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 16043 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16044 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16045 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16046 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16047 | root_prefix!$root_prefix$ac_delim |
| 16048 | root_bindir!$root_bindir$ac_delim |
| 16049 | root_sbindir!$root_sbindir$ac_delim |
| 16050 | root_libdir!$root_libdir$ac_delim |
| 16051 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16052 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16053 | SS_DIR!$SS_DIR$ac_delim |
| 16054 | ET_DIR!$ET_DIR$ac_delim |
| 16055 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16056 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16057 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16058 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16059 | LIBOBJS!$LIBOBJS$ac_delim |
| 16060 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16061 | _ACEOF |
| 16062 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame^] | 16063 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16064 | break |
| 16065 | elif $ac_last_try; then |
| 16066 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16067 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16068 | { (exit 1); exit 1; }; } |
| 16069 | else |
| 16070 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16071 | fi |
| 16072 | done |
| 16073 | |
| 16074 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16075 | if test -n "$ac_eof"; then |
| 16076 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16077 | ac_eof=`expr $ac_eof + 1` |
| 16078 | fi |
| 16079 | |
| 16080 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16081 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16082 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16083 | _ACEOF |
| 16084 | sed ' |
| 16085 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16086 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16087 | :n |
| 16088 | t n |
| 16089 | s/'"$ac_delim"'$/,g/; t |
| 16090 | s/$/\\/; p |
| 16091 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16092 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16093 | rm -f conf$$subs.sed |
| 16094 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16095 | :end |
| 16096 | s/|#_!!_#|//g |
| 16097 | CEOF$ac_eof |
| 16098 | _ACEOF |
| 16099 | |
| 16100 | |
| 16101 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16102 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16103 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16104 | # (actually we leave an empty line to preserve line numbers). |
| 16105 | if test "x$srcdir" = x.; then |
| 16106 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16107 | s/:*\$(srcdir):*/:/ |
| 16108 | s/:*\${srcdir}:*/:/ |
| 16109 | s/:*@srcdir@:*/:/ |
| 16110 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16111 | s/:*$// |
| 16112 | s/^[^=]*=[ ]*$// |
| 16113 | }' |
| 16114 | fi |
| 16115 | |
| 16116 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16117 | fi # test -n "$CONFIG_FILES" |
| 16118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16119 | |
| 16120 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16121 | do |
| 16122 | case $ac_tag in |
| 16123 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16124 | esac |
| 16125 | case $ac_mode$ac_tag in |
| 16126 | :[FHL]*:*);; |
| 16127 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16128 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16129 | { (exit 1); exit 1; }; };; |
| 16130 | :[FH]-) ac_tag=-:-;; |
| 16131 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16132 | esac |
| 16133 | ac_save_IFS=$IFS |
| 16134 | IFS=: |
| 16135 | set x $ac_tag |
| 16136 | IFS=$ac_save_IFS |
| 16137 | shift |
| 16138 | ac_file=$1 |
| 16139 | shift |
| 16140 | |
| 16141 | case $ac_mode in |
| 16142 | :L) ac_source=$1;; |
| 16143 | :[FH]) |
| 16144 | ac_file_inputs= |
| 16145 | for ac_f |
| 16146 | do |
| 16147 | case $ac_f in |
| 16148 | -) ac_f="$tmp/stdin";; |
| 16149 | *) # Look for the file first in the build tree, then in the source tree |
| 16150 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16151 | # because $ac_f cannot contain `:'. |
| 16152 | test -f "$ac_f" || |
| 16153 | case $ac_f in |
| 16154 | [\\/$]*) false;; |
| 16155 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16156 | esac || |
| 16157 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16158 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16159 | { (exit 1); exit 1; }; };; |
| 16160 | esac |
| 16161 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16162 | done |
| 16163 | |
| 16164 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16165 | # use $as_me), people would be surprised to read: |
| 16166 | # /* config.h. Generated by config.status. */ |
| 16167 | configure_input="Generated from "`IFS=: |
| 16168 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16169 | if test x"$ac_file" != x-; then |
| 16170 | configure_input="$ac_file. $configure_input" |
| 16171 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16172 | echo "$as_me: creating $ac_file" >&6;} |
| 16173 | fi |
| 16174 | |
| 16175 | case $ac_tag in |
| 16176 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16177 | esac |
| 16178 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16179 | esac |
| 16180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16181 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16182 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16183 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16184 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16185 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16186 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16188 | s//\1/ |
| 16189 | q |
| 16190 | } |
| 16191 | /^X\(\/\/\)[^/].*/{ |
| 16192 | s//\1/ |
| 16193 | q |
| 16194 | } |
| 16195 | /^X\(\/\/\)$/{ |
| 16196 | s//\1/ |
| 16197 | q |
| 16198 | } |
| 16199 | /^X\(\/\).*/{ |
| 16200 | s//\1/ |
| 16201 | q |
| 16202 | } |
| 16203 | s/.*/./; q'` |
| 16204 | { as_dir="$ac_dir" |
| 16205 | case $as_dir in #( |
| 16206 | -*) as_dir=./$as_dir;; |
| 16207 | esac |
| 16208 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16209 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16210 | while :; do |
| 16211 | case $as_dir in #( |
| 16212 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16213 | *) as_qdir=$as_dir;; |
| 16214 | esac |
| 16215 | as_dirs="'$as_qdir' $as_dirs" |
| 16216 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16217 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16218 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16219 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16220 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16221 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16223 | s//\1/ |
| 16224 | q |
| 16225 | } |
| 16226 | /^X\(\/\/\)[^/].*/{ |
| 16227 | s//\1/ |
| 16228 | q |
| 16229 | } |
| 16230 | /^X\(\/\/\)$/{ |
| 16231 | s//\1/ |
| 16232 | q |
| 16233 | } |
| 16234 | /^X\(\/\).*/{ |
| 16235 | s//\1/ |
| 16236 | q |
| 16237 | } |
| 16238 | s/.*/./; q'` |
| 16239 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16240 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16241 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16242 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16243 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16244 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16245 | ac_builddir=. |
| 16246 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16247 | case "$ac_dir" in |
| 16248 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16249 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16250 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16251 | # A ".." for each directory in $ac_dir_suffix. |
| 16252 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16253 | case $ac_top_builddir_sub in |
| 16254 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16255 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16256 | esac ;; |
| 16257 | esac |
| 16258 | ac_abs_top_builddir=$ac_pwd |
| 16259 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16260 | # for backward compatibility: |
| 16261 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16262 | |
| 16263 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16264 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16265 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16266 | ac_top_srcdir=$ac_top_builddir_sub |
| 16267 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16268 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16269 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16270 | ac_top_srcdir=$srcdir |
| 16271 | ac_abs_top_srcdir=$srcdir ;; |
| 16272 | *) # Relative name. |
| 16273 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16274 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16275 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16276 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16277 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16280 | case $ac_mode in |
| 16281 | :F) |
| 16282 | # |
| 16283 | # CONFIG_FILE |
| 16284 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16285 | |
| 16286 | case $INSTALL in |
| 16287 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16288 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16289 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16290 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16291 | |
| 16292 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16293 | # If the template does not know about datarootdir, expand it. |
| 16294 | # FIXME: This hack should be removed a few years after 2.60. |
| 16295 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16296 | |
| 16297 | case `sed -n '/datarootdir/ { |
| 16298 | p |
| 16299 | q |
| 16300 | } |
| 16301 | /@datadir@/p |
| 16302 | /@docdir@/p |
| 16303 | /@infodir@/p |
| 16304 | /@localedir@/p |
| 16305 | /@mandir@/p |
| 16306 | ' $ac_file_inputs` in |
| 16307 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16308 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16309 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16310 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16311 | _ACEOF |
| 16312 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16313 | ac_datarootdir_hack=' |
| 16314 | s&@datadir@&$datadir&g |
| 16315 | s&@docdir@&$docdir&g |
| 16316 | s&@infodir@&$infodir&g |
| 16317 | s&@localedir@&$localedir&g |
| 16318 | s&@mandir@&$mandir&g |
| 16319 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16320 | esac |
| 16321 | _ACEOF |
| 16322 | |
| 16323 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16324 | # Shell code in configure.ac might set extrasub. |
| 16325 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16326 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16327 | sed "$ac_vpsub |
| 16328 | $extrasub |
| 16329 | _ACEOF |
| 16330 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16331 | :t |
| 16332 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16333 | s&@configure_input@&$configure_input&;t t |
| 16334 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16335 | s&@srcdir@&$ac_srcdir&;t t |
| 16336 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16337 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16338 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16339 | s&@builddir@&$ac_builddir&;t t |
| 16340 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16341 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16342 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16343 | $ac_datarootdir_hack |
| 16344 | " $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] | 16345 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16346 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16347 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16348 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16349 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16350 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16351 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16352 | 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] | 16353 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16354 | rm -f "$tmp/stdin" |
| 16355 | case $ac_file in |
| 16356 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16357 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16358 | esac |
| 16359 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16360 | |
| 16361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16362 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16363 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16364 | ;; |
| 16365 | esac |
| 16366 | |
| 16367 | |
| 16368 | case $ac_file$ac_mode in |
| 16369 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16370 | for ac_file in $CONFIG_FILES; do |
| 16371 | # Support "outfile[:infile[:infile...]]" |
| 16372 | case "$ac_file" in |
| 16373 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16374 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16375 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16376 | case "$ac_file" in */Makefile.in) |
| 16377 | # Adjust a relative srcdir. |
| 16378 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16379 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16380 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16381 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16382 | # In autoconf-2.50 it is called $srcdir. |
| 16383 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16384 | case "$ac_given_srcdir" in |
| 16385 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16386 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16387 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16388 | esac |
| 16389 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16390 | rm -f "$ac_dir/POTFILES" |
| 16391 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16392 | 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] | 16393 | POMAKEFILEDEPS="POTFILES.in" |
| 16394 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16395 | # on $ac_dir but don't depend on user-specified configuration |
| 16396 | # parameters. |
| 16397 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16398 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16399 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16400 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16401 | fi |
| 16402 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16403 | # Hide the ALL_LINGUAS assigment from automake. |
| 16404 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16405 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16406 | else |
| 16407 | # The set of available languages was given in configure.in. |
| 16408 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16409 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16410 | # Compute POFILES |
| 16411 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16412 | # Compute UPDATEPOFILES |
| 16413 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16414 | # Compute DUMMYPOFILES |
| 16415 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16416 | # Compute GMOFILES |
| 16417 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16418 | case "$ac_given_srcdir" in |
| 16419 | .) srcdirpre= ;; |
| 16420 | *) srcdirpre='$(srcdir)/' ;; |
| 16421 | esac |
| 16422 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16423 | UPDATEPOFILES= |
| 16424 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16425 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16426 | for lang in $ALL_LINGUAS; do |
| 16427 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16428 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16429 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16430 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16431 | done |
| 16432 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16433 | # environment variable. |
| 16434 | INST_LINGUAS= |
| 16435 | if test -n "$ALL_LINGUAS"; then |
| 16436 | for presentlang in $ALL_LINGUAS; do |
| 16437 | useit=no |
| 16438 | if test "%UNSET%" != "$LINGUAS"; then |
| 16439 | desiredlanguages="$LINGUAS" |
| 16440 | else |
| 16441 | desiredlanguages="$ALL_LINGUAS" |
| 16442 | fi |
| 16443 | for desiredlang in $desiredlanguages; do |
| 16444 | # Use the presentlang catalog if desiredlang is |
| 16445 | # a. equal to presentlang, or |
| 16446 | # b. a variant of presentlang (because in this case, |
| 16447 | # presentlang can be used as a fallback for messages |
| 16448 | # which are not translated in the desiredlang catalog). |
| 16449 | case "$desiredlang" in |
| 16450 | "$presentlang"*) useit=yes;; |
| 16451 | esac |
| 16452 | done |
| 16453 | if test $useit = yes; then |
| 16454 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16455 | fi |
| 16456 | done |
| 16457 | fi |
| 16458 | CATALOGS= |
| 16459 | if test -n "$INST_LINGUAS"; then |
| 16460 | for lang in $INST_LINGUAS; do |
| 16461 | CATALOGS="$CATALOGS $lang.gmo" |
| 16462 | done |
| 16463 | fi |
| 16464 | 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] | 16465 | 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] | 16466 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16467 | if test -f "$f"; then |
| 16468 | case "$f" in |
| 16469 | *.orig | *.bak | *~) ;; |
| 16470 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16471 | esac |
| 16472 | fi |
| 16473 | done |
| 16474 | fi |
| 16475 | ;; |
| 16476 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16477 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16479 | esac |
| 16480 | done # for ac_tag |
| 16481 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16482 | |
| 16483 | { (exit 0); exit 0; } |
| 16484 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16485 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16486 | ac_clean_files=$ac_clean_files_save |
| 16487 | |
| 16488 | |
| 16489 | # configure is writing to config.log, and then calls config.status. |
| 16490 | # config.status does its own redirection, appending to config.log. |
| 16491 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16492 | # by configure, so config.status won't be able to write to it; its |
| 16493 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16494 | # effectively closing config.log, so it can be properly (re)opened and |
| 16495 | # appended to by config.status. When coming back to configure, we |
| 16496 | # need to make the FD available again. |
| 16497 | if test "$no_create" != yes; then |
| 16498 | ac_cs_success=: |
| 16499 | ac_config_status_args= |
| 16500 | test "$silent" = yes && |
| 16501 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16502 | exec 5>/dev/null |
| 16503 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16504 | exec 5>>config.log |
| 16505 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16506 | # would make configure fail if this is the last instruction. |
| 16507 | $ac_cs_success || { (exit 1); exit 1; } |
| 16508 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16509 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16510 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16511 | |