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 |
| 687 | SWAPFS_CMT |
| 688 | DEBUGFS_CMT |
| 689 | IMAGER_CMT |
| 690 | RESIZER_CMT |
| 691 | E2FSCK_TYPE |
| 692 | FSCK_PROG |
| 693 | FSCK_MAN |
| 694 | E2INITRD_PROG |
| 695 | E2INITRD_MAN |
| 696 | DEVMAPPER_REQ |
| 697 | DEVMAPPER_PC_LIBS |
| 698 | DEVMAPPER_LIBS |
| 699 | STATIC_DEVMAPPER_LIBS |
| 700 | GETTEXT_PACKAGE |
| 701 | PACKAGE |
| 702 | VERSION |
| 703 | SET_MAKE |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | MKINSTALLDIRS |
| 708 | USE_NLS |
| 709 | MSGFMT |
| 710 | GMSGFMT |
| 711 | XGETTEXT |
| 712 | MSGMERGE |
| 713 | RANLIB |
| 714 | ALLOCA |
| 715 | GLIBC21 |
| 716 | HAVE_POSIX_PRINTF |
| 717 | HAVE_ASPRINTF |
| 718 | HAVE_SNPRINTF |
| 719 | HAVE_WPRINTF |
| 720 | LIBICONV |
| 721 | LTLIBICONV |
| 722 | INTLBISON |
| 723 | BUILD_INCLUDED_LIBINTL |
| 724 | USE_INCLUDED_LIBINTL |
| 725 | CATOBJEXT |
| 726 | DATADIRNAME |
| 727 | INSTOBJEXT |
| 728 | GENCAT |
| 729 | INTLOBJS |
| 730 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 731 | INTLLIBS |
| 732 | LIBINTL |
| 733 | LTLIBINTL |
| 734 | POSUB |
| 735 | BINARY_TYPE |
| 736 | LN |
| 737 | LN_S |
| 738 | MV |
| 739 | CP |
| 740 | RM |
| 741 | CHMOD |
| 742 | AWK |
| 743 | SED |
| 744 | PERL |
| 745 | LDCONFIG |
| 746 | AR |
| 747 | STRIP |
| 748 | BUILD_CC |
| 749 | SIZEOF_SHORT |
| 750 | SIZEOF_INT |
| 751 | SIZEOF_LONG |
| 752 | SIZEOF_LONG_LONG |
| 753 | SOCKET_LIB |
| 754 | DLOPEN_LIB |
| 755 | UNI_DIFF_OPTS |
| 756 | LINUX_CMT |
| 757 | CYGWIN_CMT |
| 758 | UNIX_CMT |
| 759 | root_prefix |
| 760 | root_bindir |
| 761 | root_sbindir |
| 762 | root_libdir |
| 763 | root_sysconfdir |
| 764 | LDFLAG_STATIC |
| 765 | SS_DIR |
| 766 | ET_DIR |
| 767 | DO_TEST_SUITE |
| 768 | INTL_FLAGS |
| 769 | BUILD_CFLAGS |
| 770 | BUILD_LDFLAGS |
| 771 | LIBOBJS |
| 772 | LTLIBOBJS' |
| 773 | ac_subst_files='MCONFIG |
| 774 | MAKEFILE_ELF |
| 775 | MAKEFILE_BSDLIB |
| 776 | MAKEFILE_PROFILE |
| 777 | MAKEFILE_CHECKER |
| 778 | MAKEFILE_LIBRARY |
| 779 | ASM_TYPES_HEADER' |
| 780 | ac_precious_vars='build_alias |
| 781 | host_alias |
| 782 | target_alias |
| 783 | CC |
| 784 | CFLAGS |
| 785 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 786 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 787 | CPPFLAGS |
| 788 | CPP' |
| 789 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 790 | |
| 791 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 792 | ac_init_help= |
| 793 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 794 | # The variables have the same names as the options, with |
| 795 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 796 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 797 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 798 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 799 | no_recursion= |
| 800 | prefix=NONE |
| 801 | program_prefix=NONE |
| 802 | program_suffix=NONE |
| 803 | program_transform_name=s,x,x, |
| 804 | silent= |
| 805 | site= |
| 806 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 807 | verbose= |
| 808 | x_includes=NONE |
| 809 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 810 | |
| 811 | # Installation directory options. |
| 812 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 813 | # and all the variables that are supposed to be based on exec_prefix |
| 814 | # by default will actually change. |
| 815 | # 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] | 816 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 817 | bindir='${exec_prefix}/bin' |
| 818 | sbindir='${exec_prefix}/sbin' |
| 819 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 820 | datarootdir='${prefix}/share' |
| 821 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 822 | sysconfdir='${prefix}/etc' |
| 823 | sharedstatedir='${prefix}/com' |
| 824 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 825 | includedir='${prefix}/include' |
| 826 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 827 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 828 | infodir='${datarootdir}/info' |
| 829 | htmldir='${docdir}' |
| 830 | dvidir='${docdir}' |
| 831 | pdfdir='${docdir}' |
| 832 | psdir='${docdir}' |
| 833 | libdir='${exec_prefix}/lib' |
| 834 | localedir='${datarootdir}/locale' |
| 835 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 836 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 837 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 838 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | for ac_option |
| 840 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | # If the previous option needs an argument, assign it. |
| 842 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 843 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 844 | ac_prev= |
| 845 | continue |
| 846 | fi |
| 847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 848 | case $ac_option in |
| 849 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 850 | *) ac_optarg=yes ;; |
| 851 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 852 | |
| 853 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 855 | case $ac_dashdash$ac_option in |
| 856 | --) |
| 857 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 858 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 859 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 860 | ac_prev=bindir ;; |
| 861 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 862 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | |
| 864 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 865 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 866 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 867 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 868 | |
| 869 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 870 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 871 | ac_prev=cache_file ;; |
| 872 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 873 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 874 | cache_file=$ac_optarg ;; |
| 875 | |
| 876 | --config-cache | -C) |
| 877 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 879 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 880 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 881 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 882 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 884 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 885 | | --dataroo | --dataro | --datar) |
| 886 | ac_prev=datarootdir ;; |
| 887 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 888 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 889 | datarootdir=$ac_optarg ;; |
| 890 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 891 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 892 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 894 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 895 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 896 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 897 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 898 | eval enable_$ac_feature=no ;; |
| 899 | |
| 900 | -docdir | --docdir | --docdi | --doc | --do) |
| 901 | ac_prev=docdir ;; |
| 902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 903 | docdir=$ac_optarg ;; |
| 904 | |
| 905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 906 | ac_prev=dvidir ;; |
| 907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 908 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | |
| 910 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 911 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 912 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 913 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 914 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 915 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 916 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 917 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 918 | |
| 919 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 920 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 921 | | --exec | --exe | --ex) |
| 922 | ac_prev=exec_prefix ;; |
| 923 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 924 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 925 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 926 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | |
| 928 | -gas | --gas | --ga | --g) |
| 929 | # Obsolete; use --with-gas. |
| 930 | with_gas=yes ;; |
| 931 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 932 | -help | --help | --hel | --he | -h) |
| 933 | ac_init_help=long ;; |
| 934 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 935 | ac_init_help=recursive ;; |
| 936 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 937 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 938 | |
| 939 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 940 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 941 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 942 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 944 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 945 | ac_prev=htmldir ;; |
| 946 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 947 | | --ht=*) |
| 948 | htmldir=$ac_optarg ;; |
| 949 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 950 | -includedir | --includedir | --includedi | --included | --include \ |
| 951 | | --includ | --inclu | --incl | --inc) |
| 952 | ac_prev=includedir ;; |
| 953 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 954 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 955 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 956 | |
| 957 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 958 | ac_prev=infodir ;; |
| 959 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 960 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 961 | |
| 962 | -libdir | --libdir | --libdi | --libd) |
| 963 | ac_prev=libdir ;; |
| 964 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 965 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 966 | |
| 967 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 968 | | --libexe | --libex | --libe) |
| 969 | ac_prev=libexecdir ;; |
| 970 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 971 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 972 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 974 | -localedir | --localedir | --localedi | --localed | --locale) |
| 975 | ac_prev=localedir ;; |
| 976 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 977 | localedir=$ac_optarg ;; |
| 978 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 979 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 980 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 981 | ac_prev=localstatedir ;; |
| 982 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 983 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 984 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 985 | |
| 986 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 987 | ac_prev=mandir ;; |
| 988 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 989 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 990 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 991 | -nfp | --nfp | --nf) |
| 992 | # Obsolete; use --without-fp. |
| 993 | with_fp=no ;; |
| 994 | |
| 995 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 996 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 997 | no_create=yes ;; |
| 998 | |
| 999 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1000 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1001 | no_recursion=yes ;; |
| 1002 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1003 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1004 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1005 | | --oldin | --oldi | --old | --ol | --o) |
| 1006 | ac_prev=oldincludedir ;; |
| 1007 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1008 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1009 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1010 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1011 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1012 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1013 | ac_prev=prefix ;; |
| 1014 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1015 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | |
| 1017 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1018 | | --program-pre | --program-pr | --program-p) |
| 1019 | ac_prev=program_prefix ;; |
| 1020 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1021 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1022 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1023 | |
| 1024 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1025 | | --program-suf | --program-su | --program-s) |
| 1026 | ac_prev=program_suffix ;; |
| 1027 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1028 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1029 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1030 | |
| 1031 | -program-transform-name | --program-transform-name \ |
| 1032 | | --program-transform-nam | --program-transform-na \ |
| 1033 | | --program-transform-n | --program-transform- \ |
| 1034 | | --program-transform | --program-transfor \ |
| 1035 | | --program-transfo | --program-transf \ |
| 1036 | | --program-trans | --program-tran \ |
| 1037 | | --progr-tra | --program-tr | --program-t) |
| 1038 | ac_prev=program_transform_name ;; |
| 1039 | -program-transform-name=* | --program-transform-name=* \ |
| 1040 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1041 | | --program-transform-n=* | --program-transform-=* \ |
| 1042 | | --program-transform=* | --program-transfor=* \ |
| 1043 | | --program-transfo=* | --program-transf=* \ |
| 1044 | | --program-trans=* | --program-tran=* \ |
| 1045 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1046 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1048 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1049 | ac_prev=pdfdir ;; |
| 1050 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1051 | pdfdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1054 | ac_prev=psdir ;; |
| 1055 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1056 | psdir=$ac_optarg ;; |
| 1057 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1059 | | -silent | --silent | --silen | --sile | --sil) |
| 1060 | silent=yes ;; |
| 1061 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1062 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1063 | ac_prev=sbindir ;; |
| 1064 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1065 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1067 | |
| 1068 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1069 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1070 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1071 | | --sha | --sh) |
| 1072 | ac_prev=sharedstatedir ;; |
| 1073 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1074 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1075 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1076 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1077 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1078 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1079 | -site | --site | --sit) |
| 1080 | ac_prev=site ;; |
| 1081 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1082 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1083 | |
| 1084 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1085 | ac_prev=srcdir ;; |
| 1086 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1088 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1089 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1090 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1091 | ac_prev=sysconfdir ;; |
| 1092 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1093 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1095 | |
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 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1099 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1100 | |
| 1101 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1102 | verbose=yes ;; |
| 1103 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1104 | -version | --version | --versio | --versi | --vers | -V) |
| 1105 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1106 | |
| 1107 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1109 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1110 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1111 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1112 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1113 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1114 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1115 | |
| 1116 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1118 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1119 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1121 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1122 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1123 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1124 | |
| 1125 | --x) |
| 1126 | # Obsolete; use --with-x. |
| 1127 | with_x=yes ;; |
| 1128 | |
| 1129 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1130 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1131 | ac_prev=x_includes ;; |
| 1132 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1133 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1134 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1135 | |
| 1136 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1137 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1138 | ac_prev=x_libraries ;; |
| 1139 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1140 | | --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] | 1141 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1143 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1144 | Try \`$0 --help' for more information." >&2 |
| 1145 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | ;; |
| 1147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | *=*) |
| 1149 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1150 | # Reject names that are not valid shell variable names. |
| 1151 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1152 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1153 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1154 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1155 | export $ac_envvar ;; |
| 1156 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1157 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1158 | # FIXME: should be removed in autoconf 3.0. |
| 1159 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1160 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1161 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1162 | : ${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] | 1163 | ;; |
| 1164 | |
| 1165 | esac |
| 1166 | done |
| 1167 | |
| 1168 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1169 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1170 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1171 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1172 | fi |
| 1173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1174 | # Be sure to have absolute directory names. |
| 1175 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1176 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1177 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1178 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1180 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1181 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1182 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1183 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1184 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1185 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1186 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1187 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1189 | # There might be people who depend on the old broken behavior: `$host' |
| 1190 | # used to hold the argument of --host etc. |
| 1191 | # FIXME: To remove some day. |
| 1192 | build=$build_alias |
| 1193 | host=$host_alias |
| 1194 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1195 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1196 | # FIXME: To remove some day. |
| 1197 | if test "x$host_alias" != x; then |
| 1198 | if test "x$build_alias" = x; then |
| 1199 | cross_compiling=maybe |
| 1200 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1201 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1202 | elif test "x$build_alias" != "x$host_alias"; then |
| 1203 | cross_compiling=yes |
| 1204 | fi |
| 1205 | fi |
| 1206 | |
| 1207 | ac_tool_prefix= |
| 1208 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1209 | |
| 1210 | test "$silent" = yes && exec 6>/dev/null |
| 1211 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1213 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1214 | ac_ls_di=`ls -di .` && |
| 1215 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1216 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
| 1218 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1219 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1220 | { (exit 1); exit 1; }; } |
| 1221 | |
| 1222 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1223 | # Find the source files, if location was not specified. |
| 1224 | if test -z "$srcdir"; then |
| 1225 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1226 | # Try the directory containing this script, then the parent directory. |
| 1227 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1228 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1229 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1230 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1231 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1234 | s//\1/ |
| 1235 | q |
| 1236 | } |
| 1237 | /^X\(\/\/\)[^/].*/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)$/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\).*/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1251 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | srcdir=.. |
| 1253 | fi |
| 1254 | else |
| 1255 | ac_srcdir_defaulted=no |
| 1256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1257 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1258 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1259 | { 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] | 1260 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1261 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1262 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1263 | ac_abs_confdir=`( |
| 1264 | 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] | 1265 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | pwd)` |
| 1267 | # When building in place, set srcdir=. |
| 1268 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1269 | srcdir=. |
| 1270 | fi |
| 1271 | # Remove unnecessary trailing slashes from srcdir. |
| 1272 | # Double slashes in file names in object file debugging info |
| 1273 | # mess up M-x gdb in Emacs. |
| 1274 | case $srcdir in |
| 1275 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1276 | esac |
| 1277 | for ac_var in $ac_precious_vars; do |
| 1278 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1279 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1280 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1282 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1284 | # |
| 1285 | # Report the --help message. |
| 1286 | # |
| 1287 | if test "$ac_init_help" = "long"; then |
| 1288 | # Omit some internal or obsolete options to make the list less imposing. |
| 1289 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1290 | cat <<_ACEOF |
| 1291 | \`configure' configures this package to adapt to many kinds of systems. |
| 1292 | |
| 1293 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1294 | |
| 1295 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1296 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1297 | |
| 1298 | Defaults for the options are specified in brackets. |
| 1299 | |
| 1300 | Configuration: |
| 1301 | -h, --help display this help and exit |
| 1302 | --help=short display options specific to this package |
| 1303 | --help=recursive display the short help of all the included packages |
| 1304 | -V, --version display version information and exit |
| 1305 | -q, --quiet, --silent do not print \`checking...' messages |
| 1306 | --cache-file=FILE cache test results in FILE [disabled] |
| 1307 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1308 | -n, --no-create do not create output files |
| 1309 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1310 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1311 | Installation directories: |
| 1312 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1313 | [$ac_default_prefix] |
| 1314 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1315 | [PREFIX] |
| 1316 | |
| 1317 | By default, \`make install' will install all the files in |
| 1318 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1319 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1320 | for instance \`--prefix=\$HOME'. |
| 1321 | |
| 1322 | For better control, use the options below. |
| 1323 | |
| 1324 | Fine tuning of the installation directories: |
| 1325 | --bindir=DIR user executables [EPREFIX/bin] |
| 1326 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1327 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1328 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1329 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1330 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1331 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1332 | --includedir=DIR C header files [PREFIX/include] |
| 1333 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1334 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1335 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1336 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1337 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1338 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1339 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1340 | --htmldir=DIR html documentation [DOCDIR] |
| 1341 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1342 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1343 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1344 | _ACEOF |
| 1345 | |
| 1346 | cat <<\_ACEOF |
| 1347 | |
| 1348 | System types: |
| 1349 | --build=BUILD configure for building on BUILD [guessed] |
| 1350 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1351 | _ACEOF |
| 1352 | fi |
| 1353 | |
| 1354 | if test -n "$ac_init_help"; then |
| 1355 | |
| 1356 | cat <<\_ACEOF |
| 1357 | |
| 1358 | Optional Features: |
| 1359 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1360 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1361 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1362 | --enable-compression enable EXPERIMENTAL compression support |
| 1363 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1364 | --enable-elf-shlibs select ELF shared libraries |
| 1365 | --enable-bsd-shlibs select BSD shared libraries |
| 1366 | --enable-profile build profiling libraries |
| 1367 | --enable-checker build checker libraries |
| 1368 | --enable-jbd-debug enable journal debugging |
| 1369 | --enable-blkid-debug enable blkid debugging |
| 1370 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1371 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1372 | --disable-debugfs disable support of debugfs program |
| 1373 | --disable-imager disable support of e2image program |
| 1374 | --disable-resizer disable support of e2resize program |
| 1375 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1376 | --enable-fsck build fsck wrapper program |
| 1377 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1378 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame^] | 1379 | --disable-tls disable use of thread local support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1380 | --disable-nls do not use Native Language Support |
| 1381 | --disable-rpath do not hardcode runtime library paths |
| 1382 | |
| 1383 | Optional Packages: |
| 1384 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1385 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame^] | 1386 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1387 | --with-cc=COMPILER select compiler to use |
| 1388 | --with-linker=LINKER select linker to use |
| 1389 | --with-ccopts=CCOPTS select compiler command line options |
| 1390 | --with-ldopts=LDOPTS select linker command line options |
| 1391 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1392 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1393 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1394 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1395 | --with-included-gettext use the GNU gettext library included here |
| 1396 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1397 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1398 | |
| 1399 | Some influential environment variables: |
| 1400 | CC C compiler command |
| 1401 | CFLAGS C compiler flags |
| 1402 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1403 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1404 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1405 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1406 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1407 | CPP C preprocessor |
| 1408 | |
| 1409 | Use these variables to override the choices made by `configure' or to help |
| 1410 | it to find libraries and programs with nonstandard names/locations. |
| 1411 | |
| 1412 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1413 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1414 | fi |
| 1415 | |
| 1416 | if test "$ac_init_help" = "recursive"; then |
| 1417 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1418 | 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] | 1419 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1420 | ac_builddir=. |
| 1421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1422 | case "$ac_dir" in |
| 1423 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1424 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1425 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1426 | # A ".." for each directory in $ac_dir_suffix. |
| 1427 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1428 | case $ac_top_builddir_sub in |
| 1429 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1430 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1431 | esac ;; |
| 1432 | esac |
| 1433 | ac_abs_top_builddir=$ac_pwd |
| 1434 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1435 | # for backward compatibility: |
| 1436 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | |
| 1438 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1439 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1440 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1441 | ac_top_srcdir=$ac_top_builddir_sub |
| 1442 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1443 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1444 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1445 | ac_top_srcdir=$srcdir |
| 1446 | ac_abs_top_srcdir=$srcdir ;; |
| 1447 | *) # Relative name. |
| 1448 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1449 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1450 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1451 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1452 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1453 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1454 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1455 | # Check for guested configure. |
| 1456 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1457 | echo && |
| 1458 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1459 | elif test -f "$ac_srcdir/configure"; then |
| 1460 | echo && |
| 1461 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1462 | else |
| 1463 | 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] | 1464 | fi || ac_status=$? |
| 1465 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | done |
| 1467 | fi |
| 1468 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1469 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | if $ac_init_version; then |
| 1471 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1472 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1473 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1475 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1476 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1477 | This configure script is free software; the Free Software Foundation |
| 1478 | gives unlimited permission to copy, distribute and modify it. |
| 1479 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1480 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1482 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | This file contains any messages produced by compilers while |
| 1484 | running configure, to aid debugging if configure makes a mistake. |
| 1485 | |
| 1486 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1487 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1488 | |
| 1489 | $ $0 $@ |
| 1490 | |
| 1491 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1492 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1493 | { |
| 1494 | cat <<_ASUNAME |
| 1495 | ## --------- ## |
| 1496 | ## Platform. ## |
| 1497 | ## --------- ## |
| 1498 | |
| 1499 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1500 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1501 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1502 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1503 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1504 | |
| 1505 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1506 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1507 | |
| 1508 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1509 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1510 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1511 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1512 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1513 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1514 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1515 | |
| 1516 | _ASUNAME |
| 1517 | |
| 1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1519 | for as_dir in $PATH |
| 1520 | do |
| 1521 | IFS=$as_save_IFS |
| 1522 | test -z "$as_dir" && as_dir=. |
| 1523 | echo "PATH: $as_dir" |
| 1524 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1525 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1526 | |
| 1527 | } >&5 |
| 1528 | |
| 1529 | cat >&5 <<_ACEOF |
| 1530 | |
| 1531 | |
| 1532 | ## ----------- ## |
| 1533 | ## Core tests. ## |
| 1534 | ## ----------- ## |
| 1535 | |
| 1536 | _ACEOF |
| 1537 | |
| 1538 | |
| 1539 | # Keep a trace of the command line. |
| 1540 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1541 | # Strip out --silent because we don't want to record it for future runs. |
| 1542 | # Also quote any args containing shell meta-characters. |
| 1543 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1544 | ac_configure_args= |
| 1545 | ac_configure_args0= |
| 1546 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | ac_must_keep_next=false |
| 1548 | for ac_pass in 1 2 |
| 1549 | do |
| 1550 | for ac_arg |
| 1551 | do |
| 1552 | case $ac_arg in |
| 1553 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1554 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1555 | | -silent | --silent | --silen | --sile | --sil) |
| 1556 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1557 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1558 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1559 | esac |
| 1560 | case $ac_pass in |
| 1561 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1562 | 2) |
| 1563 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1564 | if test $ac_must_keep_next = true; then |
| 1565 | ac_must_keep_next=false # Got value, back to normal. |
| 1566 | else |
| 1567 | case $ac_arg in |
| 1568 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1569 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1570 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1571 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1572 | case "$ac_configure_args0 " in |
| 1573 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1574 | esac |
| 1575 | ;; |
| 1576 | -* ) ac_must_keep_next=true ;; |
| 1577 | esac |
| 1578 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1579 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1580 | ;; |
| 1581 | esac |
| 1582 | done |
| 1583 | done |
| 1584 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1585 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1586 | |
| 1587 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1588 | # config.log. We remove comments because anyway the quotes in there |
| 1589 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1590 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1591 | # 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] | 1592 | trap 'exit_status=$? |
| 1593 | # Save into config.log some information that might help in debugging. |
| 1594 | { |
| 1595 | echo |
| 1596 | |
| 1597 | cat <<\_ASBOX |
| 1598 | ## ---------------- ## |
| 1599 | ## Cache variables. ## |
| 1600 | ## ---------------- ## |
| 1601 | _ASBOX |
| 1602 | echo |
| 1603 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1604 | ( |
| 1605 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1606 | eval ac_val=\$$ac_var |
| 1607 | case $ac_val in #( |
| 1608 | *${as_nl}*) |
| 1609 | case $ac_var in #( |
| 1610 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1611 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1612 | esac |
| 1613 | case $ac_var in #( |
| 1614 | _ | IFS | as_nl) ;; #( |
| 1615 | *) $as_unset $ac_var ;; |
| 1616 | esac ;; |
| 1617 | esac |
| 1618 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1619 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1620 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1621 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1622 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1623 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1624 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1625 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1626 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1627 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | esac | |
| 1630 | sort |
| 1631 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1632 | echo |
| 1633 | |
| 1634 | cat <<\_ASBOX |
| 1635 | ## ----------------- ## |
| 1636 | ## Output variables. ## |
| 1637 | ## ----------------- ## |
| 1638 | _ASBOX |
| 1639 | echo |
| 1640 | for ac_var in $ac_subst_vars |
| 1641 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1642 | eval ac_val=\$$ac_var |
| 1643 | case $ac_val in |
| 1644 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1645 | esac |
| 1646 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1647 | done | sort |
| 1648 | echo |
| 1649 | |
| 1650 | if test -n "$ac_subst_files"; then |
| 1651 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1652 | ## ------------------- ## |
| 1653 | ## File substitutions. ## |
| 1654 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1655 | _ASBOX |
| 1656 | echo |
| 1657 | for ac_var in $ac_subst_files |
| 1658 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1659 | eval ac_val=\$$ac_var |
| 1660 | case $ac_val in |
| 1661 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1662 | esac |
| 1663 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1664 | done | sort |
| 1665 | echo |
| 1666 | fi |
| 1667 | |
| 1668 | if test -s confdefs.h; then |
| 1669 | cat <<\_ASBOX |
| 1670 | ## ----------- ## |
| 1671 | ## confdefs.h. ## |
| 1672 | ## ----------- ## |
| 1673 | _ASBOX |
| 1674 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1675 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1676 | echo |
| 1677 | fi |
| 1678 | test "$ac_signal" != 0 && |
| 1679 | echo "$as_me: caught signal $ac_signal" |
| 1680 | echo "$as_me: exit $exit_status" |
| 1681 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1682 | rm -f core *.core core.conftest.* && |
| 1683 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1684 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1685 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1686 | for ac_signal in 1 2 13 15; do |
| 1687 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1688 | done |
| 1689 | ac_signal=0 |
| 1690 | |
| 1691 | # 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] | 1692 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1693 | |
| 1694 | # Predefined preprocessor variables. |
| 1695 | |
| 1696 | cat >>confdefs.h <<_ACEOF |
| 1697 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1698 | _ACEOF |
| 1699 | |
| 1700 | |
| 1701 | cat >>confdefs.h <<_ACEOF |
| 1702 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1703 | _ACEOF |
| 1704 | |
| 1705 | |
| 1706 | cat >>confdefs.h <<_ACEOF |
| 1707 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1708 | _ACEOF |
| 1709 | |
| 1710 | |
| 1711 | cat >>confdefs.h <<_ACEOF |
| 1712 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1713 | _ACEOF |
| 1714 | |
| 1715 | |
| 1716 | cat >>confdefs.h <<_ACEOF |
| 1717 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1718 | _ACEOF |
| 1719 | |
| 1720 | |
| 1721 | # 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] | 1722 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1723 | if test -n "$CONFIG_SITE"; then |
| 1724 | set x "$CONFIG_SITE" |
| 1725 | elif test "x$prefix" != xNONE; then |
| 1726 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1727 | else |
| 1728 | set x "$ac_default_prefix/share/config.site" \ |
| 1729 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1730 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1731 | shift |
| 1732 | for ac_site_file |
| 1733 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1734 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1735 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1736 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1737 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1738 | . "$ac_site_file" |
| 1739 | fi |
| 1740 | done |
| 1741 | |
| 1742 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1743 | # Some versions of bash will fail to source /dev/null (special |
| 1744 | # files actually), so we avoid doing that. |
| 1745 | if test -f "$cache_file"; then |
| 1746 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1747 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1748 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1749 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1750 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1751 | esac |
| 1752 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1753 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1754 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1755 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1756 | >$cache_file |
| 1757 | fi |
| 1758 | |
| 1759 | # Check that the precious variables saved in the cache have kept the same |
| 1760 | # value. |
| 1761 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1762 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1763 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1764 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1765 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1766 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1767 | case $ac_old_set,$ac_new_set in |
| 1768 | set,) |
| 1769 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1770 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1771 | ac_cache_corrupted=: ;; |
| 1772 | ,set) |
| 1773 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1774 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1775 | ac_cache_corrupted=: ;; |
| 1776 | ,);; |
| 1777 | *) |
| 1778 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1779 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1780 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1781 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1782 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1783 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1784 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1785 | ac_cache_corrupted=: |
| 1786 | fi;; |
| 1787 | esac |
| 1788 | # Pass precious variables to config.status. |
| 1789 | if test "$ac_new_set" = set; then |
| 1790 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1791 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1792 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1793 | esac |
| 1794 | case " $ac_configure_args " in |
| 1795 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1796 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1797 | esac |
| 1798 | fi |
| 1799 | done |
| 1800 | if $ac_cache_corrupted; then |
| 1801 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1802 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1803 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1804 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1805 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1806 | fi |
| 1807 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1824 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1825 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1830 | |
| 1831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1832 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1833 | for ac_dir in config "$srcdir"/config; do |
| 1834 | if 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/install.sh"; 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/install.sh -c" |
| 1841 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1842 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1843 | ac_aux_dir=$ac_dir |
| 1844 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1845 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1846 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1847 | done |
| 1848 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1849 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1850 | 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] | 1851 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1853 | |
| 1854 | # These three variables are undocumented and unsupported, |
| 1855 | # and are intended to be withdrawn in a future Autoconf release. |
| 1856 | # They can cause serious problems if a builder's source tree is in a directory |
| 1857 | # whose full name contains unusual characters. |
| 1858 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1859 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1860 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1861 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1862 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1863 | MCONFIG=./MCONFIG |
| 1864 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1865 | BINARY_TYPE=bin |
| 1866 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1867 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1868 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1869 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1870 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1871 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1872 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1873 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1874 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1875 | E2FSPROGS_YEAR=$YEAR |
| 1876 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1877 | E2FSPROGS_YEAR=19$YEAR |
| 1878 | else |
| 1879 | E2FSPROGS_YEAR=20$YEAR |
| 1880 | fi |
| 1881 | |
| 1882 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1883 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1884 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1885 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1886 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1887 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1888 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1889 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1890 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1891 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1892 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1893 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1894 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1895 | *) echo "Unknown month $MONTH??" ;; |
| 1896 | esac |
| 1897 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1898 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1899 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
| 1900 | pre_vers=`echo $base_ver 0.01 - p | dc` |
| 1901 | |
| 1902 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1903 | |
| 1904 | case $E2FSPROGS_VERSION in |
| 1905 | *-WIP|pre-*) |
| 1906 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1907 | ;; |
| 1908 | *) |
| 1909 | E2FSPROGS_PKGVER="$base_ver" |
| 1910 | ;; |
| 1911 | esac |
| 1912 | |
| 1913 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1914 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1915 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1916 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1917 | |
| 1918 | |
| 1919 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1920 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1921 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1922 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1923 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1924 | 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] | 1925 | { (exit 1); exit 1; }; } |
| 1926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1927 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1928 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1929 | if test "${ac_cv_build+set}" = set; then |
| 1930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1931 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1932 | ac_build_alias=$build_alias |
| 1933 | test "x$ac_build_alias" = x && |
| 1934 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1935 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1936 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1937 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1939 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1940 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1941 | 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] | 1942 | { (exit 1); exit 1; }; } |
| 1943 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1944 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1945 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1946 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1947 | case $ac_cv_build in |
| 1948 | *-*-*) ;; |
| 1949 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1950 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1951 | { (exit 1); exit 1; }; };; |
| 1952 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1953 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1954 | ac_save_IFS=$IFS; IFS='-' |
| 1955 | set x $ac_cv_build |
| 1956 | shift |
| 1957 | build_cpu=$1 |
| 1958 | build_vendor=$2 |
| 1959 | shift; shift |
| 1960 | # Remember, the first character of IFS is used to create $*, |
| 1961 | # except with old shells: |
| 1962 | build_os=$* |
| 1963 | IFS=$ac_save_IFS |
| 1964 | 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] | 1965 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1967 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1968 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1969 | if test "${ac_cv_host+set}" = set; then |
| 1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1971 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1972 | if test "x$host_alias" = x; then |
| 1973 | ac_cv_host=$ac_cv_build |
| 1974 | else |
| 1975 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1976 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1977 | 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] | 1978 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1979 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1980 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1981 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1982 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1983 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1984 | case $ac_cv_host in |
| 1985 | *-*-*) ;; |
| 1986 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1987 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1988 | { (exit 1); exit 1; }; };; |
| 1989 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1990 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1991 | ac_save_IFS=$IFS; IFS='-' |
| 1992 | set x $ac_cv_host |
| 1993 | shift |
| 1994 | host_cpu=$1 |
| 1995 | host_vendor=$2 |
| 1996 | shift; shift |
| 1997 | # Remember, the first character of IFS is used to create $*, |
| 1998 | # except with old shells: |
| 1999 | host_os=$* |
| 2000 | IFS=$ac_save_IFS |
| 2001 | 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] | 2002 | |
| 2003 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2005 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2006 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2007 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 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 |
| 3762 | else |
| 3763 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3764 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3766 | |
| 3767 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3768 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3769 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3770 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3771 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3772 | fi |
| 3773 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3774 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3775 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3776 | then |
| 3777 | MAINTAINER_CMT=# |
| 3778 | echo "Disabling maintainer mode" |
| 3779 | else |
| 3780 | MAINTAINER_CMT= |
| 3781 | echo "Enabling maintainer mode" |
| 3782 | fi |
| 3783 | |
| 3784 | else |
| 3785 | MAINTAINER_CMT=# |
| 3786 | echo "Disabling maintainer mode by default" |
| 3787 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3788 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3790 | |
| 3791 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3792 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3793 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3794 | then |
| 3795 | echo "Disabling compression support" |
| 3796 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3797 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3798 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3799 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3800 | |
| 3801 | echo "Enabling compression support" |
| 3802 | echo "WARNING: Compression support is experimental" |
| 3803 | fi |
| 3804 | |
| 3805 | else |
| 3806 | echo "Disabling compression support by default" |
| 3807 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3808 | fi |
| 3809 | |
| 3810 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3811 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3812 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3813 | then |
| 3814 | HTREE_CMT=# |
| 3815 | echo "Disabling htree directory support" |
| 3816 | else |
| 3817 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3818 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3819 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3820 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3821 | |
| 3822 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3823 | fi |
| 3824 | |
| 3825 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3826 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3827 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3828 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3829 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3830 | |
| 3831 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3832 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3833 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3834 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3835 | |
| 3836 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3837 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3838 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3839 | then |
| 3840 | ELF_CMT=# |
| 3841 | MAKEFILE_ELF=/dev/null |
| 3842 | echo "Disabling ELF shared libraries" |
| 3843 | else |
| 3844 | ELF_CMT= |
| 3845 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3846 | case "$host_os" in |
| 3847 | solaris2.*) |
| 3848 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3849 | ;; |
| 3850 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3851 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3852 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3853 | echo "Enabling ELF shared libraries" |
| 3854 | fi |
| 3855 | |
| 3856 | else |
| 3857 | MAKEFILE_ELF=/dev/null |
| 3858 | ELF_CMT=# |
| 3859 | echo "Disabling ELF shared libraries by default" |
| 3860 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3861 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3862 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3863 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3864 | |
| 3865 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3866 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3867 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3868 | then |
| 3869 | BSDLIB_CMT=# |
| 3870 | MAKEFILE_BSDLIB=/dev/null |
| 3871 | echo "Disabling BSD shared libraries" |
| 3872 | else |
| 3873 | BSDLIB_CMT= |
| 3874 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3875 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3876 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3877 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3878 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3879 | LIB_EXT=.dylib |
| 3880 | ;; |
| 3881 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3882 | echo "Enabling BSD shared libraries" |
| 3883 | fi |
| 3884 | |
| 3885 | else |
| 3886 | MAKEFILE_BSDLIB=/dev/null |
| 3887 | BSDLIB_CMT=# |
| 3888 | echo "Disabling BSD shared libraries by default" |
| 3889 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3890 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3891 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3893 | |
| 3894 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3895 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3896 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3897 | then |
| 3898 | PROFILE_CMT=# |
| 3899 | MAKEFILE_PROFILE=/dev/null |
| 3900 | echo "Disabling profiling libraries" |
| 3901 | else |
| 3902 | PROFILE_CMT= |
| 3903 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3904 | PROFILED_LIB_EXT=_p.a |
| 3905 | echo "Building profiling libraries" |
| 3906 | fi |
| 3907 | |
| 3908 | else |
| 3909 | PROFILE_CMT=# |
| 3910 | MAKEFILE_PROFILE=/dev/null |
| 3911 | echo "Disabling profiling libraries by default" |
| 3912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3913 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3914 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3915 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3916 | |
| 3917 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3918 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3919 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3920 | then |
| 3921 | CHECKER_CMT=# |
| 3922 | MAKEFILE_CHECKER=/dev/null |
| 3923 | echo "Disabling checker libraries" |
| 3924 | else |
| 3925 | CHECKER_CMT= |
| 3926 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3927 | echo "Building checker libraries" |
| 3928 | fi |
| 3929 | |
| 3930 | else |
| 3931 | CHECKER_CMT=# |
| 3932 | MAKEFILE_CHECKER=/dev/null |
| 3933 | echo "Disabling checker libraries by default" |
| 3934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3935 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3941 | |
| 3942 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3943 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3944 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3945 | then |
| 3946 | echo "Disabling journal debugging" |
| 3947 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3948 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3949 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3950 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3951 | |
| 3952 | echo "Enabling journal debugging" |
| 3953 | fi |
| 3954 | |
| 3955 | else |
| 3956 | echo "Disabling journal debugging by default" |
| 3957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3958 | fi |
| 3959 | |
| 3960 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3961 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3962 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3963 | then |
| 3964 | echo "Disabling blkid debugging" |
| 3965 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3966 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3967 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3968 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3969 | |
| 3970 | echo "Enabling blkid debugging" |
| 3971 | fi |
| 3972 | |
| 3973 | else |
| 3974 | echo "Disabling blkid debugging by default" |
| 3975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3976 | fi |
| 3977 | |
| 3978 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3979 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3980 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3981 | then |
| 3982 | echo "Disabling testio debugging" |
| 3983 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3984 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3985 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3986 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3987 | |
| 3988 | echo "Enabling testio debugging" |
| 3989 | fi |
| 3990 | |
| 3991 | else |
| 3992 | echo "Disabling testio debugging by default" |
| 3993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3994 | fi |
| 3995 | |
| 3996 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3997 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3998 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3999 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4000 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4001 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4002 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4003 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4004 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4005 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4006 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4007 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4008 | echo "Enabling swapfs support" |
| 4009 | fi |
| 4010 | |
| 4011 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4012 | SWAPFS_CMT= |
| 4013 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4014 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4015 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4016 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4017 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4019 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4021 | |
| 4022 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4023 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4024 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4025 | then |
| 4026 | echo "Disabling debugfs support" |
| 4027 | DEBUGFS_CMT="#" |
| 4028 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4029 | DEBUGFS_CMT= |
| 4030 | echo "Enabling debugfs support" |
| 4031 | fi |
| 4032 | |
| 4033 | else |
| 4034 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4035 | DEBUGFS_CMT= |
| 4036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4037 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4039 | |
| 4040 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4041 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4042 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4043 | then |
| 4044 | echo "Disabling e2image support" |
| 4045 | IMAGER_CMT="#" |
| 4046 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4047 | IMAGER_CMT= |
| 4048 | echo "Enabling e2image support" |
| 4049 | fi |
| 4050 | |
| 4051 | else |
| 4052 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4053 | IMAGER_CMT= |
| 4054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4055 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4057 | |
| 4058 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4059 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4060 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4061 | then |
| 4062 | echo "Disabling e2resize support" |
| 4063 | RESIZER_CMT="#" |
| 4064 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4065 | RESIZER_CMT= |
| 4066 | echo "Enabling e2resize support" |
| 4067 | fi |
| 4068 | |
| 4069 | else |
| 4070 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4071 | RESIZER_CMT= |
| 4072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4073 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4075 | |
| 4076 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4077 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4078 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4079 | then |
| 4080 | E2FSCK_TYPE=static |
| 4081 | echo "Building e2fsck statically" |
| 4082 | else |
| 4083 | E2FSCK_TYPE=shared |
| 4084 | echo "Building e2fsck dynamically" |
| 4085 | fi |
| 4086 | |
| 4087 | else |
| 4088 | E2FSCK_TYPE=static |
| 4089 | echo "Building e2fsck statically by default" |
| 4090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4091 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4092 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4093 | |
| 4094 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4095 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4096 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4097 | then |
| 4098 | FSCK_PROG='' FSCK_MAN='' |
| 4099 | echo "Not building fsck wrapper" |
| 4100 | else |
| 4101 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4102 | echo "Building fsck wrapper" |
| 4103 | fi |
| 4104 | |
| 4105 | else |
| 4106 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4107 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4108 | FSCK_PROG='' FSCK_MAN='' |
| 4109 | echo "Not building fsck wrapper by default" |
| 4110 | ;; |
| 4111 | *) |
| 4112 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4113 | echo "Building fsck wrapper by default" |
| 4114 | esac |
| 4115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4116 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4117 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4119 | |
| 4120 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4121 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4122 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4123 | then |
| 4124 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4125 | echo "Not building e2initrd helper" |
| 4126 | else |
| 4127 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4128 | echo "Building e2initrd helper" |
| 4129 | fi |
| 4130 | |
| 4131 | else |
| 4132 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4133 | echo "Building e2initrd helper by default" |
| 4134 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4135 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4136 | |
| 4137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4138 | |
| 4139 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4140 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4141 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4142 | then |
| 4143 | echo "Disabling device-mapper support" |
| 4144 | DEVMAPPER_REQ='' |
| 4145 | DEVMAPPER_LIBS='' |
| 4146 | STATIC_DEVMAPPER_LIBS='' |
| 4147 | else |
| 4148 | cat >>confdefs.h <<\_ACEOF |
| 4149 | #define HAVE_DEVMAPPER 1 |
| 4150 | _ACEOF |
| 4151 | |
| 4152 | echo "Enabling device-mapper support" |
| 4153 | |
| 4154 | DEVMAPPER_REQ='libselinux libsepol' |
| 4155 | DEVMAPPER_PC_LIBS='-ldevmapper' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4156 | DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' |
| 4157 | STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread' |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4158 | |
| 4159 | fi |
| 4160 | |
| 4161 | else |
| 4162 | echo "Disabling device-mapper support by default" |
| 4163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4164 | fi |
| 4165 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame^] | 4170 | # Check whether --enable-tls was given. |
| 4171 | if test "${enable_tls+set}" = set; then |
| 4172 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4173 | then |
| 4174 | try_tls="" |
| 4175 | echo "Disabling thread local support" |
| 4176 | else |
| 4177 | try_tls="yes" |
| 4178 | echo "Enabling thread local support" |
| 4179 | fi |
| 4180 | |
| 4181 | else |
| 4182 | try_tls="yes" |
| 4183 | echo "Try using thread local support by default" |
| 4184 | |
| 4185 | fi |
| 4186 | |
| 4187 | if test "$try_tls" = "yes" |
| 4188 | then |
| 4189 | |
| 4190 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4191 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4192 | if test "${ac_cv_tls+set}" = set; then |
| 4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4194 | else |
| 4195 | |
| 4196 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4197 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4198 | case $ax_tls_keyword in |
| 4199 | none) ac_cv_tls=none ; break ;; |
| 4200 | *) |
| 4201 | cat >conftest.$ac_ext <<_ACEOF |
| 4202 | /* confdefs.h. */ |
| 4203 | _ACEOF |
| 4204 | cat confdefs.h >>conftest.$ac_ext |
| 4205 | cat >>conftest.$ac_ext <<_ACEOF |
| 4206 | /* end confdefs.h. */ |
| 4207 | #include <stdlib.h> |
| 4208 | static void |
| 4209 | foo(void) { |
| 4210 | static $ax_tls_keyword int bar; |
| 4211 | exit(1); |
| 4212 | } |
| 4213 | int |
| 4214 | main () |
| 4215 | { |
| 4216 | |
| 4217 | ; |
| 4218 | return 0; |
| 4219 | } |
| 4220 | _ACEOF |
| 4221 | rm -f conftest.$ac_objext |
| 4222 | if { (ac_try="$ac_compile" |
| 4223 | case "(($ac_try" in |
| 4224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4225 | *) ac_try_echo=$ac_try;; |
| 4226 | esac |
| 4227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4228 | (eval "$ac_compile") 2>conftest.er1 |
| 4229 | ac_status=$? |
| 4230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4231 | rm -f conftest.er1 |
| 4232 | cat conftest.err >&5 |
| 4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4234 | (exit $ac_status); } && { |
| 4235 | test -z "$ac_c_werror_flag" || |
| 4236 | test ! -s conftest.err |
| 4237 | } && test -s conftest.$ac_objext; then |
| 4238 | ac_cv_tls=$ax_tls_keyword ; break |
| 4239 | else |
| 4240 | echo "$as_me: failed program was:" >&5 |
| 4241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4242 | |
| 4243 | ac_cv_tls=none |
| 4244 | |
| 4245 | fi |
| 4246 | |
| 4247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4248 | esac |
| 4249 | done |
| 4250 | |
| 4251 | fi |
| 4252 | |
| 4253 | |
| 4254 | if test "$ac_cv_tls" != "none"; then |
| 4255 | |
| 4256 | cat >>confdefs.h <<_ACEOF |
| 4257 | #define TLS $ac_cv_tls |
| 4258 | _ACEOF |
| 4259 | |
| 4260 | fi |
| 4261 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4262 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4263 | |
| 4264 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4265 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4266 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4267 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4268 | PACKAGE=e2fsprogs |
| 4269 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4270 | VERSION=0.14.1 |
| 4271 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4272 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4273 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4275 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4276 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4277 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4278 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4283 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4284 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4285 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4286 | 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] | 4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4288 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4289 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4290 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4291 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4292 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
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 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4295 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4296 | *@@@%%%=?*=@@@%%%*) |
| 4297 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4298 | *) |
| 4299 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4300 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4301 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4303 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4304 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4305 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4306 | SET_MAKE= |
| 4307 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4309 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4310 | SET_MAKE="MAKE=${MAKE-make}" |
| 4311 | fi |
| 4312 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4313 | # Find a good install program. We prefer a C program (faster), |
| 4314 | # so one script is as good as another. But avoid the broken or |
| 4315 | # incompatible versions: |
| 4316 | # SysV /etc/install, /usr/sbin/install |
| 4317 | # SunOS /usr/etc/install |
| 4318 | # IRIX /sbin/install |
| 4319 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4320 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4321 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4322 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4323 | # 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] | 4324 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4325 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4326 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4327 | 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] | 4328 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4329 | if test "${ac_cv_path_install+set}" = set; then |
| 4330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4331 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4333 | for as_dir in $PATH |
| 4334 | do |
| 4335 | IFS=$as_save_IFS |
| 4336 | test -z "$as_dir" && as_dir=. |
| 4337 | # Account for people who put trailing slashes in PATH elements. |
| 4338 | case $as_dir/ in |
| 4339 | ./ | .// | /cC/* | \ |
| 4340 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4341 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4342 | /usr/ucb/* ) ;; |
| 4343 | *) |
| 4344 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4345 | # Don't use installbsd from OSF since it installs stuff as root |
| 4346 | # by default. |
| 4347 | for ac_prog in ginstall scoinst install; do |
| 4348 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4349 | 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] | 4350 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4351 | 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] | 4352 | # AIX install. It has an incompatible calling convention. |
| 4353 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4354 | elif test $ac_prog = install && |
| 4355 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4356 | # program-specific install script used by HP pwplus--don't use. |
| 4357 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4359 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4360 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4361 | fi |
| 4362 | fi |
| 4363 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4364 | done |
| 4365 | ;; |
| 4366 | esac |
| 4367 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4368 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4370 | |
| 4371 | fi |
| 4372 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4373 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4374 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4375 | # As a last resort, use the slow shell script. Don't cache a |
| 4376 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4377 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4378 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4379 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4380 | fi |
| 4381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4382 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4383 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4384 | |
| 4385 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4386 | # It thinks the first close brace ends the variable substitution. |
| 4387 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4388 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4389 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4390 | |
| 4391 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4393 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4394 | MKINSTALLDIRS= |
| 4395 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4396 | case "$ac_aux_dir" in |
| 4397 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4398 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4399 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4400 | fi |
| 4401 | if test -z "$MKINSTALLDIRS"; then |
| 4402 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4403 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4404 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4405 | |
| 4406 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4407 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4408 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4409 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4410 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4411 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4412 | else |
| 4413 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4414 | fi |
| 4415 | |
| 4416 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4417 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4418 | |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | # Prepare PATH_SEPARATOR. |
| 4425 | # The user is always right. |
| 4426 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4427 | echo "#! /bin/sh" >conf$$.sh |
| 4428 | echo "exit 0" >>conf$$.sh |
| 4429 | chmod +x conf$$.sh |
| 4430 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4431 | PATH_SEPARATOR=';' |
| 4432 | else |
| 4433 | PATH_SEPARATOR=: |
| 4434 | fi |
| 4435 | rm -f conf$$.sh |
| 4436 | fi |
| 4437 | |
| 4438 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4439 | # as systems may use methods other than mode bits to determine executability. |
| 4440 | cat >conf$$.file <<_ASEOF |
| 4441 | #! /bin/sh |
| 4442 | exit 0 |
| 4443 | _ASEOF |
| 4444 | chmod +x conf$$.file |
| 4445 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4446 | ac_executable_p="test -x" |
| 4447 | else |
| 4448 | ac_executable_p="test -f" |
| 4449 | fi |
| 4450 | rm -f conf$$.file |
| 4451 | |
| 4452 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4453 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4454 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4456 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4458 | else |
| 4459 | case "$MSGFMT" in |
| 4460 | [\\/]* | ?:[\\/]*) |
| 4461 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4462 | ;; |
| 4463 | *) |
| 4464 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4465 | for ac_dir in $PATH; do |
| 4466 | IFS="$ac_save_IFS" |
| 4467 | test -z "$ac_dir" && ac_dir=. |
| 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4469 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4470 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4471 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4472 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4473 | break 2 |
| 4474 | fi |
| 4475 | fi |
| 4476 | done |
| 4477 | done |
| 4478 | IFS="$ac_save_IFS" |
| 4479 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4480 | ;; |
| 4481 | esac |
| 4482 | fi |
| 4483 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4484 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4485 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4486 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4487 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4489 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4490 | fi |
| 4491 | |
| 4492 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4493 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4494 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4496 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4498 | else |
| 4499 | case $GMSGFMT in |
| 4500 | [\\/]* | ?:[\\/]*) |
| 4501 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4502 | ;; |
| 4503 | *) |
| 4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4505 | for as_dir in $PATH |
| 4506 | do |
| 4507 | IFS=$as_save_IFS |
| 4508 | test -z "$as_dir" && as_dir=. |
| 4509 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4510 | 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] | 4511 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4513 | break 2 |
| 4514 | fi |
| 4515 | done |
| 4516 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4517 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4518 | |
| 4519 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4520 | ;; |
| 4521 | esac |
| 4522 | fi |
| 4523 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4524 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4525 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4526 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4527 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4529 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4530 | fi |
| 4531 | |
| 4532 | |
| 4533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4535 | # Prepare PATH_SEPARATOR. |
| 4536 | # The user is always right. |
| 4537 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4538 | echo "#! /bin/sh" >conf$$.sh |
| 4539 | echo "exit 0" >>conf$$.sh |
| 4540 | chmod +x conf$$.sh |
| 4541 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4542 | PATH_SEPARATOR=';' |
| 4543 | else |
| 4544 | PATH_SEPARATOR=: |
| 4545 | fi |
| 4546 | rm -f conf$$.sh |
| 4547 | fi |
| 4548 | |
| 4549 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4550 | # as systems may use methods other than mode bits to determine executability. |
| 4551 | cat >conf$$.file <<_ASEOF |
| 4552 | #! /bin/sh |
| 4553 | exit 0 |
| 4554 | _ASEOF |
| 4555 | chmod +x conf$$.file |
| 4556 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4557 | ac_executable_p="test -x" |
| 4558 | else |
| 4559 | ac_executable_p="test -f" |
| 4560 | fi |
| 4561 | rm -f conf$$.file |
| 4562 | |
| 4563 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4564 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4567 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4569 | else |
| 4570 | case "$XGETTEXT" in |
| 4571 | [\\/]* | ?:[\\/]*) |
| 4572 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4573 | ;; |
| 4574 | *) |
| 4575 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4576 | for ac_dir in $PATH; do |
| 4577 | IFS="$ac_save_IFS" |
| 4578 | test -z "$ac_dir" && ac_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4580 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4581 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4582 | (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 |
| 4583 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4584 | break 2 |
| 4585 | fi |
| 4586 | fi |
| 4587 | done |
| 4588 | done |
| 4589 | IFS="$ac_save_IFS" |
| 4590 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4591 | ;; |
| 4592 | esac |
| 4593 | fi |
| 4594 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4595 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4596 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4597 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4598 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4600 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4601 | fi |
| 4602 | |
| 4603 | rm -f messages.po |
| 4604 | |
| 4605 | |
| 4606 | # Prepare PATH_SEPARATOR. |
| 4607 | # The user is always right. |
| 4608 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4609 | echo "#! /bin/sh" >conf$$.sh |
| 4610 | echo "exit 0" >>conf$$.sh |
| 4611 | chmod +x conf$$.sh |
| 4612 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4613 | PATH_SEPARATOR=';' |
| 4614 | else |
| 4615 | PATH_SEPARATOR=: |
| 4616 | fi |
| 4617 | rm -f conf$$.sh |
| 4618 | fi |
| 4619 | |
| 4620 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4621 | # as systems may use methods other than mode bits to determine executability. |
| 4622 | cat >conf$$.file <<_ASEOF |
| 4623 | #! /bin/sh |
| 4624 | exit 0 |
| 4625 | _ASEOF |
| 4626 | chmod +x conf$$.file |
| 4627 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4628 | ac_executable_p="test -x" |
| 4629 | else |
| 4630 | ac_executable_p="test -f" |
| 4631 | fi |
| 4632 | rm -f conf$$.file |
| 4633 | |
| 4634 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4635 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4638 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4640 | else |
| 4641 | case "$MSGMERGE" in |
| 4642 | [\\/]* | ?:[\\/]*) |
| 4643 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4644 | ;; |
| 4645 | *) |
| 4646 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4647 | for ac_dir in $PATH; do |
| 4648 | IFS="$ac_save_IFS" |
| 4649 | test -z "$ac_dir" && ac_dir=. |
| 4650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4651 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4652 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4653 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4654 | break 2 |
| 4655 | fi |
| 4656 | fi |
| 4657 | done |
| 4658 | done |
| 4659 | IFS="$ac_save_IFS" |
| 4660 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4661 | ;; |
| 4662 | esac |
| 4663 | fi |
| 4664 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4665 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4666 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4667 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4668 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4670 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4671 | fi |
| 4672 | |
| 4673 | |
| 4674 | if test "$GMSGFMT" != ":"; then |
| 4675 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4676 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4677 | : ; |
| 4678 | else |
| 4679 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4681 | 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] | 4682 | GMSGFMT=":" |
| 4683 | fi |
| 4684 | fi |
| 4685 | |
| 4686 | if test "$XGETTEXT" != ":"; then |
| 4687 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4688 | (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 |
| 4689 | : ; |
| 4690 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4691 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4692 | 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] | 4693 | XGETTEXT=":" |
| 4694 | fi |
| 4695 | rm -f messages.po |
| 4696 | fi |
| 4697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4698 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4699 | |
| 4700 | |
| 4701 | if test -n "$ac_tool_prefix"; then |
| 4702 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4703 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4706 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4708 | else |
| 4709 | if test -n "$RANLIB"; then |
| 4710 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4711 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4713 | for as_dir in $PATH |
| 4714 | do |
| 4715 | IFS=$as_save_IFS |
| 4716 | test -z "$as_dir" && as_dir=. |
| 4717 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4718 | 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] | 4719 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4721 | break 2 |
| 4722 | fi |
| 4723 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4724 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4725 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4726 | |
| 4727 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4728 | fi |
| 4729 | RANLIB=$ac_cv_prog_RANLIB |
| 4730 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4731 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4732 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4733 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4735 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4736 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4737 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4738 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4739 | fi |
| 4740 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4741 | ac_ct_RANLIB=$RANLIB |
| 4742 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4743 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4744 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4746 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4748 | else |
| 4749 | if test -n "$ac_ct_RANLIB"; then |
| 4750 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4751 | else |
| 4752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4753 | for as_dir in $PATH |
| 4754 | do |
| 4755 | IFS=$as_save_IFS |
| 4756 | test -z "$as_dir" && as_dir=. |
| 4757 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4758 | 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] | 4759 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4761 | break 2 |
| 4762 | fi |
| 4763 | done |
| 4764 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4765 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4767 | fi |
| 4768 | fi |
| 4769 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4770 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4771 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4772 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4773 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4774 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4775 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4776 | fi |
| 4777 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4778 | if test "x$ac_ct_RANLIB" = x; then |
| 4779 | RANLIB=":" |
| 4780 | else |
| 4781 | case $cross_compiling:$ac_tool_warned in |
| 4782 | yes:) |
| 4783 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4784 | whose name does not start with the host triplet. If you think this |
| 4785 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4786 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4787 | whose name does not start with the host triplet. If you think this |
| 4788 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4789 | ac_tool_warned=yes ;; |
| 4790 | esac |
| 4791 | RANLIB=$ac_ct_RANLIB |
| 4792 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4793 | else |
| 4794 | RANLIB="$ac_cv_prog_RANLIB" |
| 4795 | fi |
| 4796 | |
| 4797 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4798 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4799 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4800 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4802 | else |
| 4803 | ac_check_lib_save_LIBS=$LIBS |
| 4804 | LIBS="-lcposix $LIBS" |
| 4805 | cat >conftest.$ac_ext <<_ACEOF |
| 4806 | /* confdefs.h. */ |
| 4807 | _ACEOF |
| 4808 | cat confdefs.h >>conftest.$ac_ext |
| 4809 | cat >>conftest.$ac_ext <<_ACEOF |
| 4810 | /* end confdefs.h. */ |
| 4811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4812 | /* Override any GCC internal prototype to avoid an error. |
| 4813 | Use char because int might match the return type of a GCC |
| 4814 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4815 | #ifdef __cplusplus |
| 4816 | extern "C" |
| 4817 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4818 | char strerror (); |
| 4819 | int |
| 4820 | main () |
| 4821 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4822 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4823 | ; |
| 4824 | return 0; |
| 4825 | } |
| 4826 | _ACEOF |
| 4827 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4828 | if { (ac_try="$ac_link" |
| 4829 | case "(($ac_try" in |
| 4830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4831 | *) ac_try_echo=$ac_try;; |
| 4832 | esac |
| 4833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4834 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4835 | ac_status=$? |
| 4836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4837 | rm -f conftest.er1 |
| 4838 | cat conftest.err >&5 |
| 4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4840 | (exit $ac_status); } && { |
| 4841 | test -z "$ac_c_werror_flag" || |
| 4842 | test ! -s conftest.err |
| 4843 | } && test -s conftest$ac_exeext && |
| 4844 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4845 | ac_cv_lib_cposix_strerror=yes |
| 4846 | else |
| 4847 | echo "$as_me: failed program was:" >&5 |
| 4848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4850 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4851 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4852 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4853 | 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] | 4854 | conftest$ac_exeext conftest.$ac_ext |
| 4855 | LIBS=$ac_check_lib_save_LIBS |
| 4856 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4857 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4858 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4859 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4860 | LIBS="$LIBS -lcposix" |
| 4861 | fi |
| 4862 | |
| 4863 | |
| 4864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4865 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4866 | 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] | 4867 | if test "${ac_cv_c_const+set}" = set; then |
| 4868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4869 | else |
| 4870 | cat >conftest.$ac_ext <<_ACEOF |
| 4871 | /* confdefs.h. */ |
| 4872 | _ACEOF |
| 4873 | cat confdefs.h >>conftest.$ac_ext |
| 4874 | cat >>conftest.$ac_ext <<_ACEOF |
| 4875 | /* end confdefs.h. */ |
| 4876 | |
| 4877 | int |
| 4878 | main () |
| 4879 | { |
| 4880 | /* FIXME: Include the comments suggested by Paul. */ |
| 4881 | #ifndef __cplusplus |
| 4882 | /* Ultrix mips cc rejects this. */ |
| 4883 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4884 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4885 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4886 | char const *const *pcpcc; |
| 4887 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4888 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4889 | struct point {int x, y;}; |
| 4890 | static struct point const zero = {0,0}; |
| 4891 | /* AIX XL C 1.02.0.0 rejects this. |
| 4892 | It does not let you subtract one const X* pointer from another in |
| 4893 | an arm of an if-expression whose if-part is not a constant |
| 4894 | expression */ |
| 4895 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4896 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4897 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4898 | ++pcpcc; |
| 4899 | ppc = (char**) pcpcc; |
| 4900 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4901 | { /* SCO 3.2v4 cc rejects this. */ |
| 4902 | char *t; |
| 4903 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4904 | |
| 4905 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4906 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4907 | } |
| 4908 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4909 | int x[] = {25, 17}; |
| 4910 | const int *foo = &x[0]; |
| 4911 | ++foo; |
| 4912 | } |
| 4913 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4914 | typedef const int *iptr; |
| 4915 | iptr p = 0; |
| 4916 | ++p; |
| 4917 | } |
| 4918 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4919 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4920 | struct s { int j; const int *ap[3]; }; |
| 4921 | struct s *b; b->j = 5; |
| 4922 | } |
| 4923 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4924 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4925 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4926 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4927 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4928 | #endif |
| 4929 | |
| 4930 | ; |
| 4931 | return 0; |
| 4932 | } |
| 4933 | _ACEOF |
| 4934 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4935 | if { (ac_try="$ac_compile" |
| 4936 | case "(($ac_try" in |
| 4937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4938 | *) ac_try_echo=$ac_try;; |
| 4939 | esac |
| 4940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4941 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4942 | ac_status=$? |
| 4943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4944 | rm -f conftest.er1 |
| 4945 | cat conftest.err >&5 |
| 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4947 | (exit $ac_status); } && { |
| 4948 | test -z "$ac_c_werror_flag" || |
| 4949 | test ! -s conftest.err |
| 4950 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4951 | ac_cv_c_const=yes |
| 4952 | else |
| 4953 | echo "$as_me: failed program was:" >&5 |
| 4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4956 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4957 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4958 | |
| 4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4960 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4961 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4962 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4963 | if test $ac_cv_c_const = no; then |
| 4964 | |
| 4965 | cat >>confdefs.h <<\_ACEOF |
| 4966 | #define const |
| 4967 | _ACEOF |
| 4968 | |
| 4969 | fi |
| 4970 | |
| 4971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4972 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 4973 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4974 | if test "${bh_cv_c_signed+set}" = set; then |
| 4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4976 | else |
| 4977 | cat >conftest.$ac_ext <<_ACEOF |
| 4978 | /* confdefs.h. */ |
| 4979 | _ACEOF |
| 4980 | cat confdefs.h >>conftest.$ac_ext |
| 4981 | cat >>conftest.$ac_ext <<_ACEOF |
| 4982 | /* end confdefs.h. */ |
| 4983 | |
| 4984 | int |
| 4985 | main () |
| 4986 | { |
| 4987 | signed char x; |
| 4988 | ; |
| 4989 | return 0; |
| 4990 | } |
| 4991 | _ACEOF |
| 4992 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4993 | if { (ac_try="$ac_compile" |
| 4994 | case "(($ac_try" in |
| 4995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4996 | *) ac_try_echo=$ac_try;; |
| 4997 | esac |
| 4998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4999 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5000 | ac_status=$? |
| 5001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5002 | rm -f conftest.er1 |
| 5003 | cat conftest.err >&5 |
| 5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5005 | (exit $ac_status); } && { |
| 5006 | test -z "$ac_c_werror_flag" || |
| 5007 | test ! -s conftest.err |
| 5008 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5009 | bh_cv_c_signed=yes |
| 5010 | else |
| 5011 | echo "$as_me: failed program was:" >&5 |
| 5012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5014 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5015 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5016 | |
| 5017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5018 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5019 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5020 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5021 | if test $bh_cv_c_signed = no; then |
| 5022 | |
| 5023 | cat >>confdefs.h <<\_ACEOF |
| 5024 | #define signed |
| 5025 | _ACEOF |
| 5026 | |
| 5027 | fi |
| 5028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5029 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5030 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5031 | if test "${ac_cv_c_inline+set}" = set; then |
| 5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5033 | else |
| 5034 | ac_cv_c_inline=no |
| 5035 | for ac_kw in inline __inline__ __inline; do |
| 5036 | cat >conftest.$ac_ext <<_ACEOF |
| 5037 | /* confdefs.h. */ |
| 5038 | _ACEOF |
| 5039 | cat confdefs.h >>conftest.$ac_ext |
| 5040 | cat >>conftest.$ac_ext <<_ACEOF |
| 5041 | /* end confdefs.h. */ |
| 5042 | #ifndef __cplusplus |
| 5043 | typedef int foo_t; |
| 5044 | static $ac_kw foo_t static_foo () {return 0; } |
| 5045 | $ac_kw foo_t foo () {return 0; } |
| 5046 | #endif |
| 5047 | |
| 5048 | _ACEOF |
| 5049 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5050 | if { (ac_try="$ac_compile" |
| 5051 | case "(($ac_try" in |
| 5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5053 | *) ac_try_echo=$ac_try;; |
| 5054 | esac |
| 5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5056 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5057 | ac_status=$? |
| 5058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5059 | rm -f conftest.er1 |
| 5060 | cat conftest.err >&5 |
| 5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5062 | (exit $ac_status); } && { |
| 5063 | test -z "$ac_c_werror_flag" || |
| 5064 | test ! -s conftest.err |
| 5065 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5066 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5067 | else |
| 5068 | echo "$as_me: failed program was:" >&5 |
| 5069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5071 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5072 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5073 | |
| 5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5075 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5076 | done |
| 5077 | |
| 5078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5079 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5080 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5081 | |
| 5082 | |
| 5083 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5084 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5085 | *) |
| 5086 | case $ac_cv_c_inline in |
| 5087 | no) ac_val=;; |
| 5088 | *) ac_val=$ac_cv_c_inline;; |
| 5089 | esac |
| 5090 | cat >>confdefs.h <<_ACEOF |
| 5091 | #ifndef __cplusplus |
| 5092 | #define inline $ac_val |
| 5093 | #endif |
| 5094 | _ACEOF |
| 5095 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5096 | esac |
| 5097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5098 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5099 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5100 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5103 | cat >conftest.$ac_ext <<_ACEOF |
| 5104 | /* confdefs.h. */ |
| 5105 | _ACEOF |
| 5106 | cat confdefs.h >>conftest.$ac_ext |
| 5107 | cat >>conftest.$ac_ext <<_ACEOF |
| 5108 | /* end confdefs.h. */ |
| 5109 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5110 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5111 | int |
| 5112 | main () |
| 5113 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5114 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5115 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5116 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5117 | return 0; |
| 5118 | ; |
| 5119 | return 0; |
| 5120 | } |
| 5121 | _ACEOF |
| 5122 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5123 | if { (ac_try="$ac_compile" |
| 5124 | case "(($ac_try" in |
| 5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5126 | *) ac_try_echo=$ac_try;; |
| 5127 | esac |
| 5128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5129 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5130 | ac_status=$? |
| 5131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5132 | rm -f conftest.er1 |
| 5133 | cat conftest.err >&5 |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5135 | (exit $ac_status); } && { |
| 5136 | test -z "$ac_c_werror_flag" || |
| 5137 | test ! -s conftest.err |
| 5138 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5139 | ac_cv_type_off_t=yes |
| 5140 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5141 | echo "$as_me: failed program was:" >&5 |
| 5142 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5143 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5144 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5145 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5146 | |
| 5147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5148 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5149 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5150 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5151 | if test $ac_cv_type_off_t = yes; then |
| 5152 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5153 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5154 | |
| 5155 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5156 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5157 | _ACEOF |
| 5158 | |
| 5159 | fi |
| 5160 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5161 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5162 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5163 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5165 | else |
| 5166 | cat >conftest.$ac_ext <<_ACEOF |
| 5167 | /* confdefs.h. */ |
| 5168 | _ACEOF |
| 5169 | cat confdefs.h >>conftest.$ac_ext |
| 5170 | cat >>conftest.$ac_ext <<_ACEOF |
| 5171 | /* end confdefs.h. */ |
| 5172 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5173 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5174 | int |
| 5175 | main () |
| 5176 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5177 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5178 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5179 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5180 | return 0; |
| 5181 | ; |
| 5182 | return 0; |
| 5183 | } |
| 5184 | _ACEOF |
| 5185 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5186 | if { (ac_try="$ac_compile" |
| 5187 | case "(($ac_try" in |
| 5188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5189 | *) ac_try_echo=$ac_try;; |
| 5190 | esac |
| 5191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5192 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5193 | ac_status=$? |
| 5194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5195 | rm -f conftest.er1 |
| 5196 | cat conftest.err >&5 |
| 5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5198 | (exit $ac_status); } && { |
| 5199 | test -z "$ac_c_werror_flag" || |
| 5200 | test ! -s conftest.err |
| 5201 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5202 | ac_cv_type_size_t=yes |
| 5203 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5204 | echo "$as_me: failed program was:" >&5 |
| 5205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5207 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5208 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5209 | |
| 5210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5212 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5213 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5214 | if test $ac_cv_type_size_t = yes; then |
| 5215 | : |
| 5216 | else |
| 5217 | |
| 5218 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5219 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5220 | _ACEOF |
| 5221 | |
| 5222 | fi |
| 5223 | |
| 5224 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5225 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5226 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5227 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5229 | else |
| 5230 | cat >conftest.$ac_ext <<_ACEOF |
| 5231 | /* confdefs.h. */ |
| 5232 | _ACEOF |
| 5233 | cat confdefs.h >>conftest.$ac_ext |
| 5234 | cat >>conftest.$ac_ext <<_ACEOF |
| 5235 | /* end confdefs.h. */ |
| 5236 | long long ll = 1LL; int i = 63; |
| 5237 | int |
| 5238 | main () |
| 5239 | { |
| 5240 | long long llmax = (long long) -1; |
| 5241 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5242 | ; |
| 5243 | return 0; |
| 5244 | } |
| 5245 | _ACEOF |
| 5246 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5247 | if { (ac_try="$ac_link" |
| 5248 | case "(($ac_try" in |
| 5249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5250 | *) ac_try_echo=$ac_try;; |
| 5251 | esac |
| 5252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5253 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5254 | ac_status=$? |
| 5255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5256 | rm -f conftest.er1 |
| 5257 | cat conftest.err >&5 |
| 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5259 | (exit $ac_status); } && { |
| 5260 | test -z "$ac_c_werror_flag" || |
| 5261 | test ! -s conftest.err |
| 5262 | } && test -s conftest$ac_exeext && |
| 5263 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5264 | ac_cv_type_long_long=yes |
| 5265 | else |
| 5266 | echo "$as_me: failed program was:" >&5 |
| 5267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5269 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5270 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5271 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5272 | 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] | 5273 | conftest$ac_exeext conftest.$ac_ext |
| 5274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5275 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5276 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5277 | if test $ac_cv_type_long_long = yes; then |
| 5278 | |
| 5279 | cat >>confdefs.h <<\_ACEOF |
| 5280 | #define HAVE_LONG_LONG 1 |
| 5281 | _ACEOF |
| 5282 | |
| 5283 | fi |
| 5284 | |
| 5285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5286 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5287 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5288 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5290 | else |
| 5291 | if test "$GCC" = yes; then |
| 5292 | gt_cv_c_long_double=yes |
| 5293 | else |
| 5294 | cat >conftest.$ac_ext <<_ACEOF |
| 5295 | /* confdefs.h. */ |
| 5296 | _ACEOF |
| 5297 | cat confdefs.h >>conftest.$ac_ext |
| 5298 | cat >>conftest.$ac_ext <<_ACEOF |
| 5299 | /* end confdefs.h. */ |
| 5300 | |
| 5301 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5302 | long double foo = 0.0; |
| 5303 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5304 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5305 | |
| 5306 | int |
| 5307 | main () |
| 5308 | { |
| 5309 | |
| 5310 | ; |
| 5311 | return 0; |
| 5312 | } |
| 5313 | _ACEOF |
| 5314 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5315 | if { (ac_try="$ac_compile" |
| 5316 | case "(($ac_try" in |
| 5317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5318 | *) ac_try_echo=$ac_try;; |
| 5319 | esac |
| 5320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5321 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5322 | ac_status=$? |
| 5323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5324 | rm -f conftest.er1 |
| 5325 | cat conftest.err >&5 |
| 5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5327 | (exit $ac_status); } && { |
| 5328 | test -z "$ac_c_werror_flag" || |
| 5329 | test ! -s conftest.err |
| 5330 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5331 | gt_cv_c_long_double=yes |
| 5332 | else |
| 5333 | echo "$as_me: failed program was:" >&5 |
| 5334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5336 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5337 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5338 | |
| 5339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5340 | fi |
| 5341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5342 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5343 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5344 | if test $gt_cv_c_long_double = yes; then |
| 5345 | |
| 5346 | cat >>confdefs.h <<\_ACEOF |
| 5347 | #define HAVE_LONG_DOUBLE 1 |
| 5348 | _ACEOF |
| 5349 | |
| 5350 | fi |
| 5351 | |
| 5352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5354 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5355 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5357 | else |
| 5358 | cat >conftest.$ac_ext <<_ACEOF |
| 5359 | /* confdefs.h. */ |
| 5360 | _ACEOF |
| 5361 | cat confdefs.h >>conftest.$ac_ext |
| 5362 | cat >>conftest.$ac_ext <<_ACEOF |
| 5363 | /* end confdefs.h. */ |
| 5364 | #include <stddef.h> |
| 5365 | wchar_t foo = (wchar_t)'\0'; |
| 5366 | int |
| 5367 | main () |
| 5368 | { |
| 5369 | |
| 5370 | ; |
| 5371 | return 0; |
| 5372 | } |
| 5373 | _ACEOF |
| 5374 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | if { (ac_try="$ac_compile" |
| 5376 | case "(($ac_try" in |
| 5377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5378 | *) ac_try_echo=$ac_try;; |
| 5379 | esac |
| 5380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5381 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5382 | ac_status=$? |
| 5383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5384 | rm -f conftest.er1 |
| 5385 | cat conftest.err >&5 |
| 5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5387 | (exit $ac_status); } && { |
| 5388 | test -z "$ac_c_werror_flag" || |
| 5389 | test ! -s conftest.err |
| 5390 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5391 | gt_cv_c_wchar_t=yes |
| 5392 | else |
| 5393 | echo "$as_me: failed program was:" >&5 |
| 5394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5396 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5397 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5398 | |
| 5399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5400 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5401 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5402 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5403 | if test $gt_cv_c_wchar_t = yes; then |
| 5404 | |
| 5405 | cat >>confdefs.h <<\_ACEOF |
| 5406 | #define HAVE_WCHAR_T 1 |
| 5407 | _ACEOF |
| 5408 | |
| 5409 | fi |
| 5410 | |
| 5411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5413 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5414 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5416 | else |
| 5417 | cat >conftest.$ac_ext <<_ACEOF |
| 5418 | /* confdefs.h. */ |
| 5419 | _ACEOF |
| 5420 | cat confdefs.h >>conftest.$ac_ext |
| 5421 | cat >>conftest.$ac_ext <<_ACEOF |
| 5422 | /* end confdefs.h. */ |
| 5423 | #include <wchar.h> |
| 5424 | wint_t foo = (wchar_t)'\0'; |
| 5425 | int |
| 5426 | main () |
| 5427 | { |
| 5428 | |
| 5429 | ; |
| 5430 | return 0; |
| 5431 | } |
| 5432 | _ACEOF |
| 5433 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5434 | if { (ac_try="$ac_compile" |
| 5435 | case "(($ac_try" in |
| 5436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5437 | *) ac_try_echo=$ac_try;; |
| 5438 | esac |
| 5439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5440 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5441 | ac_status=$? |
| 5442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5443 | rm -f conftest.er1 |
| 5444 | cat conftest.err >&5 |
| 5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5446 | (exit $ac_status); } && { |
| 5447 | test -z "$ac_c_werror_flag" || |
| 5448 | test ! -s conftest.err |
| 5449 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5450 | gt_cv_c_wint_t=yes |
| 5451 | else |
| 5452 | echo "$as_me: failed program was:" >&5 |
| 5453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5454 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5455 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5456 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5457 | |
| 5458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5459 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5460 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5461 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5462 | if test $gt_cv_c_wint_t = yes; then |
| 5463 | |
| 5464 | cat >>confdefs.h <<\_ACEOF |
| 5465 | #define HAVE_WINT_T 1 |
| 5466 | _ACEOF |
| 5467 | |
| 5468 | fi |
| 5469 | |
| 5470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5471 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5472 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5473 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5475 | else |
| 5476 | cat >conftest.$ac_ext <<_ACEOF |
| 5477 | /* confdefs.h. */ |
| 5478 | _ACEOF |
| 5479 | cat confdefs.h >>conftest.$ac_ext |
| 5480 | cat >>conftest.$ac_ext <<_ACEOF |
| 5481 | /* end confdefs.h. */ |
| 5482 | #include <sys/types.h> |
| 5483 | #include <inttypes.h> |
| 5484 | int |
| 5485 | main () |
| 5486 | { |
| 5487 | uintmax_t i = (uintmax_t) -1; |
| 5488 | ; |
| 5489 | return 0; |
| 5490 | } |
| 5491 | _ACEOF |
| 5492 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5493 | if { (ac_try="$ac_compile" |
| 5494 | case "(($ac_try" in |
| 5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5496 | *) ac_try_echo=$ac_try;; |
| 5497 | esac |
| 5498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5499 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5500 | ac_status=$? |
| 5501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5502 | rm -f conftest.er1 |
| 5503 | cat conftest.err >&5 |
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5505 | (exit $ac_status); } && { |
| 5506 | test -z "$ac_c_werror_flag" || |
| 5507 | test ! -s conftest.err |
| 5508 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5509 | jm_ac_cv_header_inttypes_h=yes |
| 5510 | else |
| 5511 | echo "$as_me: failed program was:" >&5 |
| 5512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5514 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5516 | |
| 5517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5518 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5519 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5520 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5521 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5522 | |
| 5523 | cat >>confdefs.h <<_ACEOF |
| 5524 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5525 | _ACEOF |
| 5526 | |
| 5527 | fi |
| 5528 | |
| 5529 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5530 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5531 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5534 | else |
| 5535 | cat >conftest.$ac_ext <<_ACEOF |
| 5536 | /* confdefs.h. */ |
| 5537 | _ACEOF |
| 5538 | cat confdefs.h >>conftest.$ac_ext |
| 5539 | cat >>conftest.$ac_ext <<_ACEOF |
| 5540 | /* end confdefs.h. */ |
| 5541 | #include <sys/types.h> |
| 5542 | #include <stdint.h> |
| 5543 | int |
| 5544 | main () |
| 5545 | { |
| 5546 | uintmax_t i = (uintmax_t) -1; |
| 5547 | ; |
| 5548 | return 0; |
| 5549 | } |
| 5550 | _ACEOF |
| 5551 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5552 | if { (ac_try="$ac_compile" |
| 5553 | case "(($ac_try" in |
| 5554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5555 | *) ac_try_echo=$ac_try;; |
| 5556 | esac |
| 5557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5558 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5559 | ac_status=$? |
| 5560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5561 | rm -f conftest.er1 |
| 5562 | cat conftest.err >&5 |
| 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5564 | (exit $ac_status); } && { |
| 5565 | test -z "$ac_c_werror_flag" || |
| 5566 | test ! -s conftest.err |
| 5567 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5568 | jm_ac_cv_header_stdint_h=yes |
| 5569 | else |
| 5570 | echo "$as_me: failed program was:" >&5 |
| 5571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5572 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5573 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5575 | |
| 5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5578 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5579 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5580 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5581 | |
| 5582 | cat >>confdefs.h <<_ACEOF |
| 5583 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5584 | _ACEOF |
| 5585 | |
| 5586 | fi |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5591 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5592 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5593 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5595 | else |
| 5596 | cat >conftest.$ac_ext <<_ACEOF |
| 5597 | /* confdefs.h. */ |
| 5598 | _ACEOF |
| 5599 | cat confdefs.h >>conftest.$ac_ext |
| 5600 | cat >>conftest.$ac_ext <<_ACEOF |
| 5601 | /* end confdefs.h. */ |
| 5602 | |
| 5603 | #include <stddef.h> |
| 5604 | #include <stdlib.h> |
| 5605 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5606 | #include <stdint.h> |
| 5607 | #endif |
| 5608 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5609 | #include <inttypes.h> |
| 5610 | #endif |
| 5611 | |
| 5612 | int |
| 5613 | main () |
| 5614 | { |
| 5615 | intmax_t x = -1; |
| 5616 | ; |
| 5617 | return 0; |
| 5618 | } |
| 5619 | _ACEOF |
| 5620 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5621 | if { (ac_try="$ac_compile" |
| 5622 | case "(($ac_try" in |
| 5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5624 | *) ac_try_echo=$ac_try;; |
| 5625 | esac |
| 5626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5627 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5628 | ac_status=$? |
| 5629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5630 | rm -f conftest.er1 |
| 5631 | cat conftest.err >&5 |
| 5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5633 | (exit $ac_status); } && { |
| 5634 | test -z "$ac_c_werror_flag" || |
| 5635 | test ! -s conftest.err |
| 5636 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5637 | gt_cv_c_intmax_t=yes |
| 5638 | else |
| 5639 | echo "$as_me: failed program was:" >&5 |
| 5640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5642 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5644 | |
| 5645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5647 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5648 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5649 | if test $gt_cv_c_intmax_t = yes; then |
| 5650 | |
| 5651 | cat >>confdefs.h <<\_ACEOF |
| 5652 | #define HAVE_INTMAX_T 1 |
| 5653 | _ACEOF |
| 5654 | |
| 5655 | fi |
| 5656 | |
| 5657 | |
| 5658 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5659 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5660 | 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] | 5661 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5663 | else |
| 5664 | |
| 5665 | if test "$cross_compiling" = yes; then |
| 5666 | |
| 5667 | cat >conftest.$ac_ext <<_ACEOF |
| 5668 | /* confdefs.h. */ |
| 5669 | _ACEOF |
| 5670 | cat confdefs.h >>conftest.$ac_ext |
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
| 5672 | /* end confdefs.h. */ |
| 5673 | |
| 5674 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5675 | notposix |
| 5676 | #endif |
| 5677 | |
| 5678 | _ACEOF |
| 5679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5680 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5681 | gt_cv_func_printf_posix="guessing no" |
| 5682 | else |
| 5683 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5684 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5685 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5686 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5687 | |
| 5688 | else |
| 5689 | cat >conftest.$ac_ext <<_ACEOF |
| 5690 | /* confdefs.h. */ |
| 5691 | _ACEOF |
| 5692 | cat confdefs.h >>conftest.$ac_ext |
| 5693 | cat >>conftest.$ac_ext <<_ACEOF |
| 5694 | /* end confdefs.h. */ |
| 5695 | |
| 5696 | #include <stdio.h> |
| 5697 | #include <string.h> |
| 5698 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5699 | dollar expansion (possibly an autoconf bug). */ |
| 5700 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5701 | static char buf[100]; |
| 5702 | int main () |
| 5703 | { |
| 5704 | sprintf (buf, format, 33, 55); |
| 5705 | return (strcmp (buf, "55 33") != 0); |
| 5706 | } |
| 5707 | _ACEOF |
| 5708 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5709 | if { (ac_try="$ac_link" |
| 5710 | case "(($ac_try" in |
| 5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5712 | *) ac_try_echo=$ac_try;; |
| 5713 | esac |
| 5714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5715 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5716 | ac_status=$? |
| 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5719 | { (case "(($ac_try" in |
| 5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5721 | *) ac_try_echo=$ac_try;; |
| 5722 | esac |
| 5723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5724 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5725 | ac_status=$? |
| 5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5727 | (exit $ac_status); }; }; then |
| 5728 | gt_cv_func_printf_posix=yes |
| 5729 | else |
| 5730 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5731 | echo "$as_me: failed program was:" >&5 |
| 5732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5733 | |
| 5734 | ( exit $ac_status ) |
| 5735 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5736 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5737 | 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] | 5738 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5739 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5740 | |
| 5741 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5742 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5743 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5744 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5745 | case $gt_cv_func_printf_posix in |
| 5746 | *yes) |
| 5747 | |
| 5748 | cat >>confdefs.h <<\_ACEOF |
| 5749 | #define HAVE_POSIX_PRINTF 1 |
| 5750 | _ACEOF |
| 5751 | |
| 5752 | ;; |
| 5753 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5754 | |
| 5755 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5756 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5758 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5759 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5761 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5762 | cat >conftest.$ac_ext <<_ACEOF |
| 5763 | /* confdefs.h. */ |
| 5764 | _ACEOF |
| 5765 | cat confdefs.h >>conftest.$ac_ext |
| 5766 | cat >>conftest.$ac_ext <<_ACEOF |
| 5767 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5768 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5769 | int |
| 5770 | main () |
| 5771 | { |
| 5772 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5773 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5774 | ; |
| 5775 | return 0; |
| 5776 | } |
| 5777 | _ACEOF |
| 5778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5779 | if { (ac_try="$ac_link" |
| 5780 | case "(($ac_try" in |
| 5781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5782 | *) ac_try_echo=$ac_try;; |
| 5783 | esac |
| 5784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5785 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5786 | ac_status=$? |
| 5787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5788 | rm -f conftest.er1 |
| 5789 | cat conftest.err >&5 |
| 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5791 | (exit $ac_status); } && { |
| 5792 | test -z "$ac_c_werror_flag" || |
| 5793 | test ! -s conftest.err |
| 5794 | } && test -s conftest$ac_exeext && |
| 5795 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5796 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5797 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5798 | echo "$as_me: failed program was:" >&5 |
| 5799 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5800 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5801 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5802 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5803 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5804 | 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] | 5805 | conftest$ac_exeext conftest.$ac_ext |
| 5806 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5807 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5808 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5809 | if test $ac_cv_working_alloca_h = yes; then |
| 5810 | |
| 5811 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5812 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5813 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5814 | |
| 5815 | fi |
| 5816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5817 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5818 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5819 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5821 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5822 | cat >conftest.$ac_ext <<_ACEOF |
| 5823 | /* confdefs.h. */ |
| 5824 | _ACEOF |
| 5825 | cat confdefs.h >>conftest.$ac_ext |
| 5826 | cat >>conftest.$ac_ext <<_ACEOF |
| 5827 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5828 | #ifdef __GNUC__ |
| 5829 | # define alloca __builtin_alloca |
| 5830 | #else |
| 5831 | # ifdef _MSC_VER |
| 5832 | # include <malloc.h> |
| 5833 | # define alloca _alloca |
| 5834 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5835 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5836 | # include <alloca.h> |
| 5837 | # else |
| 5838 | # ifdef _AIX |
| 5839 | #pragma alloca |
| 5840 | # else |
| 5841 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5842 | char *alloca (); |
| 5843 | # endif |
| 5844 | # endif |
| 5845 | # endif |
| 5846 | # endif |
| 5847 | #endif |
| 5848 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5849 | int |
| 5850 | main () |
| 5851 | { |
| 5852 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5853 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5854 | ; |
| 5855 | return 0; |
| 5856 | } |
| 5857 | _ACEOF |
| 5858 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5859 | if { (ac_try="$ac_link" |
| 5860 | case "(($ac_try" in |
| 5861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5862 | *) ac_try_echo=$ac_try;; |
| 5863 | esac |
| 5864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5865 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5866 | ac_status=$? |
| 5867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5868 | rm -f conftest.er1 |
| 5869 | cat conftest.err >&5 |
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5871 | (exit $ac_status); } && { |
| 5872 | test -z "$ac_c_werror_flag" || |
| 5873 | test ! -s conftest.err |
| 5874 | } && test -s conftest$ac_exeext && |
| 5875 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5876 | ac_cv_func_alloca_works=yes |
| 5877 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5878 | echo "$as_me: failed program was:" >&5 |
| 5879 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5881 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5882 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5883 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5884 | 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] | 5885 | conftest$ac_exeext conftest.$ac_ext |
| 5886 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5887 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5888 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5889 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5890 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5891 | |
| 5892 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5893 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5894 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5895 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5896 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5897 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5898 | # that cause trouble. Some versions do not even contain alloca or |
| 5899 | # contain a buggy version. If you still want to use their alloca, |
| 5900 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5901 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5902 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5903 | |
| 5904 | cat >>confdefs.h <<\_ACEOF |
| 5905 | #define C_ALLOCA 1 |
| 5906 | _ACEOF |
| 5907 | |
| 5908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5909 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5910 | 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] | 5911 | if test "${ac_cv_os_cray+set}" = set; then |
| 5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5913 | else |
| 5914 | cat >conftest.$ac_ext <<_ACEOF |
| 5915 | /* confdefs.h. */ |
| 5916 | _ACEOF |
| 5917 | cat confdefs.h >>conftest.$ac_ext |
| 5918 | cat >>conftest.$ac_ext <<_ACEOF |
| 5919 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5920 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5921 | webecray |
| 5922 | #else |
| 5923 | wenotbecray |
| 5924 | #endif |
| 5925 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5926 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5928 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5929 | ac_cv_os_cray=yes |
| 5930 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5931 | ac_cv_os_cray=no |
| 5932 | fi |
| 5933 | rm -f conftest* |
| 5934 | |
| 5935 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5936 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5937 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5938 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5939 | for ac_func in _getb67 GETB67 getb67; do |
| 5940 | 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] | 5941 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5942 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 5943 | 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] | 5944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5945 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5946 | cat >conftest.$ac_ext <<_ACEOF |
| 5947 | /* confdefs.h. */ |
| 5948 | _ACEOF |
| 5949 | cat confdefs.h >>conftest.$ac_ext |
| 5950 | cat >>conftest.$ac_ext <<_ACEOF |
| 5951 | /* end confdefs.h. */ |
| 5952 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5954 | #define $ac_func innocuous_$ac_func |
| 5955 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5956 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5957 | which can conflict with char $ac_func (); below. |
| 5958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5959 | <limits.h> exists even on freestanding compilers. */ |
| 5960 | |
| 5961 | #ifdef __STDC__ |
| 5962 | # include <limits.h> |
| 5963 | #else |
| 5964 | # include <assert.h> |
| 5965 | #endif |
| 5966 | |
| 5967 | #undef $ac_func |
| 5968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5969 | /* Override any GCC internal prototype to avoid an error. |
| 5970 | Use char because int might match the return type of a GCC |
| 5971 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5972 | #ifdef __cplusplus |
| 5973 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5974 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5975 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5976 | /* The GNU C library defines this for functions which it implements |
| 5977 | to always fail with ENOSYS. Some functions are actually named |
| 5978 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5979 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5980 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5981 | #endif |
| 5982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5983 | int |
| 5984 | main () |
| 5985 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5986 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5987 | ; |
| 5988 | return 0; |
| 5989 | } |
| 5990 | _ACEOF |
| 5991 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5992 | if { (ac_try="$ac_link" |
| 5993 | case "(($ac_try" in |
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5995 | *) ac_try_echo=$ac_try;; |
| 5996 | esac |
| 5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5998 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5999 | ac_status=$? |
| 6000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6001 | rm -f conftest.er1 |
| 6002 | cat conftest.err >&5 |
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6004 | (exit $ac_status); } && { |
| 6005 | test -z "$ac_c_werror_flag" || |
| 6006 | test ! -s conftest.err |
| 6007 | } && test -s conftest$ac_exeext && |
| 6008 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6009 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6010 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | echo "$as_me: failed program was:" >&5 |
| 6012 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6014 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6015 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6016 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6017 | 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] | 6018 | conftest$ac_exeext conftest.$ac_ext |
| 6019 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6020 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6022 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6023 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6024 | |
| 6025 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6026 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6028 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6030 | fi |
| 6031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6032 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6033 | fi |
| 6034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6035 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6036 | 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] | 6037 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6039 | else |
| 6040 | if test "$cross_compiling" = yes; then |
| 6041 | ac_cv_c_stack_direction=0 |
| 6042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | cat >conftest.$ac_ext <<_ACEOF |
| 6044 | /* confdefs.h. */ |
| 6045 | _ACEOF |
| 6046 | cat confdefs.h >>conftest.$ac_ext |
| 6047 | cat >>conftest.$ac_ext <<_ACEOF |
| 6048 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6049 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6050 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6051 | find_stack_direction () |
| 6052 | { |
| 6053 | static char *addr = 0; |
| 6054 | auto char dummy; |
| 6055 | if (addr == 0) |
| 6056 | { |
| 6057 | addr = &dummy; |
| 6058 | return find_stack_direction (); |
| 6059 | } |
| 6060 | else |
| 6061 | return (&dummy > addr) ? 1 : -1; |
| 6062 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6063 | |
| 6064 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6065 | main () |
| 6066 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6067 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6068 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6069 | _ACEOF |
| 6070 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6071 | if { (ac_try="$ac_link" |
| 6072 | case "(($ac_try" in |
| 6073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6074 | *) ac_try_echo=$ac_try;; |
| 6075 | esac |
| 6076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6077 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | ac_status=$? |
| 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6081 | { (case "(($ac_try" in |
| 6082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6083 | *) ac_try_echo=$ac_try;; |
| 6084 | esac |
| 6085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6086 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6087 | ac_status=$? |
| 6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6089 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6090 | ac_cv_c_stack_direction=1 |
| 6091 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6092 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6093 | echo "$as_me: failed program was:" >&5 |
| 6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6096 | ( exit $ac_status ) |
| 6097 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6098 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6099 | 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] | 6100 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6101 | |
| 6102 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6104 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6105 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6107 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6108 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | _ACEOF |
| 6110 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6111 | |
| 6112 | fi |
| 6113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6114 | |
| 6115 | |
| 6116 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6117 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6118 | 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] | 6119 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6120 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6122 | 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] | 6123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6124 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6125 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6126 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6127 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6128 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6129 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6131 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6132 | cat >conftest.$ac_ext <<_ACEOF |
| 6133 | /* confdefs.h. */ |
| 6134 | _ACEOF |
| 6135 | cat confdefs.h >>conftest.$ac_ext |
| 6136 | cat >>conftest.$ac_ext <<_ACEOF |
| 6137 | /* end confdefs.h. */ |
| 6138 | $ac_includes_default |
| 6139 | #include <$ac_header> |
| 6140 | _ACEOF |
| 6141 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6142 | if { (ac_try="$ac_compile" |
| 6143 | case "(($ac_try" in |
| 6144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6145 | *) ac_try_echo=$ac_try;; |
| 6146 | esac |
| 6147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6148 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6149 | ac_status=$? |
| 6150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6151 | rm -f conftest.er1 |
| 6152 | cat conftest.err >&5 |
| 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6154 | (exit $ac_status); } && { |
| 6155 | test -z "$ac_c_werror_flag" || |
| 6156 | test ! -s conftest.err |
| 6157 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6158 | ac_header_compiler=yes |
| 6159 | else |
| 6160 | echo "$as_me: failed program was:" >&5 |
| 6161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6162 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6163 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6165 | |
| 6166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6167 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6168 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6169 | |
| 6170 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6171 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6172 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6173 | cat >conftest.$ac_ext <<_ACEOF |
| 6174 | /* confdefs.h. */ |
| 6175 | _ACEOF |
| 6176 | cat confdefs.h >>conftest.$ac_ext |
| 6177 | cat >>conftest.$ac_ext <<_ACEOF |
| 6178 | /* end confdefs.h. */ |
| 6179 | #include <$ac_header> |
| 6180 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6181 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6182 | case "(($ac_try" in |
| 6183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6184 | *) ac_try_echo=$ac_try;; |
| 6185 | esac |
| 6186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6187 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6188 | ac_status=$? |
| 6189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6190 | rm -f conftest.er1 |
| 6191 | cat conftest.err >&5 |
| 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6193 | (exit $ac_status); } >/dev/null && { |
| 6194 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6195 | test ! -s conftest.err |
| 6196 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6197 | ac_header_preproc=yes |
| 6198 | else |
| 6199 | echo "$as_me: failed program was:" >&5 |
| 6200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6201 | |
| 6202 | ac_header_preproc=no |
| 6203 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6204 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6205 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6206 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6207 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6208 | |
| 6209 | # So? What about this header? |
| 6210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6211 | yes:no: ) |
| 6212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6216 | ac_header_preproc=yes |
| 6217 | ;; |
| 6218 | no:yes:* ) |
| 6219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6230 | 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] | 6231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6232 | ;; |
| 6233 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6236 | 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] | 6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6238 | else |
| 6239 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6241 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6243 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | |
| 6245 | fi |
| 6246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6247 | cat >>confdefs.h <<_ACEOF |
| 6248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6249 | _ACEOF |
| 6250 | |
| 6251 | fi |
| 6252 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6253 | done |
| 6254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6255 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6256 | for ac_func in getpagesize |
| 6257 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | 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] | 6259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6261 | 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] | 6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6263 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6264 | cat >conftest.$ac_ext <<_ACEOF |
| 6265 | /* confdefs.h. */ |
| 6266 | _ACEOF |
| 6267 | cat confdefs.h >>conftest.$ac_ext |
| 6268 | cat >>conftest.$ac_ext <<_ACEOF |
| 6269 | /* end confdefs.h. */ |
| 6270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6272 | #define $ac_func innocuous_$ac_func |
| 6273 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6274 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | which can conflict with char $ac_func (); below. |
| 6276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6277 | <limits.h> exists even on freestanding compilers. */ |
| 6278 | |
| 6279 | #ifdef __STDC__ |
| 6280 | # include <limits.h> |
| 6281 | #else |
| 6282 | # include <assert.h> |
| 6283 | #endif |
| 6284 | |
| 6285 | #undef $ac_func |
| 6286 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6287 | /* Override any GCC internal prototype to avoid an error. |
| 6288 | Use char because int might match the return type of a GCC |
| 6289 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6290 | #ifdef __cplusplus |
| 6291 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6293 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6294 | /* The GNU C library defines this for functions which it implements |
| 6295 | to always fail with ENOSYS. Some functions are actually named |
| 6296 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6297 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6298 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6299 | #endif |
| 6300 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6301 | int |
| 6302 | main () |
| 6303 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6304 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6305 | ; |
| 6306 | return 0; |
| 6307 | } |
| 6308 | _ACEOF |
| 6309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6310 | if { (ac_try="$ac_link" |
| 6311 | case "(($ac_try" in |
| 6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6313 | *) ac_try_echo=$ac_try;; |
| 6314 | esac |
| 6315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6316 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6317 | ac_status=$? |
| 6318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6319 | rm -f conftest.er1 |
| 6320 | cat conftest.err >&5 |
| 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6322 | (exit $ac_status); } && { |
| 6323 | test -z "$ac_c_werror_flag" || |
| 6324 | test ! -s conftest.err |
| 6325 | } && test -s conftest$ac_exeext && |
| 6326 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6327 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6328 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6329 | echo "$as_me: failed program was:" >&5 |
| 6330 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6332 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6333 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6334 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6335 | 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] | 6336 | conftest$ac_exeext conftest.$ac_ext |
| 6337 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6338 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6340 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6341 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6342 | cat >>confdefs.h <<_ACEOF |
| 6343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6344 | _ACEOF |
| 6345 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6346 | fi |
| 6347 | done |
| 6348 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6349 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6350 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6351 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6353 | else |
| 6354 | if test "$cross_compiling" = yes; then |
| 6355 | ac_cv_func_mmap_fixed_mapped=no |
| 6356 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6357 | cat >conftest.$ac_ext <<_ACEOF |
| 6358 | /* confdefs.h. */ |
| 6359 | _ACEOF |
| 6360 | cat confdefs.h >>conftest.$ac_ext |
| 6361 | cat >>conftest.$ac_ext <<_ACEOF |
| 6362 | /* end confdefs.h. */ |
| 6363 | $ac_includes_default |
| 6364 | /* malloc might have been renamed as rpl_malloc. */ |
| 6365 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6366 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6367 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6368 | Here is a matrix of mmap possibilities: |
| 6369 | mmap private not fixed |
| 6370 | mmap private fixed at somewhere currently unmapped |
| 6371 | mmap private fixed at somewhere already mapped |
| 6372 | mmap shared not fixed |
| 6373 | mmap shared fixed at somewhere currently unmapped |
| 6374 | mmap shared fixed at somewhere already mapped |
| 6375 | For private mappings, we should verify that changes cannot be read() |
| 6376 | back from the file, nor mmap's back from the file at a different |
| 6377 | address. (There have been systems where private was not correctly |
| 6378 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6379 | 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] | 6380 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6381 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6382 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6383 | |
| 6384 | Grep wants private fixed already mapped. |
| 6385 | The main things grep needs to know about mmap are: |
| 6386 | * does it exist and is it safe to write into the mmap'd area |
| 6387 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6388 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6389 | #include <fcntl.h> |
| 6390 | #include <sys/mman.h> |
| 6391 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6392 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6393 | char *malloc (); |
| 6394 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6395 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6396 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6397 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6398 | /* 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] | 6399 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6400 | # define HAVE_SYS_PARAM_H 1 |
| 6401 | # endif |
| 6402 | |
| 6403 | # ifdef _SC_PAGESIZE |
| 6404 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6405 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6406 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6407 | # include <sys/param.h> |
| 6408 | # ifdef EXEC_PAGESIZE |
| 6409 | # define getpagesize() EXEC_PAGESIZE |
| 6410 | # else /* no EXEC_PAGESIZE */ |
| 6411 | # ifdef NBPG |
| 6412 | # define getpagesize() NBPG * CLSIZE |
| 6413 | # ifndef CLSIZE |
| 6414 | # define CLSIZE 1 |
| 6415 | # endif /* no CLSIZE */ |
| 6416 | # else /* no NBPG */ |
| 6417 | # ifdef NBPC |
| 6418 | # define getpagesize() NBPC |
| 6419 | # else /* no NBPC */ |
| 6420 | # ifdef PAGESIZE |
| 6421 | # define getpagesize() PAGESIZE |
| 6422 | # endif /* PAGESIZE */ |
| 6423 | # endif /* no NBPC */ |
| 6424 | # endif /* no NBPG */ |
| 6425 | # endif /* no EXEC_PAGESIZE */ |
| 6426 | # else /* no HAVE_SYS_PARAM_H */ |
| 6427 | # define getpagesize() 8192 /* punt totally */ |
| 6428 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6429 | # endif /* no _SC_PAGESIZE */ |
| 6430 | |
| 6431 | #endif /* no HAVE_GETPAGESIZE */ |
| 6432 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6433 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6434 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6435 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6436 | char *data, *data2, *data3; |
| 6437 | int i, pagesize; |
| 6438 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6439 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6440 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6442 | /* First, make a file with some known garbage in it. */ |
| 6443 | data = (char *) malloc (pagesize); |
| 6444 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6445 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6446 | for (i = 0; i < pagesize; ++i) |
| 6447 | *(data + i) = rand (); |
| 6448 | umask (0); |
| 6449 | fd = creat ("conftest.mmap", 0600); |
| 6450 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6451 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6452 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6453 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6454 | close (fd); |
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 | /* Next, try to mmap the file at a fixed address which already has |
| 6457 | something else allocated at it. If we can, also make sure that |
| 6458 | we see the same garbage. */ |
| 6459 | fd = open ("conftest.mmap", O_RDWR); |
| 6460 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6461 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6462 | data2 = (char *) malloc (2 * pagesize); |
| 6463 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6464 | return 1; |
| 6465 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6466 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6467 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6468 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6469 | for (i = 0; i < pagesize; ++i) |
| 6470 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6471 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6473 | /* Finally, make sure that changes to the mapped area do not |
| 6474 | percolate back to the file as seen by read(). (This is a bug on |
| 6475 | some variants of i386 svr4.0.) */ |
| 6476 | for (i = 0; i < pagesize; ++i) |
| 6477 | *(data2 + i) = *(data2 + i) + 1; |
| 6478 | data3 = (char *) malloc (pagesize); |
| 6479 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6480 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6481 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6482 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6483 | for (i = 0; i < pagesize; ++i) |
| 6484 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6485 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6487 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6488 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6489 | _ACEOF |
| 6490 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6491 | if { (ac_try="$ac_link" |
| 6492 | case "(($ac_try" in |
| 6493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6494 | *) ac_try_echo=$ac_try;; |
| 6495 | esac |
| 6496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6497 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6498 | ac_status=$? |
| 6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6501 | { (case "(($ac_try" in |
| 6502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6503 | *) ac_try_echo=$ac_try;; |
| 6504 | esac |
| 6505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6506 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6507 | ac_status=$? |
| 6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6509 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6510 | ac_cv_func_mmap_fixed_mapped=yes |
| 6511 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6512 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6513 | echo "$as_me: failed program was:" >&5 |
| 6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6515 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6516 | ( exit $ac_status ) |
| 6517 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6518 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6519 | 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] | 6520 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6521 | |
| 6522 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6523 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6524 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6525 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6526 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | |
| 6528 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6529 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6531 | |
| 6532 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6534 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6535 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6536 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6537 | 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] | 6538 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6540 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6541 | cat >conftest.$ac_ext <<_ACEOF |
| 6542 | /* confdefs.h. */ |
| 6543 | _ACEOF |
| 6544 | cat confdefs.h >>conftest.$ac_ext |
| 6545 | cat >>conftest.$ac_ext <<_ACEOF |
| 6546 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6547 | |
| 6548 | #include <features.h> |
| 6549 | #ifdef __GNU_LIBRARY__ |
| 6550 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6551 | Lucky GNU user |
| 6552 | #endif |
| 6553 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6554 | |
| 6555 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6557 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6558 | ac_cv_gnu_library_2_1=yes |
| 6559 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6560 | ac_cv_gnu_library_2_1=no |
| 6561 | fi |
| 6562 | rm -f conftest* |
| 6563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6564 | |
| 6565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6566 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6567 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6568 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6569 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6570 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6571 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6573 | |
| 6574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6575 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6576 | 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] | 6577 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6579 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6580 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6581 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6582 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6583 | # Guess based on the CPU. |
| 6584 | case "$host_cpu" in |
| 6585 | alpha* | i3456786 | m68k | s390*) |
| 6586 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6587 | *) |
| 6588 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6589 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6591 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | cat >conftest.$ac_ext <<_ACEOF |
| 6593 | /* confdefs.h. */ |
| 6594 | _ACEOF |
| 6595 | cat confdefs.h >>conftest.$ac_ext |
| 6596 | cat >>conftest.$ac_ext <<_ACEOF |
| 6597 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6598 | |
| 6599 | #include <stdlib.h> |
| 6600 | #include <signal.h> |
| 6601 | |
| 6602 | static void |
| 6603 | #ifdef __cplusplus |
| 6604 | sigfpe_handler (int sig) |
| 6605 | #else |
| 6606 | sigfpe_handler (sig) int sig; |
| 6607 | #endif |
| 6608 | { |
| 6609 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6610 | exit (sig != SIGFPE); |
| 6611 | } |
| 6612 | |
| 6613 | int x = 1; |
| 6614 | int y = 0; |
| 6615 | int z; |
| 6616 | int nan; |
| 6617 | |
| 6618 | int main () |
| 6619 | { |
| 6620 | signal (SIGFPE, sigfpe_handler); |
| 6621 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6622 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6623 | signal (SIGTRAP, sigfpe_handler); |
| 6624 | #endif |
| 6625 | /* Linux/SPARC yields signal SIGILL. */ |
| 6626 | #if defined (__sparc__) && defined (__linux__) |
| 6627 | signal (SIGILL, sigfpe_handler); |
| 6628 | #endif |
| 6629 | |
| 6630 | z = x / y; |
| 6631 | nan = y / y; |
| 6632 | exit (1); |
| 6633 | } |
| 6634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | _ACEOF |
| 6636 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6637 | if { (ac_try="$ac_link" |
| 6638 | case "(($ac_try" in |
| 6639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6640 | *) ac_try_echo=$ac_try;; |
| 6641 | esac |
| 6642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6643 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6644 | ac_status=$? |
| 6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6647 | { (case "(($ac_try" in |
| 6648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6649 | *) ac_try_echo=$ac_try;; |
| 6650 | esac |
| 6651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6652 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6653 | ac_status=$? |
| 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6656 | gt_cv_int_divbyzero_sigfpe=yes |
| 6657 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6659 | echo "$as_me: failed program was:" >&5 |
| 6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6661 | |
| 6662 | ( exit $ac_status ) |
| 6663 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6665 | 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] | 6666 | fi |
| 6667 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6668 | |
| 6669 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6670 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6671 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6672 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6673 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6674 | *yes) value=1;; |
| 6675 | *) value=0;; |
| 6676 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | |
| 6678 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6679 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6680 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6681 | |
| 6682 | |
| 6683 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6684 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6685 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6686 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6688 | else |
| 6689 | cat >conftest.$ac_ext <<_ACEOF |
| 6690 | /* confdefs.h. */ |
| 6691 | _ACEOF |
| 6692 | cat confdefs.h >>conftest.$ac_ext |
| 6693 | cat >>conftest.$ac_ext <<_ACEOF |
| 6694 | /* end confdefs.h. */ |
| 6695 | unsigned long long ull = 1ULL; int i = 63; |
| 6696 | int |
| 6697 | main () |
| 6698 | { |
| 6699 | unsigned long long ullmax = (unsigned long long) -1; |
| 6700 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6701 | ; |
| 6702 | return 0; |
| 6703 | } |
| 6704 | _ACEOF |
| 6705 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6706 | if { (ac_try="$ac_link" |
| 6707 | case "(($ac_try" in |
| 6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6709 | *) ac_try_echo=$ac_try;; |
| 6710 | esac |
| 6711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6712 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6713 | ac_status=$? |
| 6714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6715 | rm -f conftest.er1 |
| 6716 | cat conftest.err >&5 |
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6718 | (exit $ac_status); } && { |
| 6719 | test -z "$ac_c_werror_flag" || |
| 6720 | test ! -s conftest.err |
| 6721 | } && test -s conftest$ac_exeext && |
| 6722 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6723 | ac_cv_type_unsigned_long_long=yes |
| 6724 | else |
| 6725 | echo "$as_me: failed program was:" >&5 |
| 6726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6728 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6730 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6731 | 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] | 6732 | conftest$ac_exeext conftest.$ac_ext |
| 6733 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6734 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6735 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6736 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6737 | |
| 6738 | cat >>confdefs.h <<\_ACEOF |
| 6739 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6740 | _ACEOF |
| 6741 | |
| 6742 | fi |
| 6743 | |
| 6744 | |
| 6745 | |
| 6746 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6747 | 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] | 6748 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6749 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6750 | && ac_type='unsigned long long' \ |
| 6751 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6752 | |
| 6753 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6754 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6755 | _ACEOF |
| 6756 | |
| 6757 | else |
| 6758 | |
| 6759 | cat >>confdefs.h <<\_ACEOF |
| 6760 | #define HAVE_UINTMAX_T 1 |
| 6761 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6762 | |
| 6763 | fi |
| 6764 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6766 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6767 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6770 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6771 | |
| 6772 | cat >conftest.$ac_ext <<_ACEOF |
| 6773 | /* confdefs.h. */ |
| 6774 | _ACEOF |
| 6775 | cat confdefs.h >>conftest.$ac_ext |
| 6776 | cat >>conftest.$ac_ext <<_ACEOF |
| 6777 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6778 | #include <sys/types.h> |
| 6779 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6780 | int |
| 6781 | main () |
| 6782 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6783 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | ; |
| 6785 | return 0; |
| 6786 | } |
| 6787 | _ACEOF |
| 6788 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6789 | if { (ac_try="$ac_compile" |
| 6790 | case "(($ac_try" in |
| 6791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6792 | *) ac_try_echo=$ac_try;; |
| 6793 | esac |
| 6794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6795 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6796 | ac_status=$? |
| 6797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6798 | rm -f conftest.er1 |
| 6799 | cat conftest.err >&5 |
| 6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6801 | (exit $ac_status); } && { |
| 6802 | test -z "$ac_c_werror_flag" || |
| 6803 | test ! -s conftest.err |
| 6804 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6805 | gt_cv_header_inttypes_h=yes |
| 6806 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | echo "$as_me: failed program was:" >&5 |
| 6808 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6810 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6812 | |
| 6813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | |
| 6815 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6816 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6817 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6818 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6819 | |
| 6820 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6821 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6822 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6823 | |
| 6824 | fi |
| 6825 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6828 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6830 | 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] | 6831 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6833 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6834 | |
| 6835 | cat >conftest.$ac_ext <<_ACEOF |
| 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6841 | #include <inttypes.h> |
| 6842 | #ifdef PRId32 |
| 6843 | char *p = PRId32; |
| 6844 | #endif |
| 6845 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | int |
| 6847 | main () |
| 6848 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6849 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | ; |
| 6851 | return 0; |
| 6852 | } |
| 6853 | _ACEOF |
| 6854 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6855 | if { (ac_try="$ac_compile" |
| 6856 | case "(($ac_try" in |
| 6857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6858 | *) ac_try_echo=$ac_try;; |
| 6859 | esac |
| 6860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6861 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6862 | ac_status=$? |
| 6863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6864 | rm -f conftest.er1 |
| 6865 | cat conftest.err >&5 |
| 6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6867 | (exit $ac_status); } && { |
| 6868 | test -z "$ac_c_werror_flag" || |
| 6869 | test ! -s conftest.err |
| 6870 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6871 | gt_cv_inttypes_pri_broken=no |
| 6872 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6873 | echo "$as_me: failed program was:" >&5 |
| 6874 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6876 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6878 | |
| 6879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | |
| 6881 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6883 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6884 | fi |
| 6885 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6886 | |
| 6887 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6888 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6889 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6890 | |
| 6891 | fi |
| 6892 | |
| 6893 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6894 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6895 | for ac_header in stdint.h |
| 6896 | do |
| 6897 | 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] | 6898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6899 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6901 | 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] | 6902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6903 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6904 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6905 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6906 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | else |
| 6908 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6909 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6910 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | cat >conftest.$ac_ext <<_ACEOF |
| 6912 | /* confdefs.h. */ |
| 6913 | _ACEOF |
| 6914 | cat confdefs.h >>conftest.$ac_ext |
| 6915 | cat >>conftest.$ac_ext <<_ACEOF |
| 6916 | /* end confdefs.h. */ |
| 6917 | $ac_includes_default |
| 6918 | #include <$ac_header> |
| 6919 | _ACEOF |
| 6920 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6921 | if { (ac_try="$ac_compile" |
| 6922 | case "(($ac_try" in |
| 6923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6924 | *) ac_try_echo=$ac_try;; |
| 6925 | esac |
| 6926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6927 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6928 | ac_status=$? |
| 6929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6930 | rm -f conftest.er1 |
| 6931 | cat conftest.err >&5 |
| 6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6933 | (exit $ac_status); } && { |
| 6934 | test -z "$ac_c_werror_flag" || |
| 6935 | test ! -s conftest.err |
| 6936 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6937 | ac_header_compiler=yes |
| 6938 | else |
| 6939 | echo "$as_me: failed program was:" >&5 |
| 6940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6941 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6942 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6943 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6944 | |
| 6945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6946 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6947 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | |
| 6949 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6950 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6951 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6952 | cat >conftest.$ac_ext <<_ACEOF |
| 6953 | /* confdefs.h. */ |
| 6954 | _ACEOF |
| 6955 | cat confdefs.h >>conftest.$ac_ext |
| 6956 | cat >>conftest.$ac_ext <<_ACEOF |
| 6957 | /* end confdefs.h. */ |
| 6958 | #include <$ac_header> |
| 6959 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6960 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6961 | case "(($ac_try" in |
| 6962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6963 | *) ac_try_echo=$ac_try;; |
| 6964 | esac |
| 6965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | ac_status=$? |
| 6968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6969 | rm -f conftest.er1 |
| 6970 | cat conftest.err >&5 |
| 6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6972 | (exit $ac_status); } >/dev/null && { |
| 6973 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6974 | test ! -s conftest.err |
| 6975 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | ac_header_preproc=yes |
| 6977 | else |
| 6978 | echo "$as_me: failed program was:" >&5 |
| 6979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6980 | |
| 6981 | ac_header_preproc=no |
| 6982 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6985 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6986 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6987 | |
| 6988 | # So? What about this header? |
| 6989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6990 | yes:no: ) |
| 6991 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6992 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6994 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6995 | ac_header_preproc=yes |
| 6996 | ;; |
| 6997 | no:yes:* ) |
| 6998 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6999 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7000 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7001 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7002 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7003 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7004 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7005 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7007 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7008 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7009 | 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] | 7010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7011 | ;; |
| 7012 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7015 | 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] | 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7017 | else |
| 7018 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7019 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7020 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7021 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7022 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | |
| 7024 | fi |
| 7025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7026 | cat >>confdefs.h <<_ACEOF |
| 7027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7028 | _ACEOF |
| 7029 | |
| 7030 | fi |
| 7031 | |
| 7032 | done |
| 7033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7034 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7035 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7036 | result= |
| 7037 | cat >conftest.$ac_ext <<_ACEOF |
| 7038 | /* confdefs.h. */ |
| 7039 | _ACEOF |
| 7040 | cat confdefs.h >>conftest.$ac_ext |
| 7041 | cat >>conftest.$ac_ext <<_ACEOF |
| 7042 | /* end confdefs.h. */ |
| 7043 | |
| 7044 | #include <limits.h> |
| 7045 | #if HAVE_STDINT_H |
| 7046 | #include <stdint.h> |
| 7047 | #endif |
| 7048 | #ifdef SIZE_MAX |
| 7049 | Found it |
| 7050 | #endif |
| 7051 | |
| 7052 | _ACEOF |
| 7053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7054 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7055 | result=yes |
| 7056 | fi |
| 7057 | rm -f conftest* |
| 7058 | |
| 7059 | if test -z "$result"; then |
| 7060 | if test "$cross_compiling" = yes; then |
| 7061 | # Depending upon the size, compute the lo and hi bounds. |
| 7062 | cat >conftest.$ac_ext <<_ACEOF |
| 7063 | /* confdefs.h. */ |
| 7064 | _ACEOF |
| 7065 | cat confdefs.h >>conftest.$ac_ext |
| 7066 | cat >>conftest.$ac_ext <<_ACEOF |
| 7067 | /* end confdefs.h. */ |
| 7068 | #include <stddef.h> |
| 7069 | int |
| 7070 | main () |
| 7071 | { |
| 7072 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7073 | test_array [0] = 0 |
| 7074 | |
| 7075 | ; |
| 7076 | return 0; |
| 7077 | } |
| 7078 | _ACEOF |
| 7079 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7080 | if { (ac_try="$ac_compile" |
| 7081 | case "(($ac_try" in |
| 7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7083 | *) ac_try_echo=$ac_try;; |
| 7084 | esac |
| 7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7086 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7087 | ac_status=$? |
| 7088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7089 | rm -f conftest.er1 |
| 7090 | cat conftest.err >&5 |
| 7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7092 | (exit $ac_status); } && { |
| 7093 | test -z "$ac_c_werror_flag" || |
| 7094 | test ! -s conftest.err |
| 7095 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7096 | ac_lo=0 ac_mid=0 |
| 7097 | while :; do |
| 7098 | cat >conftest.$ac_ext <<_ACEOF |
| 7099 | /* confdefs.h. */ |
| 7100 | _ACEOF |
| 7101 | cat confdefs.h >>conftest.$ac_ext |
| 7102 | cat >>conftest.$ac_ext <<_ACEOF |
| 7103 | /* end confdefs.h. */ |
| 7104 | #include <stddef.h> |
| 7105 | int |
| 7106 | main () |
| 7107 | { |
| 7108 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7109 | test_array [0] = 0 |
| 7110 | |
| 7111 | ; |
| 7112 | return 0; |
| 7113 | } |
| 7114 | _ACEOF |
| 7115 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7116 | if { (ac_try="$ac_compile" |
| 7117 | case "(($ac_try" in |
| 7118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7119 | *) ac_try_echo=$ac_try;; |
| 7120 | esac |
| 7121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7122 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | ac_status=$? |
| 7124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7125 | rm -f conftest.er1 |
| 7126 | cat conftest.err >&5 |
| 7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7128 | (exit $ac_status); } && { |
| 7129 | test -z "$ac_c_werror_flag" || |
| 7130 | test ! -s conftest.err |
| 7131 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | ac_hi=$ac_mid; break |
| 7133 | else |
| 7134 | echo "$as_me: failed program was:" >&5 |
| 7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7137 | ac_lo=`expr $ac_mid + 1` |
| 7138 | if test $ac_lo -le $ac_mid; then |
| 7139 | ac_lo= ac_hi= |
| 7140 | break |
| 7141 | fi |
| 7142 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7144 | |
| 7145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | done |
| 7147 | else |
| 7148 | echo "$as_me: failed program was:" >&5 |
| 7149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7151 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7152 | /* confdefs.h. */ |
| 7153 | _ACEOF |
| 7154 | cat confdefs.h >>conftest.$ac_ext |
| 7155 | cat >>conftest.$ac_ext <<_ACEOF |
| 7156 | /* end confdefs.h. */ |
| 7157 | #include <stddef.h> |
| 7158 | int |
| 7159 | main () |
| 7160 | { |
| 7161 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7162 | test_array [0] = 0 |
| 7163 | |
| 7164 | ; |
| 7165 | return 0; |
| 7166 | } |
| 7167 | _ACEOF |
| 7168 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7169 | if { (ac_try="$ac_compile" |
| 7170 | case "(($ac_try" in |
| 7171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7172 | *) ac_try_echo=$ac_try;; |
| 7173 | esac |
| 7174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7175 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7176 | ac_status=$? |
| 7177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7178 | rm -f conftest.er1 |
| 7179 | cat conftest.err >&5 |
| 7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7181 | (exit $ac_status); } && { |
| 7182 | test -z "$ac_c_werror_flag" || |
| 7183 | test ! -s conftest.err |
| 7184 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7185 | ac_hi=-1 ac_mid=-1 |
| 7186 | while :; do |
| 7187 | cat >conftest.$ac_ext <<_ACEOF |
| 7188 | /* confdefs.h. */ |
| 7189 | _ACEOF |
| 7190 | cat confdefs.h >>conftest.$ac_ext |
| 7191 | cat >>conftest.$ac_ext <<_ACEOF |
| 7192 | /* end confdefs.h. */ |
| 7193 | #include <stddef.h> |
| 7194 | int |
| 7195 | main () |
| 7196 | { |
| 7197 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7198 | test_array [0] = 0 |
| 7199 | |
| 7200 | ; |
| 7201 | return 0; |
| 7202 | } |
| 7203 | _ACEOF |
| 7204 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7205 | if { (ac_try="$ac_compile" |
| 7206 | case "(($ac_try" in |
| 7207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7208 | *) ac_try_echo=$ac_try;; |
| 7209 | esac |
| 7210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7211 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | ac_status=$? |
| 7213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7214 | rm -f conftest.er1 |
| 7215 | cat conftest.err >&5 |
| 7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7217 | (exit $ac_status); } && { |
| 7218 | test -z "$ac_c_werror_flag" || |
| 7219 | test ! -s conftest.err |
| 7220 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7221 | ac_lo=$ac_mid; break |
| 7222 | else |
| 7223 | echo "$as_me: failed program was:" >&5 |
| 7224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7225 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7226 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7227 | if test $ac_mid -le $ac_hi; then |
| 7228 | ac_lo= ac_hi= |
| 7229 | break |
| 7230 | fi |
| 7231 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7233 | |
| 7234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7235 | done |
| 7236 | else |
| 7237 | echo "$as_me: failed program was:" >&5 |
| 7238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7239 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7240 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7242 | |
| 7243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7244 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7245 | |
| 7246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7247 | # Binary search between lo and hi bounds. |
| 7248 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7249 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7250 | cat >conftest.$ac_ext <<_ACEOF |
| 7251 | /* confdefs.h. */ |
| 7252 | _ACEOF |
| 7253 | cat confdefs.h >>conftest.$ac_ext |
| 7254 | cat >>conftest.$ac_ext <<_ACEOF |
| 7255 | /* end confdefs.h. */ |
| 7256 | #include <stddef.h> |
| 7257 | int |
| 7258 | main () |
| 7259 | { |
| 7260 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7261 | test_array [0] = 0 |
| 7262 | |
| 7263 | ; |
| 7264 | return 0; |
| 7265 | } |
| 7266 | _ACEOF |
| 7267 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7268 | if { (ac_try="$ac_compile" |
| 7269 | case "(($ac_try" in |
| 7270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7271 | *) ac_try_echo=$ac_try;; |
| 7272 | esac |
| 7273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7274 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7275 | ac_status=$? |
| 7276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7277 | rm -f conftest.er1 |
| 7278 | cat conftest.err >&5 |
| 7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7280 | (exit $ac_status); } && { |
| 7281 | test -z "$ac_c_werror_flag" || |
| 7282 | test ! -s conftest.err |
| 7283 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7284 | ac_hi=$ac_mid |
| 7285 | else |
| 7286 | echo "$as_me: failed program was:" >&5 |
| 7287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7289 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7291 | |
| 7292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7293 | done |
| 7294 | case $ac_lo in |
| 7295 | ?*) res_hi=$ac_lo;; |
| 7296 | '') result=? ;; |
| 7297 | esac |
| 7298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7299 | cat >conftest.$ac_ext <<_ACEOF |
| 7300 | /* confdefs.h. */ |
| 7301 | _ACEOF |
| 7302 | cat confdefs.h >>conftest.$ac_ext |
| 7303 | cat >>conftest.$ac_ext <<_ACEOF |
| 7304 | /* end confdefs.h. */ |
| 7305 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7306 | static long int longval () { return ~(size_t)0 / 10; } |
| 7307 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7308 | #include <stdio.h> |
| 7309 | #include <stdlib.h> |
| 7310 | int |
| 7311 | main () |
| 7312 | { |
| 7313 | |
| 7314 | FILE *f = fopen ("conftest.val", "w"); |
| 7315 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7316 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7317 | if ((~(size_t)0 / 10) < 0) |
| 7318 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7319 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7320 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7321 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | fprintf (f, "%ld\n", i); |
| 7323 | } |
| 7324 | else |
| 7325 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7326 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7328 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7329 | fprintf (f, "%lu\n", i); |
| 7330 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7331 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7332 | |
| 7333 | ; |
| 7334 | return 0; |
| 7335 | } |
| 7336 | _ACEOF |
| 7337 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7338 | if { (ac_try="$ac_link" |
| 7339 | case "(($ac_try" in |
| 7340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7341 | *) ac_try_echo=$ac_try;; |
| 7342 | esac |
| 7343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7344 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | ac_status=$? |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7348 | { (case "(($ac_try" in |
| 7349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7350 | *) ac_try_echo=$ac_try;; |
| 7351 | esac |
| 7352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7353 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7354 | ac_status=$? |
| 7355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7356 | (exit $ac_status); }; }; then |
| 7357 | res_hi=`cat conftest.val` |
| 7358 | else |
| 7359 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7360 | echo "$as_me: failed program was:" >&5 |
| 7361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7362 | |
| 7363 | ( exit $ac_status ) |
| 7364 | result=? |
| 7365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7366 | 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] | 7367 | fi |
| 7368 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7370 | if test "$cross_compiling" = yes; then |
| 7371 | # Depending upon the size, compute the lo and hi bounds. |
| 7372 | cat >conftest.$ac_ext <<_ACEOF |
| 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
| 7378 | #include <stddef.h> |
| 7379 | int |
| 7380 | main () |
| 7381 | { |
| 7382 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7383 | test_array [0] = 0 |
| 7384 | |
| 7385 | ; |
| 7386 | return 0; |
| 7387 | } |
| 7388 | _ACEOF |
| 7389 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7390 | if { (ac_try="$ac_compile" |
| 7391 | case "(($ac_try" in |
| 7392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7393 | *) ac_try_echo=$ac_try;; |
| 7394 | esac |
| 7395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7396 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7397 | ac_status=$? |
| 7398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7399 | rm -f conftest.er1 |
| 7400 | cat conftest.err >&5 |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7402 | (exit $ac_status); } && { |
| 7403 | test -z "$ac_c_werror_flag" || |
| 7404 | test ! -s conftest.err |
| 7405 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7406 | ac_lo=0 ac_mid=0 |
| 7407 | while :; do |
| 7408 | cat >conftest.$ac_ext <<_ACEOF |
| 7409 | /* confdefs.h. */ |
| 7410 | _ACEOF |
| 7411 | cat confdefs.h >>conftest.$ac_ext |
| 7412 | cat >>conftest.$ac_ext <<_ACEOF |
| 7413 | /* end confdefs.h. */ |
| 7414 | #include <stddef.h> |
| 7415 | int |
| 7416 | main () |
| 7417 | { |
| 7418 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7419 | test_array [0] = 0 |
| 7420 | |
| 7421 | ; |
| 7422 | return 0; |
| 7423 | } |
| 7424 | _ACEOF |
| 7425 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7426 | if { (ac_try="$ac_compile" |
| 7427 | case "(($ac_try" in |
| 7428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7429 | *) ac_try_echo=$ac_try;; |
| 7430 | esac |
| 7431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7432 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7433 | ac_status=$? |
| 7434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7435 | rm -f conftest.er1 |
| 7436 | cat conftest.err >&5 |
| 7437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7438 | (exit $ac_status); } && { |
| 7439 | test -z "$ac_c_werror_flag" || |
| 7440 | test ! -s conftest.err |
| 7441 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7442 | ac_hi=$ac_mid; break |
| 7443 | else |
| 7444 | echo "$as_me: failed program was:" >&5 |
| 7445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7446 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7447 | ac_lo=`expr $ac_mid + 1` |
| 7448 | if test $ac_lo -le $ac_mid; then |
| 7449 | ac_lo= ac_hi= |
| 7450 | break |
| 7451 | fi |
| 7452 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7454 | |
| 7455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7456 | done |
| 7457 | else |
| 7458 | echo "$as_me: failed program was:" >&5 |
| 7459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7460 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7461 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | /* confdefs.h. */ |
| 7463 | _ACEOF |
| 7464 | cat confdefs.h >>conftest.$ac_ext |
| 7465 | cat >>conftest.$ac_ext <<_ACEOF |
| 7466 | /* end confdefs.h. */ |
| 7467 | #include <stddef.h> |
| 7468 | int |
| 7469 | main () |
| 7470 | { |
| 7471 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7472 | test_array [0] = 0 |
| 7473 | |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
| 7478 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7479 | if { (ac_try="$ac_compile" |
| 7480 | case "(($ac_try" in |
| 7481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7482 | *) ac_try_echo=$ac_try;; |
| 7483 | esac |
| 7484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7485 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7486 | ac_status=$? |
| 7487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7488 | rm -f conftest.er1 |
| 7489 | cat conftest.err >&5 |
| 7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7491 | (exit $ac_status); } && { |
| 7492 | test -z "$ac_c_werror_flag" || |
| 7493 | test ! -s conftest.err |
| 7494 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7495 | ac_hi=-1 ac_mid=-1 |
| 7496 | while :; do |
| 7497 | cat >conftest.$ac_ext <<_ACEOF |
| 7498 | /* confdefs.h. */ |
| 7499 | _ACEOF |
| 7500 | cat confdefs.h >>conftest.$ac_ext |
| 7501 | cat >>conftest.$ac_ext <<_ACEOF |
| 7502 | /* end confdefs.h. */ |
| 7503 | #include <stddef.h> |
| 7504 | int |
| 7505 | main () |
| 7506 | { |
| 7507 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7508 | test_array [0] = 0 |
| 7509 | |
| 7510 | ; |
| 7511 | return 0; |
| 7512 | } |
| 7513 | _ACEOF |
| 7514 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7515 | if { (ac_try="$ac_compile" |
| 7516 | case "(($ac_try" in |
| 7517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7518 | *) ac_try_echo=$ac_try;; |
| 7519 | esac |
| 7520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7521 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | ac_status=$? |
| 7523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7524 | rm -f conftest.er1 |
| 7525 | cat conftest.err >&5 |
| 7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7527 | (exit $ac_status); } && { |
| 7528 | test -z "$ac_c_werror_flag" || |
| 7529 | test ! -s conftest.err |
| 7530 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7531 | ac_lo=$ac_mid; break |
| 7532 | else |
| 7533 | echo "$as_me: failed program was:" >&5 |
| 7534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7535 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7536 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7537 | if test $ac_mid -le $ac_hi; then |
| 7538 | ac_lo= ac_hi= |
| 7539 | break |
| 7540 | fi |
| 7541 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7543 | |
| 7544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7545 | done |
| 7546 | else |
| 7547 | echo "$as_me: failed program was:" >&5 |
| 7548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7550 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7552 | |
| 7553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7554 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7555 | |
| 7556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7557 | # Binary search between lo and hi bounds. |
| 7558 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7559 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7560 | cat >conftest.$ac_ext <<_ACEOF |
| 7561 | /* confdefs.h. */ |
| 7562 | _ACEOF |
| 7563 | cat confdefs.h >>conftest.$ac_ext |
| 7564 | cat >>conftest.$ac_ext <<_ACEOF |
| 7565 | /* end confdefs.h. */ |
| 7566 | #include <stddef.h> |
| 7567 | int |
| 7568 | main () |
| 7569 | { |
| 7570 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7571 | test_array [0] = 0 |
| 7572 | |
| 7573 | ; |
| 7574 | return 0; |
| 7575 | } |
| 7576 | _ACEOF |
| 7577 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7578 | if { (ac_try="$ac_compile" |
| 7579 | case "(($ac_try" in |
| 7580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7581 | *) ac_try_echo=$ac_try;; |
| 7582 | esac |
| 7583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7584 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7585 | ac_status=$? |
| 7586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7587 | rm -f conftest.er1 |
| 7588 | cat conftest.err >&5 |
| 7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7590 | (exit $ac_status); } && { |
| 7591 | test -z "$ac_c_werror_flag" || |
| 7592 | test ! -s conftest.err |
| 7593 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7594 | ac_hi=$ac_mid |
| 7595 | else |
| 7596 | echo "$as_me: failed program was:" >&5 |
| 7597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7598 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7599 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7601 | |
| 7602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7603 | done |
| 7604 | case $ac_lo in |
| 7605 | ?*) res_lo=$ac_lo;; |
| 7606 | '') result=? ;; |
| 7607 | esac |
| 7608 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7609 | cat >conftest.$ac_ext <<_ACEOF |
| 7610 | /* confdefs.h. */ |
| 7611 | _ACEOF |
| 7612 | cat confdefs.h >>conftest.$ac_ext |
| 7613 | cat >>conftest.$ac_ext <<_ACEOF |
| 7614 | /* end confdefs.h. */ |
| 7615 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7616 | static long int longval () { return ~(size_t)0 % 10; } |
| 7617 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7618 | #include <stdio.h> |
| 7619 | #include <stdlib.h> |
| 7620 | int |
| 7621 | main () |
| 7622 | { |
| 7623 | |
| 7624 | FILE *f = fopen ("conftest.val", "w"); |
| 7625 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7626 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7627 | if ((~(size_t)0 % 10) < 0) |
| 7628 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7629 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7631 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7632 | fprintf (f, "%ld\n", i); |
| 7633 | } |
| 7634 | else |
| 7635 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7636 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7637 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7638 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | fprintf (f, "%lu\n", i); |
| 7640 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7641 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7642 | |
| 7643 | ; |
| 7644 | return 0; |
| 7645 | } |
| 7646 | _ACEOF |
| 7647 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7648 | if { (ac_try="$ac_link" |
| 7649 | case "(($ac_try" in |
| 7650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7651 | *) ac_try_echo=$ac_try;; |
| 7652 | esac |
| 7653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7654 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | ac_status=$? |
| 7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7658 | { (case "(($ac_try" in |
| 7659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7660 | *) ac_try_echo=$ac_try;; |
| 7661 | esac |
| 7662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7663 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7664 | ac_status=$? |
| 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7666 | (exit $ac_status); }; }; then |
| 7667 | res_lo=`cat conftest.val` |
| 7668 | else |
| 7669 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7670 | echo "$as_me: failed program was:" >&5 |
| 7671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7672 | |
| 7673 | ( exit $ac_status ) |
| 7674 | result=? |
| 7675 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7676 | 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] | 7677 | fi |
| 7678 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7680 | if test "$cross_compiling" = yes; then |
| 7681 | # Depending upon the size, compute the lo and hi bounds. |
| 7682 | cat >conftest.$ac_ext <<_ACEOF |
| 7683 | /* confdefs.h. */ |
| 7684 | _ACEOF |
| 7685 | cat confdefs.h >>conftest.$ac_ext |
| 7686 | cat >>conftest.$ac_ext <<_ACEOF |
| 7687 | /* end confdefs.h. */ |
| 7688 | #include <stddef.h> |
| 7689 | int |
| 7690 | main () |
| 7691 | { |
| 7692 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7693 | test_array [0] = 0 |
| 7694 | |
| 7695 | ; |
| 7696 | return 0; |
| 7697 | } |
| 7698 | _ACEOF |
| 7699 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7700 | if { (ac_try="$ac_compile" |
| 7701 | case "(($ac_try" in |
| 7702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7703 | *) ac_try_echo=$ac_try;; |
| 7704 | esac |
| 7705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7706 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7707 | ac_status=$? |
| 7708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7709 | rm -f conftest.er1 |
| 7710 | cat conftest.err >&5 |
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7712 | (exit $ac_status); } && { |
| 7713 | test -z "$ac_c_werror_flag" || |
| 7714 | test ! -s conftest.err |
| 7715 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7716 | ac_lo=0 ac_mid=0 |
| 7717 | while :; do |
| 7718 | cat >conftest.$ac_ext <<_ACEOF |
| 7719 | /* confdefs.h. */ |
| 7720 | _ACEOF |
| 7721 | cat confdefs.h >>conftest.$ac_ext |
| 7722 | cat >>conftest.$ac_ext <<_ACEOF |
| 7723 | /* end confdefs.h. */ |
| 7724 | #include <stddef.h> |
| 7725 | int |
| 7726 | main () |
| 7727 | { |
| 7728 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7729 | test_array [0] = 0 |
| 7730 | |
| 7731 | ; |
| 7732 | return 0; |
| 7733 | } |
| 7734 | _ACEOF |
| 7735 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7736 | if { (ac_try="$ac_compile" |
| 7737 | case "(($ac_try" in |
| 7738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7739 | *) ac_try_echo=$ac_try;; |
| 7740 | esac |
| 7741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7742 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7743 | ac_status=$? |
| 7744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7745 | rm -f conftest.er1 |
| 7746 | cat conftest.err >&5 |
| 7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7748 | (exit $ac_status); } && { |
| 7749 | test -z "$ac_c_werror_flag" || |
| 7750 | test ! -s conftest.err |
| 7751 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7752 | ac_hi=$ac_mid; break |
| 7753 | else |
| 7754 | echo "$as_me: failed program was:" >&5 |
| 7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7757 | ac_lo=`expr $ac_mid + 1` |
| 7758 | if test $ac_lo -le $ac_mid; then |
| 7759 | ac_lo= ac_hi= |
| 7760 | break |
| 7761 | fi |
| 7762 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7764 | |
| 7765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7766 | done |
| 7767 | else |
| 7768 | echo "$as_me: failed program was:" >&5 |
| 7769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7771 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7772 | /* confdefs.h. */ |
| 7773 | _ACEOF |
| 7774 | cat confdefs.h >>conftest.$ac_ext |
| 7775 | cat >>conftest.$ac_ext <<_ACEOF |
| 7776 | /* end confdefs.h. */ |
| 7777 | #include <stddef.h> |
| 7778 | int |
| 7779 | main () |
| 7780 | { |
| 7781 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7782 | test_array [0] = 0 |
| 7783 | |
| 7784 | ; |
| 7785 | return 0; |
| 7786 | } |
| 7787 | _ACEOF |
| 7788 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7789 | if { (ac_try="$ac_compile" |
| 7790 | case "(($ac_try" in |
| 7791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7792 | *) ac_try_echo=$ac_try;; |
| 7793 | esac |
| 7794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7795 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7796 | ac_status=$? |
| 7797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7798 | rm -f conftest.er1 |
| 7799 | cat conftest.err >&5 |
| 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7801 | (exit $ac_status); } && { |
| 7802 | test -z "$ac_c_werror_flag" || |
| 7803 | test ! -s conftest.err |
| 7804 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7805 | ac_hi=-1 ac_mid=-1 |
| 7806 | while :; do |
| 7807 | cat >conftest.$ac_ext <<_ACEOF |
| 7808 | /* confdefs.h. */ |
| 7809 | _ACEOF |
| 7810 | cat confdefs.h >>conftest.$ac_ext |
| 7811 | cat >>conftest.$ac_ext <<_ACEOF |
| 7812 | /* end confdefs.h. */ |
| 7813 | #include <stddef.h> |
| 7814 | int |
| 7815 | main () |
| 7816 | { |
| 7817 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7818 | test_array [0] = 0 |
| 7819 | |
| 7820 | ; |
| 7821 | return 0; |
| 7822 | } |
| 7823 | _ACEOF |
| 7824 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7825 | if { (ac_try="$ac_compile" |
| 7826 | case "(($ac_try" in |
| 7827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7828 | *) ac_try_echo=$ac_try;; |
| 7829 | esac |
| 7830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7831 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | ac_status=$? |
| 7833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7834 | rm -f conftest.er1 |
| 7835 | cat conftest.err >&5 |
| 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7837 | (exit $ac_status); } && { |
| 7838 | test -z "$ac_c_werror_flag" || |
| 7839 | test ! -s conftest.err |
| 7840 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7841 | ac_lo=$ac_mid; break |
| 7842 | else |
| 7843 | echo "$as_me: failed program was:" >&5 |
| 7844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7846 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7847 | if test $ac_mid -le $ac_hi; then |
| 7848 | ac_lo= ac_hi= |
| 7849 | break |
| 7850 | fi |
| 7851 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7853 | |
| 7854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7855 | done |
| 7856 | else |
| 7857 | echo "$as_me: failed program was:" >&5 |
| 7858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7860 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7862 | |
| 7863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7864 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7865 | |
| 7866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7867 | # Binary search between lo and hi bounds. |
| 7868 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7869 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7870 | cat >conftest.$ac_ext <<_ACEOF |
| 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
| 7876 | #include <stddef.h> |
| 7877 | int |
| 7878 | main () |
| 7879 | { |
| 7880 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7881 | test_array [0] = 0 |
| 7882 | |
| 7883 | ; |
| 7884 | return 0; |
| 7885 | } |
| 7886 | _ACEOF |
| 7887 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7888 | if { (ac_try="$ac_compile" |
| 7889 | case "(($ac_try" in |
| 7890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7891 | *) ac_try_echo=$ac_try;; |
| 7892 | esac |
| 7893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7894 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7895 | ac_status=$? |
| 7896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7897 | rm -f conftest.er1 |
| 7898 | cat conftest.err >&5 |
| 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7900 | (exit $ac_status); } && { |
| 7901 | test -z "$ac_c_werror_flag" || |
| 7902 | test ! -s conftest.err |
| 7903 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7904 | ac_hi=$ac_mid |
| 7905 | else |
| 7906 | echo "$as_me: failed program was:" >&5 |
| 7907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7909 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7911 | |
| 7912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7913 | done |
| 7914 | case $ac_lo in |
| 7915 | ?*) fits_in_uint=$ac_lo;; |
| 7916 | '') result=? ;; |
| 7917 | esac |
| 7918 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7919 | cat >conftest.$ac_ext <<_ACEOF |
| 7920 | /* confdefs.h. */ |
| 7921 | _ACEOF |
| 7922 | cat confdefs.h >>conftest.$ac_ext |
| 7923 | cat >>conftest.$ac_ext <<_ACEOF |
| 7924 | /* end confdefs.h. */ |
| 7925 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7926 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7927 | 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] | 7928 | #include <stdio.h> |
| 7929 | #include <stdlib.h> |
| 7930 | int |
| 7931 | main () |
| 7932 | { |
| 7933 | |
| 7934 | FILE *f = fopen ("conftest.val", "w"); |
| 7935 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7936 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7937 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7938 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7939 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7940 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7941 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7942 | fprintf (f, "%ld\n", i); |
| 7943 | } |
| 7944 | else |
| 7945 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7946 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7947 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7948 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7949 | fprintf (f, "%lu\n", i); |
| 7950 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7951 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7952 | |
| 7953 | ; |
| 7954 | return 0; |
| 7955 | } |
| 7956 | _ACEOF |
| 7957 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7958 | if { (ac_try="$ac_link" |
| 7959 | case "(($ac_try" in |
| 7960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7961 | *) ac_try_echo=$ac_try;; |
| 7962 | esac |
| 7963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7964 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7965 | ac_status=$? |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7968 | { (case "(($ac_try" in |
| 7969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7970 | *) ac_try_echo=$ac_try;; |
| 7971 | esac |
| 7972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7973 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7974 | ac_status=$? |
| 7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7976 | (exit $ac_status); }; }; then |
| 7977 | fits_in_uint=`cat conftest.val` |
| 7978 | else |
| 7979 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7980 | echo "$as_me: failed program was:" >&5 |
| 7981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7982 | |
| 7983 | ( exit $ac_status ) |
| 7984 | result=? |
| 7985 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7986 | 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] | 7987 | fi |
| 7988 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7989 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7990 | if test "$fits_in_uint" = 1; then |
| 7991 | cat >conftest.$ac_ext <<_ACEOF |
| 7992 | /* confdefs.h. */ |
| 7993 | _ACEOF |
| 7994 | cat confdefs.h >>conftest.$ac_ext |
| 7995 | cat >>conftest.$ac_ext <<_ACEOF |
| 7996 | /* end confdefs.h. */ |
| 7997 | #include <stddef.h> |
| 7998 | extern size_t foo; |
| 7999 | extern unsigned long foo; |
| 8000 | |
| 8001 | int |
| 8002 | main () |
| 8003 | { |
| 8004 | |
| 8005 | ; |
| 8006 | return 0; |
| 8007 | } |
| 8008 | _ACEOF |
| 8009 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8010 | if { (ac_try="$ac_compile" |
| 8011 | case "(($ac_try" in |
| 8012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8013 | *) ac_try_echo=$ac_try;; |
| 8014 | esac |
| 8015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8016 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8017 | ac_status=$? |
| 8018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8019 | rm -f conftest.er1 |
| 8020 | cat conftest.err >&5 |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8022 | (exit $ac_status); } && { |
| 8023 | test -z "$ac_c_werror_flag" || |
| 8024 | test ! -s conftest.err |
| 8025 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8026 | fits_in_uint=0 |
| 8027 | else |
| 8028 | echo "$as_me: failed program was:" >&5 |
| 8029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8030 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8032 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8033 | |
| 8034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8035 | fi |
| 8036 | if test -z "$result"; then |
| 8037 | if test "$fits_in_uint" = 1; then |
| 8038 | result="$res_hi$res_lo"U |
| 8039 | else |
| 8040 | result="$res_hi$res_lo"UL |
| 8041 | fi |
| 8042 | else |
| 8043 | result='~(size_t)0' |
| 8044 | fi |
| 8045 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8046 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8047 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8048 | if test "$result" != yes; then |
| 8049 | |
| 8050 | cat >>confdefs.h <<_ACEOF |
| 8051 | #define SIZE_MAX $result |
| 8052 | _ACEOF |
| 8053 | |
| 8054 | fi |
| 8055 | |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | for ac_header in stdint.h |
| 8060 | do |
| 8061 | 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] | 8062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8063 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8065 | 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] | 8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8067 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8068 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8069 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8070 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8071 | else |
| 8072 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8073 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8075 | cat >conftest.$ac_ext <<_ACEOF |
| 8076 | /* confdefs.h. */ |
| 8077 | _ACEOF |
| 8078 | cat confdefs.h >>conftest.$ac_ext |
| 8079 | cat >>conftest.$ac_ext <<_ACEOF |
| 8080 | /* end confdefs.h. */ |
| 8081 | $ac_includes_default |
| 8082 | #include <$ac_header> |
| 8083 | _ACEOF |
| 8084 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8085 | if { (ac_try="$ac_compile" |
| 8086 | case "(($ac_try" in |
| 8087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8088 | *) ac_try_echo=$ac_try;; |
| 8089 | esac |
| 8090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8091 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8092 | ac_status=$? |
| 8093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8094 | rm -f conftest.er1 |
| 8095 | cat conftest.err >&5 |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8097 | (exit $ac_status); } && { |
| 8098 | test -z "$ac_c_werror_flag" || |
| 8099 | test ! -s conftest.err |
| 8100 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8101 | ac_header_compiler=yes |
| 8102 | else |
| 8103 | echo "$as_me: failed program was:" >&5 |
| 8104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8106 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8108 | |
| 8109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8110 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8111 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8112 | |
| 8113 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8114 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8115 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8116 | cat >conftest.$ac_ext <<_ACEOF |
| 8117 | /* confdefs.h. */ |
| 8118 | _ACEOF |
| 8119 | cat confdefs.h >>conftest.$ac_ext |
| 8120 | cat >>conftest.$ac_ext <<_ACEOF |
| 8121 | /* end confdefs.h. */ |
| 8122 | #include <$ac_header> |
| 8123 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8124 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8125 | case "(($ac_try" in |
| 8126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8127 | *) ac_try_echo=$ac_try;; |
| 8128 | esac |
| 8129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8131 | ac_status=$? |
| 8132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8133 | rm -f conftest.er1 |
| 8134 | cat conftest.err >&5 |
| 8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8136 | (exit $ac_status); } >/dev/null && { |
| 8137 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8138 | test ! -s conftest.err |
| 8139 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8140 | ac_header_preproc=yes |
| 8141 | else |
| 8142 | echo "$as_me: failed program was:" >&5 |
| 8143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8144 | |
| 8145 | ac_header_preproc=no |
| 8146 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8148 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8149 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8150 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | |
| 8152 | # So? What about this header? |
| 8153 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8154 | yes:no: ) |
| 8155 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8156 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8158 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8159 | ac_header_preproc=yes |
| 8160 | ;; |
| 8161 | no:yes:* ) |
| 8162 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8163 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8164 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8165 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8166 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8167 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8169 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8171 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8172 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8173 | 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] | 8174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8175 | ;; |
| 8176 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8177 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8179 | 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] | 8180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8181 | else |
| 8182 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8183 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8184 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8186 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8187 | |
| 8188 | fi |
| 8189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8190 | cat >>confdefs.h <<_ACEOF |
| 8191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8192 | _ACEOF |
| 8193 | |
| 8194 | fi |
| 8195 | |
| 8196 | done |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | if test "X$prefix" = "XNONE"; then |
| 8201 | acl_final_prefix="$ac_default_prefix" |
| 8202 | else |
| 8203 | acl_final_prefix="$prefix" |
| 8204 | fi |
| 8205 | if test "X$exec_prefix" = "XNONE"; then |
| 8206 | acl_final_exec_prefix='${prefix}' |
| 8207 | else |
| 8208 | acl_final_exec_prefix="$exec_prefix" |
| 8209 | fi |
| 8210 | acl_save_prefix="$prefix" |
| 8211 | prefix="$acl_final_prefix" |
| 8212 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8213 | prefix="$acl_save_prefix" |
| 8214 | |
| 8215 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8216 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8217 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8218 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8219 | else |
| 8220 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8221 | fi |
| 8222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8223 | # Prepare PATH_SEPARATOR. |
| 8224 | # The user is always right. |
| 8225 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8226 | echo "#! /bin/sh" >conf$$.sh |
| 8227 | echo "exit 0" >>conf$$.sh |
| 8228 | chmod +x conf$$.sh |
| 8229 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8230 | PATH_SEPARATOR=';' |
| 8231 | else |
| 8232 | PATH_SEPARATOR=: |
| 8233 | fi |
| 8234 | rm -f conf$$.sh |
| 8235 | fi |
| 8236 | ac_prog=ld |
| 8237 | if test "$GCC" = yes; then |
| 8238 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8239 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8240 | 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] | 8241 | case $host in |
| 8242 | *-*-mingw*) |
| 8243 | # gcc leaves a trailing carriage return which upsets mingw |
| 8244 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8245 | *) |
| 8246 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8247 | esac |
| 8248 | case $ac_prog in |
| 8249 | # Accept absolute paths. |
| 8250 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8251 | re_direlt='/[^/][^/]*/\.\./' |
| 8252 | # Canonicalize the path of ld |
| 8253 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8254 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8255 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8256 | done |
| 8257 | test -z "$LD" && LD="$ac_prog" |
| 8258 | ;; |
| 8259 | "") |
| 8260 | # If it fails, then pretend we aren't using GCC. |
| 8261 | ac_prog=ld |
| 8262 | ;; |
| 8263 | *) |
| 8264 | # If it is relative, then search for the first ld in PATH. |
| 8265 | with_gnu_ld=unknown |
| 8266 | ;; |
| 8267 | esac |
| 8268 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8269 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8270 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8271 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8272 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8273 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8274 | fi |
| 8275 | if test "${acl_cv_path_LD+set}" = set; then |
| 8276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8277 | else |
| 8278 | if test -z "$LD"; then |
| 8279 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8280 | for ac_dir in $PATH; do |
| 8281 | test -z "$ac_dir" && ac_dir=. |
| 8282 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8283 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8284 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8285 | # but apparently some GNU ld's only accept -v. |
| 8286 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8287 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8288 | *GNU* | *'with BFD'*) |
| 8289 | test "$with_gnu_ld" != no && break ;; |
| 8290 | *) |
| 8291 | test "$with_gnu_ld" != yes && break ;; |
| 8292 | esac |
| 8293 | fi |
| 8294 | done |
| 8295 | IFS="$ac_save_ifs" |
| 8296 | else |
| 8297 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8298 | fi |
| 8299 | fi |
| 8300 | |
| 8301 | LD="$acl_cv_path_LD" |
| 8302 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8303 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8304 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8305 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8307 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8308 | fi |
| 8309 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8310 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8311 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8312 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8313 | 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] | 8314 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8316 | else |
| 8317 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8318 | case `$LD -v 2>&1 </dev/null` in |
| 8319 | *GNU* | *'with BFD'*) |
| 8320 | acl_cv_prog_gnu_ld=yes ;; |
| 8321 | *) |
| 8322 | acl_cv_prog_gnu_ld=no ;; |
| 8323 | esac |
| 8324 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8325 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8326 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8327 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8328 | |
| 8329 | |
| 8330 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8331 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8332 | 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] | 8333 | if test "${acl_cv_rpath+set}" = set; then |
| 8334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8335 | else |
| 8336 | |
| 8337 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8338 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8339 | . ./conftest.sh |
| 8340 | rm -f ./conftest.sh |
| 8341 | acl_cv_rpath=done |
| 8342 | |
| 8343 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8344 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8345 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8346 | wl="$acl_cv_wl" |
| 8347 | libext="$acl_cv_libext" |
| 8348 | shlibext="$acl_cv_shlibext" |
| 8349 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8350 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8351 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8352 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8353 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8354 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8355 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8356 | else |
| 8357 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8358 | fi |
| 8359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8367 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8368 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8369 | acl_save_prefix="$prefix" |
| 8370 | prefix="$acl_final_prefix" |
| 8371 | acl_save_exec_prefix="$exec_prefix" |
| 8372 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8373 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8374 | eval additional_includedir=\"$includedir\" |
| 8375 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8377 | exec_prefix="$acl_save_exec_prefix" |
| 8378 | prefix="$acl_save_prefix" |
| 8379 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8381 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8382 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8383 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8384 | if test "X$withval" = "Xno"; then |
| 8385 | use_additional=no |
| 8386 | else |
| 8387 | if test "X$withval" = "X"; then |
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 | |
| 8400 | else |
| 8401 | additional_includedir="$withval/include" |
| 8402 | additional_libdir="$withval/lib" |
| 8403 | fi |
| 8404 | fi |
| 8405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8406 | fi |
| 8407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8408 | LIBICONV= |
| 8409 | LTLIBICONV= |
| 8410 | INCICONV= |
| 8411 | rpathdirs= |
| 8412 | ltrpathdirs= |
| 8413 | names_already_handled= |
| 8414 | names_next_round='iconv ' |
| 8415 | while test -n "$names_next_round"; do |
| 8416 | names_this_round="$names_next_round" |
| 8417 | names_next_round= |
| 8418 | for name in $names_this_round; do |
| 8419 | already_handled= |
| 8420 | for n in $names_already_handled; do |
| 8421 | if test "$n" = "$name"; then |
| 8422 | already_handled=yes |
| 8423 | break |
| 8424 | fi |
| 8425 | done |
| 8426 | if test -z "$already_handled"; then |
| 8427 | names_already_handled="$names_already_handled $name" |
| 8428 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8429 | eval value=\"\$HAVE_LIB$uppername\" |
| 8430 | if test -n "$value"; then |
| 8431 | if test "$value" = yes; then |
| 8432 | eval value=\"\$LIB$uppername\" |
| 8433 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8434 | eval value=\"\$LTLIB$uppername\" |
| 8435 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8436 | else |
| 8437 | : |
| 8438 | fi |
| 8439 | else |
| 8440 | found_dir= |
| 8441 | found_la= |
| 8442 | found_so= |
| 8443 | found_a= |
| 8444 | if test $use_additional = yes; then |
| 8445 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8446 | found_dir="$additional_libdir" |
| 8447 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8448 | if test -f "$additional_libdir/lib$name.la"; then |
| 8449 | found_la="$additional_libdir/lib$name.la" |
| 8450 | fi |
| 8451 | else |
| 8452 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8453 | found_dir="$additional_libdir" |
| 8454 | found_a="$additional_libdir/lib$name.$libext" |
| 8455 | if test -f "$additional_libdir/lib$name.la"; then |
| 8456 | found_la="$additional_libdir/lib$name.la" |
| 8457 | fi |
| 8458 | fi |
| 8459 | fi |
| 8460 | fi |
| 8461 | if test "X$found_dir" = "X"; then |
| 8462 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8464 | acl_save_prefix="$prefix" |
| 8465 | prefix="$acl_final_prefix" |
| 8466 | acl_save_exec_prefix="$exec_prefix" |
| 8467 | exec_prefix="$acl_final_exec_prefix" |
| 8468 | eval x=\"$x\" |
| 8469 | exec_prefix="$acl_save_exec_prefix" |
| 8470 | prefix="$acl_save_prefix" |
| 8471 | |
| 8472 | case "$x" in |
| 8473 | -L*) |
| 8474 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8475 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8476 | found_dir="$dir" |
| 8477 | found_so="$dir/lib$name.$shlibext" |
| 8478 | if test -f "$dir/lib$name.la"; then |
| 8479 | found_la="$dir/lib$name.la" |
| 8480 | fi |
| 8481 | else |
| 8482 | if test -f "$dir/lib$name.$libext"; then |
| 8483 | found_dir="$dir" |
| 8484 | found_a="$dir/lib$name.$libext" |
| 8485 | if test -f "$dir/lib$name.la"; then |
| 8486 | found_la="$dir/lib$name.la" |
| 8487 | fi |
| 8488 | fi |
| 8489 | fi |
| 8490 | ;; |
| 8491 | esac |
| 8492 | if test "X$found_dir" != "X"; then |
| 8493 | break |
| 8494 | fi |
| 8495 | done |
| 8496 | fi |
| 8497 | if test "X$found_dir" != "X"; then |
| 8498 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8499 | if test "X$found_so" != "X"; then |
| 8500 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8501 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8502 | else |
| 8503 | haveit= |
| 8504 | for x in $ltrpathdirs; do |
| 8505 | if test "X$x" = "X$found_dir"; then |
| 8506 | haveit=yes |
| 8507 | break |
| 8508 | fi |
| 8509 | done |
| 8510 | if test -z "$haveit"; then |
| 8511 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8512 | fi |
| 8513 | if test "$hardcode_direct" = yes; then |
| 8514 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8515 | else |
| 8516 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8517 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8518 | haveit= |
| 8519 | for x in $rpathdirs; do |
| 8520 | if test "X$x" = "X$found_dir"; then |
| 8521 | haveit=yes |
| 8522 | break |
| 8523 | fi |
| 8524 | done |
| 8525 | if test -z "$haveit"; then |
| 8526 | rpathdirs="$rpathdirs $found_dir" |
| 8527 | fi |
| 8528 | else |
| 8529 | haveit= |
| 8530 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8531 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8532 | acl_save_prefix="$prefix" |
| 8533 | prefix="$acl_final_prefix" |
| 8534 | acl_save_exec_prefix="$exec_prefix" |
| 8535 | exec_prefix="$acl_final_exec_prefix" |
| 8536 | eval x=\"$x\" |
| 8537 | exec_prefix="$acl_save_exec_prefix" |
| 8538 | prefix="$acl_save_prefix" |
| 8539 | |
| 8540 | if test "X$x" = "X-L$found_dir"; then |
| 8541 | haveit=yes |
| 8542 | break |
| 8543 | fi |
| 8544 | done |
| 8545 | if test -z "$haveit"; then |
| 8546 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8547 | fi |
| 8548 | if test "$hardcode_minus_L" != no; then |
| 8549 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8550 | else |
| 8551 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8552 | fi |
| 8553 | fi |
| 8554 | fi |
| 8555 | fi |
| 8556 | else |
| 8557 | if test "X$found_a" != "X"; then |
| 8558 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8559 | else |
| 8560 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8561 | fi |
| 8562 | fi |
| 8563 | additional_includedir= |
| 8564 | case "$found_dir" in |
| 8565 | */lib | */lib/) |
| 8566 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8567 | additional_includedir="$basedir/include" |
| 8568 | ;; |
| 8569 | esac |
| 8570 | if test "X$additional_includedir" != "X"; then |
| 8571 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8572 | haveit= |
| 8573 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8574 | if test -n "$GCC"; then |
| 8575 | case $host_os in |
| 8576 | linux*) haveit=yes;; |
| 8577 | esac |
| 8578 | fi |
| 8579 | fi |
| 8580 | if test -z "$haveit"; then |
| 8581 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8582 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8583 | acl_save_prefix="$prefix" |
| 8584 | prefix="$acl_final_prefix" |
| 8585 | acl_save_exec_prefix="$exec_prefix" |
| 8586 | exec_prefix="$acl_final_exec_prefix" |
| 8587 | eval x=\"$x\" |
| 8588 | exec_prefix="$acl_save_exec_prefix" |
| 8589 | prefix="$acl_save_prefix" |
| 8590 | |
| 8591 | if test "X$x" = "X-I$additional_includedir"; then |
| 8592 | haveit=yes |
| 8593 | break |
| 8594 | fi |
| 8595 | done |
| 8596 | if test -z "$haveit"; then |
| 8597 | if test -d "$additional_includedir"; then |
| 8598 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8599 | fi |
| 8600 | fi |
| 8601 | fi |
| 8602 | fi |
| 8603 | fi |
| 8604 | if test -n "$found_la"; then |
| 8605 | save_libdir="$libdir" |
| 8606 | case "$found_la" in |
| 8607 | */* | *\\*) . "$found_la" ;; |
| 8608 | *) . "./$found_la" ;; |
| 8609 | esac |
| 8610 | libdir="$save_libdir" |
| 8611 | for dep in $dependency_libs; do |
| 8612 | case "$dep" in |
| 8613 | -L*) |
| 8614 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8615 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8616 | haveit= |
| 8617 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8618 | if test -n "$GCC"; then |
| 8619 | case $host_os in |
| 8620 | linux*) haveit=yes;; |
| 8621 | esac |
| 8622 | fi |
| 8623 | fi |
| 8624 | if test -z "$haveit"; then |
| 8625 | haveit= |
| 8626 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8627 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8628 | acl_save_prefix="$prefix" |
| 8629 | prefix="$acl_final_prefix" |
| 8630 | acl_save_exec_prefix="$exec_prefix" |
| 8631 | exec_prefix="$acl_final_exec_prefix" |
| 8632 | eval x=\"$x\" |
| 8633 | exec_prefix="$acl_save_exec_prefix" |
| 8634 | prefix="$acl_save_prefix" |
| 8635 | |
| 8636 | if test "X$x" = "X-L$additional_libdir"; then |
| 8637 | haveit=yes |
| 8638 | break |
| 8639 | fi |
| 8640 | done |
| 8641 | if test -z "$haveit"; then |
| 8642 | if test -d "$additional_libdir"; then |
| 8643 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8644 | fi |
| 8645 | fi |
| 8646 | haveit= |
| 8647 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8648 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8649 | acl_save_prefix="$prefix" |
| 8650 | prefix="$acl_final_prefix" |
| 8651 | acl_save_exec_prefix="$exec_prefix" |
| 8652 | exec_prefix="$acl_final_exec_prefix" |
| 8653 | eval x=\"$x\" |
| 8654 | exec_prefix="$acl_save_exec_prefix" |
| 8655 | prefix="$acl_save_prefix" |
| 8656 | |
| 8657 | if test "X$x" = "X-L$additional_libdir"; then |
| 8658 | haveit=yes |
| 8659 | break |
| 8660 | fi |
| 8661 | done |
| 8662 | if test -z "$haveit"; then |
| 8663 | if test -d "$additional_libdir"; then |
| 8664 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8665 | fi |
| 8666 | fi |
| 8667 | fi |
| 8668 | fi |
| 8669 | ;; |
| 8670 | -R*) |
| 8671 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8672 | if test "$enable_rpath" != no; then |
| 8673 | haveit= |
| 8674 | for x in $rpathdirs; do |
| 8675 | if test "X$x" = "X$dir"; then |
| 8676 | haveit=yes |
| 8677 | break |
| 8678 | fi |
| 8679 | done |
| 8680 | if test -z "$haveit"; then |
| 8681 | rpathdirs="$rpathdirs $dir" |
| 8682 | fi |
| 8683 | haveit= |
| 8684 | for x in $ltrpathdirs; do |
| 8685 | if test "X$x" = "X$dir"; then |
| 8686 | haveit=yes |
| 8687 | break |
| 8688 | fi |
| 8689 | done |
| 8690 | if test -z "$haveit"; then |
| 8691 | ltrpathdirs="$ltrpathdirs $dir" |
| 8692 | fi |
| 8693 | fi |
| 8694 | ;; |
| 8695 | -l*) |
| 8696 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8697 | ;; |
| 8698 | *.la) |
| 8699 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8700 | ;; |
| 8701 | *) |
| 8702 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8703 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8704 | ;; |
| 8705 | esac |
| 8706 | done |
| 8707 | fi |
| 8708 | else |
| 8709 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8710 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8711 | fi |
| 8712 | fi |
| 8713 | fi |
| 8714 | done |
| 8715 | done |
| 8716 | if test "X$rpathdirs" != "X"; then |
| 8717 | if test -n "$hardcode_libdir_separator"; then |
| 8718 | alldirs= |
| 8719 | for found_dir in $rpathdirs; do |
| 8720 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8721 | done |
| 8722 | acl_save_libdir="$libdir" |
| 8723 | libdir="$alldirs" |
| 8724 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8725 | libdir="$acl_save_libdir" |
| 8726 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8727 | else |
| 8728 | for found_dir in $rpathdirs; do |
| 8729 | acl_save_libdir="$libdir" |
| 8730 | libdir="$found_dir" |
| 8731 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8732 | libdir="$acl_save_libdir" |
| 8733 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8734 | done |
| 8735 | fi |
| 8736 | fi |
| 8737 | if test "X$ltrpathdirs" != "X"; then |
| 8738 | for found_dir in $ltrpathdirs; do |
| 8739 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8740 | done |
| 8741 | fi |
| 8742 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8743 | |
| 8744 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8746 | |
| 8747 | |
| 8748 | |
| 8749 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8750 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8751 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8752 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8754 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8755 | cat >conftest.$ac_ext <<_ACEOF |
| 8756 | /* confdefs.h. */ |
| 8757 | _ACEOF |
| 8758 | cat confdefs.h >>conftest.$ac_ext |
| 8759 | cat >>conftest.$ac_ext <<_ACEOF |
| 8760 | /* end confdefs.h. */ |
| 8761 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8762 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8763 | int |
| 8764 | main () |
| 8765 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8766 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8767 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8768 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8769 | return 0; |
| 8770 | ; |
| 8771 | return 0; |
| 8772 | } |
| 8773 | _ACEOF |
| 8774 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8775 | if { (ac_try="$ac_compile" |
| 8776 | case "(($ac_try" in |
| 8777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8778 | *) ac_try_echo=$ac_try;; |
| 8779 | esac |
| 8780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8781 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | ac_status=$? |
| 8783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8784 | rm -f conftest.er1 |
| 8785 | cat conftest.err >&5 |
| 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8787 | (exit $ac_status); } && { |
| 8788 | test -z "$ac_c_werror_flag" || |
| 8789 | test ! -s conftest.err |
| 8790 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8791 | ac_cv_type_ptrdiff_t=yes |
| 8792 | else |
| 8793 | echo "$as_me: failed program was:" >&5 |
| 8794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8797 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8798 | |
| 8799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8801 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8802 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8803 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8804 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8805 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8806 | |
| 8807 | cat >>confdefs.h <<\_ACEOF |
| 8808 | #define ptrdiff_t long |
| 8809 | _ACEOF |
| 8810 | |
| 8811 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8812 | fi |
| 8813 | |
| 8814 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8815 | |
| 8816 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8817 | |
| 8818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | |
| 8820 | |
| 8821 | |
| 8822 | |
| 8823 | |
| 8824 | 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] | 8825 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8826 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8827 | 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] | 8828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8829 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8830 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8831 | 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] | 8832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8833 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8834 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8835 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8836 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8837 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8838 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8839 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8840 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8841 | cat >conftest.$ac_ext <<_ACEOF |
| 8842 | /* confdefs.h. */ |
| 8843 | _ACEOF |
| 8844 | cat confdefs.h >>conftest.$ac_ext |
| 8845 | cat >>conftest.$ac_ext <<_ACEOF |
| 8846 | /* end confdefs.h. */ |
| 8847 | $ac_includes_default |
| 8848 | #include <$ac_header> |
| 8849 | _ACEOF |
| 8850 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8851 | if { (ac_try="$ac_compile" |
| 8852 | case "(($ac_try" in |
| 8853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8854 | *) ac_try_echo=$ac_try;; |
| 8855 | esac |
| 8856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8857 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8858 | ac_status=$? |
| 8859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8860 | rm -f conftest.er1 |
| 8861 | cat conftest.err >&5 |
| 8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8863 | (exit $ac_status); } && { |
| 8864 | test -z "$ac_c_werror_flag" || |
| 8865 | test ! -s conftest.err |
| 8866 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8867 | ac_header_compiler=yes |
| 8868 | else |
| 8869 | echo "$as_me: failed program was:" >&5 |
| 8870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8871 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8872 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8873 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8874 | |
| 8875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8876 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8877 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8878 | |
| 8879 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8880 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8882 | cat >conftest.$ac_ext <<_ACEOF |
| 8883 | /* confdefs.h. */ |
| 8884 | _ACEOF |
| 8885 | cat confdefs.h >>conftest.$ac_ext |
| 8886 | cat >>conftest.$ac_ext <<_ACEOF |
| 8887 | /* end confdefs.h. */ |
| 8888 | #include <$ac_header> |
| 8889 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8890 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8891 | case "(($ac_try" in |
| 8892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8893 | *) ac_try_echo=$ac_try;; |
| 8894 | esac |
| 8895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8896 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8897 | ac_status=$? |
| 8898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8899 | rm -f conftest.er1 |
| 8900 | cat conftest.err >&5 |
| 8901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8902 | (exit $ac_status); } >/dev/null && { |
| 8903 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8904 | test ! -s conftest.err |
| 8905 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8906 | ac_header_preproc=yes |
| 8907 | else |
| 8908 | echo "$as_me: failed program was:" >&5 |
| 8909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8910 | |
| 8911 | ac_header_preproc=no |
| 8912 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8914 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8915 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8916 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8917 | |
| 8918 | # So? What about this header? |
| 8919 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8920 | yes:no: ) |
| 8921 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8922 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8923 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8924 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8925 | ac_header_preproc=yes |
| 8926 | ;; |
| 8927 | no:yes:* ) |
| 8928 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8929 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8930 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8931 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8932 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8933 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8934 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8935 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8937 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8938 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8939 | 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] | 8940 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8941 | ;; |
| 8942 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8943 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8945 | 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] | 8946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8947 | else |
| 8948 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8949 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8950 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8951 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8952 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8953 | |
| 8954 | fi |
| 8955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8956 | cat >>confdefs.h <<_ACEOF |
| 8957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8958 | _ACEOF |
| 8959 | |
| 8960 | fi |
| 8961 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8962 | done |
| 8963 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8964 | |
| 8965 | |
| 8966 | |
| 8967 | |
| 8968 | |
| 8969 | |
| 8970 | |
| 8971 | |
| 8972 | |
| 8973 | |
| 8974 | |
| 8975 | |
| 8976 | |
| 8977 | |
| 8978 | |
| 8979 | |
| 8980 | |
| 8981 | |
| 8982 | |
| 8983 | |
| 8984 | |
| 8985 | |
| 8986 | |
| 8987 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 8988 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8989 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8990 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8991 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8992 | 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] | 8993 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8994 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 8995 | 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] | 8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8997 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8998 | cat >conftest.$ac_ext <<_ACEOF |
| 8999 | /* confdefs.h. */ |
| 9000 | _ACEOF |
| 9001 | cat confdefs.h >>conftest.$ac_ext |
| 9002 | cat >>conftest.$ac_ext <<_ACEOF |
| 9003 | /* end confdefs.h. */ |
| 9004 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9006 | #define $ac_func innocuous_$ac_func |
| 9007 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9008 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9009 | which can conflict with char $ac_func (); below. |
| 9010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9011 | <limits.h> exists even on freestanding compilers. */ |
| 9012 | |
| 9013 | #ifdef __STDC__ |
| 9014 | # include <limits.h> |
| 9015 | #else |
| 9016 | # include <assert.h> |
| 9017 | #endif |
| 9018 | |
| 9019 | #undef $ac_func |
| 9020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9021 | /* Override any GCC internal prototype to avoid an error. |
| 9022 | Use char because int might match the return type of a GCC |
| 9023 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9024 | #ifdef __cplusplus |
| 9025 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9026 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9027 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9028 | /* The GNU C library defines this for functions which it implements |
| 9029 | to always fail with ENOSYS. Some functions are actually named |
| 9030 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9031 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9032 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9033 | #endif |
| 9034 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9035 | int |
| 9036 | main () |
| 9037 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9038 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9039 | ; |
| 9040 | return 0; |
| 9041 | } |
| 9042 | _ACEOF |
| 9043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9044 | if { (ac_try="$ac_link" |
| 9045 | case "(($ac_try" in |
| 9046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9047 | *) ac_try_echo=$ac_try;; |
| 9048 | esac |
| 9049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9050 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9051 | ac_status=$? |
| 9052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9053 | rm -f conftest.er1 |
| 9054 | cat conftest.err >&5 |
| 9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9056 | (exit $ac_status); } && { |
| 9057 | test -z "$ac_c_werror_flag" || |
| 9058 | test ! -s conftest.err |
| 9059 | } && test -s conftest$ac_exeext && |
| 9060 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9061 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9062 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9063 | echo "$as_me: failed program was:" >&5 |
| 9064 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9066 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9067 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9068 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9069 | 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] | 9070 | conftest$ac_exeext conftest.$ac_ext |
| 9071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9072 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9073 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9074 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9075 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9076 | cat >>confdefs.h <<_ACEOF |
| 9077 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9078 | _ACEOF |
| 9079 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9080 | fi |
| 9081 | done |
| 9082 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9083 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9085 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9086 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9087 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9089 | else |
| 9090 | cat >conftest.$ac_ext <<_ACEOF |
| 9091 | /* confdefs.h. */ |
| 9092 | _ACEOF |
| 9093 | cat confdefs.h >>conftest.$ac_ext |
| 9094 | cat >>conftest.$ac_ext <<_ACEOF |
| 9095 | /* end confdefs.h. */ |
| 9096 | #include <stdio.h> |
| 9097 | int |
| 9098 | main () |
| 9099 | { |
| 9100 | |
| 9101 | #ifndef _snprintf |
| 9102 | char *p = (char *) _snprintf; |
| 9103 | #endif |
| 9104 | |
| 9105 | ; |
| 9106 | return 0; |
| 9107 | } |
| 9108 | _ACEOF |
| 9109 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9110 | if { (ac_try="$ac_compile" |
| 9111 | case "(($ac_try" in |
| 9112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9113 | *) ac_try_echo=$ac_try;; |
| 9114 | esac |
| 9115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9116 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9117 | ac_status=$? |
| 9118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9119 | rm -f conftest.er1 |
| 9120 | cat conftest.err >&5 |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9122 | (exit $ac_status); } && { |
| 9123 | test -z "$ac_c_werror_flag" || |
| 9124 | test ! -s conftest.err |
| 9125 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9126 | ac_cv_have_decl__snprintf=yes |
| 9127 | else |
| 9128 | echo "$as_me: failed program was:" >&5 |
| 9129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9130 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9131 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9132 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9133 | |
| 9134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9135 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9136 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9137 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9138 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9139 | gt_value=1 |
| 9140 | else |
| 9141 | gt_value=0 |
| 9142 | fi |
| 9143 | |
| 9144 | cat >>confdefs.h <<_ACEOF |
| 9145 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9146 | _ACEOF |
| 9147 | |
| 9148 | |
| 9149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9150 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9151 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9152 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9154 | else |
| 9155 | cat >conftest.$ac_ext <<_ACEOF |
| 9156 | /* confdefs.h. */ |
| 9157 | _ACEOF |
| 9158 | cat confdefs.h >>conftest.$ac_ext |
| 9159 | cat >>conftest.$ac_ext <<_ACEOF |
| 9160 | /* end confdefs.h. */ |
| 9161 | #include <stdio.h> |
| 9162 | int |
| 9163 | main () |
| 9164 | { |
| 9165 | |
| 9166 | #ifndef _snwprintf |
| 9167 | char *p = (char *) _snwprintf; |
| 9168 | #endif |
| 9169 | |
| 9170 | ; |
| 9171 | return 0; |
| 9172 | } |
| 9173 | _ACEOF |
| 9174 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9175 | if { (ac_try="$ac_compile" |
| 9176 | case "(($ac_try" in |
| 9177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9178 | *) ac_try_echo=$ac_try;; |
| 9179 | esac |
| 9180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9181 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9182 | ac_status=$? |
| 9183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9184 | rm -f conftest.er1 |
| 9185 | cat conftest.err >&5 |
| 9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9187 | (exit $ac_status); } && { |
| 9188 | test -z "$ac_c_werror_flag" || |
| 9189 | test ! -s conftest.err |
| 9190 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9191 | ac_cv_have_decl__snwprintf=yes |
| 9192 | else |
| 9193 | echo "$as_me: failed program was:" >&5 |
| 9194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9196 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9197 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9198 | |
| 9199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9200 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9201 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9202 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9203 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9204 | gt_value=1 |
| 9205 | else |
| 9206 | gt_value=0 |
| 9207 | fi |
| 9208 | |
| 9209 | cat >>confdefs.h <<_ACEOF |
| 9210 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9211 | _ACEOF |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9216 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9217 | 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] | 9218 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9220 | else |
| 9221 | cat >conftest.$ac_ext <<_ACEOF |
| 9222 | /* confdefs.h. */ |
| 9223 | _ACEOF |
| 9224 | cat confdefs.h >>conftest.$ac_ext |
| 9225 | cat >>conftest.$ac_ext <<_ACEOF |
| 9226 | /* end confdefs.h. */ |
| 9227 | #include <stdio.h> |
| 9228 | int |
| 9229 | main () |
| 9230 | { |
| 9231 | |
| 9232 | #ifndef feof_unlocked |
| 9233 | char *p = (char *) feof_unlocked; |
| 9234 | #endif |
| 9235 | |
| 9236 | ; |
| 9237 | return 0; |
| 9238 | } |
| 9239 | _ACEOF |
| 9240 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9241 | if { (ac_try="$ac_compile" |
| 9242 | case "(($ac_try" in |
| 9243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9244 | *) ac_try_echo=$ac_try;; |
| 9245 | esac |
| 9246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9247 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9248 | ac_status=$? |
| 9249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9250 | rm -f conftest.er1 |
| 9251 | cat conftest.err >&5 |
| 9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9253 | (exit $ac_status); } && { |
| 9254 | test -z "$ac_c_werror_flag" || |
| 9255 | test ! -s conftest.err |
| 9256 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9257 | ac_cv_have_decl_feof_unlocked=yes |
| 9258 | else |
| 9259 | echo "$as_me: failed program was:" >&5 |
| 9260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9261 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9262 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9264 | |
| 9265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9267 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9268 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9269 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9270 | gt_value=1 |
| 9271 | else |
| 9272 | gt_value=0 |
| 9273 | fi |
| 9274 | |
| 9275 | cat >>confdefs.h <<_ACEOF |
| 9276 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9277 | _ACEOF |
| 9278 | |
| 9279 | |
| 9280 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9281 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9282 | 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] | 9283 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9285 | else |
| 9286 | cat >conftest.$ac_ext <<_ACEOF |
| 9287 | /* confdefs.h. */ |
| 9288 | _ACEOF |
| 9289 | cat confdefs.h >>conftest.$ac_ext |
| 9290 | cat >>conftest.$ac_ext <<_ACEOF |
| 9291 | /* end confdefs.h. */ |
| 9292 | #include <stdio.h> |
| 9293 | int |
| 9294 | main () |
| 9295 | { |
| 9296 | |
| 9297 | #ifndef fgets_unlocked |
| 9298 | char *p = (char *) fgets_unlocked; |
| 9299 | #endif |
| 9300 | |
| 9301 | ; |
| 9302 | return 0; |
| 9303 | } |
| 9304 | _ACEOF |
| 9305 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9306 | if { (ac_try="$ac_compile" |
| 9307 | case "(($ac_try" in |
| 9308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9309 | *) ac_try_echo=$ac_try;; |
| 9310 | esac |
| 9311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9312 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9313 | ac_status=$? |
| 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9318 | (exit $ac_status); } && { |
| 9319 | test -z "$ac_c_werror_flag" || |
| 9320 | test ! -s conftest.err |
| 9321 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9322 | ac_cv_have_decl_fgets_unlocked=yes |
| 9323 | else |
| 9324 | echo "$as_me: failed program was:" >&5 |
| 9325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9327 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9328 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9329 | |
| 9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9331 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9333 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9334 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9335 | gt_value=1 |
| 9336 | else |
| 9337 | gt_value=0 |
| 9338 | fi |
| 9339 | |
| 9340 | cat >>confdefs.h <<_ACEOF |
| 9341 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9342 | _ACEOF |
| 9343 | |
| 9344 | |
| 9345 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9346 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9347 | 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] | 9348 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9350 | else |
| 9351 | cat >conftest.$ac_ext <<_ACEOF |
| 9352 | /* confdefs.h. */ |
| 9353 | _ACEOF |
| 9354 | cat confdefs.h >>conftest.$ac_ext |
| 9355 | cat >>conftest.$ac_ext <<_ACEOF |
| 9356 | /* end confdefs.h. */ |
| 9357 | #include <stdio.h> |
| 9358 | int |
| 9359 | main () |
| 9360 | { |
| 9361 | |
| 9362 | #ifndef getc_unlocked |
| 9363 | char *p = (char *) getc_unlocked; |
| 9364 | #endif |
| 9365 | |
| 9366 | ; |
| 9367 | return 0; |
| 9368 | } |
| 9369 | _ACEOF |
| 9370 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9371 | if { (ac_try="$ac_compile" |
| 9372 | case "(($ac_try" in |
| 9373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9374 | *) ac_try_echo=$ac_try;; |
| 9375 | esac |
| 9376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9377 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9378 | ac_status=$? |
| 9379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9380 | rm -f conftest.er1 |
| 9381 | cat conftest.err >&5 |
| 9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9383 | (exit $ac_status); } && { |
| 9384 | test -z "$ac_c_werror_flag" || |
| 9385 | test ! -s conftest.err |
| 9386 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9387 | ac_cv_have_decl_getc_unlocked=yes |
| 9388 | else |
| 9389 | echo "$as_me: failed program was:" >&5 |
| 9390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9392 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9394 | |
| 9395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9396 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9397 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9398 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9399 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9400 | gt_value=1 |
| 9401 | else |
| 9402 | gt_value=0 |
| 9403 | fi |
| 9404 | |
| 9405 | cat >>confdefs.h <<_ACEOF |
| 9406 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9407 | _ACEOF |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 | case $gt_cv_func_printf_posix in |
| 9412 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9413 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9414 | esac |
| 9415 | |
| 9416 | if test "$ac_cv_func_asprintf" = yes; then |
| 9417 | HAVE_ASPRINTF=1 |
| 9418 | else |
| 9419 | HAVE_ASPRINTF=0 |
| 9420 | fi |
| 9421 | |
| 9422 | if test "$ac_cv_func_snprintf" = yes; then |
| 9423 | HAVE_SNPRINTF=1 |
| 9424 | else |
| 9425 | HAVE_SNPRINTF=0 |
| 9426 | fi |
| 9427 | |
| 9428 | if test "$ac_cv_func_wprintf" = yes; then |
| 9429 | HAVE_WPRINTF=1 |
| 9430 | else |
| 9431 | HAVE_WPRINTF=0 |
| 9432 | fi |
| 9433 | |
| 9434 | |
| 9435 | |
| 9436 | |
| 9437 | |
| 9438 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9439 | |
| 9440 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9441 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9442 | for element in $INCICONV; do |
| 9443 | haveit= |
| 9444 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9445 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9446 | acl_save_prefix="$prefix" |
| 9447 | prefix="$acl_final_prefix" |
| 9448 | acl_save_exec_prefix="$exec_prefix" |
| 9449 | exec_prefix="$acl_final_exec_prefix" |
| 9450 | eval x=\"$x\" |
| 9451 | exec_prefix="$acl_save_exec_prefix" |
| 9452 | prefix="$acl_save_prefix" |
| 9453 | |
| 9454 | if test "X$x" = "X$element"; then |
| 9455 | haveit=yes |
| 9456 | break |
| 9457 | fi |
| 9458 | done |
| 9459 | if test -z "$haveit"; then |
| 9460 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9461 | fi |
| 9462 | done |
| 9463 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9464 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9465 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9466 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9467 | if test "${am_cv_func_iconv+set}" = set; then |
| 9468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9469 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9470 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9471 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9472 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9473 | cat >conftest.$ac_ext <<_ACEOF |
| 9474 | /* confdefs.h. */ |
| 9475 | _ACEOF |
| 9476 | cat confdefs.h >>conftest.$ac_ext |
| 9477 | cat >>conftest.$ac_ext <<_ACEOF |
| 9478 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9479 | #include <stdlib.h> |
| 9480 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9481 | int |
| 9482 | main () |
| 9483 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9484 | iconv_t cd = iconv_open("",""); |
| 9485 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9486 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9487 | ; |
| 9488 | return 0; |
| 9489 | } |
| 9490 | _ACEOF |
| 9491 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9492 | if { (ac_try="$ac_link" |
| 9493 | case "(($ac_try" in |
| 9494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9495 | *) ac_try_echo=$ac_try;; |
| 9496 | esac |
| 9497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9498 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | ac_status=$? |
| 9500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9501 | rm -f conftest.er1 |
| 9502 | cat conftest.err >&5 |
| 9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9504 | (exit $ac_status); } && { |
| 9505 | test -z "$ac_c_werror_flag" || |
| 9506 | test ! -s conftest.err |
| 9507 | } && test -s conftest$ac_exeext && |
| 9508 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9509 | am_cv_func_iconv=yes |
| 9510 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9511 | echo "$as_me: failed program was:" >&5 |
| 9512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9514 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9516 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9517 | 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] | 9518 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9519 | if test "$am_cv_func_iconv" != yes; then |
| 9520 | am_save_LIBS="$LIBS" |
| 9521 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9522 | cat >conftest.$ac_ext <<_ACEOF |
| 9523 | /* confdefs.h. */ |
| 9524 | _ACEOF |
| 9525 | cat confdefs.h >>conftest.$ac_ext |
| 9526 | cat >>conftest.$ac_ext <<_ACEOF |
| 9527 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9528 | #include <stdlib.h> |
| 9529 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9530 | int |
| 9531 | main () |
| 9532 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9533 | iconv_t cd = iconv_open("",""); |
| 9534 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9535 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
| 9540 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9541 | if { (ac_try="$ac_link" |
| 9542 | case "(($ac_try" in |
| 9543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9544 | *) ac_try_echo=$ac_try;; |
| 9545 | esac |
| 9546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9547 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9548 | ac_status=$? |
| 9549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9550 | rm -f conftest.er1 |
| 9551 | cat conftest.err >&5 |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9553 | (exit $ac_status); } && { |
| 9554 | test -z "$ac_c_werror_flag" || |
| 9555 | test ! -s conftest.err |
| 9556 | } && test -s conftest$ac_exeext && |
| 9557 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9558 | am_cv_lib_iconv=yes |
| 9559 | am_cv_func_iconv=yes |
| 9560 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9561 | echo "$as_me: failed program was:" >&5 |
| 9562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9563 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9565 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9566 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9567 | 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] | 9568 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9569 | LIBS="$am_save_LIBS" |
| 9570 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9573 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9574 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9575 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9576 | |
| 9577 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9578 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9579 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9580 | |
| 9581 | fi |
| 9582 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9583 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9584 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9585 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9586 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9587 | else |
| 9588 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9589 | LIBICONV= |
| 9590 | LTLIBICONV= |
| 9591 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9592 | |
| 9593 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9594 | |
| 9595 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9596 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9597 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9598 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9600 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9601 | |
| 9602 | cat >conftest.$ac_ext <<_ACEOF |
| 9603 | /* confdefs.h. */ |
| 9604 | _ACEOF |
| 9605 | cat confdefs.h >>conftest.$ac_ext |
| 9606 | cat >>conftest.$ac_ext <<_ACEOF |
| 9607 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9608 | |
| 9609 | #include <stdlib.h> |
| 9610 | #include <iconv.h> |
| 9611 | extern |
| 9612 | #ifdef __cplusplus |
| 9613 | "C" |
| 9614 | #endif |
| 9615 | #if defined(__STDC__) || defined(__cplusplus) |
| 9616 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9617 | #else |
| 9618 | size_t iconv(); |
| 9619 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9621 | int |
| 9622 | main () |
| 9623 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9624 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9625 | ; |
| 9626 | return 0; |
| 9627 | } |
| 9628 | _ACEOF |
| 9629 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9630 | if { (ac_try="$ac_compile" |
| 9631 | case "(($ac_try" in |
| 9632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9633 | *) ac_try_echo=$ac_try;; |
| 9634 | esac |
| 9635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9636 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9637 | ac_status=$? |
| 9638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9639 | rm -f conftest.er1 |
| 9640 | cat conftest.err >&5 |
| 9641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9642 | (exit $ac_status); } && { |
| 9643 | test -z "$ac_c_werror_flag" || |
| 9644 | test ! -s conftest.err |
| 9645 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9646 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9647 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9648 | echo "$as_me: failed program was:" >&5 |
| 9649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9651 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9652 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9653 | |
| 9654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9655 | 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] | 9656 | fi |
| 9657 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9658 | 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] | 9659 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9660 | }$am_cv_proto_iconv" >&5 |
| 9661 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9662 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9663 | |
| 9664 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9665 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9667 | |
| 9668 | fi |
| 9669 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9670 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9671 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9672 | 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] | 9673 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9675 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9676 | cat >conftest.$ac_ext <<_ACEOF |
| 9677 | /* confdefs.h. */ |
| 9678 | _ACEOF |
| 9679 | cat confdefs.h >>conftest.$ac_ext |
| 9680 | cat >>conftest.$ac_ext <<_ACEOF |
| 9681 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9682 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9683 | int |
| 9684 | main () |
| 9685 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9686 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | ; |
| 9688 | return 0; |
| 9689 | } |
| 9690 | _ACEOF |
| 9691 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9692 | if { (ac_try="$ac_link" |
| 9693 | case "(($ac_try" in |
| 9694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9695 | *) ac_try_echo=$ac_try;; |
| 9696 | esac |
| 9697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9698 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9699 | ac_status=$? |
| 9700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9701 | rm -f conftest.er1 |
| 9702 | cat conftest.err >&5 |
| 9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9704 | (exit $ac_status); } && { |
| 9705 | test -z "$ac_c_werror_flag" || |
| 9706 | test ! -s conftest.err |
| 9707 | } && test -s conftest$ac_exeext && |
| 9708 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9709 | am_cv_langinfo_codeset=yes |
| 9710 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9711 | echo "$as_me: failed program was:" >&5 |
| 9712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9714 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9716 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9717 | 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] | 9718 | conftest$ac_exeext conftest.$ac_ext |
| 9719 | |
| 9720 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9721 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9722 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9723 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9724 | |
| 9725 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9726 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9727 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9728 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9729 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9730 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9731 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9732 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9733 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9734 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9735 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9737 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9738 | cat >conftest.$ac_ext <<_ACEOF |
| 9739 | /* confdefs.h. */ |
| 9740 | _ACEOF |
| 9741 | cat confdefs.h >>conftest.$ac_ext |
| 9742 | cat >>conftest.$ac_ext <<_ACEOF |
| 9743 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9744 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9745 | int |
| 9746 | main () |
| 9747 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9748 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9749 | ; |
| 9750 | return 0; |
| 9751 | } |
| 9752 | _ACEOF |
| 9753 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9754 | if { (ac_try="$ac_link" |
| 9755 | case "(($ac_try" in |
| 9756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9757 | *) ac_try_echo=$ac_try;; |
| 9758 | esac |
| 9759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9760 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9761 | ac_status=$? |
| 9762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9763 | rm -f conftest.er1 |
| 9764 | cat conftest.err >&5 |
| 9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9766 | (exit $ac_status); } && { |
| 9767 | test -z "$ac_c_werror_flag" || |
| 9768 | test ! -s conftest.err |
| 9769 | } && test -s conftest$ac_exeext && |
| 9770 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9771 | am_cv_val_LC_MESSAGES=yes |
| 9772 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | echo "$as_me: failed program was:" >&5 |
| 9774 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9776 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9777 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9778 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9779 | 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] | 9780 | conftest$ac_exeext conftest.$ac_ext |
| 9781 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9782 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9783 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9784 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9785 | |
| 9786 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9787 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9788 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9789 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9790 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9791 | |
| 9792 | fi |
| 9793 | |
| 9794 | for ac_prog in bison |
| 9795 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9796 | # 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] | 9797 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9800 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9802 | else |
| 9803 | if test -n "$INTLBISON"; then |
| 9804 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9805 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9807 | for as_dir in $PATH |
| 9808 | do |
| 9809 | IFS=$as_save_IFS |
| 9810 | test -z "$as_dir" && as_dir=. |
| 9811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9812 | 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] | 9813 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9815 | break 2 |
| 9816 | fi |
| 9817 | done |
| 9818 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9819 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9821 | fi |
| 9822 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9823 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9824 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9825 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9826 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9827 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9829 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9830 | fi |
| 9831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9832 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9833 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9834 | done |
| 9835 | |
| 9836 | if test -z "$INTLBISON"; then |
| 9837 | ac_verc_fail=yes |
| 9838 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9839 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9840 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9841 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9842 | case $ac_prog_version in |
| 9843 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9844 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9845 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9846 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9847 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9848 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9849 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9850 | fi |
| 9851 | if test $ac_verc_fail = yes; then |
| 9852 | INTLBISON=: |
| 9853 | fi |
| 9854 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9855 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9856 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9857 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9858 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9860 | |
| 9861 | |
| 9862 | |
| 9863 | |
| 9864 | |
| 9865 | |
| 9866 | |
| 9867 | |
| 9868 | |
| 9869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9870 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9871 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 9872 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9873 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9874 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9875 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9876 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9877 | fi |
| 9878 | |
| 9879 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9880 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9881 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9882 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9883 | |
| 9884 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9885 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9886 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9887 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9888 | LIBINTL= |
| 9889 | LTLIBINTL= |
| 9890 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9891 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9892 | if test "$USE_NLS" = "yes"; then |
| 9893 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9895 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9896 | 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] | 9897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9898 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9899 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9900 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9901 | else |
| 9902 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9903 | fi |
| 9904 | |
| 9905 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9906 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9907 | |
| 9908 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9909 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9911 | |
| 9912 | |
| 9913 | |
| 9914 | |
| 9915 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9916 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9917 | 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] | 9918 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9920 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9921 | cat >conftest.$ac_ext <<_ACEOF |
| 9922 | /* confdefs.h. */ |
| 9923 | _ACEOF |
| 9924 | cat confdefs.h >>conftest.$ac_ext |
| 9925 | cat >>conftest.$ac_ext <<_ACEOF |
| 9926 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9927 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9928 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9929 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9930 | int |
| 9931 | main () |
| 9932 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9933 | bindtextdomain ("", ""); |
| 9934 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9935 | ; |
| 9936 | return 0; |
| 9937 | } |
| 9938 | _ACEOF |
| 9939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9940 | if { (ac_try="$ac_link" |
| 9941 | case "(($ac_try" in |
| 9942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9943 | *) ac_try_echo=$ac_try;; |
| 9944 | esac |
| 9945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9946 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9947 | ac_status=$? |
| 9948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9949 | rm -f conftest.er1 |
| 9950 | cat conftest.err >&5 |
| 9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9952 | (exit $ac_status); } && { |
| 9953 | test -z "$ac_c_werror_flag" || |
| 9954 | test ! -s conftest.err |
| 9955 | } && test -s conftest$ac_exeext && |
| 9956 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9957 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9958 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9959 | echo "$as_me: failed program was:" >&5 |
| 9960 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9962 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9964 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9965 | 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] | 9966 | conftest$ac_exeext conftest.$ac_ext |
| 9967 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9968 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9969 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9970 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9971 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | |
| 9973 | |
| 9974 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9975 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9976 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9977 | acl_save_prefix="$prefix" |
| 9978 | prefix="$acl_final_prefix" |
| 9979 | acl_save_exec_prefix="$exec_prefix" |
| 9980 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9981 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9982 | eval additional_includedir=\"$includedir\" |
| 9983 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9984 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9985 | exec_prefix="$acl_save_exec_prefix" |
| 9986 | prefix="$acl_save_prefix" |
| 9987 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9989 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9990 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9991 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9992 | if test "X$withval" = "Xno"; then |
| 9993 | use_additional=no |
| 9994 | else |
| 9995 | if test "X$withval" = "X"; then |
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 | |
| 10008 | else |
| 10009 | additional_includedir="$withval/include" |
| 10010 | additional_libdir="$withval/lib" |
| 10011 | fi |
| 10012 | fi |
| 10013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10014 | fi |
| 10015 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10016 | LIBINTL= |
| 10017 | LTLIBINTL= |
| 10018 | INCINTL= |
| 10019 | rpathdirs= |
| 10020 | ltrpathdirs= |
| 10021 | names_already_handled= |
| 10022 | names_next_round='intl ' |
| 10023 | while test -n "$names_next_round"; do |
| 10024 | names_this_round="$names_next_round" |
| 10025 | names_next_round= |
| 10026 | for name in $names_this_round; do |
| 10027 | already_handled= |
| 10028 | for n in $names_already_handled; do |
| 10029 | if test "$n" = "$name"; then |
| 10030 | already_handled=yes |
| 10031 | break |
| 10032 | fi |
| 10033 | done |
| 10034 | if test -z "$already_handled"; then |
| 10035 | names_already_handled="$names_already_handled $name" |
| 10036 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10037 | eval value=\"\$HAVE_LIB$uppername\" |
| 10038 | if test -n "$value"; then |
| 10039 | if test "$value" = yes; then |
| 10040 | eval value=\"\$LIB$uppername\" |
| 10041 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10042 | eval value=\"\$LTLIB$uppername\" |
| 10043 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10044 | else |
| 10045 | : |
| 10046 | fi |
| 10047 | else |
| 10048 | found_dir= |
| 10049 | found_la= |
| 10050 | found_so= |
| 10051 | found_a= |
| 10052 | if test $use_additional = yes; then |
| 10053 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10054 | found_dir="$additional_libdir" |
| 10055 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10056 | if test -f "$additional_libdir/lib$name.la"; then |
| 10057 | found_la="$additional_libdir/lib$name.la" |
| 10058 | fi |
| 10059 | else |
| 10060 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10061 | found_dir="$additional_libdir" |
| 10062 | found_a="$additional_libdir/lib$name.$libext" |
| 10063 | if test -f "$additional_libdir/lib$name.la"; then |
| 10064 | found_la="$additional_libdir/lib$name.la" |
| 10065 | fi |
| 10066 | fi |
| 10067 | fi |
| 10068 | fi |
| 10069 | if test "X$found_dir" = "X"; then |
| 10070 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10071 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10072 | acl_save_prefix="$prefix" |
| 10073 | prefix="$acl_final_prefix" |
| 10074 | acl_save_exec_prefix="$exec_prefix" |
| 10075 | exec_prefix="$acl_final_exec_prefix" |
| 10076 | eval x=\"$x\" |
| 10077 | exec_prefix="$acl_save_exec_prefix" |
| 10078 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10079 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10080 | case "$x" in |
| 10081 | -L*) |
| 10082 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10083 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10084 | found_dir="$dir" |
| 10085 | found_so="$dir/lib$name.$shlibext" |
| 10086 | if test -f "$dir/lib$name.la"; then |
| 10087 | found_la="$dir/lib$name.la" |
| 10088 | fi |
| 10089 | else |
| 10090 | if test -f "$dir/lib$name.$libext"; then |
| 10091 | found_dir="$dir" |
| 10092 | found_a="$dir/lib$name.$libext" |
| 10093 | if test -f "$dir/lib$name.la"; then |
| 10094 | found_la="$dir/lib$name.la" |
| 10095 | fi |
| 10096 | fi |
| 10097 | fi |
| 10098 | ;; |
| 10099 | esac |
| 10100 | if test "X$found_dir" != "X"; then |
| 10101 | break |
| 10102 | fi |
| 10103 | done |
| 10104 | fi |
| 10105 | if test "X$found_dir" != "X"; then |
| 10106 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10107 | if test "X$found_so" != "X"; then |
| 10108 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10109 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10110 | else |
| 10111 | haveit= |
| 10112 | for x in $ltrpathdirs; do |
| 10113 | if test "X$x" = "X$found_dir"; then |
| 10114 | haveit=yes |
| 10115 | break |
| 10116 | fi |
| 10117 | done |
| 10118 | if test -z "$haveit"; then |
| 10119 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10120 | fi |
| 10121 | if test "$hardcode_direct" = yes; then |
| 10122 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10123 | else |
| 10124 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10125 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10126 | haveit= |
| 10127 | for x in $rpathdirs; do |
| 10128 | if test "X$x" = "X$found_dir"; then |
| 10129 | haveit=yes |
| 10130 | break |
| 10131 | fi |
| 10132 | done |
| 10133 | if test -z "$haveit"; then |
| 10134 | rpathdirs="$rpathdirs $found_dir" |
| 10135 | fi |
| 10136 | else |
| 10137 | haveit= |
| 10138 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10139 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10140 | acl_save_prefix="$prefix" |
| 10141 | prefix="$acl_final_prefix" |
| 10142 | acl_save_exec_prefix="$exec_prefix" |
| 10143 | exec_prefix="$acl_final_exec_prefix" |
| 10144 | eval x=\"$x\" |
| 10145 | exec_prefix="$acl_save_exec_prefix" |
| 10146 | prefix="$acl_save_prefix" |
| 10147 | |
| 10148 | if test "X$x" = "X-L$found_dir"; then |
| 10149 | haveit=yes |
| 10150 | break |
| 10151 | fi |
| 10152 | done |
| 10153 | if test -z "$haveit"; then |
| 10154 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10155 | fi |
| 10156 | if test "$hardcode_minus_L" != no; then |
| 10157 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10158 | else |
| 10159 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10160 | fi |
| 10161 | fi |
| 10162 | fi |
| 10163 | fi |
| 10164 | else |
| 10165 | if test "X$found_a" != "X"; then |
| 10166 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10167 | else |
| 10168 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10169 | fi |
| 10170 | fi |
| 10171 | additional_includedir= |
| 10172 | case "$found_dir" in |
| 10173 | */lib | */lib/) |
| 10174 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10175 | additional_includedir="$basedir/include" |
| 10176 | ;; |
| 10177 | esac |
| 10178 | if test "X$additional_includedir" != "X"; then |
| 10179 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10180 | haveit= |
| 10181 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10182 | if test -n "$GCC"; then |
| 10183 | case $host_os in |
| 10184 | linux*) haveit=yes;; |
| 10185 | esac |
| 10186 | fi |
| 10187 | fi |
| 10188 | if test -z "$haveit"; then |
| 10189 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10190 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10191 | acl_save_prefix="$prefix" |
| 10192 | prefix="$acl_final_prefix" |
| 10193 | acl_save_exec_prefix="$exec_prefix" |
| 10194 | exec_prefix="$acl_final_exec_prefix" |
| 10195 | eval x=\"$x\" |
| 10196 | exec_prefix="$acl_save_exec_prefix" |
| 10197 | prefix="$acl_save_prefix" |
| 10198 | |
| 10199 | if test "X$x" = "X-I$additional_includedir"; then |
| 10200 | haveit=yes |
| 10201 | break |
| 10202 | fi |
| 10203 | done |
| 10204 | if test -z "$haveit"; then |
| 10205 | if test -d "$additional_includedir"; then |
| 10206 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10207 | fi |
| 10208 | fi |
| 10209 | fi |
| 10210 | fi |
| 10211 | fi |
| 10212 | if test -n "$found_la"; then |
| 10213 | save_libdir="$libdir" |
| 10214 | case "$found_la" in |
| 10215 | */* | *\\*) . "$found_la" ;; |
| 10216 | *) . "./$found_la" ;; |
| 10217 | esac |
| 10218 | libdir="$save_libdir" |
| 10219 | for dep in $dependency_libs; do |
| 10220 | case "$dep" in |
| 10221 | -L*) |
| 10222 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10223 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10224 | haveit= |
| 10225 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10226 | if test -n "$GCC"; then |
| 10227 | case $host_os in |
| 10228 | linux*) haveit=yes;; |
| 10229 | esac |
| 10230 | fi |
| 10231 | fi |
| 10232 | if test -z "$haveit"; then |
| 10233 | haveit= |
| 10234 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10235 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10236 | acl_save_prefix="$prefix" |
| 10237 | prefix="$acl_final_prefix" |
| 10238 | acl_save_exec_prefix="$exec_prefix" |
| 10239 | exec_prefix="$acl_final_exec_prefix" |
| 10240 | eval x=\"$x\" |
| 10241 | exec_prefix="$acl_save_exec_prefix" |
| 10242 | prefix="$acl_save_prefix" |
| 10243 | |
| 10244 | if test "X$x" = "X-L$additional_libdir"; then |
| 10245 | haveit=yes |
| 10246 | break |
| 10247 | fi |
| 10248 | done |
| 10249 | if test -z "$haveit"; then |
| 10250 | if test -d "$additional_libdir"; then |
| 10251 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10252 | fi |
| 10253 | fi |
| 10254 | haveit= |
| 10255 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10256 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10257 | acl_save_prefix="$prefix" |
| 10258 | prefix="$acl_final_prefix" |
| 10259 | acl_save_exec_prefix="$exec_prefix" |
| 10260 | exec_prefix="$acl_final_exec_prefix" |
| 10261 | eval x=\"$x\" |
| 10262 | exec_prefix="$acl_save_exec_prefix" |
| 10263 | prefix="$acl_save_prefix" |
| 10264 | |
| 10265 | if test "X$x" = "X-L$additional_libdir"; then |
| 10266 | haveit=yes |
| 10267 | break |
| 10268 | fi |
| 10269 | done |
| 10270 | if test -z "$haveit"; then |
| 10271 | if test -d "$additional_libdir"; then |
| 10272 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10273 | fi |
| 10274 | fi |
| 10275 | fi |
| 10276 | fi |
| 10277 | ;; |
| 10278 | -R*) |
| 10279 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10280 | if test "$enable_rpath" != no; then |
| 10281 | haveit= |
| 10282 | for x in $rpathdirs; do |
| 10283 | if test "X$x" = "X$dir"; then |
| 10284 | haveit=yes |
| 10285 | break |
| 10286 | fi |
| 10287 | done |
| 10288 | if test -z "$haveit"; then |
| 10289 | rpathdirs="$rpathdirs $dir" |
| 10290 | fi |
| 10291 | haveit= |
| 10292 | for x in $ltrpathdirs; do |
| 10293 | if test "X$x" = "X$dir"; then |
| 10294 | haveit=yes |
| 10295 | break |
| 10296 | fi |
| 10297 | done |
| 10298 | if test -z "$haveit"; then |
| 10299 | ltrpathdirs="$ltrpathdirs $dir" |
| 10300 | fi |
| 10301 | fi |
| 10302 | ;; |
| 10303 | -l*) |
| 10304 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10305 | ;; |
| 10306 | *.la) |
| 10307 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10308 | ;; |
| 10309 | *) |
| 10310 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10311 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10312 | ;; |
| 10313 | esac |
| 10314 | done |
| 10315 | fi |
| 10316 | else |
| 10317 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10318 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10319 | fi |
| 10320 | fi |
| 10321 | fi |
| 10322 | done |
| 10323 | done |
| 10324 | if test "X$rpathdirs" != "X"; then |
| 10325 | if test -n "$hardcode_libdir_separator"; then |
| 10326 | alldirs= |
| 10327 | for found_dir in $rpathdirs; do |
| 10328 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10329 | done |
| 10330 | acl_save_libdir="$libdir" |
| 10331 | libdir="$alldirs" |
| 10332 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10333 | libdir="$acl_save_libdir" |
| 10334 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10335 | else |
| 10336 | for found_dir in $rpathdirs; do |
| 10337 | acl_save_libdir="$libdir" |
| 10338 | libdir="$found_dir" |
| 10339 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10340 | libdir="$acl_save_libdir" |
| 10341 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10342 | done |
| 10343 | fi |
| 10344 | fi |
| 10345 | if test "X$ltrpathdirs" != "X"; then |
| 10346 | for found_dir in $ltrpathdirs; do |
| 10347 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10348 | done |
| 10349 | fi |
| 10350 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10351 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10352 | 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] | 10353 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10355 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10356 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10357 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10358 | gt_save_LIBS="$LIBS" |
| 10359 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10360 | cat >conftest.$ac_ext <<_ACEOF |
| 10361 | /* confdefs.h. */ |
| 10362 | _ACEOF |
| 10363 | cat confdefs.h >>conftest.$ac_ext |
| 10364 | cat >>conftest.$ac_ext <<_ACEOF |
| 10365 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10366 | #include <libintl.h> |
| 10367 | extern int _nl_msg_cat_cntr; |
| 10368 | extern |
| 10369 | #ifdef __cplusplus |
| 10370 | "C" |
| 10371 | #endif |
| 10372 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10373 | int |
| 10374 | main () |
| 10375 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10376 | bindtextdomain ("", ""); |
| 10377 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10378 | ; |
| 10379 | return 0; |
| 10380 | } |
| 10381 | _ACEOF |
| 10382 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10383 | if { (ac_try="$ac_link" |
| 10384 | case "(($ac_try" in |
| 10385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10386 | *) ac_try_echo=$ac_try;; |
| 10387 | esac |
| 10388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10389 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10390 | ac_status=$? |
| 10391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10392 | rm -f conftest.er1 |
| 10393 | cat conftest.err >&5 |
| 10394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10395 | (exit $ac_status); } && { |
| 10396 | test -z "$ac_c_werror_flag" || |
| 10397 | test ! -s conftest.err |
| 10398 | } && test -s conftest$ac_exeext && |
| 10399 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10400 | gt_cv_func_gnugettext1_libintl=yes |
| 10401 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10402 | echo "$as_me: failed program was:" >&5 |
| 10403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10405 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10407 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10408 | 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] | 10409 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10410 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10411 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10412 | cat >conftest.$ac_ext <<_ACEOF |
| 10413 | /* confdefs.h. */ |
| 10414 | _ACEOF |
| 10415 | cat confdefs.h >>conftest.$ac_ext |
| 10416 | cat >>conftest.$ac_ext <<_ACEOF |
| 10417 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10418 | #include <libintl.h> |
| 10419 | extern int _nl_msg_cat_cntr; |
| 10420 | extern |
| 10421 | #ifdef __cplusplus |
| 10422 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10423 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10424 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10425 | int |
| 10426 | main () |
| 10427 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10428 | bindtextdomain ("", ""); |
| 10429 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | ; |
| 10431 | return 0; |
| 10432 | } |
| 10433 | _ACEOF |
| 10434 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10435 | if { (ac_try="$ac_link" |
| 10436 | case "(($ac_try" in |
| 10437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10438 | *) ac_try_echo=$ac_try;; |
| 10439 | esac |
| 10440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10441 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10442 | ac_status=$? |
| 10443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10444 | rm -f conftest.er1 |
| 10445 | cat conftest.err >&5 |
| 10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10447 | (exit $ac_status); } && { |
| 10448 | test -z "$ac_c_werror_flag" || |
| 10449 | test ! -s conftest.err |
| 10450 | } && test -s conftest$ac_exeext && |
| 10451 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10452 | LIBINTL="$LIBINTL $LIBICONV" |
| 10453 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10454 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10455 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10456 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | echo "$as_me: failed program was:" >&5 |
| 10458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10460 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10461 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10462 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10463 | 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] | 10464 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10465 | fi |
| 10466 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10467 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10468 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10469 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10470 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10471 | fi |
| 10472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10473 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10474 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10475 | && test "$PACKAGE" != gettext-runtime \ |
| 10476 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10477 | gt_use_preinstalled_gnugettext=yes |
| 10478 | else |
| 10479 | LIBINTL= |
| 10480 | LTLIBINTL= |
| 10481 | INCINTL= |
| 10482 | fi |
| 10483 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10484 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10485 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10486 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10487 | fi |
| 10488 | fi |
| 10489 | |
| 10490 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10491 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10492 | USE_INCLUDED_LIBINTL=yes |
| 10493 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10494 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10495 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10496 | fi |
| 10497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10498 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10499 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10500 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10501 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10502 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10503 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10504 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10505 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10506 | |
| 10507 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10508 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10509 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10510 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10511 | else |
| 10512 | USE_NLS=no |
| 10513 | fi |
| 10514 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10516 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10517 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10518 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10519 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10521 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10522 | 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] | 10523 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10524 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10525 | gt_source="external libintl" |
| 10526 | else |
| 10527 | gt_source="libc" |
| 10528 | fi |
| 10529 | else |
| 10530 | gt_source="included intl directory" |
| 10531 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10532 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10533 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10534 | fi |
| 10535 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10536 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10537 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10538 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10539 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10540 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10541 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10542 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10543 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10545 | for element in $INCINTL; do |
| 10546 | haveit= |
| 10547 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10548 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10549 | acl_save_prefix="$prefix" |
| 10550 | prefix="$acl_final_prefix" |
| 10551 | acl_save_exec_prefix="$exec_prefix" |
| 10552 | exec_prefix="$acl_final_exec_prefix" |
| 10553 | eval x=\"$x\" |
| 10554 | exec_prefix="$acl_save_exec_prefix" |
| 10555 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10556 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10557 | if test "X$x" = "X$element"; then |
| 10558 | haveit=yes |
| 10559 | break |
| 10560 | fi |
| 10561 | done |
| 10562 | if test -z "$haveit"; then |
| 10563 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10564 | fi |
| 10565 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10566 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10567 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10569 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10570 | cat >>confdefs.h <<\_ACEOF |
| 10571 | #define HAVE_GETTEXT 1 |
| 10572 | _ACEOF |
| 10573 | |
| 10574 | |
| 10575 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10576 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10577 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10578 | |
| 10579 | fi |
| 10580 | |
| 10581 | POSUB=po |
| 10582 | fi |
| 10583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10584 | |
| 10585 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10586 | BUILD_INCLUDED_LIBINTL=yes |
| 10587 | fi |
| 10588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10589 | |
| 10590 | |
| 10591 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10592 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10593 | nls_cv_header_intl= |
| 10594 | nls_cv_header_libgt= |
| 10595 | |
| 10596 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10597 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10598 | |
| 10599 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10601 | |
| 10602 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10603 | |
| 10604 | |
| 10605 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10606 | INTLOBJS="\$(GETTOBJS)" |
| 10607 | fi |
| 10608 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10609 | |
| 10610 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10611 | |
| 10612 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10613 | |
| 10614 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10615 | |
| 10616 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10622 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10623 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10624 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10625 | 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] | 10626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10627 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10628 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10629 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10630 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10631 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10632 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10633 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10634 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10635 | *@@@%%%=?*=@@@%%%*) |
| 10636 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10637 | *) |
| 10638 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10639 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10640 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10641 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10642 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10643 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10644 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10645 | SET_MAKE= |
| 10646 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10648 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10649 | SET_MAKE="MAKE=${MAKE-make}" |
| 10650 | fi |
| 10651 | |
| 10652 | # Extract the first word of "ln", so it can be a program name with args. |
| 10653 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10654 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | if test "${ac_cv_path_LN+set}" = set; then |
| 10657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10658 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10659 | case $LN in |
| 10660 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10661 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10662 | ;; |
| 10663 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10665 | for as_dir in $PATH |
| 10666 | do |
| 10667 | IFS=$as_save_IFS |
| 10668 | test -z "$as_dir" && as_dir=. |
| 10669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10670 | 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] | 10671 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10673 | break 2 |
| 10674 | fi |
| 10675 | done |
| 10676 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10677 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10678 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10679 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10680 | ;; |
| 10681 | esac |
| 10682 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10683 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10684 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10685 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10686 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10687 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10688 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10689 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10690 | fi |
| 10691 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10692 | |
| 10693 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10694 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10695 | LN_S=$as_ln_s |
| 10696 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10697 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10698 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10699 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10700 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10701 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10702 | fi |
| 10703 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10704 | # Extract the first word of "mv", so it can be a program name with args. |
| 10705 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10708 | if test "${ac_cv_path_MV+set}" = set; then |
| 10709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10710 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | case $MV in |
| 10712 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10713 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10714 | ;; |
| 10715 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10717 | for as_dir in $PATH |
| 10718 | do |
| 10719 | IFS=$as_save_IFS |
| 10720 | test -z "$as_dir" && as_dir=. |
| 10721 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10722 | 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] | 10723 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10725 | break 2 |
| 10726 | fi |
| 10727 | done |
| 10728 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10729 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10731 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10732 | ;; |
| 10733 | esac |
| 10734 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10735 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10736 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10737 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10738 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10739 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10740 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10741 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10742 | fi |
| 10743 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10744 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10745 | # Extract the first word of "cp", so it can be a program name with args. |
| 10746 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10747 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10749 | if test "${ac_cv_path_CP+set}" = set; then |
| 10750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10751 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10752 | case $CP in |
| 10753 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10754 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10755 | ;; |
| 10756 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10758 | for as_dir in $PATH |
| 10759 | do |
| 10760 | IFS=$as_save_IFS |
| 10761 | test -z "$as_dir" && as_dir=. |
| 10762 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10763 | 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] | 10764 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10766 | break 2 |
| 10767 | fi |
| 10768 | done |
| 10769 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10770 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10771 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10772 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10773 | ;; |
| 10774 | esac |
| 10775 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10776 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10777 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10778 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10779 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10780 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10781 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10782 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10783 | fi |
| 10784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10785 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10786 | # Extract the first word of "rm", so it can be a program name with args. |
| 10787 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10788 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10790 | if test "${ac_cv_path_RM+set}" = set; then |
| 10791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10792 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10793 | case $RM in |
| 10794 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10795 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10796 | ;; |
| 10797 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10799 | for as_dir in $PATH |
| 10800 | do |
| 10801 | IFS=$as_save_IFS |
| 10802 | test -z "$as_dir" && as_dir=. |
| 10803 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10804 | 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] | 10805 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10807 | break 2 |
| 10808 | fi |
| 10809 | done |
| 10810 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10811 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10812 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10813 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10814 | ;; |
| 10815 | esac |
| 10816 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10817 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10818 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10819 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 10820 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10821 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10823 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10824 | fi |
| 10825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10826 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10827 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10828 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10831 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10833 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10834 | case $CHMOD in |
| 10835 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10836 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10837 | ;; |
| 10838 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10840 | for as_dir in $PATH |
| 10841 | do |
| 10842 | IFS=$as_save_IFS |
| 10843 | test -z "$as_dir" && as_dir=. |
| 10844 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10845 | 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] | 10846 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10848 | break 2 |
| 10849 | fi |
| 10850 | done |
| 10851 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10852 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10853 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10854 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10855 | ;; |
| 10856 | esac |
| 10857 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10858 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10859 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10860 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10861 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10862 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10863 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10864 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10865 | fi |
| 10866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10867 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10868 | for ac_prog in gawk mawk nawk awk |
| 10869 | do |
| 10870 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10871 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10874 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10876 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10877 | if test -n "$AWK"; then |
| 10878 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10879 | else |
| 10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10881 | for as_dir in $PATH |
| 10882 | do |
| 10883 | IFS=$as_save_IFS |
| 10884 | test -z "$as_dir" && as_dir=. |
| 10885 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10886 | 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] | 10887 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10889 | break 2 |
| 10890 | fi |
| 10891 | done |
| 10892 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10893 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10894 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10895 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10896 | fi |
| 10897 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10898 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10899 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10900 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10901 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10903 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10904 | fi |
| 10905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10906 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10907 | test -n "$AWK" && break |
| 10908 | done |
| 10909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10910 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 10911 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 10912 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10914 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10915 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10916 | then ac_cv_path_EGREP="$GREP -E" |
| 10917 | else |
| 10918 | # Extract the first word of "egrep" to use in msg output |
| 10919 | if test -z "$EGREP"; then |
| 10920 | set dummy egrep; ac_prog_name=$2 |
| 10921 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 10922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10923 | else |
| 10924 | ac_path_EGREP_found=false |
| 10925 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10927 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10928 | do |
| 10929 | IFS=$as_save_IFS |
| 10930 | test -z "$as_dir" && as_dir=. |
| 10931 | for ac_prog in egrep; do |
| 10932 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10933 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10934 | { 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] | 10935 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 10936 | # Check for GNU $ac_path_EGREP |
| 10937 | case `"$ac_path_EGREP" --version 2>&1` in |
| 10938 | *GNU*) |
| 10939 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10940 | *) |
| 10941 | ac_count=0 |
| 10942 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 10943 | while : |
| 10944 | do |
| 10945 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10946 | mv "conftest.tmp" "conftest.in" |
| 10947 | cp "conftest.in" "conftest.nl" |
| 10948 | echo 'EGREP' >> "conftest.nl" |
| 10949 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10950 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10951 | ac_count=`expr $ac_count + 1` |
| 10952 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10953 | # Best one so far, save it but keep looking for a better one |
| 10954 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 10955 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10956 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10957 | # 10*(2^10) chars as input seems more than enough |
| 10958 | test $ac_count -gt 10 && break |
| 10959 | done |
| 10960 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10961 | esac |
| 10962 | |
| 10963 | |
| 10964 | $ac_path_EGREP_found && break 3 |
| 10965 | done |
| 10966 | done |
| 10967 | |
| 10968 | done |
| 10969 | IFS=$as_save_IFS |
| 10970 | |
| 10971 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10972 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10973 | |
| 10974 | EGREP="$ac_cv_path_EGREP" |
| 10975 | if test -z "$EGREP"; then |
| 10976 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 10977 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 10978 | { (exit 1); exit 1; }; } |
| 10979 | fi |
| 10980 | |
| 10981 | else |
| 10982 | ac_cv_path_EGREP=$EGREP |
| 10983 | fi |
| 10984 | |
| 10985 | |
| 10986 | fi |
| 10987 | fi |
| 10988 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 10989 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 10990 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10991 | |
| 10992 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10993 | # Extract the first word of "sed", so it can be a program name with args. |
| 10994 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10995 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10997 | if test "${ac_cv_path_SED+set}" = set; then |
| 10998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10999 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11000 | case $SED in |
| 11001 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11002 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11003 | ;; |
| 11004 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11006 | for as_dir in $PATH |
| 11007 | do |
| 11008 | IFS=$as_save_IFS |
| 11009 | test -z "$as_dir" && as_dir=. |
| 11010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11011 | 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] | 11012 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11014 | break 2 |
| 11015 | fi |
| 11016 | done |
| 11017 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11018 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11019 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11020 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11021 | ;; |
| 11022 | esac |
| 11023 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11024 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11025 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11026 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11027 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11028 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11029 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11030 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11031 | fi |
| 11032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11033 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11034 | # Extract the first word of "perl", so it can be a program name with args. |
| 11035 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11036 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11038 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11041 | case $PERL in |
| 11042 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11043 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11044 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11045 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11047 | for as_dir in $PATH |
| 11048 | do |
| 11049 | IFS=$as_save_IFS |
| 11050 | test -z "$as_dir" && as_dir=. |
| 11051 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11052 | 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] | 11053 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11055 | break 2 |
| 11056 | fi |
| 11057 | done |
| 11058 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11059 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11060 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11061 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11062 | ;; |
| 11063 | esac |
| 11064 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11065 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11066 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11067 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11068 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11069 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11070 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11071 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11072 | fi |
| 11073 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11074 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11075 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11076 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11077 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11079 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11081 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11082 | case $LDCONFIG in |
| 11083 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11084 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11085 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11086 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11088 | for as_dir in $PATH |
| 11089 | do |
| 11090 | IFS=$as_save_IFS |
| 11091 | test -z "$as_dir" && as_dir=. |
| 11092 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11093 | 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] | 11094 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11096 | break 2 |
| 11097 | fi |
| 11098 | done |
| 11099 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11101 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11102 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11103 | ;; |
| 11104 | esac |
| 11105 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11106 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11107 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11108 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11109 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11110 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11112 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11113 | fi |
| 11114 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11115 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11116 | if test -n "$ac_tool_prefix"; then |
| 11117 | # 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] | 11118 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11119 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11121 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11123 | else |
| 11124 | if test -n "$AR"; then |
| 11125 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11126 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11128 | for as_dir in $PATH |
| 11129 | do |
| 11130 | IFS=$as_save_IFS |
| 11131 | test -z "$as_dir" && as_dir=. |
| 11132 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11133 | 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] | 11134 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11136 | break 2 |
| 11137 | fi |
| 11138 | done |
| 11139 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11140 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11141 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11142 | fi |
| 11143 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11144 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11145 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11146 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11147 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11148 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11150 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11151 | fi |
| 11152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11154 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11155 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11156 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11157 | # Extract the first word of "ar", so it can be a program name with args. |
| 11158 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11161 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11163 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11164 | if test -n "$ac_ct_AR"; then |
| 11165 | 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] | 11166 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11168 | for as_dir in $PATH |
| 11169 | do |
| 11170 | IFS=$as_save_IFS |
| 11171 | test -z "$as_dir" && as_dir=. |
| 11172 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11173 | 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] | 11174 | ac_cv_prog_ac_ct_AR="ar" |
| 11175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11176 | break 2 |
| 11177 | fi |
| 11178 | done |
| 11179 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11180 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11181 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11182 | fi |
| 11183 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11184 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11185 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11186 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11187 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11188 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11190 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11191 | fi |
| 11192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11193 | if test "x$ac_ct_AR" = x; then |
| 11194 | AR="ar" |
| 11195 | else |
| 11196 | case $cross_compiling:$ac_tool_warned in |
| 11197 | yes:) |
| 11198 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11199 | whose name does not start with the host triplet. If you think this |
| 11200 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11201 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11202 | whose name does not start with the host triplet. If you think this |
| 11203 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11204 | ac_tool_warned=yes ;; |
| 11205 | esac |
| 11206 | AR=$ac_ct_AR |
| 11207 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11208 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11209 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11210 | fi |
| 11211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11212 | if test -n "$ac_tool_prefix"; then |
| 11213 | # 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] | 11214 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11217 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11219 | else |
| 11220 | if test -n "$RANLIB"; then |
| 11221 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11222 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11224 | for as_dir in $PATH |
| 11225 | do |
| 11226 | IFS=$as_save_IFS |
| 11227 | test -z "$as_dir" && as_dir=. |
| 11228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11229 | 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] | 11230 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11232 | break 2 |
| 11233 | fi |
| 11234 | done |
| 11235 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11236 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11238 | fi |
| 11239 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11240 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11241 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11242 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11243 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11244 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11246 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11247 | fi |
| 11248 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11250 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11251 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11253 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11254 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11257 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11259 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11260 | if test -n "$ac_ct_RANLIB"; then |
| 11261 | 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] | 11262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11264 | for as_dir in $PATH |
| 11265 | do |
| 11266 | IFS=$as_save_IFS |
| 11267 | test -z "$as_dir" && as_dir=. |
| 11268 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11269 | 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] | 11270 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11272 | break 2 |
| 11273 | fi |
| 11274 | done |
| 11275 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11276 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11278 | fi |
| 11279 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11280 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11281 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11282 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11283 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11284 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11285 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11286 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11287 | fi |
| 11288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11289 | if test "x$ac_ct_RANLIB" = x; then |
| 11290 | RANLIB=":" |
| 11291 | else |
| 11292 | case $cross_compiling:$ac_tool_warned in |
| 11293 | yes:) |
| 11294 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11295 | whose name does not start with the host triplet. If you think this |
| 11296 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11297 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11298 | whose name does not start with the host triplet. If you think this |
| 11299 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11300 | ac_tool_warned=yes ;; |
| 11301 | esac |
| 11302 | RANLIB=$ac_ct_RANLIB |
| 11303 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11304 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11306 | fi |
| 11307 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | if test -n "$ac_tool_prefix"; then |
| 11309 | # 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] | 11310 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11311 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11313 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | else |
| 11316 | if test -n "$STRIP"; then |
| 11317 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11318 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11320 | for as_dir in $PATH |
| 11321 | do |
| 11322 | IFS=$as_save_IFS |
| 11323 | test -z "$as_dir" && as_dir=. |
| 11324 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11325 | 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] | 11326 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11327 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11328 | break 2 |
| 11329 | fi |
| 11330 | done |
| 11331 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11332 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11333 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11334 | fi |
| 11335 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11336 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11337 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11338 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11339 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11340 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11341 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11342 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11343 | fi |
| 11344 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11345 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11346 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11347 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11348 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11349 | # Extract the first word of "strip", so it can be a program name with args. |
| 11350 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11353 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11355 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11356 | if test -n "$ac_ct_STRIP"; then |
| 11357 | 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] | 11358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11360 | for as_dir in $PATH |
| 11361 | do |
| 11362 | IFS=$as_save_IFS |
| 11363 | test -z "$as_dir" && as_dir=. |
| 11364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11365 | 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] | 11366 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11368 | break 2 |
| 11369 | fi |
| 11370 | done |
| 11371 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11372 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11373 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11374 | fi |
| 11375 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11377 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11378 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11379 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11380 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11382 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11383 | fi |
| 11384 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11385 | if test "x$ac_ct_STRIP" = x; then |
| 11386 | STRIP=":" |
| 11387 | else |
| 11388 | case $cross_compiling:$ac_tool_warned in |
| 11389 | yes:) |
| 11390 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11391 | whose name does not start with the host triplet. If you think this |
| 11392 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11393 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11394 | whose name does not start with the host triplet. If you think this |
| 11395 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11396 | ac_tool_warned=yes ;; |
| 11397 | esac |
| 11398 | STRIP=$ac_ct_STRIP |
| 11399 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11400 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11401 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11402 | fi |
| 11403 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11404 | # Find a good install program. We prefer a C program (faster), |
| 11405 | # so one script is as good as another. But avoid the broken or |
| 11406 | # incompatible versions: |
| 11407 | # SysV /etc/install, /usr/sbin/install |
| 11408 | # SunOS /usr/etc/install |
| 11409 | # IRIX /sbin/install |
| 11410 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11411 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11412 | # 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] | 11413 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11414 | # 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] | 11415 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11416 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11417 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11418 | 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] | 11419 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11420 | if test "${ac_cv_path_install+set}" = set; then |
| 11421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11422 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11424 | for as_dir in $PATH |
| 11425 | do |
| 11426 | IFS=$as_save_IFS |
| 11427 | test -z "$as_dir" && as_dir=. |
| 11428 | # Account for people who put trailing slashes in PATH elements. |
| 11429 | case $as_dir/ in |
| 11430 | ./ | .// | /cC/* | \ |
| 11431 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11432 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11433 | /usr/ucb/* ) ;; |
| 11434 | *) |
| 11435 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11436 | # Don't use installbsd from OSF since it installs stuff as root |
| 11437 | # by default. |
| 11438 | for ac_prog in ginstall scoinst install; do |
| 11439 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11440 | 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] | 11441 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11442 | 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] | 11443 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11444 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11445 | elif test $ac_prog = install && |
| 11446 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11447 | # program-specific install script used by HP pwplus--don't use. |
| 11448 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11449 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11450 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11451 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11452 | fi |
| 11453 | fi |
| 11454 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | done |
| 11456 | ;; |
| 11457 | esac |
| 11458 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11459 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11460 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11461 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11462 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11463 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11464 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11465 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11466 | # As a last resort, use the slow shell script. Don't cache a |
| 11467 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11468 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11469 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11471 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11472 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11473 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11474 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11475 | |
| 11476 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11477 | # It thinks the first close brace ends the variable substitution. |
| 11478 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11480 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11481 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11482 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11483 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11484 | # See if we need a separate native compiler. |
| 11485 | if test $cross_compiling = no; then |
| 11486 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11487 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11488 | else |
| 11489 | for ac_prog in gcc cc |
| 11490 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11491 | # 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] | 11492 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11495 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11497 | else |
| 11498 | if test -n "$BUILD_CC"; then |
| 11499 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11500 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11502 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11503 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11504 | IFS=$as_save_IFS |
| 11505 | test -z "$as_dir" && as_dir=. |
| 11506 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11507 | 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] | 11508 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11510 | break 2 |
| 11511 | fi |
| 11512 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11513 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11514 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11515 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | fi |
| 11517 | fi |
| 11518 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11519 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11520 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11521 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11522 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11524 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11525 | fi |
| 11526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11527 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11528 | test -n "$BUILD_CC" && break |
| 11529 | done |
| 11530 | |
| 11531 | fi |
| 11532 | |
| 11533 | |
| 11534 | |
| 11535 | |
| 11536 | |
| 11537 | |
| 11538 | |
| 11539 | |
| 11540 | |
| 11541 | |
| 11542 | |
| 11543 | |
| 11544 | |
| 11545 | |
| 11546 | |
| 11547 | |
| 11548 | |
| 11549 | |
| 11550 | |
| 11551 | |
| 11552 | |
| 11553 | |
| 11554 | |
| 11555 | |
| 11556 | |
| 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11561 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11562 | |
| 11563 | |
| 11564 | for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11565 | do |
| 11566 | 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] | 11567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11568 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11569 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11570 | 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] | 11571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11572 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11573 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11574 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11575 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11576 | else |
| 11577 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11578 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11580 | cat >conftest.$ac_ext <<_ACEOF |
| 11581 | /* confdefs.h. */ |
| 11582 | _ACEOF |
| 11583 | cat confdefs.h >>conftest.$ac_ext |
| 11584 | cat >>conftest.$ac_ext <<_ACEOF |
| 11585 | /* end confdefs.h. */ |
| 11586 | $ac_includes_default |
| 11587 | #include <$ac_header> |
| 11588 | _ACEOF |
| 11589 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11590 | if { (ac_try="$ac_compile" |
| 11591 | case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
| 11595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11596 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11597 | ac_status=$? |
| 11598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11599 | rm -f conftest.er1 |
| 11600 | cat conftest.err >&5 |
| 11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11602 | (exit $ac_status); } && { |
| 11603 | test -z "$ac_c_werror_flag" || |
| 11604 | test ! -s conftest.err |
| 11605 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11606 | ac_header_compiler=yes |
| 11607 | else |
| 11608 | echo "$as_me: failed program was:" >&5 |
| 11609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11610 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11611 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11613 | |
| 11614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11615 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11616 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11617 | |
| 11618 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11619 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11621 | cat >conftest.$ac_ext <<_ACEOF |
| 11622 | /* confdefs.h. */ |
| 11623 | _ACEOF |
| 11624 | cat confdefs.h >>conftest.$ac_ext |
| 11625 | cat >>conftest.$ac_ext <<_ACEOF |
| 11626 | /* end confdefs.h. */ |
| 11627 | #include <$ac_header> |
| 11628 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11629 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11630 | case "(($ac_try" in |
| 11631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11632 | *) ac_try_echo=$ac_try;; |
| 11633 | esac |
| 11634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11635 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11636 | ac_status=$? |
| 11637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11638 | rm -f conftest.er1 |
| 11639 | cat conftest.err >&5 |
| 11640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11641 | (exit $ac_status); } >/dev/null && { |
| 11642 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11643 | test ! -s conftest.err |
| 11644 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11645 | ac_header_preproc=yes |
| 11646 | else |
| 11647 | echo "$as_me: failed program was:" >&5 |
| 11648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11649 | |
| 11650 | ac_header_preproc=no |
| 11651 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11652 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11653 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11654 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11655 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11656 | |
| 11657 | # So? What about this header? |
| 11658 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11659 | yes:no: ) |
| 11660 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11661 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11663 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11664 | ac_header_preproc=yes |
| 11665 | ;; |
| 11666 | no:yes:* ) |
| 11667 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11668 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11669 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11670 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11671 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11672 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11673 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11674 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11676 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11677 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11678 | 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] | 11679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11680 | ;; |
| 11681 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11682 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11684 | 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] | 11685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11686 | else |
| 11687 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11688 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11689 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11690 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11691 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11692 | |
| 11693 | fi |
| 11694 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11695 | cat >>confdefs.h <<_ACEOF |
| 11696 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11697 | _ACEOF |
| 11698 | |
| 11699 | fi |
| 11700 | |
| 11701 | done |
| 11702 | |
| 11703 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11704 | |
| 11705 | for ac_header in sys/disk.h sys/mount.h |
| 11706 | do |
| 11707 | 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] | 11708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11710 | 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] | 11711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11712 | else |
| 11713 | cat >conftest.$ac_ext <<_ACEOF |
| 11714 | /* confdefs.h. */ |
| 11715 | _ACEOF |
| 11716 | cat confdefs.h >>conftest.$ac_ext |
| 11717 | cat >>conftest.$ac_ext <<_ACEOF |
| 11718 | /* end confdefs.h. */ |
| 11719 | |
| 11720 | #if HAVE_SYS_QUEUE_H |
| 11721 | #include <sys/queue.h> |
| 11722 | #endif |
| 11723 | |
| 11724 | |
| 11725 | #include <$ac_header> |
| 11726 | _ACEOF |
| 11727 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11728 | if { (ac_try="$ac_compile" |
| 11729 | case "(($ac_try" in |
| 11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11731 | *) ac_try_echo=$ac_try;; |
| 11732 | esac |
| 11733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11734 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11735 | ac_status=$? |
| 11736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11737 | rm -f conftest.er1 |
| 11738 | cat conftest.err >&5 |
| 11739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11740 | (exit $ac_status); } && { |
| 11741 | test -z "$ac_c_werror_flag" || |
| 11742 | test ! -s conftest.err |
| 11743 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11744 | eval "$as_ac_Header=yes" |
| 11745 | else |
| 11746 | echo "$as_me: failed program was:" >&5 |
| 11747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11748 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11749 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11750 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11751 | |
| 11752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11753 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11754 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11756 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11758 | cat >>confdefs.h <<_ACEOF |
| 11759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11760 | _ACEOF |
| 11761 | |
| 11762 | fi |
| 11763 | |
| 11764 | done |
| 11765 | |
| 11766 | |
| 11767 | for ac_header in net/if.h |
| 11768 | do |
| 11769 | 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] | 11770 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11772 | 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] | 11773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11774 | else |
| 11775 | cat >conftest.$ac_ext <<_ACEOF |
| 11776 | /* confdefs.h. */ |
| 11777 | _ACEOF |
| 11778 | cat confdefs.h >>conftest.$ac_ext |
| 11779 | cat >>conftest.$ac_ext <<_ACEOF |
| 11780 | /* end confdefs.h. */ |
| 11781 | |
| 11782 | #if HAVE_SYS_TYPES_H |
| 11783 | #include <sys/types.h> |
| 11784 | #endif |
| 11785 | #if HAVE_SYS_SOCKET |
| 11786 | #include <sys/socket.h> |
| 11787 | #endif |
| 11788 | |
| 11789 | |
| 11790 | #include <$ac_header> |
| 11791 | _ACEOF |
| 11792 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11793 | if { (ac_try="$ac_compile" |
| 11794 | case "(($ac_try" in |
| 11795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11796 | *) ac_try_echo=$ac_try;; |
| 11797 | esac |
| 11798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11799 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11800 | ac_status=$? |
| 11801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11802 | rm -f conftest.er1 |
| 11803 | cat conftest.err >&5 |
| 11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11805 | (exit $ac_status); } && { |
| 11806 | test -z "$ac_c_werror_flag" || |
| 11807 | test ! -s conftest.err |
| 11808 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11809 | eval "$as_ac_Header=yes" |
| 11810 | else |
| 11811 | echo "$as_me: failed program was:" >&5 |
| 11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11814 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11815 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11816 | |
| 11817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11818 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11819 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11821 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11822 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11823 | cat >>confdefs.h <<_ACEOF |
| 11824 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11825 | _ACEOF |
| 11826 | |
| 11827 | fi |
| 11828 | |
| 11829 | done |
| 11830 | |
| 11831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11832 | for ac_func in vprintf |
| 11833 | do |
| 11834 | 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] | 11835 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11836 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11837 | 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] | 11838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11839 | else |
| 11840 | cat >conftest.$ac_ext <<_ACEOF |
| 11841 | /* confdefs.h. */ |
| 11842 | _ACEOF |
| 11843 | cat confdefs.h >>conftest.$ac_ext |
| 11844 | cat >>conftest.$ac_ext <<_ACEOF |
| 11845 | /* end confdefs.h. */ |
| 11846 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11848 | #define $ac_func innocuous_$ac_func |
| 11849 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11850 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11851 | which can conflict with char $ac_func (); below. |
| 11852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11853 | <limits.h> exists even on freestanding compilers. */ |
| 11854 | |
| 11855 | #ifdef __STDC__ |
| 11856 | # include <limits.h> |
| 11857 | #else |
| 11858 | # include <assert.h> |
| 11859 | #endif |
| 11860 | |
| 11861 | #undef $ac_func |
| 11862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11863 | /* Override any GCC internal prototype to avoid an error. |
| 11864 | Use char because int might match the return type of a GCC |
| 11865 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11866 | #ifdef __cplusplus |
| 11867 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11868 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11869 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11870 | /* The GNU C library defines this for functions which it implements |
| 11871 | to always fail with ENOSYS. Some functions are actually named |
| 11872 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11873 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11874 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11875 | #endif |
| 11876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11877 | int |
| 11878 | main () |
| 11879 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11880 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11881 | ; |
| 11882 | return 0; |
| 11883 | } |
| 11884 | _ACEOF |
| 11885 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11886 | if { (ac_try="$ac_link" |
| 11887 | case "(($ac_try" in |
| 11888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11889 | *) ac_try_echo=$ac_try;; |
| 11890 | esac |
| 11891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11892 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11893 | ac_status=$? |
| 11894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11895 | rm -f conftest.er1 |
| 11896 | cat conftest.err >&5 |
| 11897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11898 | (exit $ac_status); } && { |
| 11899 | test -z "$ac_c_werror_flag" || |
| 11900 | test ! -s conftest.err |
| 11901 | } && test -s conftest$ac_exeext && |
| 11902 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11903 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11904 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11905 | echo "$as_me: failed program was:" >&5 |
| 11906 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11908 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11909 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11910 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11911 | 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] | 11912 | conftest$ac_exeext conftest.$ac_ext |
| 11913 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11914 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11915 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11916 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11917 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11918 | cat >>confdefs.h <<_ACEOF |
| 11919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11920 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11922 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 11923 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11924 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 11925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11926 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11927 | cat >conftest.$ac_ext <<_ACEOF |
| 11928 | /* confdefs.h. */ |
| 11929 | _ACEOF |
| 11930 | cat confdefs.h >>conftest.$ac_ext |
| 11931 | cat >>conftest.$ac_ext <<_ACEOF |
| 11932 | /* end confdefs.h. */ |
| 11933 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 11934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11935 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11936 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11937 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11938 | which can conflict with char _doprnt (); below. |
| 11939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11940 | <limits.h> exists even on freestanding compilers. */ |
| 11941 | |
| 11942 | #ifdef __STDC__ |
| 11943 | # include <limits.h> |
| 11944 | #else |
| 11945 | # include <assert.h> |
| 11946 | #endif |
| 11947 | |
| 11948 | #undef _doprnt |
| 11949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11950 | /* Override any GCC internal prototype to avoid an error. |
| 11951 | Use char because int might match the return type of a GCC |
| 11952 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11953 | #ifdef __cplusplus |
| 11954 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11956 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11957 | /* The GNU C library defines this for functions which it implements |
| 11958 | to always fail with ENOSYS. Some functions are actually named |
| 11959 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11960 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11961 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11962 | #endif |
| 11963 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11964 | int |
| 11965 | main () |
| 11966 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11967 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11968 | ; |
| 11969 | return 0; |
| 11970 | } |
| 11971 | _ACEOF |
| 11972 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11973 | if { (ac_try="$ac_link" |
| 11974 | case "(($ac_try" in |
| 11975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11976 | *) ac_try_echo=$ac_try;; |
| 11977 | esac |
| 11978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11979 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | ac_status=$? |
| 11981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11982 | rm -f conftest.er1 |
| 11983 | cat conftest.err >&5 |
| 11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11985 | (exit $ac_status); } && { |
| 11986 | test -z "$ac_c_werror_flag" || |
| 11987 | test ! -s conftest.err |
| 11988 | } && test -s conftest$ac_exeext && |
| 11989 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11990 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11991 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | echo "$as_me: failed program was:" >&5 |
| 11993 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11994 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11997 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11998 | 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] | 11999 | conftest$ac_exeext conftest.$ac_ext |
| 12000 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12001 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12002 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12003 | if test $ac_cv_func__doprnt = yes; then |
| 12004 | |
| 12005 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12006 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12007 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12008 | |
| 12009 | fi |
| 12010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12011 | fi |
| 12012 | done |
| 12013 | |
| 12014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12015 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12016 | 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] | 12017 | 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] | 12018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | cat >conftest.$ac_ext <<_ACEOF |
| 12021 | /* confdefs.h. */ |
| 12022 | _ACEOF |
| 12023 | cat confdefs.h >>conftest.$ac_ext |
| 12024 | cat >>conftest.$ac_ext <<_ACEOF |
| 12025 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12026 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12028 | int |
| 12029 | main () |
| 12030 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12031 | static struct dirent ac_aggr; |
| 12032 | if (ac_aggr.d_reclen) |
| 12033 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12034 | ; |
| 12035 | return 0; |
| 12036 | } |
| 12037 | _ACEOF |
| 12038 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12039 | if { (ac_try="$ac_compile" |
| 12040 | case "(($ac_try" in |
| 12041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12042 | *) ac_try_echo=$ac_try;; |
| 12043 | esac |
| 12044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12045 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12046 | ac_status=$? |
| 12047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12048 | rm -f conftest.er1 |
| 12049 | cat conftest.err >&5 |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12051 | (exit $ac_status); } && { |
| 12052 | test -z "$ac_c_werror_flag" || |
| 12053 | test ! -s conftest.err |
| 12054 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12055 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12056 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12057 | echo "$as_me: failed program was:" >&5 |
| 12058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12060 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12061 | /* confdefs.h. */ |
| 12062 | _ACEOF |
| 12063 | cat confdefs.h >>conftest.$ac_ext |
| 12064 | cat >>conftest.$ac_ext <<_ACEOF |
| 12065 | /* end confdefs.h. */ |
| 12066 | #include <dirent.h> |
| 12067 | |
| 12068 | int |
| 12069 | main () |
| 12070 | { |
| 12071 | static struct dirent ac_aggr; |
| 12072 | if (sizeof ac_aggr.d_reclen) |
| 12073 | return 0; |
| 12074 | ; |
| 12075 | return 0; |
| 12076 | } |
| 12077 | _ACEOF |
| 12078 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12079 | if { (ac_try="$ac_compile" |
| 12080 | case "(($ac_try" in |
| 12081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12082 | *) ac_try_echo=$ac_try;; |
| 12083 | esac |
| 12084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12085 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12086 | ac_status=$? |
| 12087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12088 | rm -f conftest.er1 |
| 12089 | cat conftest.err >&5 |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12091 | (exit $ac_status); } && { |
| 12092 | test -z "$ac_c_werror_flag" || |
| 12093 | test ! -s conftest.err |
| 12094 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12095 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12096 | else |
| 12097 | echo "$as_me: failed program was:" >&5 |
| 12098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12100 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12101 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12102 | |
| 12103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12105 | |
| 12106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12108 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12109 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12110 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12111 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12112 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12113 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12114 | |
| 12115 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12117 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12118 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12119 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12121 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12122 | cat >conftest.$ac_ext <<_ACEOF |
| 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12128 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12129 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12130 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12131 | int |
| 12132 | main () |
| 12133 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12134 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12135 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12136 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12137 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12138 | ; |
| 12139 | return 0; |
| 12140 | } |
| 12141 | _ACEOF |
| 12142 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12143 | if { (ac_try="$ac_compile" |
| 12144 | case "(($ac_try" in |
| 12145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12146 | *) ac_try_echo=$ac_try;; |
| 12147 | esac |
| 12148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12149 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12150 | ac_status=$? |
| 12151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12152 | rm -f conftest.er1 |
| 12153 | cat conftest.err >&5 |
| 12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12155 | (exit $ac_status); } && { |
| 12156 | test -z "$ac_c_werror_flag" || |
| 12157 | test ! -s conftest.err |
| 12158 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12159 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12160 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12161 | echo "$as_me: failed program was:" >&5 |
| 12162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12164 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12165 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | |
| 12167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12168 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12169 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12170 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12171 | if test $ac_cv_type_ssize_t = yes; then |
| 12172 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12173 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12174 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12175 | |
| 12176 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12178 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12179 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12180 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12182 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12183 | cat >conftest.$ac_ext <<_ACEOF |
| 12184 | /* confdefs.h. */ |
| 12185 | _ACEOF |
| 12186 | cat confdefs.h >>conftest.$ac_ext |
| 12187 | cat >>conftest.$ac_ext <<_ACEOF |
| 12188 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12189 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12190 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12191 | int |
| 12192 | main () |
| 12193 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12194 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12195 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12196 | #endif |
| 12197 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12198 | ; |
| 12199 | return 0; |
| 12200 | } |
| 12201 | _ACEOF |
| 12202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12203 | if { (ac_try="$ac_compile" |
| 12204 | case "(($ac_try" in |
| 12205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12206 | *) ac_try_echo=$ac_try;; |
| 12207 | esac |
| 12208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12210 | ac_status=$? |
| 12211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12212 | rm -f conftest.er1 |
| 12213 | cat conftest.err >&5 |
| 12214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12215 | (exit $ac_status); } && { |
| 12216 | test -z "$ac_c_werror_flag" || |
| 12217 | test ! -s conftest.err |
| 12218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12219 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12220 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12221 | echo "$as_me: failed program was:" >&5 |
| 12222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12224 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12226 | |
| 12227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12229 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12230 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12231 | if test $ac_cv_have_decl_llseek = yes; then |
| 12232 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12233 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12234 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12235 | |
| 12236 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12237 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12238 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12239 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12240 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12243 | cat >conftest.$ac_ext <<_ACEOF |
| 12244 | /* confdefs.h. */ |
| 12245 | _ACEOF |
| 12246 | cat confdefs.h >>conftest.$ac_ext |
| 12247 | cat >>conftest.$ac_ext <<_ACEOF |
| 12248 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12249 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12250 | #define _LARGEFILE64_SOURCE |
| 12251 | #include <unistd.h> |
| 12252 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12253 | int |
| 12254 | main () |
| 12255 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12256 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12257 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12258 | #endif |
| 12259 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12260 | ; |
| 12261 | return 0; |
| 12262 | } |
| 12263 | _ACEOF |
| 12264 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12265 | if { (ac_try="$ac_compile" |
| 12266 | case "(($ac_try" in |
| 12267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12268 | *) ac_try_echo=$ac_try;; |
| 12269 | esac |
| 12270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12271 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12272 | ac_status=$? |
| 12273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12274 | rm -f conftest.er1 |
| 12275 | cat conftest.err >&5 |
| 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12277 | (exit $ac_status); } && { |
| 12278 | test -z "$ac_c_werror_flag" || |
| 12279 | test ! -s conftest.err |
| 12280 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12281 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12282 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12283 | echo "$as_me: failed program was:" >&5 |
| 12284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12286 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12287 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12288 | |
| 12289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12291 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12292 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12293 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12294 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12295 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12296 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12297 | |
| 12298 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12299 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12300 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12302 | ac_cv_sizeof_short=2 |
| 12303 | ac_cv_sizeof_int=4 |
| 12304 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12305 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12306 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 12307 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12308 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12309 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12310 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12311 | if test "${ac_cv_type_short+set}" = set; then |
| 12312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12313 | else |
| 12314 | cat >conftest.$ac_ext <<_ACEOF |
| 12315 | /* confdefs.h. */ |
| 12316 | _ACEOF |
| 12317 | cat confdefs.h >>conftest.$ac_ext |
| 12318 | cat >>conftest.$ac_ext <<_ACEOF |
| 12319 | /* end confdefs.h. */ |
| 12320 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12321 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12322 | int |
| 12323 | main () |
| 12324 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12325 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12327 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12328 | return 0; |
| 12329 | ; |
| 12330 | return 0; |
| 12331 | } |
| 12332 | _ACEOF |
| 12333 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12334 | if { (ac_try="$ac_compile" |
| 12335 | case "(($ac_try" in |
| 12336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12337 | *) ac_try_echo=$ac_try;; |
| 12338 | esac |
| 12339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12340 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12341 | ac_status=$? |
| 12342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12343 | rm -f conftest.er1 |
| 12344 | cat conftest.err >&5 |
| 12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12346 | (exit $ac_status); } && { |
| 12347 | test -z "$ac_c_werror_flag" || |
| 12348 | test ! -s conftest.err |
| 12349 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12350 | ac_cv_type_short=yes |
| 12351 | else |
| 12352 | echo "$as_me: failed program was:" >&5 |
| 12353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12354 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12355 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12356 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12357 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12359 | fi |
| 12360 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12361 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12362 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12363 | # The cast to long int works around a bug in the HP C Compiler |
| 12364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12366 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12367 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12368 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12369 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12371 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12372 | if test "$cross_compiling" = yes; then |
| 12373 | # Depending upon the size, compute the lo and hi bounds. |
| 12374 | cat >conftest.$ac_ext <<_ACEOF |
| 12375 | /* confdefs.h. */ |
| 12376 | _ACEOF |
| 12377 | cat confdefs.h >>conftest.$ac_ext |
| 12378 | cat >>conftest.$ac_ext <<_ACEOF |
| 12379 | /* end confdefs.h. */ |
| 12380 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12381 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12382 | int |
| 12383 | main () |
| 12384 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12385 | 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] | 12386 | test_array [0] = 0 |
| 12387 | |
| 12388 | ; |
| 12389 | return 0; |
| 12390 | } |
| 12391 | _ACEOF |
| 12392 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12393 | if { (ac_try="$ac_compile" |
| 12394 | case "(($ac_try" in |
| 12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12396 | *) ac_try_echo=$ac_try;; |
| 12397 | esac |
| 12398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12399 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | ac_status=$? |
| 12401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12402 | rm -f conftest.er1 |
| 12403 | cat conftest.err >&5 |
| 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12405 | (exit $ac_status); } && { |
| 12406 | test -z "$ac_c_werror_flag" || |
| 12407 | test ! -s conftest.err |
| 12408 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12409 | ac_lo=0 ac_mid=0 |
| 12410 | while :; do |
| 12411 | cat >conftest.$ac_ext <<_ACEOF |
| 12412 | /* confdefs.h. */ |
| 12413 | _ACEOF |
| 12414 | cat confdefs.h >>conftest.$ac_ext |
| 12415 | cat >>conftest.$ac_ext <<_ACEOF |
| 12416 | /* end confdefs.h. */ |
| 12417 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12418 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12419 | int |
| 12420 | main () |
| 12421 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12422 | 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] | 12423 | test_array [0] = 0 |
| 12424 | |
| 12425 | ; |
| 12426 | return 0; |
| 12427 | } |
| 12428 | _ACEOF |
| 12429 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12430 | if { (ac_try="$ac_compile" |
| 12431 | case "(($ac_try" in |
| 12432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12433 | *) ac_try_echo=$ac_try;; |
| 12434 | esac |
| 12435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12436 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | ac_status=$? |
| 12438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12439 | rm -f conftest.er1 |
| 12440 | cat conftest.err >&5 |
| 12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12442 | (exit $ac_status); } && { |
| 12443 | test -z "$ac_c_werror_flag" || |
| 12444 | test ! -s conftest.err |
| 12445 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12446 | ac_hi=$ac_mid; break |
| 12447 | else |
| 12448 | echo "$as_me: failed program was:" >&5 |
| 12449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12451 | ac_lo=`expr $ac_mid + 1` |
| 12452 | if test $ac_lo -le $ac_mid; then |
| 12453 | ac_lo= ac_hi= |
| 12454 | break |
| 12455 | fi |
| 12456 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12457 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12458 | |
| 12459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12460 | done |
| 12461 | else |
| 12462 | echo "$as_me: failed program was:" >&5 |
| 12463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12464 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12465 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12466 | /* confdefs.h. */ |
| 12467 | _ACEOF |
| 12468 | cat confdefs.h >>conftest.$ac_ext |
| 12469 | cat >>conftest.$ac_ext <<_ACEOF |
| 12470 | /* end confdefs.h. */ |
| 12471 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12472 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12473 | int |
| 12474 | main () |
| 12475 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12476 | 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] | 12477 | test_array [0] = 0 |
| 12478 | |
| 12479 | ; |
| 12480 | return 0; |
| 12481 | } |
| 12482 | _ACEOF |
| 12483 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12484 | if { (ac_try="$ac_compile" |
| 12485 | case "(($ac_try" in |
| 12486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12487 | *) ac_try_echo=$ac_try;; |
| 12488 | esac |
| 12489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12490 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12491 | ac_status=$? |
| 12492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12493 | rm -f conftest.er1 |
| 12494 | cat conftest.err >&5 |
| 12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12496 | (exit $ac_status); } && { |
| 12497 | test -z "$ac_c_werror_flag" || |
| 12498 | test ! -s conftest.err |
| 12499 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12500 | ac_hi=-1 ac_mid=-1 |
| 12501 | while :; do |
| 12502 | cat >conftest.$ac_ext <<_ACEOF |
| 12503 | /* confdefs.h. */ |
| 12504 | _ACEOF |
| 12505 | cat confdefs.h >>conftest.$ac_ext |
| 12506 | cat >>conftest.$ac_ext <<_ACEOF |
| 12507 | /* end confdefs.h. */ |
| 12508 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12509 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12510 | int |
| 12511 | main () |
| 12512 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12513 | 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] | 12514 | test_array [0] = 0 |
| 12515 | |
| 12516 | ; |
| 12517 | return 0; |
| 12518 | } |
| 12519 | _ACEOF |
| 12520 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12521 | if { (ac_try="$ac_compile" |
| 12522 | case "(($ac_try" in |
| 12523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12524 | *) ac_try_echo=$ac_try;; |
| 12525 | esac |
| 12526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12527 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12528 | ac_status=$? |
| 12529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12530 | rm -f conftest.er1 |
| 12531 | cat conftest.err >&5 |
| 12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12533 | (exit $ac_status); } && { |
| 12534 | test -z "$ac_c_werror_flag" || |
| 12535 | test ! -s conftest.err |
| 12536 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12537 | ac_lo=$ac_mid; break |
| 12538 | else |
| 12539 | echo "$as_me: failed program was:" >&5 |
| 12540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12542 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12543 | if test $ac_mid -le $ac_hi; then |
| 12544 | ac_lo= ac_hi= |
| 12545 | break |
| 12546 | fi |
| 12547 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12548 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12549 | |
| 12550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12551 | done |
| 12552 | else |
| 12553 | echo "$as_me: failed program was:" >&5 |
| 12554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12556 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12557 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12558 | |
| 12559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12560 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12561 | |
| 12562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12563 | # Binary search between lo and hi bounds. |
| 12564 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12565 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12566 | cat >conftest.$ac_ext <<_ACEOF |
| 12567 | /* confdefs.h. */ |
| 12568 | _ACEOF |
| 12569 | cat confdefs.h >>conftest.$ac_ext |
| 12570 | cat >>conftest.$ac_ext <<_ACEOF |
| 12571 | /* end confdefs.h. */ |
| 12572 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12573 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12574 | int |
| 12575 | main () |
| 12576 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12577 | 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] | 12578 | test_array [0] = 0 |
| 12579 | |
| 12580 | ; |
| 12581 | return 0; |
| 12582 | } |
| 12583 | _ACEOF |
| 12584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12585 | if { (ac_try="$ac_compile" |
| 12586 | case "(($ac_try" in |
| 12587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12588 | *) ac_try_echo=$ac_try;; |
| 12589 | esac |
| 12590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12592 | ac_status=$? |
| 12593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12594 | rm -f conftest.er1 |
| 12595 | cat conftest.err >&5 |
| 12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12597 | (exit $ac_status); } && { |
| 12598 | test -z "$ac_c_werror_flag" || |
| 12599 | test ! -s conftest.err |
| 12600 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12601 | ac_hi=$ac_mid |
| 12602 | else |
| 12603 | echo "$as_me: failed program was:" >&5 |
| 12604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12606 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12608 | |
| 12609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12610 | done |
| 12611 | case $ac_lo in |
| 12612 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12613 | '') if test "$ac_cv_type_short" = yes; then |
| 12614 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12615 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12616 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12617 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12618 | { (exit 77); exit 77; }; } |
| 12619 | else |
| 12620 | ac_cv_sizeof_short=0 |
| 12621 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12622 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12623 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12624 | cat >conftest.$ac_ext <<_ACEOF |
| 12625 | /* confdefs.h. */ |
| 12626 | _ACEOF |
| 12627 | cat confdefs.h >>conftest.$ac_ext |
| 12628 | cat >>conftest.$ac_ext <<_ACEOF |
| 12629 | /* end confdefs.h. */ |
| 12630 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12631 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12632 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12633 | 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] | 12634 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | #include <stdlib.h> |
| 12636 | int |
| 12637 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12638 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12639 | |
| 12640 | FILE *f = fopen ("conftest.val", "w"); |
| 12641 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12642 | return 1; |
| 12643 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12644 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12645 | long int i = longval (); |
| 12646 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12647 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12648 | fprintf (f, "%ld\n", i); |
| 12649 | } |
| 12650 | else |
| 12651 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12652 | unsigned long int i = ulongval (); |
| 12653 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12654 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12655 | fprintf (f, "%lu\n", i); |
| 12656 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12657 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12658 | |
| 12659 | ; |
| 12660 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12661 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12662 | _ACEOF |
| 12663 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12664 | if { (ac_try="$ac_link" |
| 12665 | case "(($ac_try" in |
| 12666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12667 | *) ac_try_echo=$ac_try;; |
| 12668 | esac |
| 12669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12670 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12671 | ac_status=$? |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12674 | { (case "(($ac_try" in |
| 12675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12676 | *) ac_try_echo=$ac_try;; |
| 12677 | esac |
| 12678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12679 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12680 | ac_status=$? |
| 12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12682 | (exit $ac_status); }; }; then |
| 12683 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12684 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12685 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12686 | echo "$as_me: failed program was:" >&5 |
| 12687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12688 | |
| 12689 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12690 | if test "$ac_cv_type_short" = yes; then |
| 12691 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12692 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12693 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12694 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12695 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12696 | else |
| 12697 | ac_cv_sizeof_short=0 |
| 12698 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12699 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12700 | 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] | 12701 | fi |
| 12702 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12703 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12704 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12705 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12706 | |
| 12707 | |
| 12708 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12709 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12710 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12711 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12712 | |
| 12713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12714 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12715 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12716 | if test "${ac_cv_type_int+set}" = set; then |
| 12717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12718 | else |
| 12719 | cat >conftest.$ac_ext <<_ACEOF |
| 12720 | /* confdefs.h. */ |
| 12721 | _ACEOF |
| 12722 | cat confdefs.h >>conftest.$ac_ext |
| 12723 | cat >>conftest.$ac_ext <<_ACEOF |
| 12724 | /* end confdefs.h. */ |
| 12725 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12726 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12727 | int |
| 12728 | main () |
| 12729 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12730 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12731 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12732 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12733 | return 0; |
| 12734 | ; |
| 12735 | return 0; |
| 12736 | } |
| 12737 | _ACEOF |
| 12738 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12739 | if { (ac_try="$ac_compile" |
| 12740 | case "(($ac_try" in |
| 12741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12742 | *) ac_try_echo=$ac_try;; |
| 12743 | esac |
| 12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12745 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12746 | ac_status=$? |
| 12747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12748 | rm -f conftest.er1 |
| 12749 | cat conftest.err >&5 |
| 12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12751 | (exit $ac_status); } && { |
| 12752 | test -z "$ac_c_werror_flag" || |
| 12753 | test ! -s conftest.err |
| 12754 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12755 | ac_cv_type_int=yes |
| 12756 | else |
| 12757 | echo "$as_me: failed program was:" >&5 |
| 12758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12759 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12760 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12761 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12762 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12764 | fi |
| 12765 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12766 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12767 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12768 | # The cast to long int works around a bug in the HP C Compiler |
| 12769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12771 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12772 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12773 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12774 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12776 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12777 | if test "$cross_compiling" = yes; then |
| 12778 | # Depending upon the size, compute the lo and hi bounds. |
| 12779 | cat >conftest.$ac_ext <<_ACEOF |
| 12780 | /* confdefs.h. */ |
| 12781 | _ACEOF |
| 12782 | cat confdefs.h >>conftest.$ac_ext |
| 12783 | cat >>conftest.$ac_ext <<_ACEOF |
| 12784 | /* end confdefs.h. */ |
| 12785 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12786 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12787 | int |
| 12788 | main () |
| 12789 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12790 | 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] | 12791 | test_array [0] = 0 |
| 12792 | |
| 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12798 | if { (ac_try="$ac_compile" |
| 12799 | case "(($ac_try" in |
| 12800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12801 | *) ac_try_echo=$ac_try;; |
| 12802 | esac |
| 12803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12804 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | ac_status=$? |
| 12806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12807 | rm -f conftest.er1 |
| 12808 | cat conftest.err >&5 |
| 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12810 | (exit $ac_status); } && { |
| 12811 | test -z "$ac_c_werror_flag" || |
| 12812 | test ! -s conftest.err |
| 12813 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12814 | ac_lo=0 ac_mid=0 |
| 12815 | while :; do |
| 12816 | cat >conftest.$ac_ext <<_ACEOF |
| 12817 | /* confdefs.h. */ |
| 12818 | _ACEOF |
| 12819 | cat confdefs.h >>conftest.$ac_ext |
| 12820 | cat >>conftest.$ac_ext <<_ACEOF |
| 12821 | /* end confdefs.h. */ |
| 12822 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12823 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12824 | int |
| 12825 | main () |
| 12826 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12827 | 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] | 12828 | test_array [0] = 0 |
| 12829 | |
| 12830 | ; |
| 12831 | return 0; |
| 12832 | } |
| 12833 | _ACEOF |
| 12834 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12835 | if { (ac_try="$ac_compile" |
| 12836 | case "(($ac_try" in |
| 12837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12838 | *) ac_try_echo=$ac_try;; |
| 12839 | esac |
| 12840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12841 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12842 | ac_status=$? |
| 12843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12844 | rm -f conftest.er1 |
| 12845 | cat conftest.err >&5 |
| 12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12847 | (exit $ac_status); } && { |
| 12848 | test -z "$ac_c_werror_flag" || |
| 12849 | test ! -s conftest.err |
| 12850 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12851 | ac_hi=$ac_mid; break |
| 12852 | else |
| 12853 | echo "$as_me: failed program was:" >&5 |
| 12854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12855 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12856 | ac_lo=`expr $ac_mid + 1` |
| 12857 | if test $ac_lo -le $ac_mid; then |
| 12858 | ac_lo= ac_hi= |
| 12859 | break |
| 12860 | fi |
| 12861 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12862 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12863 | |
| 12864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12865 | done |
| 12866 | else |
| 12867 | echo "$as_me: failed program was:" >&5 |
| 12868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12870 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12871 | /* confdefs.h. */ |
| 12872 | _ACEOF |
| 12873 | cat confdefs.h >>conftest.$ac_ext |
| 12874 | cat >>conftest.$ac_ext <<_ACEOF |
| 12875 | /* end confdefs.h. */ |
| 12876 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12877 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12878 | int |
| 12879 | main () |
| 12880 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12881 | 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] | 12882 | test_array [0] = 0 |
| 12883 | |
| 12884 | ; |
| 12885 | return 0; |
| 12886 | } |
| 12887 | _ACEOF |
| 12888 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12889 | if { (ac_try="$ac_compile" |
| 12890 | case "(($ac_try" in |
| 12891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12892 | *) ac_try_echo=$ac_try;; |
| 12893 | esac |
| 12894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12895 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12896 | ac_status=$? |
| 12897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12898 | rm -f conftest.er1 |
| 12899 | cat conftest.err >&5 |
| 12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12901 | (exit $ac_status); } && { |
| 12902 | test -z "$ac_c_werror_flag" || |
| 12903 | test ! -s conftest.err |
| 12904 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12905 | ac_hi=-1 ac_mid=-1 |
| 12906 | while :; do |
| 12907 | cat >conftest.$ac_ext <<_ACEOF |
| 12908 | /* confdefs.h. */ |
| 12909 | _ACEOF |
| 12910 | cat confdefs.h >>conftest.$ac_ext |
| 12911 | cat >>conftest.$ac_ext <<_ACEOF |
| 12912 | /* end confdefs.h. */ |
| 12913 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12914 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12915 | int |
| 12916 | main () |
| 12917 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12918 | 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] | 12919 | test_array [0] = 0 |
| 12920 | |
| 12921 | ; |
| 12922 | return 0; |
| 12923 | } |
| 12924 | _ACEOF |
| 12925 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12926 | if { (ac_try="$ac_compile" |
| 12927 | case "(($ac_try" in |
| 12928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12929 | *) ac_try_echo=$ac_try;; |
| 12930 | esac |
| 12931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12932 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12933 | ac_status=$? |
| 12934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12935 | rm -f conftest.er1 |
| 12936 | cat conftest.err >&5 |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12938 | (exit $ac_status); } && { |
| 12939 | test -z "$ac_c_werror_flag" || |
| 12940 | test ! -s conftest.err |
| 12941 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12942 | ac_lo=$ac_mid; break |
| 12943 | else |
| 12944 | echo "$as_me: failed program was:" >&5 |
| 12945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12947 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12948 | if test $ac_mid -le $ac_hi; then |
| 12949 | ac_lo= ac_hi= |
| 12950 | break |
| 12951 | fi |
| 12952 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12954 | |
| 12955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12956 | done |
| 12957 | else |
| 12958 | echo "$as_me: failed program was:" >&5 |
| 12959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12960 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12961 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12962 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12963 | |
| 12964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12965 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12966 | |
| 12967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12968 | # Binary search between lo and hi bounds. |
| 12969 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12970 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12971 | cat >conftest.$ac_ext <<_ACEOF |
| 12972 | /* confdefs.h. */ |
| 12973 | _ACEOF |
| 12974 | cat confdefs.h >>conftest.$ac_ext |
| 12975 | cat >>conftest.$ac_ext <<_ACEOF |
| 12976 | /* end confdefs.h. */ |
| 12977 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12978 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12979 | int |
| 12980 | main () |
| 12981 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12982 | 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] | 12983 | test_array [0] = 0 |
| 12984 | |
| 12985 | ; |
| 12986 | return 0; |
| 12987 | } |
| 12988 | _ACEOF |
| 12989 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12990 | if { (ac_try="$ac_compile" |
| 12991 | case "(($ac_try" in |
| 12992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12993 | *) ac_try_echo=$ac_try;; |
| 12994 | esac |
| 12995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12996 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12997 | ac_status=$? |
| 12998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12999 | rm -f conftest.er1 |
| 13000 | cat conftest.err >&5 |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13002 | (exit $ac_status); } && { |
| 13003 | test -z "$ac_c_werror_flag" || |
| 13004 | test ! -s conftest.err |
| 13005 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13006 | ac_hi=$ac_mid |
| 13007 | else |
| 13008 | echo "$as_me: failed program was:" >&5 |
| 13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13010 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13011 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13012 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13013 | |
| 13014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13015 | done |
| 13016 | case $ac_lo in |
| 13017 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13018 | '') if test "$ac_cv_type_int" = yes; then |
| 13019 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13020 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13021 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13023 | { (exit 77); exit 77; }; } |
| 13024 | else |
| 13025 | ac_cv_sizeof_int=0 |
| 13026 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13027 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13028 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13029 | cat >conftest.$ac_ext <<_ACEOF |
| 13030 | /* confdefs.h. */ |
| 13031 | _ACEOF |
| 13032 | cat confdefs.h >>conftest.$ac_ext |
| 13033 | cat >>conftest.$ac_ext <<_ACEOF |
| 13034 | /* end confdefs.h. */ |
| 13035 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13036 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13037 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13038 | 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] | 13039 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13040 | #include <stdlib.h> |
| 13041 | int |
| 13042 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13043 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13044 | |
| 13045 | FILE *f = fopen ("conftest.val", "w"); |
| 13046 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13047 | return 1; |
| 13048 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13049 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13050 | long int i = longval (); |
| 13051 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13052 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13053 | fprintf (f, "%ld\n", i); |
| 13054 | } |
| 13055 | else |
| 13056 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13057 | unsigned long int i = ulongval (); |
| 13058 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13059 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13060 | fprintf (f, "%lu\n", i); |
| 13061 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13062 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13063 | |
| 13064 | ; |
| 13065 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13066 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13067 | _ACEOF |
| 13068 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13069 | if { (ac_try="$ac_link" |
| 13070 | case "(($ac_try" in |
| 13071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13072 | *) ac_try_echo=$ac_try;; |
| 13073 | esac |
| 13074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13075 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13076 | ac_status=$? |
| 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13079 | { (case "(($ac_try" in |
| 13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13081 | *) ac_try_echo=$ac_try;; |
| 13082 | esac |
| 13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13084 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13085 | ac_status=$? |
| 13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13087 | (exit $ac_status); }; }; then |
| 13088 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13089 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13090 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13091 | echo "$as_me: failed program was:" >&5 |
| 13092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13093 | |
| 13094 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13095 | if test "$ac_cv_type_int" = yes; then |
| 13096 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13097 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13098 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13099 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13100 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13101 | else |
| 13102 | ac_cv_sizeof_int=0 |
| 13103 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13105 | 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] | 13106 | fi |
| 13107 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13108 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13109 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13110 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13111 | |
| 13112 | |
| 13113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13114 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13115 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13116 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13117 | |
| 13118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13119 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13120 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13121 | if test "${ac_cv_type_long+set}" = set; then |
| 13122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13123 | else |
| 13124 | cat >conftest.$ac_ext <<_ACEOF |
| 13125 | /* confdefs.h. */ |
| 13126 | _ACEOF |
| 13127 | cat confdefs.h >>conftest.$ac_ext |
| 13128 | cat >>conftest.$ac_ext <<_ACEOF |
| 13129 | /* end confdefs.h. */ |
| 13130 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13131 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13132 | int |
| 13133 | main () |
| 13134 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13135 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13136 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13137 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13138 | return 0; |
| 13139 | ; |
| 13140 | return 0; |
| 13141 | } |
| 13142 | _ACEOF |
| 13143 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13144 | if { (ac_try="$ac_compile" |
| 13145 | case "(($ac_try" in |
| 13146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13147 | *) ac_try_echo=$ac_try;; |
| 13148 | esac |
| 13149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13150 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13151 | ac_status=$? |
| 13152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13153 | rm -f conftest.er1 |
| 13154 | cat conftest.err >&5 |
| 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13156 | (exit $ac_status); } && { |
| 13157 | test -z "$ac_c_werror_flag" || |
| 13158 | test ! -s conftest.err |
| 13159 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13160 | ac_cv_type_long=yes |
| 13161 | else |
| 13162 | echo "$as_me: failed program was:" >&5 |
| 13163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13165 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13166 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13167 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13169 | fi |
| 13170 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13171 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13172 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13173 | # The cast to long int works around a bug in the HP C Compiler |
| 13174 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13175 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13176 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13177 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13178 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13179 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13181 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13182 | if test "$cross_compiling" = yes; then |
| 13183 | # Depending upon the size, compute the lo and hi bounds. |
| 13184 | cat >conftest.$ac_ext <<_ACEOF |
| 13185 | /* confdefs.h. */ |
| 13186 | _ACEOF |
| 13187 | cat confdefs.h >>conftest.$ac_ext |
| 13188 | cat >>conftest.$ac_ext <<_ACEOF |
| 13189 | /* end confdefs.h. */ |
| 13190 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13191 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13192 | int |
| 13193 | main () |
| 13194 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13195 | 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] | 13196 | test_array [0] = 0 |
| 13197 | |
| 13198 | ; |
| 13199 | return 0; |
| 13200 | } |
| 13201 | _ACEOF |
| 13202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13203 | if { (ac_try="$ac_compile" |
| 13204 | case "(($ac_try" in |
| 13205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13206 | *) ac_try_echo=$ac_try;; |
| 13207 | esac |
| 13208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13210 | ac_status=$? |
| 13211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13212 | rm -f conftest.er1 |
| 13213 | cat conftest.err >&5 |
| 13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13215 | (exit $ac_status); } && { |
| 13216 | test -z "$ac_c_werror_flag" || |
| 13217 | test ! -s conftest.err |
| 13218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13219 | ac_lo=0 ac_mid=0 |
| 13220 | while :; do |
| 13221 | cat >conftest.$ac_ext <<_ACEOF |
| 13222 | /* confdefs.h. */ |
| 13223 | _ACEOF |
| 13224 | cat confdefs.h >>conftest.$ac_ext |
| 13225 | cat >>conftest.$ac_ext <<_ACEOF |
| 13226 | /* end confdefs.h. */ |
| 13227 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13228 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13229 | int |
| 13230 | main () |
| 13231 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13232 | 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] | 13233 | test_array [0] = 0 |
| 13234 | |
| 13235 | ; |
| 13236 | return 0; |
| 13237 | } |
| 13238 | _ACEOF |
| 13239 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13240 | if { (ac_try="$ac_compile" |
| 13241 | case "(($ac_try" in |
| 13242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13243 | *) ac_try_echo=$ac_try;; |
| 13244 | esac |
| 13245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13246 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13247 | ac_status=$? |
| 13248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13249 | rm -f conftest.er1 |
| 13250 | cat conftest.err >&5 |
| 13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13252 | (exit $ac_status); } && { |
| 13253 | test -z "$ac_c_werror_flag" || |
| 13254 | test ! -s conftest.err |
| 13255 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13256 | ac_hi=$ac_mid; break |
| 13257 | else |
| 13258 | echo "$as_me: failed program was:" >&5 |
| 13259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13260 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13261 | ac_lo=`expr $ac_mid + 1` |
| 13262 | if test $ac_lo -le $ac_mid; then |
| 13263 | ac_lo= ac_hi= |
| 13264 | break |
| 13265 | fi |
| 13266 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13267 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13268 | |
| 13269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13270 | done |
| 13271 | else |
| 13272 | echo "$as_me: failed program was:" >&5 |
| 13273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13274 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13275 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13276 | /* confdefs.h. */ |
| 13277 | _ACEOF |
| 13278 | cat confdefs.h >>conftest.$ac_ext |
| 13279 | cat >>conftest.$ac_ext <<_ACEOF |
| 13280 | /* end confdefs.h. */ |
| 13281 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13282 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13283 | int |
| 13284 | main () |
| 13285 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13286 | 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] | 13287 | test_array [0] = 0 |
| 13288 | |
| 13289 | ; |
| 13290 | return 0; |
| 13291 | } |
| 13292 | _ACEOF |
| 13293 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13294 | if { (ac_try="$ac_compile" |
| 13295 | case "(($ac_try" in |
| 13296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13297 | *) ac_try_echo=$ac_try;; |
| 13298 | esac |
| 13299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13300 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13301 | ac_status=$? |
| 13302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13303 | rm -f conftest.er1 |
| 13304 | cat conftest.err >&5 |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13306 | (exit $ac_status); } && { |
| 13307 | test -z "$ac_c_werror_flag" || |
| 13308 | test ! -s conftest.err |
| 13309 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13310 | ac_hi=-1 ac_mid=-1 |
| 13311 | while :; do |
| 13312 | cat >conftest.$ac_ext <<_ACEOF |
| 13313 | /* confdefs.h. */ |
| 13314 | _ACEOF |
| 13315 | cat confdefs.h >>conftest.$ac_ext |
| 13316 | cat >>conftest.$ac_ext <<_ACEOF |
| 13317 | /* end confdefs.h. */ |
| 13318 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13319 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13320 | int |
| 13321 | main () |
| 13322 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13323 | 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] | 13324 | test_array [0] = 0 |
| 13325 | |
| 13326 | ; |
| 13327 | return 0; |
| 13328 | } |
| 13329 | _ACEOF |
| 13330 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13331 | if { (ac_try="$ac_compile" |
| 13332 | case "(($ac_try" in |
| 13333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13334 | *) ac_try_echo=$ac_try;; |
| 13335 | esac |
| 13336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13337 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13338 | ac_status=$? |
| 13339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13340 | rm -f conftest.er1 |
| 13341 | cat conftest.err >&5 |
| 13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13343 | (exit $ac_status); } && { |
| 13344 | test -z "$ac_c_werror_flag" || |
| 13345 | test ! -s conftest.err |
| 13346 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13347 | ac_lo=$ac_mid; break |
| 13348 | else |
| 13349 | echo "$as_me: failed program was:" >&5 |
| 13350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13352 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13353 | if test $ac_mid -le $ac_hi; then |
| 13354 | ac_lo= ac_hi= |
| 13355 | break |
| 13356 | fi |
| 13357 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13359 | |
| 13360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13361 | done |
| 13362 | else |
| 13363 | echo "$as_me: failed program was:" >&5 |
| 13364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13366 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13368 | |
| 13369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13370 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13371 | |
| 13372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13373 | # Binary search between lo and hi bounds. |
| 13374 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13375 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13376 | cat >conftest.$ac_ext <<_ACEOF |
| 13377 | /* confdefs.h. */ |
| 13378 | _ACEOF |
| 13379 | cat confdefs.h >>conftest.$ac_ext |
| 13380 | cat >>conftest.$ac_ext <<_ACEOF |
| 13381 | /* end confdefs.h. */ |
| 13382 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13383 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13384 | int |
| 13385 | main () |
| 13386 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13387 | 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] | 13388 | test_array [0] = 0 |
| 13389 | |
| 13390 | ; |
| 13391 | return 0; |
| 13392 | } |
| 13393 | _ACEOF |
| 13394 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13395 | if { (ac_try="$ac_compile" |
| 13396 | case "(($ac_try" in |
| 13397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13398 | *) ac_try_echo=$ac_try;; |
| 13399 | esac |
| 13400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13401 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13402 | ac_status=$? |
| 13403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13404 | rm -f conftest.er1 |
| 13405 | cat conftest.err >&5 |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13407 | (exit $ac_status); } && { |
| 13408 | test -z "$ac_c_werror_flag" || |
| 13409 | test ! -s conftest.err |
| 13410 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13411 | ac_hi=$ac_mid |
| 13412 | else |
| 13413 | echo "$as_me: failed program was:" >&5 |
| 13414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13416 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13418 | |
| 13419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13420 | done |
| 13421 | case $ac_lo in |
| 13422 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13423 | '') if test "$ac_cv_type_long" = yes; then |
| 13424 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13425 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13426 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13427 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13428 | { (exit 77); exit 77; }; } |
| 13429 | else |
| 13430 | ac_cv_sizeof_long=0 |
| 13431 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13432 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13433 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13434 | cat >conftest.$ac_ext <<_ACEOF |
| 13435 | /* confdefs.h. */ |
| 13436 | _ACEOF |
| 13437 | cat confdefs.h >>conftest.$ac_ext |
| 13438 | cat >>conftest.$ac_ext <<_ACEOF |
| 13439 | /* end confdefs.h. */ |
| 13440 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13441 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13442 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13443 | 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] | 13444 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13445 | #include <stdlib.h> |
| 13446 | int |
| 13447 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13448 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13449 | |
| 13450 | FILE *f = fopen ("conftest.val", "w"); |
| 13451 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13452 | return 1; |
| 13453 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13454 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13455 | long int i = longval (); |
| 13456 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13457 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13458 | fprintf (f, "%ld\n", i); |
| 13459 | } |
| 13460 | else |
| 13461 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13462 | unsigned long int i = ulongval (); |
| 13463 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13464 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13465 | fprintf (f, "%lu\n", i); |
| 13466 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13467 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13468 | |
| 13469 | ; |
| 13470 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13471 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13472 | _ACEOF |
| 13473 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13474 | if { (ac_try="$ac_link" |
| 13475 | case "(($ac_try" in |
| 13476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13477 | *) ac_try_echo=$ac_try;; |
| 13478 | esac |
| 13479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13480 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13481 | ac_status=$? |
| 13482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13484 | { (case "(($ac_try" in |
| 13485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13486 | *) ac_try_echo=$ac_try;; |
| 13487 | esac |
| 13488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13489 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13490 | ac_status=$? |
| 13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13492 | (exit $ac_status); }; }; then |
| 13493 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13494 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13495 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13496 | echo "$as_me: failed program was:" >&5 |
| 13497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13498 | |
| 13499 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13500 | if test "$ac_cv_type_long" = yes; then |
| 13501 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13502 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13503 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13504 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13505 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13506 | else |
| 13507 | ac_cv_sizeof_long=0 |
| 13508 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13509 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13510 | 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] | 13511 | fi |
| 13512 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13514 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13515 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13516 | |
| 13517 | |
| 13518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13519 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13520 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13521 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13522 | |
| 13523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13524 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13525 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13526 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13528 | else |
| 13529 | cat >conftest.$ac_ext <<_ACEOF |
| 13530 | /* confdefs.h. */ |
| 13531 | _ACEOF |
| 13532 | cat confdefs.h >>conftest.$ac_ext |
| 13533 | cat >>conftest.$ac_ext <<_ACEOF |
| 13534 | /* end confdefs.h. */ |
| 13535 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13536 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13537 | int |
| 13538 | main () |
| 13539 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13540 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13541 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13542 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13543 | return 0; |
| 13544 | ; |
| 13545 | return 0; |
| 13546 | } |
| 13547 | _ACEOF |
| 13548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13549 | if { (ac_try="$ac_compile" |
| 13550 | case "(($ac_try" in |
| 13551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13552 | *) ac_try_echo=$ac_try;; |
| 13553 | esac |
| 13554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13555 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | ac_status=$? |
| 13557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13558 | rm -f conftest.er1 |
| 13559 | cat conftest.err >&5 |
| 13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13561 | (exit $ac_status); } && { |
| 13562 | test -z "$ac_c_werror_flag" || |
| 13563 | test ! -s conftest.err |
| 13564 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13565 | ac_cv_type_long_long=yes |
| 13566 | else |
| 13567 | echo "$as_me: failed program was:" >&5 |
| 13568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13570 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13571 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13572 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13574 | fi |
| 13575 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13576 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13577 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13578 | # The cast to long int works around a bug in the HP C Compiler |
| 13579 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13580 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13581 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13582 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13583 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13584 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13586 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13587 | if test "$cross_compiling" = yes; then |
| 13588 | # Depending upon the size, compute the lo and hi bounds. |
| 13589 | cat >conftest.$ac_ext <<_ACEOF |
| 13590 | /* confdefs.h. */ |
| 13591 | _ACEOF |
| 13592 | cat confdefs.h >>conftest.$ac_ext |
| 13593 | cat >>conftest.$ac_ext <<_ACEOF |
| 13594 | /* end confdefs.h. */ |
| 13595 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13596 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13597 | int |
| 13598 | main () |
| 13599 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13600 | 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] | 13601 | test_array [0] = 0 |
| 13602 | |
| 13603 | ; |
| 13604 | return 0; |
| 13605 | } |
| 13606 | _ACEOF |
| 13607 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13608 | if { (ac_try="$ac_compile" |
| 13609 | case "(($ac_try" in |
| 13610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13611 | *) ac_try_echo=$ac_try;; |
| 13612 | esac |
| 13613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13614 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | ac_status=$? |
| 13616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13617 | rm -f conftest.er1 |
| 13618 | cat conftest.err >&5 |
| 13619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13620 | (exit $ac_status); } && { |
| 13621 | test -z "$ac_c_werror_flag" || |
| 13622 | test ! -s conftest.err |
| 13623 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13624 | ac_lo=0 ac_mid=0 |
| 13625 | while :; do |
| 13626 | cat >conftest.$ac_ext <<_ACEOF |
| 13627 | /* confdefs.h. */ |
| 13628 | _ACEOF |
| 13629 | cat confdefs.h >>conftest.$ac_ext |
| 13630 | cat >>conftest.$ac_ext <<_ACEOF |
| 13631 | /* end confdefs.h. */ |
| 13632 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13633 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13634 | int |
| 13635 | main () |
| 13636 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13637 | 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] | 13638 | test_array [0] = 0 |
| 13639 | |
| 13640 | ; |
| 13641 | return 0; |
| 13642 | } |
| 13643 | _ACEOF |
| 13644 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13645 | if { (ac_try="$ac_compile" |
| 13646 | case "(($ac_try" in |
| 13647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13648 | *) ac_try_echo=$ac_try;; |
| 13649 | esac |
| 13650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13651 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13652 | ac_status=$? |
| 13653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13654 | rm -f conftest.er1 |
| 13655 | cat conftest.err >&5 |
| 13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13657 | (exit $ac_status); } && { |
| 13658 | test -z "$ac_c_werror_flag" || |
| 13659 | test ! -s conftest.err |
| 13660 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13661 | ac_hi=$ac_mid; break |
| 13662 | else |
| 13663 | echo "$as_me: failed program was:" >&5 |
| 13664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13665 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13666 | ac_lo=`expr $ac_mid + 1` |
| 13667 | if test $ac_lo -le $ac_mid; then |
| 13668 | ac_lo= ac_hi= |
| 13669 | break |
| 13670 | fi |
| 13671 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13672 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13673 | |
| 13674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13675 | done |
| 13676 | else |
| 13677 | echo "$as_me: failed program was:" >&5 |
| 13678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13680 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13681 | /* confdefs.h. */ |
| 13682 | _ACEOF |
| 13683 | cat confdefs.h >>conftest.$ac_ext |
| 13684 | cat >>conftest.$ac_ext <<_ACEOF |
| 13685 | /* end confdefs.h. */ |
| 13686 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13687 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13688 | int |
| 13689 | main () |
| 13690 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13691 | 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] | 13692 | test_array [0] = 0 |
| 13693 | |
| 13694 | ; |
| 13695 | return 0; |
| 13696 | } |
| 13697 | _ACEOF |
| 13698 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13699 | if { (ac_try="$ac_compile" |
| 13700 | case "(($ac_try" in |
| 13701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13702 | *) ac_try_echo=$ac_try;; |
| 13703 | esac |
| 13704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13705 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13706 | ac_status=$? |
| 13707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13708 | rm -f conftest.er1 |
| 13709 | cat conftest.err >&5 |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13711 | (exit $ac_status); } && { |
| 13712 | test -z "$ac_c_werror_flag" || |
| 13713 | test ! -s conftest.err |
| 13714 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13715 | ac_hi=-1 ac_mid=-1 |
| 13716 | while :; do |
| 13717 | cat >conftest.$ac_ext <<_ACEOF |
| 13718 | /* confdefs.h. */ |
| 13719 | _ACEOF |
| 13720 | cat confdefs.h >>conftest.$ac_ext |
| 13721 | cat >>conftest.$ac_ext <<_ACEOF |
| 13722 | /* end confdefs.h. */ |
| 13723 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13724 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13725 | int |
| 13726 | main () |
| 13727 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13728 | 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] | 13729 | test_array [0] = 0 |
| 13730 | |
| 13731 | ; |
| 13732 | return 0; |
| 13733 | } |
| 13734 | _ACEOF |
| 13735 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13736 | if { (ac_try="$ac_compile" |
| 13737 | case "(($ac_try" in |
| 13738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13739 | *) ac_try_echo=$ac_try;; |
| 13740 | esac |
| 13741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13742 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13743 | ac_status=$? |
| 13744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13745 | rm -f conftest.er1 |
| 13746 | cat conftest.err >&5 |
| 13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13748 | (exit $ac_status); } && { |
| 13749 | test -z "$ac_c_werror_flag" || |
| 13750 | test ! -s conftest.err |
| 13751 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13752 | ac_lo=$ac_mid; break |
| 13753 | else |
| 13754 | echo "$as_me: failed program was:" >&5 |
| 13755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13757 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13758 | if test $ac_mid -le $ac_hi; then |
| 13759 | ac_lo= ac_hi= |
| 13760 | break |
| 13761 | fi |
| 13762 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13764 | |
| 13765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13766 | done |
| 13767 | else |
| 13768 | echo "$as_me: failed program was:" >&5 |
| 13769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13771 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13773 | |
| 13774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13775 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13776 | |
| 13777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13778 | # Binary search between lo and hi bounds. |
| 13779 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13780 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13781 | cat >conftest.$ac_ext <<_ACEOF |
| 13782 | /* confdefs.h. */ |
| 13783 | _ACEOF |
| 13784 | cat confdefs.h >>conftest.$ac_ext |
| 13785 | cat >>conftest.$ac_ext <<_ACEOF |
| 13786 | /* end confdefs.h. */ |
| 13787 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13788 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13789 | int |
| 13790 | main () |
| 13791 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13792 | 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] | 13793 | test_array [0] = 0 |
| 13794 | |
| 13795 | ; |
| 13796 | return 0; |
| 13797 | } |
| 13798 | _ACEOF |
| 13799 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13800 | if { (ac_try="$ac_compile" |
| 13801 | case "(($ac_try" in |
| 13802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13803 | *) ac_try_echo=$ac_try;; |
| 13804 | esac |
| 13805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13806 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13807 | ac_status=$? |
| 13808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13809 | rm -f conftest.er1 |
| 13810 | cat conftest.err >&5 |
| 13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13812 | (exit $ac_status); } && { |
| 13813 | test -z "$ac_c_werror_flag" || |
| 13814 | test ! -s conftest.err |
| 13815 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13816 | ac_hi=$ac_mid |
| 13817 | else |
| 13818 | echo "$as_me: failed program was:" >&5 |
| 13819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13821 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13822 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13823 | |
| 13824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13825 | done |
| 13826 | case $ac_lo in |
| 13827 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13828 | '') if test "$ac_cv_type_long_long" = yes; then |
| 13829 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13830 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13831 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13832 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13833 | { (exit 77); exit 77; }; } |
| 13834 | else |
| 13835 | ac_cv_sizeof_long_long=0 |
| 13836 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13837 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13838 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13839 | cat >conftest.$ac_ext <<_ACEOF |
| 13840 | /* confdefs.h. */ |
| 13841 | _ACEOF |
| 13842 | cat confdefs.h >>conftest.$ac_ext |
| 13843 | cat >>conftest.$ac_ext <<_ACEOF |
| 13844 | /* end confdefs.h. */ |
| 13845 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13846 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13847 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13848 | 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] | 13849 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13850 | #include <stdlib.h> |
| 13851 | int |
| 13852 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13853 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13854 | |
| 13855 | FILE *f = fopen ("conftest.val", "w"); |
| 13856 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13857 | return 1; |
| 13858 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13859 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13860 | long int i = longval (); |
| 13861 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13862 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13863 | fprintf (f, "%ld\n", i); |
| 13864 | } |
| 13865 | else |
| 13866 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13867 | unsigned long int i = ulongval (); |
| 13868 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13869 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13870 | fprintf (f, "%lu\n", i); |
| 13871 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13872 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13873 | |
| 13874 | ; |
| 13875 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13876 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13877 | _ACEOF |
| 13878 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13879 | if { (ac_try="$ac_link" |
| 13880 | case "(($ac_try" in |
| 13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13882 | *) ac_try_echo=$ac_try;; |
| 13883 | esac |
| 13884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13885 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13886 | ac_status=$? |
| 13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13889 | { (case "(($ac_try" in |
| 13890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13891 | *) ac_try_echo=$ac_try;; |
| 13892 | esac |
| 13893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13894 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13895 | ac_status=$? |
| 13896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13897 | (exit $ac_status); }; }; then |
| 13898 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13899 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13900 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13901 | echo "$as_me: failed program was:" >&5 |
| 13902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13903 | |
| 13904 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13905 | if test "$ac_cv_type_long_long" = yes; then |
| 13906 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13907 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13908 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13909 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13910 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13911 | else |
| 13912 | ac_cv_sizeof_long_long=0 |
| 13913 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13914 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13915 | 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] | 13916 | fi |
| 13917 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13918 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13919 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 13920 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13921 | |
| 13922 | |
| 13923 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13924 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13925 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13926 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13927 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13928 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13929 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 13930 | SIZEOF_INT=$ac_cv_sizeof_int |
| 13931 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13932 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 13933 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13934 | |
| 13935 | |
| 13936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13937 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 13938 | 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] | 13939 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 13940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13941 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13942 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 13943 | cat >conftest.$ac_ext <<_ACEOF |
| 13944 | /* confdefs.h. */ |
| 13945 | _ACEOF |
| 13946 | cat confdefs.h >>conftest.$ac_ext |
| 13947 | cat >>conftest.$ac_ext <<_ACEOF |
| 13948 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13949 | #include <sys/types.h> |
| 13950 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13951 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13952 | int |
| 13953 | main () |
| 13954 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13955 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 13956 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13957 | bogus endian macros |
| 13958 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | |
| 13960 | ; |
| 13961 | return 0; |
| 13962 | } |
| 13963 | _ACEOF |
| 13964 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13965 | if { (ac_try="$ac_compile" |
| 13966 | case "(($ac_try" in |
| 13967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13968 | *) ac_try_echo=$ac_try;; |
| 13969 | esac |
| 13970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13971 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13972 | ac_status=$? |
| 13973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13974 | rm -f conftest.er1 |
| 13975 | cat conftest.err >&5 |
| 13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13977 | (exit $ac_status); } && { |
| 13978 | test -z "$ac_c_werror_flag" || |
| 13979 | test ! -s conftest.err |
| 13980 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13981 | # 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] | 13982 | cat >conftest.$ac_ext <<_ACEOF |
| 13983 | /* confdefs.h. */ |
| 13984 | _ACEOF |
| 13985 | cat confdefs.h >>conftest.$ac_ext |
| 13986 | cat >>conftest.$ac_ext <<_ACEOF |
| 13987 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13988 | #include <sys/types.h> |
| 13989 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13990 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13991 | int |
| 13992 | main () |
| 13993 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13994 | #if BYTE_ORDER != BIG_ENDIAN |
| 13995 | not big endian |
| 13996 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13997 | |
| 13998 | ; |
| 13999 | return 0; |
| 14000 | } |
| 14001 | _ACEOF |
| 14002 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14003 | if { (ac_try="$ac_compile" |
| 14004 | case "(($ac_try" in |
| 14005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14006 | *) ac_try_echo=$ac_try;; |
| 14007 | esac |
| 14008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14009 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14010 | ac_status=$? |
| 14011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14012 | rm -f conftest.er1 |
| 14013 | cat conftest.err >&5 |
| 14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14015 | (exit $ac_status); } && { |
| 14016 | test -z "$ac_c_werror_flag" || |
| 14017 | test ! -s conftest.err |
| 14018 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14019 | ac_cv_c_bigendian=yes |
| 14020 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14021 | echo "$as_me: failed program was:" >&5 |
| 14022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14023 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14024 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14025 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14026 | |
| 14027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14028 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14029 | echo "$as_me: failed program was:" >&5 |
| 14030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14032 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14033 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14034 | # try to guess the endianness by grepping values into an object file |
| 14035 | ac_cv_c_bigendian=unknown |
| 14036 | cat >conftest.$ac_ext <<_ACEOF |
| 14037 | /* confdefs.h. */ |
| 14038 | _ACEOF |
| 14039 | cat confdefs.h >>conftest.$ac_ext |
| 14040 | cat >>conftest.$ac_ext <<_ACEOF |
| 14041 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14042 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14043 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14044 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14045 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14046 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14047 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14048 | int |
| 14049 | main () |
| 14050 | { |
| 14051 | _ascii (); _ebcdic (); |
| 14052 | ; |
| 14053 | return 0; |
| 14054 | } |
| 14055 | _ACEOF |
| 14056 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14057 | if { (ac_try="$ac_compile" |
| 14058 | case "(($ac_try" in |
| 14059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14060 | *) ac_try_echo=$ac_try;; |
| 14061 | esac |
| 14062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14063 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14064 | ac_status=$? |
| 14065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14066 | rm -f conftest.er1 |
| 14067 | cat conftest.err >&5 |
| 14068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14069 | (exit $ac_status); } && { |
| 14070 | test -z "$ac_c_werror_flag" || |
| 14071 | test ! -s conftest.err |
| 14072 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14073 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14074 | ac_cv_c_bigendian=yes |
| 14075 | fi |
| 14076 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14077 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14078 | ac_cv_c_bigendian=no |
| 14079 | else |
| 14080 | # finding both strings is unlikely to happen, but who knows? |
| 14081 | ac_cv_c_bigendian=unknown |
| 14082 | fi |
| 14083 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14085 | echo "$as_me: failed program was:" >&5 |
| 14086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14088 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14089 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14090 | |
| 14091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | else |
| 14093 | cat >conftest.$ac_ext <<_ACEOF |
| 14094 | /* confdefs.h. */ |
| 14095 | _ACEOF |
| 14096 | cat confdefs.h >>conftest.$ac_ext |
| 14097 | cat >>conftest.$ac_ext <<_ACEOF |
| 14098 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14099 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14100 | int |
| 14101 | main () |
| 14102 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14103 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14104 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14105 | union |
| 14106 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14107 | long int l; |
| 14108 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14109 | } u; |
| 14110 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14111 | return u.c[sizeof (long int) - 1] == 1; |
| 14112 | |
| 14113 | ; |
| 14114 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14115 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14116 | _ACEOF |
| 14117 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14118 | if { (ac_try="$ac_link" |
| 14119 | case "(($ac_try" in |
| 14120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14121 | *) ac_try_echo=$ac_try;; |
| 14122 | esac |
| 14123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14124 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14128 | { (case "(($ac_try" in |
| 14129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14130 | *) ac_try_echo=$ac_try;; |
| 14131 | esac |
| 14132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14133 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14134 | ac_status=$? |
| 14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14136 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14137 | ac_cv_c_bigendian=no |
| 14138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14139 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14140 | echo "$as_me: failed program was:" >&5 |
| 14141 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14143 | ( exit $ac_status ) |
| 14144 | ac_cv_c_bigendian=yes |
| 14145 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14146 | 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] | 14147 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14148 | |
| 14149 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14150 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14151 | |
| 14152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14154 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14155 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14156 | case $ac_cv_c_bigendian in |
| 14157 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14159 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14160 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14161 | _ACEOF |
| 14162 | ;; |
| 14163 | no) |
| 14164 | ;; |
| 14165 | *) |
| 14166 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14167 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14168 | echo "$as_me: error: unknown endianness |
| 14169 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14170 | { (exit 1); exit 1; }; } ;; |
| 14171 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14172 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14173 | 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] | 14174 | ASM_TYPES_HEADER=./asm_types.h |
| 14175 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14176 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14177 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14178 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14179 | 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] | 14180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14181 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14183 | 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] | 14184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14185 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14186 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14187 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14188 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14190 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14191 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14192 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14193 | cat >conftest.$ac_ext <<_ACEOF |
| 14194 | /* confdefs.h. */ |
| 14195 | _ACEOF |
| 14196 | cat confdefs.h >>conftest.$ac_ext |
| 14197 | cat >>conftest.$ac_ext <<_ACEOF |
| 14198 | /* end confdefs.h. */ |
| 14199 | $ac_includes_default |
| 14200 | #include <$ac_header> |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14203 | if { (ac_try="$ac_compile" |
| 14204 | case "(($ac_try" in |
| 14205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14206 | *) ac_try_echo=$ac_try;; |
| 14207 | esac |
| 14208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14210 | ac_status=$? |
| 14211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14212 | rm -f conftest.er1 |
| 14213 | cat conftest.err >&5 |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14215 | (exit $ac_status); } && { |
| 14216 | test -z "$ac_c_werror_flag" || |
| 14217 | test ! -s conftest.err |
| 14218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14219 | ac_header_compiler=yes |
| 14220 | else |
| 14221 | echo "$as_me: failed program was:" >&5 |
| 14222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14224 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14226 | |
| 14227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14228 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14229 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14230 | |
| 14231 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14232 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14234 | cat >conftest.$ac_ext <<_ACEOF |
| 14235 | /* confdefs.h. */ |
| 14236 | _ACEOF |
| 14237 | cat confdefs.h >>conftest.$ac_ext |
| 14238 | cat >>conftest.$ac_ext <<_ACEOF |
| 14239 | /* end confdefs.h. */ |
| 14240 | #include <$ac_header> |
| 14241 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14243 | case "(($ac_try" in |
| 14244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14245 | *) ac_try_echo=$ac_try;; |
| 14246 | esac |
| 14247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14248 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14249 | ac_status=$? |
| 14250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14251 | rm -f conftest.er1 |
| 14252 | cat conftest.err >&5 |
| 14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14254 | (exit $ac_status); } >/dev/null && { |
| 14255 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14256 | test ! -s conftest.err |
| 14257 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14258 | ac_header_preproc=yes |
| 14259 | else |
| 14260 | echo "$as_me: failed program was:" >&5 |
| 14261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14262 | |
| 14263 | ac_header_preproc=no |
| 14264 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14266 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14267 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14268 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14269 | |
| 14270 | # So? What about this header? |
| 14271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14272 | yes:no: ) |
| 14273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14277 | ac_header_preproc=yes |
| 14278 | ;; |
| 14279 | no:yes:* ) |
| 14280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14291 | 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] | 14292 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14293 | ;; |
| 14294 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14295 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14297 | 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] | 14298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14299 | else |
| 14300 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14301 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14302 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14303 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14304 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14305 | |
| 14306 | fi |
| 14307 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14308 | cat >>confdefs.h <<_ACEOF |
| 14309 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14310 | _ACEOF |
| 14311 | |
| 14312 | fi |
| 14313 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14314 | done |
| 14315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14316 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14317 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14318 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14320 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14321 | cat >conftest.$ac_ext <<_ACEOF |
| 14322 | /* confdefs.h. */ |
| 14323 | _ACEOF |
| 14324 | cat confdefs.h >>conftest.$ac_ext |
| 14325 | cat >>conftest.$ac_ext <<_ACEOF |
| 14326 | /* end confdefs.h. */ |
| 14327 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14328 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14329 | int |
| 14330 | main () |
| 14331 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14332 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14333 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14334 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14335 | return 0; |
| 14336 | ; |
| 14337 | return 0; |
| 14338 | } |
| 14339 | _ACEOF |
| 14340 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14341 | if { (ac_try="$ac_compile" |
| 14342 | case "(($ac_try" in |
| 14343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14344 | *) ac_try_echo=$ac_try;; |
| 14345 | esac |
| 14346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14347 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14348 | ac_status=$? |
| 14349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14350 | rm -f conftest.er1 |
| 14351 | cat conftest.err >&5 |
| 14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14353 | (exit $ac_status); } && { |
| 14354 | test -z "$ac_c_werror_flag" || |
| 14355 | test ! -s conftest.err |
| 14356 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14357 | ac_cv_type_intptr_t=yes |
| 14358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14359 | echo "$as_me: failed program was:" >&5 |
| 14360 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14362 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14363 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14364 | |
| 14365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14366 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14367 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14368 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14369 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14370 | |
| 14371 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14372 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14373 | _ACEOF |
| 14374 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14375 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | fi |
| 14377 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14378 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14379 | 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] | 14380 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14382 | else |
| 14383 | cat >conftest.$ac_ext <<_ACEOF |
| 14384 | /* confdefs.h. */ |
| 14385 | _ACEOF |
| 14386 | cat confdefs.h >>conftest.$ac_ext |
| 14387 | cat >>conftest.$ac_ext <<_ACEOF |
| 14388 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14389 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14390 | int |
| 14391 | main () |
| 14392 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14393 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14394 | ; |
| 14395 | return 0; |
| 14396 | } |
| 14397 | _ACEOF |
| 14398 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14399 | if { (ac_try="$ac_compile" |
| 14400 | case "(($ac_try" in |
| 14401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14402 | *) ac_try_echo=$ac_try;; |
| 14403 | esac |
| 14404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14405 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14406 | ac_status=$? |
| 14407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14408 | rm -f conftest.er1 |
| 14409 | cat conftest.err >&5 |
| 14410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14411 | (exit $ac_status); } && { |
| 14412 | test -z "$ac_c_werror_flag" || |
| 14413 | test ! -s conftest.err |
| 14414 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14415 | e2fsprogs_cv_struct_st_flags=yes |
| 14416 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14417 | echo "$as_me: failed program was:" >&5 |
| 14418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14420 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14421 | fi |
| 14422 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14424 | fi |
| 14425 | |
| 14426 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14427 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14428 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14429 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14430 | 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] | 14431 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14433 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14434 | cat >conftest.$ac_ext <<_ACEOF |
| 14435 | /* confdefs.h. */ |
| 14436 | _ACEOF |
| 14437 | cat confdefs.h >>conftest.$ac_ext |
| 14438 | cat >>conftest.$ac_ext <<_ACEOF |
| 14439 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14440 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14441 | int |
| 14442 | main () |
| 14443 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14444 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14445 | ; |
| 14446 | return 0; |
| 14447 | } |
| 14448 | _ACEOF |
| 14449 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14450 | if { (ac_try="$ac_compile" |
| 14451 | case "(($ac_try" in |
| 14452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14453 | *) ac_try_echo=$ac_try;; |
| 14454 | esac |
| 14455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14456 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14457 | ac_status=$? |
| 14458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14459 | rm -f conftest.er1 |
| 14460 | cat conftest.err >&5 |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14462 | (exit $ac_status); } && { |
| 14463 | test -z "$ac_c_werror_flag" || |
| 14464 | test ! -s conftest.err |
| 14465 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14466 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14467 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14468 | echo "$as_me: failed program was:" >&5 |
| 14469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14471 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14472 | fi |
| 14473 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14475 | fi |
| 14476 | |
| 14477 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14478 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14479 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14481 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14482 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14483 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14484 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14486 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14487 | 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] | 14488 | 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] | 14489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | cat >conftest.$ac_ext <<_ACEOF |
| 14492 | /* confdefs.h. */ |
| 14493 | _ACEOF |
| 14494 | cat confdefs.h >>conftest.$ac_ext |
| 14495 | cat >>conftest.$ac_ext <<_ACEOF |
| 14496 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14497 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14498 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14500 | int |
| 14501 | main () |
| 14502 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14503 | static struct sockaddr ac_aggr; |
| 14504 | if (ac_aggr.sa_len) |
| 14505 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14506 | ; |
| 14507 | return 0; |
| 14508 | } |
| 14509 | _ACEOF |
| 14510 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14511 | if { (ac_try="$ac_compile" |
| 14512 | case "(($ac_try" in |
| 14513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14514 | *) ac_try_echo=$ac_try;; |
| 14515 | esac |
| 14516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14517 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14518 | ac_status=$? |
| 14519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14520 | rm -f conftest.er1 |
| 14521 | cat conftest.err >&5 |
| 14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14523 | (exit $ac_status); } && { |
| 14524 | test -z "$ac_c_werror_flag" || |
| 14525 | test ! -s conftest.err |
| 14526 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14527 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | echo "$as_me: failed program was:" >&5 |
| 14530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14532 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14533 | /* confdefs.h. */ |
| 14534 | _ACEOF |
| 14535 | cat confdefs.h >>conftest.$ac_ext |
| 14536 | cat >>conftest.$ac_ext <<_ACEOF |
| 14537 | /* end confdefs.h. */ |
| 14538 | #include <sys/types.h> |
| 14539 | #include <sys/socket.h> |
| 14540 | |
| 14541 | int |
| 14542 | main () |
| 14543 | { |
| 14544 | static struct sockaddr ac_aggr; |
| 14545 | if (sizeof ac_aggr.sa_len) |
| 14546 | return 0; |
| 14547 | ; |
| 14548 | return 0; |
| 14549 | } |
| 14550 | _ACEOF |
| 14551 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14552 | if { (ac_try="$ac_compile" |
| 14553 | case "(($ac_try" in |
| 14554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14555 | *) ac_try_echo=$ac_try;; |
| 14556 | esac |
| 14557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14558 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14559 | ac_status=$? |
| 14560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14561 | rm -f conftest.er1 |
| 14562 | cat conftest.err >&5 |
| 14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14564 | (exit $ac_status); } && { |
| 14565 | test -z "$ac_c_werror_flag" || |
| 14566 | test ! -s conftest.err |
| 14567 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14568 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14569 | else |
| 14570 | echo "$as_me: failed program was:" >&5 |
| 14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14572 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14573 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14575 | |
| 14576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14578 | |
| 14579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14581 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14582 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14583 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14584 | |
| 14585 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14586 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14587 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14588 | |
| 14589 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14590 | |
| 14591 | |
| 14592 | |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | |
| 14597 | |
| 14598 | |
| 14599 | |
| 14600 | |
| 14601 | |
| 14602 | |
| 14603 | |
| 14604 | |
| 14605 | |
| 14606 | |
| 14607 | |
| 14608 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14609 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14610 | |
| 14611 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14612 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14613 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14614 | |
| 14615 | |
| 14616 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14617 | |
| 14618 | |
| 14619 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14620 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14621 | 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] | 14622 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14624 | 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] | 14625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14626 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14627 | cat >conftest.$ac_ext <<_ACEOF |
| 14628 | /* confdefs.h. */ |
| 14629 | _ACEOF |
| 14630 | cat confdefs.h >>conftest.$ac_ext |
| 14631 | cat >>conftest.$ac_ext <<_ACEOF |
| 14632 | /* end confdefs.h. */ |
| 14633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14635 | #define $ac_func innocuous_$ac_func |
| 14636 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14637 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14638 | which can conflict with char $ac_func (); below. |
| 14639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14640 | <limits.h> exists even on freestanding compilers. */ |
| 14641 | |
| 14642 | #ifdef __STDC__ |
| 14643 | # include <limits.h> |
| 14644 | #else |
| 14645 | # include <assert.h> |
| 14646 | #endif |
| 14647 | |
| 14648 | #undef $ac_func |
| 14649 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14650 | /* Override any GCC internal prototype to avoid an error. |
| 14651 | Use char because int might match the return type of a GCC |
| 14652 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14653 | #ifdef __cplusplus |
| 14654 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14655 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14656 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14657 | /* The GNU C library defines this for functions which it implements |
| 14658 | to always fail with ENOSYS. Some functions are actually named |
| 14659 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14660 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14661 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14662 | #endif |
| 14663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14664 | int |
| 14665 | main () |
| 14666 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14667 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14668 | ; |
| 14669 | return 0; |
| 14670 | } |
| 14671 | _ACEOF |
| 14672 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14673 | if { (ac_try="$ac_link" |
| 14674 | case "(($ac_try" in |
| 14675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14676 | *) ac_try_echo=$ac_try;; |
| 14677 | esac |
| 14678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14679 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14680 | ac_status=$? |
| 14681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14682 | rm -f conftest.er1 |
| 14683 | cat conftest.err >&5 |
| 14684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14685 | (exit $ac_status); } && { |
| 14686 | test -z "$ac_c_werror_flag" || |
| 14687 | test ! -s conftest.err |
| 14688 | } && test -s conftest$ac_exeext && |
| 14689 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14690 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14691 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14692 | echo "$as_me: failed program was:" >&5 |
| 14693 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14695 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14696 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14697 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14698 | 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] | 14699 | conftest$ac_exeext conftest.$ac_ext |
| 14700 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14701 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14702 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14703 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14704 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14705 | cat >>confdefs.h <<_ACEOF |
| 14706 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14707 | _ACEOF |
| 14708 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14709 | fi |
| 14710 | done |
| 14711 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14712 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14713 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14714 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14715 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14717 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14718 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14719 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14720 | cat >conftest.$ac_ext <<_ACEOF |
| 14721 | /* confdefs.h. */ |
| 14722 | _ACEOF |
| 14723 | cat confdefs.h >>conftest.$ac_ext |
| 14724 | cat >>conftest.$ac_ext <<_ACEOF |
| 14725 | /* end confdefs.h. */ |
| 14726 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14727 | /* Override any GCC internal prototype to avoid an error. |
| 14728 | Use char because int might match the return type of a GCC |
| 14729 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14730 | #ifdef __cplusplus |
| 14731 | extern "C" |
| 14732 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14733 | char socket (); |
| 14734 | int |
| 14735 | main () |
| 14736 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14737 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14738 | ; |
| 14739 | return 0; |
| 14740 | } |
| 14741 | _ACEOF |
| 14742 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14743 | if { (ac_try="$ac_link" |
| 14744 | case "(($ac_try" in |
| 14745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14746 | *) ac_try_echo=$ac_try;; |
| 14747 | esac |
| 14748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14749 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14750 | ac_status=$? |
| 14751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14752 | rm -f conftest.er1 |
| 14753 | cat conftest.err >&5 |
| 14754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14755 | (exit $ac_status); } && { |
| 14756 | test -z "$ac_c_werror_flag" || |
| 14757 | test ! -s conftest.err |
| 14758 | } && test -s conftest$ac_exeext && |
| 14759 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14760 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14761 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14762 | echo "$as_me: failed program was:" >&5 |
| 14763 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14765 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14766 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14767 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14768 | 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] | 14769 | conftest$ac_exeext conftest.$ac_ext |
| 14770 | LIBS=$ac_check_lib_save_LIBS |
| 14771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14772 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14773 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14774 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14775 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14776 | fi |
| 14777 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14778 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14779 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14780 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14781 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14782 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14784 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14785 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14786 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14787 | cat >conftest.$ac_ext <<_ACEOF |
| 14788 | /* confdefs.h. */ |
| 14789 | _ACEOF |
| 14790 | cat confdefs.h >>conftest.$ac_ext |
| 14791 | cat >>conftest.$ac_ext <<_ACEOF |
| 14792 | /* end confdefs.h. */ |
| 14793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14794 | /* Override any GCC internal prototype to avoid an error. |
| 14795 | Use char because int might match the return type of a GCC |
| 14796 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | #ifdef __cplusplus |
| 14798 | extern "C" |
| 14799 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14800 | char dlopen (); |
| 14801 | int |
| 14802 | main () |
| 14803 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14804 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14805 | ; |
| 14806 | return 0; |
| 14807 | } |
| 14808 | _ACEOF |
| 14809 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14810 | if { (ac_try="$ac_link" |
| 14811 | case "(($ac_try" in |
| 14812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14813 | *) ac_try_echo=$ac_try;; |
| 14814 | esac |
| 14815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14816 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14817 | ac_status=$? |
| 14818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14819 | rm -f conftest.er1 |
| 14820 | cat conftest.err >&5 |
| 14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14822 | (exit $ac_status); } && { |
| 14823 | test -z "$ac_c_werror_flag" || |
| 14824 | test ! -s conftest.err |
| 14825 | } && test -s conftest$ac_exeext && |
| 14826 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14827 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14828 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14829 | echo "$as_me: failed program was:" >&5 |
| 14830 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14832 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14833 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14834 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14835 | 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] | 14836 | conftest$ac_exeext conftest.$ac_ext |
| 14837 | LIBS=$ac_check_lib_save_LIBS |
| 14838 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14839 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14840 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14841 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14842 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14843 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14844 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14845 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14846 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14847 | fi |
| 14848 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14850 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 14851 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14852 | if test "${ac_cv_have_optreset+set}" = set; then |
| 14853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14854 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14855 | cat >conftest.$ac_ext <<_ACEOF |
| 14856 | /* confdefs.h. */ |
| 14857 | _ACEOF |
| 14858 | cat confdefs.h >>conftest.$ac_ext |
| 14859 | cat >>conftest.$ac_ext <<_ACEOF |
| 14860 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14861 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14862 | |
| 14863 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14865 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14866 | ac_cv_have_optreset=yes |
| 14867 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14868 | ac_cv_have_optreset=no |
| 14869 | fi |
| 14870 | rm -f conftest* |
| 14871 | |
| 14872 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14873 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 14874 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14875 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14876 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14877 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14878 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14879 | |
| 14880 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14881 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 14882 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14883 | if diff -u $0 $0 >& /dev/null ; then |
| 14884 | UNI_DIFF_OPTS=-u |
| 14885 | else |
| 14886 | UNI_DIFF_OPTS=-c |
| 14887 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14888 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 14889 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14890 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14891 | case "$host_os" in |
| 14892 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14893 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14894 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14895 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14896 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14897 | ;; |
| 14898 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14899 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14900 | CYGWIN_CMT="#" |
| 14901 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14902 | case "$host_os" in |
| 14903 | linux*) |
| 14904 | LINUX_CMT= |
| 14905 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14906 | cygwin) |
| 14907 | CYGWIN_CMT= |
| 14908 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14909 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14910 | esac |
| 14911 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14912 | |
| 14913 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14914 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14915 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14916 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 14917 | root_prefix=""; |
| 14918 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14919 | fi |
| 14920 | ;; |
| 14921 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14922 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14923 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14924 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14925 | prefix="/usr"; |
| 14926 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 14927 | if test "$mandir" = '${prefix}/man' ; then |
| 14928 | echo "...and mandir defaults to /usr/share/man" |
| 14929 | mandir=/usr/share/man |
| 14930 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14931 | fi |
| 14932 | ;; |
| 14933 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14934 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 14935 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14936 | root_prefix="$ac_default_prefix" |
| 14937 | else |
| 14938 | root_prefix="$prefix" |
| 14939 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 14940 | root_bindir=$bindir |
| 14941 | root_sbindir=$sbindir |
| 14942 | root_libdir=$libdir |
| 14943 | root_sysconfdir=$sysconfdir |
| 14944 | else |
| 14945 | root_bindir='${root_prefix}/bin' |
| 14946 | root_sbindir='${root_prefix}/sbin' |
| 14947 | root_libdir='${root_prefix}/lib' |
| 14948 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14949 | fi |
| 14950 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14951 | |
| 14952 | |
| 14953 | |
| 14954 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14955 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 14956 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14957 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 14958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14959 | else |
| 14960 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14961 | cat >conftest.$ac_ext <<_ACEOF |
| 14962 | /* confdefs.h. */ |
| 14963 | _ACEOF |
| 14964 | cat confdefs.h >>conftest.$ac_ext |
| 14965 | cat >>conftest.$ac_ext <<_ACEOF |
| 14966 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14967 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14968 | int |
| 14969 | main () |
| 14970 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14971 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14972 | ; |
| 14973 | return 0; |
| 14974 | } |
| 14975 | _ACEOF |
| 14976 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14977 | if { (ac_try="$ac_link" |
| 14978 | case "(($ac_try" in |
| 14979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14980 | *) ac_try_echo=$ac_try;; |
| 14981 | esac |
| 14982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14983 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14984 | ac_status=$? |
| 14985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14986 | rm -f conftest.er1 |
| 14987 | cat conftest.err >&5 |
| 14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14989 | (exit $ac_status); } && { |
| 14990 | test -z "$ac_c_werror_flag" || |
| 14991 | test ! -s conftest.err |
| 14992 | } && test -s conftest$ac_exeext && |
| 14993 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14994 | ac_cv_e2fsprogs_use_static=yes |
| 14995 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14996 | echo "$as_me: failed program was:" >&5 |
| 14997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14998 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14999 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15000 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15001 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15002 | 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] | 15003 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15004 | LDFLAGS=$SAVE_LDFLAGS |
| 15005 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15006 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15007 | case "$host_os" in |
| 15008 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15009 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15010 | ;; |
| 15011 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15012 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15013 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15014 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15015 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15016 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15017 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15018 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15019 | case "$host_os" in |
| 15020 | darwin*) |
| 15021 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15022 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15023 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15024 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15025 | |
| 15026 | ;; |
| 15027 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15028 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15029 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15030 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15031 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15032 | if test "$cross_compiling" = yes ; then |
| 15033 | DO_TEST_SUITE= |
| 15034 | else |
| 15035 | DO_TEST_SUITE=check |
| 15036 | fi |
| 15037 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15038 | INTL_FLAGS= |
| 15039 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15040 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15041 | fi |
| 15042 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15043 | if test $cross_compiling = no; then |
| 15044 | BUILD_CFLAGS="$CFLAGS" |
| 15045 | BUILD_LDFLAGS="$LDFLAGS" |
| 15046 | else |
| 15047 | BUILD_CFLAGS= |
| 15048 | BUILD_LDFLAGS= |
| 15049 | fi |
| 15050 | |
| 15051 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15052 | test -d lib || mkdir lib |
| 15053 | test -d include || mkdir include |
| 15054 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15055 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15056 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15057 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15058 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15059 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15060 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15061 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15062 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15063 | 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] | 15064 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15065 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15066 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15067 | if test -d `dirname ${srcdir}/$i` ; then |
| 15068 | outlist="$outlist $i" |
| 15069 | fi |
| 15070 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15071 | ac_config_files="$ac_config_files $outlist" |
| 15072 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15073 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15074 | # This file is a shell script that caches the results of configure |
| 15075 | # 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] | 15076 | # scripts and configure runs, see configure's option --config-cache. |
| 15077 | # It is not useful on other systems. If it contains results you don't |
| 15078 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15079 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15080 | # config.status only pays attention to the cache file if you give it |
| 15081 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15082 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15083 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15084 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15085 | # following values. |
| 15086 | |
| 15087 | _ACEOF |
| 15088 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15089 | # The following way of writing the cache mishandles newlines in values, |
| 15090 | # 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] | 15091 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15092 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15093 | # 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] | 15094 | ( |
| 15095 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15096 | eval ac_val=\$$ac_var |
| 15097 | case $ac_val in #( |
| 15098 | *${as_nl}*) |
| 15099 | case $ac_var in #( |
| 15100 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15101 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15102 | esac |
| 15103 | case $ac_var in #( |
| 15104 | _ | IFS | as_nl) ;; #( |
| 15105 | *) $as_unset $ac_var ;; |
| 15106 | esac ;; |
| 15107 | esac |
| 15108 | done |
| 15109 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15110 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15111 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15112 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15113 | # `set' does not quote correctly, so add quotes (double-quote |
| 15114 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15115 | sed -n \ |
| 15116 | "s/'/'\\\\''/g; |
| 15117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15118 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15119 | *) |
| 15120 | # `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] | 15121 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15122 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15123 | esac | |
| 15124 | sort |
| 15125 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15126 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15127 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15128 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15129 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15130 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15131 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15132 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15133 | :end' >>confcache |
| 15134 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15135 | if test -w "$cache_file"; then |
| 15136 | test "x$cache_file" != "x/dev/null" && |
| 15137 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15138 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15139 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15140 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15141 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15142 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15143 | fi |
| 15144 | fi |
| 15145 | rm -f confcache |
| 15146 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15148 | # Let make expand exec_prefix. |
| 15149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15150 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15151 | # Transform confdefs.h into DEFS. |
| 15152 | # Protect against shell expansion while executing Makefile rules. |
| 15153 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15154 | # |
| 15155 | # 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] | 15156 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15157 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15158 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15159 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15160 | :clear |
| 15161 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15162 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15163 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15164 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15165 | b any |
| 15166 | :quote |
| 15167 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15168 | s/\[/\\&/g |
| 15169 | s/\]/\\&/g |
| 15170 | s/\$/$$/g |
| 15171 | H |
| 15172 | :any |
| 15173 | ${ |
| 15174 | g |
| 15175 | s/^\n// |
| 15176 | s/\n/ /g |
| 15177 | p |
| 15178 | } |
| 15179 | ' |
| 15180 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15181 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15183 | ac_libobjs= |
| 15184 | ac_ltlibobjs= |
| 15185 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15186 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15187 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15188 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15189 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15190 | # will be set to the directory where LIBOBJS objects are built. |
| 15191 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15192 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15193 | done |
| 15194 | LIBOBJS=$ac_libobjs |
| 15195 | |
| 15196 | LTLIBOBJS=$ac_ltlibobjs |
| 15197 | |
| 15198 | |
| 15199 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15200 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15201 | ac_clean_files_save=$ac_clean_files |
| 15202 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15203 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15204 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15205 | cat >$CONFIG_STATUS <<_ACEOF |
| 15206 | #! $SHELL |
| 15207 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15208 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15209 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15210 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15212 | debug=false |
| 15213 | ac_cs_recheck=false |
| 15214 | ac_cs_silent=false |
| 15215 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15216 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15217 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15218 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15219 | ## --------------------- ## |
| 15220 | ## M4sh Initialization. ## |
| 15221 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15222 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15223 | # Be more Bourne compatible |
| 15224 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15225 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15226 | emulate sh |
| 15227 | NULLCMD=: |
| 15228 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15229 | # is contrary to our usage. Disable this feature. |
| 15230 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15231 | setopt NO_GLOB_SUBST |
| 15232 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15233 | case `(set -o) 2>/dev/null` in |
| 15234 | *posix*) set -o posix ;; |
| 15235 | esac |
| 15236 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15237 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15238 | |
| 15239 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15240 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15241 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15242 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15243 | # Avoid depending upon Character Ranges. |
| 15244 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15245 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15246 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15247 | as_cr_digits='0123456789' |
| 15248 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15249 | |
| 15250 | # The user is always right. |
| 15251 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15252 | echo "#! /bin/sh" >conf$$.sh |
| 15253 | echo "exit 0" >>conf$$.sh |
| 15254 | chmod +x conf$$.sh |
| 15255 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15256 | PATH_SEPARATOR=';' |
| 15257 | else |
| 15258 | PATH_SEPARATOR=: |
| 15259 | fi |
| 15260 | rm -f conf$$.sh |
| 15261 | fi |
| 15262 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15263 | # Support unset when possible. |
| 15264 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15265 | as_unset=unset |
| 15266 | else |
| 15267 | as_unset=false |
| 15268 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15270 | |
| 15271 | # IFS |
| 15272 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15273 | # there to prevent editors from complaining about space-tab. |
| 15274 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15275 | # splitting by setting IFS to empty value.) |
| 15276 | as_nl=' |
| 15277 | ' |
| 15278 | IFS=" "" $as_nl" |
| 15279 | |
| 15280 | # Find who we are. Look in the path if we contain no directory separator. |
| 15281 | case $0 in |
| 15282 | *[\\/]* ) as_myself=$0 ;; |
| 15283 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15284 | for as_dir in $PATH |
| 15285 | do |
| 15286 | IFS=$as_save_IFS |
| 15287 | test -z "$as_dir" && as_dir=. |
| 15288 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15289 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15290 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15292 | ;; |
| 15293 | esac |
| 15294 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15295 | # in which case we are not to be found in the path. |
| 15296 | if test "x$as_myself" = x; then |
| 15297 | as_myself=$0 |
| 15298 | fi |
| 15299 | if test ! -f "$as_myself"; then |
| 15300 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15301 | { (exit 1); exit 1; } |
| 15302 | fi |
| 15303 | |
| 15304 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15305 | for as_var in ENV MAIL MAILPATH |
| 15306 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15307 | done |
| 15308 | PS1='$ ' |
| 15309 | PS2='> ' |
| 15310 | PS4='+ ' |
| 15311 | |
| 15312 | # NLS nuisances. |
| 15313 | for as_var in \ |
| 15314 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15315 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15316 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15317 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15318 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15319 | eval $as_var=C; export $as_var |
| 15320 | else |
| 15321 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15322 | fi |
| 15323 | done |
| 15324 | |
| 15325 | # Required to use basename. |
| 15326 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15327 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15328 | as_expr=expr |
| 15329 | else |
| 15330 | as_expr=false |
| 15331 | fi |
| 15332 | |
| 15333 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15334 | as_basename=basename |
| 15335 | else |
| 15336 | as_basename=false |
| 15337 | fi |
| 15338 | |
| 15339 | |
| 15340 | # Name of the executable. |
| 15341 | as_me=`$as_basename -- "$0" || |
| 15342 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15343 | X"$0" : 'X\(//\)$' \| \ |
| 15344 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15345 | echo X/"$0" | |
| 15346 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15347 | s//\1/ |
| 15348 | q |
| 15349 | } |
| 15350 | /^X\/\(\/\/\)$/{ |
| 15351 | s//\1/ |
| 15352 | q |
| 15353 | } |
| 15354 | /^X\/\(\/\).*/{ |
| 15355 | s//\1/ |
| 15356 | q |
| 15357 | } |
| 15358 | s/.*/./; q'` |
| 15359 | |
| 15360 | # CDPATH. |
| 15361 | $as_unset CDPATH |
| 15362 | |
| 15363 | |
| 15364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15365 | as_lineno_1=$LINENO |
| 15366 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15367 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15368 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15370 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15371 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15372 | # line-number line after each line using $LINENO; the second 'sed' |
| 15373 | # does the real work. The second script uses 'N' to pair each |
| 15374 | # line-number line with the line containing $LINENO, and appends |
| 15375 | # trailing '-' during substitution so that $LINENO is not a special |
| 15376 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15377 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15378 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15379 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15380 | sed -n ' |
| 15381 | p |
| 15382 | /[$]LINENO/= |
| 15383 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15384 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15385 | s/[$]LINENO.*/&-/ |
| 15386 | t lineno |
| 15387 | b |
| 15388 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15389 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15390 | :loop |
| 15391 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15392 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15393 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15394 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15395 | chmod +x "$as_me.lineno" || |
| 15396 | { 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] | 15397 | { (exit 1); exit 1; }; } |
| 15398 | |
| 15399 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15400 | # (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] | 15401 | # original and so on. Autoconf is especially sensitive to this). |
| 15402 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15403 | # Exit status is that of the last command. |
| 15404 | exit |
| 15405 | } |
| 15406 | |
| 15407 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15408 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15409 | as_dirname=dirname |
| 15410 | else |
| 15411 | as_dirname=false |
| 15412 | fi |
| 15413 | |
| 15414 | ECHO_C= ECHO_N= ECHO_T= |
| 15415 | case `echo -n x` in |
| 15416 | -n*) |
| 15417 | case `echo 'x\c'` in |
| 15418 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15419 | *) ECHO_C='\c';; |
| 15420 | esac;; |
| 15421 | *) |
| 15422 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15423 | esac |
| 15424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15425 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15426 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15427 | as_expr=expr |
| 15428 | else |
| 15429 | as_expr=false |
| 15430 | fi |
| 15431 | |
| 15432 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15433 | if test -d conf$$.dir; then |
| 15434 | rm -f conf$$.dir/conf$$.file |
| 15435 | else |
| 15436 | rm -f conf$$.dir |
| 15437 | mkdir conf$$.dir |
| 15438 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15439 | echo >conf$$.file |
| 15440 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15441 | as_ln_s='ln -s' |
| 15442 | # ... but there are two gotchas: |
| 15443 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15444 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15445 | # In both cases, we have to default to `cp -p'. |
| 15446 | 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] | 15447 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15448 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15449 | as_ln_s=ln |
| 15450 | else |
| 15451 | as_ln_s='cp -p' |
| 15452 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15453 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15454 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15455 | |
| 15456 | if mkdir -p . 2>/dev/null; then |
| 15457 | as_mkdir_p=: |
| 15458 | else |
| 15459 | test -d ./-p && rmdir ./-p |
| 15460 | as_mkdir_p=false |
| 15461 | fi |
| 15462 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15463 | if test -x / >/dev/null 2>&1; then |
| 15464 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15465 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15466 | if ls -dL / >/dev/null 2>&1; then |
| 15467 | as_ls_L_option=L |
| 15468 | else |
| 15469 | as_ls_L_option= |
| 15470 | fi |
| 15471 | as_test_x=' |
| 15472 | eval sh -c '\'' |
| 15473 | if test -d "$1"; then |
| 15474 | test -d "$1/."; |
| 15475 | else |
| 15476 | case $1 in |
| 15477 | -*)set "./$1";; |
| 15478 | esac; |
| 15479 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15480 | ???[sx]*):;;*)false;;esac;fi |
| 15481 | '\'' sh |
| 15482 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15483 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15484 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15485 | |
| 15486 | # Sed expression to map a string onto a valid CPP name. |
| 15487 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15488 | |
| 15489 | # Sed expression to map a string onto a valid variable name. |
| 15490 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15491 | |
| 15492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15493 | exec 6>&1 |
| 15494 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15495 | # 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] | 15496 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15497 | # values after options handling. |
| 15498 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15499 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15500 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15501 | |
| 15502 | CONFIG_FILES = $CONFIG_FILES |
| 15503 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15504 | CONFIG_LINKS = $CONFIG_LINKS |
| 15505 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15506 | $ $0 $@ |
| 15507 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15508 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15509 | " |
| 15510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15511 | _ACEOF |
| 15512 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15513 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15514 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15515 | config_files="$ac_config_files" |
| 15516 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15517 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15518 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15519 | |
| 15520 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15521 | ac_cs_usage="\ |
| 15522 | \`$as_me' instantiates files from templates according to the |
| 15523 | current configuration. |
| 15524 | |
| 15525 | Usage: $0 [OPTIONS] [FILE]... |
| 15526 | |
| 15527 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15528 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15529 | -q, --quiet do not print progress messages |
| 15530 | -d, --debug don't remove temporary files |
| 15531 | --recheck update $as_me by reconfiguring in the same conditions |
| 15532 | --file=FILE[:TEMPLATE] |
| 15533 | instantiate the configuration file FILE |
| 15534 | |
| 15535 | Configuration files: |
| 15536 | $config_files |
| 15537 | |
| 15538 | Configuration commands: |
| 15539 | $config_commands |
| 15540 | |
| 15541 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15542 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15543 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15544 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15545 | ac_cs_version="\\ |
| 15546 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15547 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15548 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15550 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15551 | This config.status script is free software; the Free Software Foundation |
| 15552 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15553 | |
| 15554 | ac_pwd='$ac_pwd' |
| 15555 | srcdir='$srcdir' |
| 15556 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15557 | _ACEOF |
| 15558 | |
| 15559 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15560 | # If no file are specified by the user, then we need to provide default |
| 15561 | # value. By we need to know if files were specified by the user. |
| 15562 | ac_need_defaults=: |
| 15563 | while test $# != 0 |
| 15564 | do |
| 15565 | case $1 in |
| 15566 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15567 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15568 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15569 | ac_shift=: |
| 15570 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15571 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15572 | ac_option=$1 |
| 15573 | ac_optarg=$2 |
| 15574 | ac_shift=shift |
| 15575 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15576 | esac |
| 15577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15578 | case $ac_option in |
| 15579 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15580 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15581 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15582 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15583 | echo "$ac_cs_version"; exit ;; |
| 15584 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15585 | debug=: ;; |
| 15586 | --file | --fil | --fi | --f ) |
| 15587 | $ac_shift |
| 15588 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15589 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15590 | --he | --h | --help | --hel | -h ) |
| 15591 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15592 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15593 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15594 | ac_cs_silent=: ;; |
| 15595 | |
| 15596 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15597 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15598 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15599 | { (exit 1); exit 1; }; } ;; |
| 15600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15601 | *) ac_config_targets="$ac_config_targets $1" |
| 15602 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15603 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15604 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15605 | shift |
| 15606 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15607 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15608 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15610 | if $ac_cs_silent; then |
| 15611 | exec 6>/dev/null |
| 15612 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15613 | fi |
| 15614 | |
| 15615 | _ACEOF |
| 15616 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15617 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15618 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15619 | CONFIG_SHELL=$SHELL |
| 15620 | export CONFIG_SHELL |
| 15621 | 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] | 15622 | fi |
| 15623 | |
| 15624 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15625 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15626 | exec 5>>config.log |
| 15627 | { |
| 15628 | echo |
| 15629 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15630 | ## Running $as_me. ## |
| 15631 | _ASBOX |
| 15632 | echo "$ac_log" |
| 15633 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15635 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15636 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15637 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15638 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15639 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15640 | # 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] | 15641 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15642 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15643 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15644 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15645 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15646 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15648 | _ACEOF |
| 15649 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15650 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15651 | |
| 15652 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15653 | for ac_config_target in $ac_config_targets |
| 15654 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15655 | case $ac_config_target in |
| 15656 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15657 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15658 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15659 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15660 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15661 | { (exit 1); exit 1; }; };; |
| 15662 | esac |
| 15663 | done |
| 15664 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15665 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15666 | # If the user did not use the arguments to specify the items to instantiate, |
| 15667 | # then the envvar interface is used. Set only those that are not. |
| 15668 | # We use the long form for the default assignment because of an extremely |
| 15669 | # bizarre bug on SunOS 4.1.3. |
| 15670 | if $ac_need_defaults; then |
| 15671 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15672 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15673 | fi |
| 15674 | |
| 15675 | # 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] | 15676 | # 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] | 15677 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15678 | # Hook for its removal unless debugging. |
| 15679 | # Note that there is a small window in which the directory will not be cleaned: |
| 15680 | # 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] | 15681 | $debug || |
| 15682 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15683 | tmp= |
| 15684 | trap 'exit_status=$? |
| 15685 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15686 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15687 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15688 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15689 | # Create a (secure) tmp directory for tmp files. |
| 15690 | |
| 15691 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15692 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15693 | test -n "$tmp" && test -d "$tmp" |
| 15694 | } || |
| 15695 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15696 | tmp=./conf$$-$RANDOM |
| 15697 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15698 | } || |
| 15699 | { |
| 15700 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15701 | { (exit 1); exit 1; } |
| 15702 | } |
| 15703 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15704 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15705 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15706 | # |
| 15707 | |
| 15708 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15709 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15710 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15711 | |
| 15712 | _ACEOF |
| 15713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15714 | # Create sed commands to just substitute file output variables. |
| 15715 | |
| 15716 | # Remaining file output variables are in a fragment that also has non-file |
| 15717 | # output varibles. |
| 15718 | |
| 15719 | |
| 15720 | |
| 15721 | ac_delim='%!_!# ' |
| 15722 | for ac_last_try in false false false false false :; do |
| 15723 | cat >conf$$subs.sed <<_ACEOF |
| 15724 | SHELL!$SHELL$ac_delim |
| 15725 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15726 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15727 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15728 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15729 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15730 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15731 | exec_prefix!$exec_prefix$ac_delim |
| 15732 | prefix!$prefix$ac_delim |
| 15733 | program_transform_name!$program_transform_name$ac_delim |
| 15734 | bindir!$bindir$ac_delim |
| 15735 | sbindir!$sbindir$ac_delim |
| 15736 | libexecdir!$libexecdir$ac_delim |
| 15737 | datarootdir!$datarootdir$ac_delim |
| 15738 | datadir!$datadir$ac_delim |
| 15739 | sysconfdir!$sysconfdir$ac_delim |
| 15740 | sharedstatedir!$sharedstatedir$ac_delim |
| 15741 | localstatedir!$localstatedir$ac_delim |
| 15742 | includedir!$includedir$ac_delim |
| 15743 | oldincludedir!$oldincludedir$ac_delim |
| 15744 | docdir!$docdir$ac_delim |
| 15745 | infodir!$infodir$ac_delim |
| 15746 | htmldir!$htmldir$ac_delim |
| 15747 | dvidir!$dvidir$ac_delim |
| 15748 | pdfdir!$pdfdir$ac_delim |
| 15749 | psdir!$psdir$ac_delim |
| 15750 | libdir!$libdir$ac_delim |
| 15751 | localedir!$localedir$ac_delim |
| 15752 | mandir!$mandir$ac_delim |
| 15753 | DEFS!$DEFS$ac_delim |
| 15754 | ECHO_C!$ECHO_C$ac_delim |
| 15755 | ECHO_N!$ECHO_N$ac_delim |
| 15756 | ECHO_T!$ECHO_T$ac_delim |
| 15757 | LIBS!$LIBS$ac_delim |
| 15758 | build_alias!$build_alias$ac_delim |
| 15759 | host_alias!$host_alias$ac_delim |
| 15760 | target_alias!$target_alias$ac_delim |
| 15761 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15762 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15763 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15764 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15765 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15766 | build!$build$ac_delim |
| 15767 | build_cpu!$build_cpu$ac_delim |
| 15768 | build_vendor!$build_vendor$ac_delim |
| 15769 | build_os!$build_os$ac_delim |
| 15770 | host!$host$ac_delim |
| 15771 | host_cpu!$host_cpu$ac_delim |
| 15772 | host_vendor!$host_vendor$ac_delim |
| 15773 | host_os!$host_os$ac_delim |
| 15774 | CC!$CC$ac_delim |
| 15775 | CFLAGS!$CFLAGS$ac_delim |
| 15776 | LDFLAGS!$LDFLAGS$ac_delim |
| 15777 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15778 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15779 | EXEEXT!$EXEEXT$ac_delim |
| 15780 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15781 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15782 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15783 | GREP!$GREP$ac_delim |
| 15784 | EGREP!$EGREP$ac_delim |
| 15785 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 15786 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 15787 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 15788 | ELF_CMT!$ELF_CMT$ac_delim |
| 15789 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 15790 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 15791 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 15792 | LIB_EXT!$LIB_EXT$ac_delim |
| 15793 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 15794 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 15795 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 15796 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 15797 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 15798 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 15799 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15800 | _ACEOF |
| 15801 | |
| 15802 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 15803 | break |
| 15804 | elif $ac_last_try; then |
| 15805 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15806 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15807 | { (exit 1); exit 1; }; } |
| 15808 | else |
| 15809 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15810 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15811 | done |
| 15812 | |
| 15813 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15814 | if test -n "$ac_eof"; then |
| 15815 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15816 | ac_eof=`expr $ac_eof + 1` |
| 15817 | fi |
| 15818 | |
| 15819 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15820 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 15821 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15822 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 15823 | r $MCONFIG |
| 15824 | d |
| 15825 | } |
| 15826 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 15827 | r $MAKEFILE_ELF |
| 15828 | d |
| 15829 | } |
| 15830 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 15831 | r $MAKEFILE_BSDLIB |
| 15832 | d |
| 15833 | } |
| 15834 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 15835 | r $MAKEFILE_PROFILE |
| 15836 | d |
| 15837 | } |
| 15838 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 15839 | r $MAKEFILE_CHECKER |
| 15840 | d |
| 15841 | } |
| 15842 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 15843 | r $MAKEFILE_LIBRARY |
| 15844 | d |
| 15845 | } |
| 15846 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 15847 | r $ASM_TYPES_HEADER |
| 15848 | d |
| 15849 | } |
| 15850 | _ACEOF |
| 15851 | sed ' |
| 15852 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15853 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15854 | :n |
| 15855 | t n |
| 15856 | s/'"$ac_delim"'$/,g/; t |
| 15857 | s/$/\\/; p |
| 15858 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15859 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15860 | rm -f conf$$subs.sed |
| 15861 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15862 | CEOF$ac_eof |
| 15863 | _ACEOF |
| 15864 | |
| 15865 | |
| 15866 | ac_delim='%!_!# ' |
| 15867 | for ac_last_try in false false false false false :; do |
| 15868 | cat >conf$$subs.sed <<_ACEOF |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15869 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15870 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 15871 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 15872 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
| 15873 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 15874 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 15875 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 15876 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
| 15877 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 15878 | PACKAGE!$PACKAGE$ac_delim |
| 15879 | VERSION!$VERSION$ac_delim |
| 15880 | SET_MAKE!$SET_MAKE$ac_delim |
| 15881 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 15882 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 15883 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 15884 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 15885 | USE_NLS!$USE_NLS$ac_delim |
| 15886 | MSGFMT!$MSGFMT$ac_delim |
| 15887 | GMSGFMT!$GMSGFMT$ac_delim |
| 15888 | XGETTEXT!$XGETTEXT$ac_delim |
| 15889 | MSGMERGE!$MSGMERGE$ac_delim |
| 15890 | RANLIB!$RANLIB$ac_delim |
| 15891 | ALLOCA!$ALLOCA$ac_delim |
| 15892 | GLIBC21!$GLIBC21$ac_delim |
| 15893 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 15894 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 15895 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 15896 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 15897 | LIBICONV!$LIBICONV$ac_delim |
| 15898 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 15899 | INTLBISON!$INTLBISON$ac_delim |
| 15900 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 15901 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 15902 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 15903 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 15904 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 15905 | GENCAT!$GENCAT$ac_delim |
| 15906 | INTLOBJS!$INTLOBJS$ac_delim |
| 15907 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 15908 | INTLLIBS!$INTLLIBS$ac_delim |
| 15909 | LIBINTL!$LIBINTL$ac_delim |
| 15910 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 15911 | POSUB!$POSUB$ac_delim |
| 15912 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 15913 | LN!$LN$ac_delim |
| 15914 | LN_S!$LN_S$ac_delim |
| 15915 | MV!$MV$ac_delim |
| 15916 | CP!$CP$ac_delim |
| 15917 | RM!$RM$ac_delim |
| 15918 | CHMOD!$CHMOD$ac_delim |
| 15919 | AWK!$AWK$ac_delim |
| 15920 | SED!$SED$ac_delim |
| 15921 | PERL!$PERL$ac_delim |
| 15922 | LDCONFIG!$LDCONFIG$ac_delim |
| 15923 | AR!$AR$ac_delim |
| 15924 | STRIP!$STRIP$ac_delim |
| 15925 | BUILD_CC!$BUILD_CC$ac_delim |
| 15926 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 15927 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 15928 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 15929 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 15930 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 15931 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 15932 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 15933 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 15934 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 15935 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 15936 | root_prefix!$root_prefix$ac_delim |
| 15937 | root_bindir!$root_bindir$ac_delim |
| 15938 | root_sbindir!$root_sbindir$ac_delim |
| 15939 | root_libdir!$root_libdir$ac_delim |
| 15940 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 15941 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 15942 | SS_DIR!$SS_DIR$ac_delim |
| 15943 | ET_DIR!$ET_DIR$ac_delim |
| 15944 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 15945 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 15946 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 15947 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 15948 | LIBOBJS!$LIBOBJS$ac_delim |
| 15949 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 15950 | _ACEOF |
| 15951 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15952 | 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] | 15953 | break |
| 15954 | elif $ac_last_try; then |
| 15955 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15956 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15957 | { (exit 1); exit 1; }; } |
| 15958 | else |
| 15959 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15960 | fi |
| 15961 | done |
| 15962 | |
| 15963 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15964 | if test -n "$ac_eof"; then |
| 15965 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15966 | ac_eof=`expr $ac_eof + 1` |
| 15967 | fi |
| 15968 | |
| 15969 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15970 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 15971 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 15972 | _ACEOF |
| 15973 | sed ' |
| 15974 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15975 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15976 | :n |
| 15977 | t n |
| 15978 | s/'"$ac_delim"'$/,g/; t |
| 15979 | s/$/\\/; p |
| 15980 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15981 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15982 | rm -f conf$$subs.sed |
| 15983 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15984 | :end |
| 15985 | s/|#_!!_#|//g |
| 15986 | CEOF$ac_eof |
| 15987 | _ACEOF |
| 15988 | |
| 15989 | |
| 15990 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15991 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15992 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15993 | # (actually we leave an empty line to preserve line numbers). |
| 15994 | if test "x$srcdir" = x.; then |
| 15995 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15996 | s/:*\$(srcdir):*/:/ |
| 15997 | s/:*\${srcdir}:*/:/ |
| 15998 | s/:*@srcdir@:*/:/ |
| 15999 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16000 | s/:*$// |
| 16001 | s/^[^=]*=[ ]*$// |
| 16002 | }' |
| 16003 | fi |
| 16004 | |
| 16005 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16006 | fi # test -n "$CONFIG_FILES" |
| 16007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16008 | |
| 16009 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16010 | do |
| 16011 | case $ac_tag in |
| 16012 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16013 | esac |
| 16014 | case $ac_mode$ac_tag in |
| 16015 | :[FHL]*:*);; |
| 16016 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16017 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16018 | { (exit 1); exit 1; }; };; |
| 16019 | :[FH]-) ac_tag=-:-;; |
| 16020 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16021 | esac |
| 16022 | ac_save_IFS=$IFS |
| 16023 | IFS=: |
| 16024 | set x $ac_tag |
| 16025 | IFS=$ac_save_IFS |
| 16026 | shift |
| 16027 | ac_file=$1 |
| 16028 | shift |
| 16029 | |
| 16030 | case $ac_mode in |
| 16031 | :L) ac_source=$1;; |
| 16032 | :[FH]) |
| 16033 | ac_file_inputs= |
| 16034 | for ac_f |
| 16035 | do |
| 16036 | case $ac_f in |
| 16037 | -) ac_f="$tmp/stdin";; |
| 16038 | *) # Look for the file first in the build tree, then in the source tree |
| 16039 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16040 | # because $ac_f cannot contain `:'. |
| 16041 | test -f "$ac_f" || |
| 16042 | case $ac_f in |
| 16043 | [\\/$]*) false;; |
| 16044 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16045 | esac || |
| 16046 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16047 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16048 | { (exit 1); exit 1; }; };; |
| 16049 | esac |
| 16050 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16051 | done |
| 16052 | |
| 16053 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16054 | # use $as_me), people would be surprised to read: |
| 16055 | # /* config.h. Generated by config.status. */ |
| 16056 | configure_input="Generated from "`IFS=: |
| 16057 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16058 | if test x"$ac_file" != x-; then |
| 16059 | configure_input="$ac_file. $configure_input" |
| 16060 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16061 | echo "$as_me: creating $ac_file" >&6;} |
| 16062 | fi |
| 16063 | |
| 16064 | case $ac_tag in |
| 16065 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16066 | esac |
| 16067 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16068 | esac |
| 16069 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16070 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16071 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16072 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16073 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16074 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16075 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16076 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16077 | s//\1/ |
| 16078 | q |
| 16079 | } |
| 16080 | /^X\(\/\/\)[^/].*/{ |
| 16081 | s//\1/ |
| 16082 | q |
| 16083 | } |
| 16084 | /^X\(\/\/\)$/{ |
| 16085 | s//\1/ |
| 16086 | q |
| 16087 | } |
| 16088 | /^X\(\/\).*/{ |
| 16089 | s//\1/ |
| 16090 | q |
| 16091 | } |
| 16092 | s/.*/./; q'` |
| 16093 | { as_dir="$ac_dir" |
| 16094 | case $as_dir in #( |
| 16095 | -*) as_dir=./$as_dir;; |
| 16096 | esac |
| 16097 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16098 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16099 | while :; do |
| 16100 | case $as_dir in #( |
| 16101 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16102 | *) as_qdir=$as_dir;; |
| 16103 | esac |
| 16104 | as_dirs="'$as_qdir' $as_dirs" |
| 16105 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16106 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16107 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16108 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16109 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16110 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16112 | s//\1/ |
| 16113 | q |
| 16114 | } |
| 16115 | /^X\(\/\/\)[^/].*/{ |
| 16116 | s//\1/ |
| 16117 | q |
| 16118 | } |
| 16119 | /^X\(\/\/\)$/{ |
| 16120 | s//\1/ |
| 16121 | q |
| 16122 | } |
| 16123 | /^X\(\/\).*/{ |
| 16124 | s//\1/ |
| 16125 | q |
| 16126 | } |
| 16127 | s/.*/./; q'` |
| 16128 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16129 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16130 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16131 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16132 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16133 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16134 | ac_builddir=. |
| 16135 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16136 | case "$ac_dir" in |
| 16137 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16138 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16139 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16140 | # A ".." for each directory in $ac_dir_suffix. |
| 16141 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16142 | case $ac_top_builddir_sub in |
| 16143 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16144 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16145 | esac ;; |
| 16146 | esac |
| 16147 | ac_abs_top_builddir=$ac_pwd |
| 16148 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16149 | # for backward compatibility: |
| 16150 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16151 | |
| 16152 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16153 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16154 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16155 | ac_top_srcdir=$ac_top_builddir_sub |
| 16156 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16157 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16158 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16159 | ac_top_srcdir=$srcdir |
| 16160 | ac_abs_top_srcdir=$srcdir ;; |
| 16161 | *) # Relative name. |
| 16162 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16163 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16164 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16165 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16166 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16169 | case $ac_mode in |
| 16170 | :F) |
| 16171 | # |
| 16172 | # CONFIG_FILE |
| 16173 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16174 | |
| 16175 | case $INSTALL in |
| 16176 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16177 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16178 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16179 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16180 | |
| 16181 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16182 | # If the template does not know about datarootdir, expand it. |
| 16183 | # FIXME: This hack should be removed a few years after 2.60. |
| 16184 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16185 | |
| 16186 | case `sed -n '/datarootdir/ { |
| 16187 | p |
| 16188 | q |
| 16189 | } |
| 16190 | /@datadir@/p |
| 16191 | /@docdir@/p |
| 16192 | /@infodir@/p |
| 16193 | /@localedir@/p |
| 16194 | /@mandir@/p |
| 16195 | ' $ac_file_inputs` in |
| 16196 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16197 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16198 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16199 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16200 | _ACEOF |
| 16201 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16202 | ac_datarootdir_hack=' |
| 16203 | s&@datadir@&$datadir&g |
| 16204 | s&@docdir@&$docdir&g |
| 16205 | s&@infodir@&$infodir&g |
| 16206 | s&@localedir@&$localedir&g |
| 16207 | s&@mandir@&$mandir&g |
| 16208 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16209 | esac |
| 16210 | _ACEOF |
| 16211 | |
| 16212 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16213 | # Shell code in configure.ac might set extrasub. |
| 16214 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16215 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16216 | sed "$ac_vpsub |
| 16217 | $extrasub |
| 16218 | _ACEOF |
| 16219 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16220 | :t |
| 16221 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16222 | s&@configure_input@&$configure_input&;t t |
| 16223 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16224 | s&@srcdir@&$ac_srcdir&;t t |
| 16225 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16226 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16227 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16228 | s&@builddir@&$ac_builddir&;t t |
| 16229 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16230 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16231 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16232 | $ac_datarootdir_hack |
| 16233 | " $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] | 16234 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16235 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16236 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16237 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16238 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16239 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16240 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16241 | 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] | 16242 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16243 | rm -f "$tmp/stdin" |
| 16244 | case $ac_file in |
| 16245 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16246 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16247 | esac |
| 16248 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16249 | |
| 16250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16251 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16252 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16253 | ;; |
| 16254 | esac |
| 16255 | |
| 16256 | |
| 16257 | case $ac_file$ac_mode in |
| 16258 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16259 | for ac_file in $CONFIG_FILES; do |
| 16260 | # Support "outfile[:infile[:infile...]]" |
| 16261 | case "$ac_file" in |
| 16262 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16263 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16264 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16265 | case "$ac_file" in */Makefile.in) |
| 16266 | # Adjust a relative srcdir. |
| 16267 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16268 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16269 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16270 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16271 | # In autoconf-2.50 it is called $srcdir. |
| 16272 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16273 | case "$ac_given_srcdir" in |
| 16274 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16275 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16276 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16277 | esac |
| 16278 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16279 | rm -f "$ac_dir/POTFILES" |
| 16280 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16281 | 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] | 16282 | POMAKEFILEDEPS="POTFILES.in" |
| 16283 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16284 | # on $ac_dir but don't depend on user-specified configuration |
| 16285 | # parameters. |
| 16286 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16287 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16288 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16289 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16290 | fi |
| 16291 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16292 | # Hide the ALL_LINGUAS assigment from automake. |
| 16293 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16294 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16295 | else |
| 16296 | # The set of available languages was given in configure.in. |
| 16297 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16298 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16299 | # Compute POFILES |
| 16300 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16301 | # Compute UPDATEPOFILES |
| 16302 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16303 | # Compute DUMMYPOFILES |
| 16304 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16305 | # Compute GMOFILES |
| 16306 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16307 | case "$ac_given_srcdir" in |
| 16308 | .) srcdirpre= ;; |
| 16309 | *) srcdirpre='$(srcdir)/' ;; |
| 16310 | esac |
| 16311 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16312 | UPDATEPOFILES= |
| 16313 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16314 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16315 | for lang in $ALL_LINGUAS; do |
| 16316 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16317 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16318 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16319 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16320 | done |
| 16321 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16322 | # environment variable. |
| 16323 | INST_LINGUAS= |
| 16324 | if test -n "$ALL_LINGUAS"; then |
| 16325 | for presentlang in $ALL_LINGUAS; do |
| 16326 | useit=no |
| 16327 | if test "%UNSET%" != "$LINGUAS"; then |
| 16328 | desiredlanguages="$LINGUAS" |
| 16329 | else |
| 16330 | desiredlanguages="$ALL_LINGUAS" |
| 16331 | fi |
| 16332 | for desiredlang in $desiredlanguages; do |
| 16333 | # Use the presentlang catalog if desiredlang is |
| 16334 | # a. equal to presentlang, or |
| 16335 | # b. a variant of presentlang (because in this case, |
| 16336 | # presentlang can be used as a fallback for messages |
| 16337 | # which are not translated in the desiredlang catalog). |
| 16338 | case "$desiredlang" in |
| 16339 | "$presentlang"*) useit=yes;; |
| 16340 | esac |
| 16341 | done |
| 16342 | if test $useit = yes; then |
| 16343 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16344 | fi |
| 16345 | done |
| 16346 | fi |
| 16347 | CATALOGS= |
| 16348 | if test -n "$INST_LINGUAS"; then |
| 16349 | for lang in $INST_LINGUAS; do |
| 16350 | CATALOGS="$CATALOGS $lang.gmo" |
| 16351 | done |
| 16352 | fi |
| 16353 | 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] | 16354 | 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] | 16355 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16356 | if test -f "$f"; then |
| 16357 | case "$f" in |
| 16358 | *.orig | *.bak | *~) ;; |
| 16359 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16360 | esac |
| 16361 | fi |
| 16362 | done |
| 16363 | fi |
| 16364 | ;; |
| 16365 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16366 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16367 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16368 | esac |
| 16369 | done # for ac_tag |
| 16370 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16371 | |
| 16372 | { (exit 0); exit 0; } |
| 16373 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16374 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16375 | ac_clean_files=$ac_clean_files_save |
| 16376 | |
| 16377 | |
| 16378 | # configure is writing to config.log, and then calls config.status. |
| 16379 | # config.status does its own redirection, appending to config.log. |
| 16380 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16381 | # by configure, so config.status won't be able to write to it; its |
| 16382 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16383 | # effectively closing config.log, so it can be properly (re)opened and |
| 16384 | # appended to by config.status. When coming back to configure, we |
| 16385 | # need to make the FD available again. |
| 16386 | if test "$no_create" != yes; then |
| 16387 | ac_cs_success=: |
| 16388 | ac_config_status_args= |
| 16389 | test "$silent" = yes && |
| 16390 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16391 | exec 5>/dev/null |
| 16392 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16393 | exec 5>>config.log |
| 16394 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16395 | # would make configure fail if this is the last instruction. |
| 16396 | $ac_cs_success || { (exit 1); exit 1; } |
| 16397 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16398 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16399 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16400 | |