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 |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame^] | 700 | UUIDD_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 701 | GETTEXT_PACKAGE |
| 702 | PACKAGE |
| 703 | VERSION |
| 704 | SET_MAKE |
| 705 | INSTALL_PROGRAM |
| 706 | INSTALL_SCRIPT |
| 707 | INSTALL_DATA |
| 708 | MKINSTALLDIRS |
| 709 | USE_NLS |
| 710 | MSGFMT |
| 711 | GMSGFMT |
| 712 | XGETTEXT |
| 713 | MSGMERGE |
| 714 | RANLIB |
| 715 | ALLOCA |
| 716 | GLIBC21 |
| 717 | HAVE_POSIX_PRINTF |
| 718 | HAVE_ASPRINTF |
| 719 | HAVE_SNPRINTF |
| 720 | HAVE_WPRINTF |
| 721 | LIBICONV |
| 722 | LTLIBICONV |
| 723 | INTLBISON |
| 724 | BUILD_INCLUDED_LIBINTL |
| 725 | USE_INCLUDED_LIBINTL |
| 726 | CATOBJEXT |
| 727 | DATADIRNAME |
| 728 | INSTOBJEXT |
| 729 | GENCAT |
| 730 | INTLOBJS |
| 731 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 732 | INTLLIBS |
| 733 | LIBINTL |
| 734 | LTLIBINTL |
| 735 | POSUB |
| 736 | BINARY_TYPE |
| 737 | LN |
| 738 | LN_S |
| 739 | MV |
| 740 | CP |
| 741 | RM |
| 742 | CHMOD |
| 743 | AWK |
| 744 | SED |
| 745 | PERL |
| 746 | LDCONFIG |
| 747 | AR |
| 748 | STRIP |
| 749 | BUILD_CC |
| 750 | SIZEOF_SHORT |
| 751 | SIZEOF_INT |
| 752 | SIZEOF_LONG |
| 753 | SIZEOF_LONG_LONG |
| 754 | SOCKET_LIB |
| 755 | DLOPEN_LIB |
| 756 | UNI_DIFF_OPTS |
| 757 | LINUX_CMT |
| 758 | CYGWIN_CMT |
| 759 | UNIX_CMT |
| 760 | root_prefix |
| 761 | root_bindir |
| 762 | root_sbindir |
| 763 | root_libdir |
| 764 | root_sysconfdir |
| 765 | LDFLAG_STATIC |
| 766 | SS_DIR |
| 767 | ET_DIR |
| 768 | DO_TEST_SUITE |
| 769 | INTL_FLAGS |
| 770 | BUILD_CFLAGS |
| 771 | BUILD_LDFLAGS |
| 772 | LIBOBJS |
| 773 | LTLIBOBJS' |
| 774 | ac_subst_files='MCONFIG |
| 775 | MAKEFILE_ELF |
| 776 | MAKEFILE_BSDLIB |
| 777 | MAKEFILE_PROFILE |
| 778 | MAKEFILE_CHECKER |
| 779 | MAKEFILE_LIBRARY |
| 780 | ASM_TYPES_HEADER' |
| 781 | ac_precious_vars='build_alias |
| 782 | host_alias |
| 783 | target_alias |
| 784 | CC |
| 785 | CFLAGS |
| 786 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 787 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 788 | CPPFLAGS |
| 789 | CPP' |
| 790 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 791 | |
| 792 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 793 | ac_init_help= |
| 794 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 795 | # The variables have the same names as the options, with |
| 796 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 797 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 798 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 799 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 800 | no_recursion= |
| 801 | prefix=NONE |
| 802 | program_prefix=NONE |
| 803 | program_suffix=NONE |
| 804 | program_transform_name=s,x,x, |
| 805 | silent= |
| 806 | site= |
| 807 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 808 | verbose= |
| 809 | x_includes=NONE |
| 810 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 811 | |
| 812 | # Installation directory options. |
| 813 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 814 | # and all the variables that are supposed to be based on exec_prefix |
| 815 | # by default will actually change. |
| 816 | # 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] | 817 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 818 | bindir='${exec_prefix}/bin' |
| 819 | sbindir='${exec_prefix}/sbin' |
| 820 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 821 | datarootdir='${prefix}/share' |
| 822 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 823 | sysconfdir='${prefix}/etc' |
| 824 | sharedstatedir='${prefix}/com' |
| 825 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 826 | includedir='${prefix}/include' |
| 827 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 828 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 829 | infodir='${datarootdir}/info' |
| 830 | htmldir='${docdir}' |
| 831 | dvidir='${docdir}' |
| 832 | pdfdir='${docdir}' |
| 833 | psdir='${docdir}' |
| 834 | libdir='${exec_prefix}/lib' |
| 835 | localedir='${datarootdir}/locale' |
| 836 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 837 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 838 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 839 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 840 | for ac_option |
| 841 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 842 | # If the previous option needs an argument, assign it. |
| 843 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 844 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 845 | ac_prev= |
| 846 | continue |
| 847 | fi |
| 848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 849 | case $ac_option in |
| 850 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 851 | *) ac_optarg=yes ;; |
| 852 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 853 | |
| 854 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 855 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 856 | case $ac_dashdash$ac_option in |
| 857 | --) |
| 858 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 859 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 860 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 861 | ac_prev=bindir ;; |
| 862 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 863 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 864 | |
| 865 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 866 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 867 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 868 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 869 | |
| 870 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 871 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 872 | ac_prev=cache_file ;; |
| 873 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 874 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 875 | cache_file=$ac_optarg ;; |
| 876 | |
| 877 | --config-cache | -C) |
| 878 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 880 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 881 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 882 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 883 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 884 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 885 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 886 | | --dataroo | --dataro | --datar) |
| 887 | ac_prev=datarootdir ;; |
| 888 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 889 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 890 | datarootdir=$ac_optarg ;; |
| 891 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 892 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 893 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 894 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 895 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 896 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 897 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 898 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | eval enable_$ac_feature=no ;; |
| 900 | |
| 901 | -docdir | --docdir | --docdi | --doc | --do) |
| 902 | ac_prev=docdir ;; |
| 903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 904 | docdir=$ac_optarg ;; |
| 905 | |
| 906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 907 | ac_prev=dvidir ;; |
| 908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 909 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 910 | |
| 911 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 912 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 913 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 914 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 915 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 916 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 917 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 918 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | |
| 920 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 921 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 922 | | --exec | --exe | --ex) |
| 923 | ac_prev=exec_prefix ;; |
| 924 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 925 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 926 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 927 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 928 | |
| 929 | -gas | --gas | --ga | --g) |
| 930 | # Obsolete; use --with-gas. |
| 931 | with_gas=yes ;; |
| 932 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 933 | -help | --help | --hel | --he | -h) |
| 934 | ac_init_help=long ;; |
| 935 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 936 | ac_init_help=recursive ;; |
| 937 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 938 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 939 | |
| 940 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 941 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 943 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 944 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 945 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 946 | ac_prev=htmldir ;; |
| 947 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 948 | | --ht=*) |
| 949 | htmldir=$ac_optarg ;; |
| 950 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 951 | -includedir | --includedir | --includedi | --included | --include \ |
| 952 | | --includ | --inclu | --incl | --inc) |
| 953 | ac_prev=includedir ;; |
| 954 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 955 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 956 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 957 | |
| 958 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 959 | ac_prev=infodir ;; |
| 960 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 961 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 962 | |
| 963 | -libdir | --libdir | --libdi | --libd) |
| 964 | ac_prev=libdir ;; |
| 965 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 966 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 967 | |
| 968 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 969 | | --libexe | --libex | --libe) |
| 970 | ac_prev=libexecdir ;; |
| 971 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 972 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 973 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 975 | -localedir | --localedir | --localedi | --localed | --locale) |
| 976 | ac_prev=localedir ;; |
| 977 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 978 | localedir=$ac_optarg ;; |
| 979 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 980 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 981 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 982 | ac_prev=localstatedir ;; |
| 983 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 984 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 985 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 986 | |
| 987 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 988 | ac_prev=mandir ;; |
| 989 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 990 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 991 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | -nfp | --nfp | --nf) |
| 993 | # Obsolete; use --without-fp. |
| 994 | with_fp=no ;; |
| 995 | |
| 996 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 997 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 998 | no_create=yes ;; |
| 999 | |
| 1000 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1001 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1002 | no_recursion=yes ;; |
| 1003 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1004 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1005 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1006 | | --oldin | --oldi | --old | --ol | --o) |
| 1007 | ac_prev=oldincludedir ;; |
| 1008 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1009 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1010 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1011 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1012 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1013 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1014 | ac_prev=prefix ;; |
| 1015 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1016 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1017 | |
| 1018 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1019 | | --program-pre | --program-pr | --program-p) |
| 1020 | ac_prev=program_prefix ;; |
| 1021 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1022 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1023 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1024 | |
| 1025 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1026 | | --program-suf | --program-su | --program-s) |
| 1027 | ac_prev=program_suffix ;; |
| 1028 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1029 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1030 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1031 | |
| 1032 | -program-transform-name | --program-transform-name \ |
| 1033 | | --program-transform-nam | --program-transform-na \ |
| 1034 | | --program-transform-n | --program-transform- \ |
| 1035 | | --program-transform | --program-transfor \ |
| 1036 | | --program-transfo | --program-transf \ |
| 1037 | | --program-trans | --program-tran \ |
| 1038 | | --progr-tra | --program-tr | --program-t) |
| 1039 | ac_prev=program_transform_name ;; |
| 1040 | -program-transform-name=* | --program-transform-name=* \ |
| 1041 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1042 | | --program-transform-n=* | --program-transform-=* \ |
| 1043 | | --program-transform=* | --program-transfor=* \ |
| 1044 | | --program-transfo=* | --program-transf=* \ |
| 1045 | | --program-trans=* | --program-tran=* \ |
| 1046 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1047 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1049 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1050 | ac_prev=pdfdir ;; |
| 1051 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1052 | pdfdir=$ac_optarg ;; |
| 1053 | |
| 1054 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1055 | ac_prev=psdir ;; |
| 1056 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1057 | psdir=$ac_optarg ;; |
| 1058 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1060 | | -silent | --silent | --silen | --sile | --sil) |
| 1061 | silent=yes ;; |
| 1062 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1063 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1064 | ac_prev=sbindir ;; |
| 1065 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1066 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1067 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1068 | |
| 1069 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1070 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1071 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1072 | | --sha | --sh) |
| 1073 | ac_prev=sharedstatedir ;; |
| 1074 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1075 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1076 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1077 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1078 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1079 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | -site | --site | --sit) |
| 1081 | ac_prev=site ;; |
| 1082 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1083 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1084 | |
| 1085 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1086 | ac_prev=srcdir ;; |
| 1087 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1088 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1089 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1090 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1091 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1092 | ac_prev=sysconfdir ;; |
| 1093 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1094 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1095 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1096 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1097 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1099 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1100 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1101 | |
| 1102 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1103 | verbose=yes ;; |
| 1104 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1105 | -version | --version | --versio | --versi | --vers | -V) |
| 1106 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1107 | |
| 1108 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1109 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1111 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1112 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1113 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1114 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1115 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1116 | |
| 1117 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1118 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1119 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1120 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1122 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1123 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1124 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1125 | |
| 1126 | --x) |
| 1127 | # Obsolete; use --with-x. |
| 1128 | with_x=yes ;; |
| 1129 | |
| 1130 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1131 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1132 | ac_prev=x_includes ;; |
| 1133 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1134 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1135 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1136 | |
| 1137 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1138 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1139 | ac_prev=x_libraries ;; |
| 1140 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1141 | | --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] | 1142 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1143 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1144 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1145 | Try \`$0 --help' for more information." >&2 |
| 1146 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1147 | ;; |
| 1148 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1149 | *=*) |
| 1150 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1151 | # Reject names that are not valid shell variable names. |
| 1152 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1153 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1154 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1155 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1156 | export $ac_envvar ;; |
| 1157 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1158 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | # FIXME: should be removed in autoconf 3.0. |
| 1160 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1161 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1162 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1163 | : ${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] | 1164 | ;; |
| 1165 | |
| 1166 | esac |
| 1167 | done |
| 1168 | |
| 1169 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1170 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1171 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1172 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1173 | fi |
| 1174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1175 | # Be sure to have absolute directory names. |
| 1176 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1177 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1178 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1179 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1180 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1181 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1182 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1183 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1184 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1185 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1186 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1187 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1188 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1189 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1190 | # There might be people who depend on the old broken behavior: `$host' |
| 1191 | # used to hold the argument of --host etc. |
| 1192 | # FIXME: To remove some day. |
| 1193 | build=$build_alias |
| 1194 | host=$host_alias |
| 1195 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1197 | # FIXME: To remove some day. |
| 1198 | if test "x$host_alias" != x; then |
| 1199 | if test "x$build_alias" = x; then |
| 1200 | cross_compiling=maybe |
| 1201 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1202 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1203 | elif test "x$build_alias" != "x$host_alias"; then |
| 1204 | cross_compiling=yes |
| 1205 | fi |
| 1206 | fi |
| 1207 | |
| 1208 | ac_tool_prefix= |
| 1209 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1210 | |
| 1211 | test "$silent" = yes && exec 6>/dev/null |
| 1212 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1213 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1214 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1215 | ac_ls_di=`ls -di .` && |
| 1216 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1217 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1218 | { (exit 1); exit 1; }; } |
| 1219 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1220 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1221 | { (exit 1); exit 1; }; } |
| 1222 | |
| 1223 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | # Find the source files, if location was not specified. |
| 1225 | if test -z "$srcdir"; then |
| 1226 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1227 | # Try the directory containing this script, then the parent directory. |
| 1228 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1229 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1230 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1231 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1232 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1233 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1234 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1235 | s//\1/ |
| 1236 | q |
| 1237 | } |
| 1238 | /^X\(\/\/\)[^/].*/{ |
| 1239 | s//\1/ |
| 1240 | q |
| 1241 | } |
| 1242 | /^X\(\/\/\)$/{ |
| 1243 | s//\1/ |
| 1244 | q |
| 1245 | } |
| 1246 | /^X\(\/\).*/{ |
| 1247 | s//\1/ |
| 1248 | q |
| 1249 | } |
| 1250 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1251 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1252 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1253 | srcdir=.. |
| 1254 | fi |
| 1255 | else |
| 1256 | ac_srcdir_defaulted=no |
| 1257 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1258 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1259 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1260 | { 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] | 1261 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1263 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1264 | ac_abs_confdir=`( |
| 1265 | 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] | 1266 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1267 | pwd)` |
| 1268 | # When building in place, set srcdir=. |
| 1269 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1270 | srcdir=. |
| 1271 | fi |
| 1272 | # Remove unnecessary trailing slashes from srcdir. |
| 1273 | # Double slashes in file names in object file debugging info |
| 1274 | # mess up M-x gdb in Emacs. |
| 1275 | case $srcdir in |
| 1276 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1277 | esac |
| 1278 | for ac_var in $ac_precious_vars; do |
| 1279 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1280 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1281 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1282 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1283 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1284 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1285 | # |
| 1286 | # Report the --help message. |
| 1287 | # |
| 1288 | if test "$ac_init_help" = "long"; then |
| 1289 | # Omit some internal or obsolete options to make the list less imposing. |
| 1290 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1291 | cat <<_ACEOF |
| 1292 | \`configure' configures this package to adapt to many kinds of systems. |
| 1293 | |
| 1294 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1295 | |
| 1296 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1297 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1298 | |
| 1299 | Defaults for the options are specified in brackets. |
| 1300 | |
| 1301 | Configuration: |
| 1302 | -h, --help display this help and exit |
| 1303 | --help=short display options specific to this package |
| 1304 | --help=recursive display the short help of all the included packages |
| 1305 | -V, --version display version information and exit |
| 1306 | -q, --quiet, --silent do not print \`checking...' messages |
| 1307 | --cache-file=FILE cache test results in FILE [disabled] |
| 1308 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1309 | -n, --no-create do not create output files |
| 1310 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | Installation directories: |
| 1313 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1314 | [$ac_default_prefix] |
| 1315 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1316 | [PREFIX] |
| 1317 | |
| 1318 | By default, \`make install' will install all the files in |
| 1319 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1320 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1321 | for instance \`--prefix=\$HOME'. |
| 1322 | |
| 1323 | For better control, use the options below. |
| 1324 | |
| 1325 | Fine tuning of the installation directories: |
| 1326 | --bindir=DIR user executables [EPREFIX/bin] |
| 1327 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1328 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1329 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1330 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1331 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1332 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1333 | --includedir=DIR C header files [PREFIX/include] |
| 1334 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1335 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1336 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1337 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1338 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1339 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1340 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1341 | --htmldir=DIR html documentation [DOCDIR] |
| 1342 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1343 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1344 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1345 | _ACEOF |
| 1346 | |
| 1347 | cat <<\_ACEOF |
| 1348 | |
| 1349 | System types: |
| 1350 | --build=BUILD configure for building on BUILD [guessed] |
| 1351 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1352 | _ACEOF |
| 1353 | fi |
| 1354 | |
| 1355 | if test -n "$ac_init_help"; then |
| 1356 | |
| 1357 | cat <<\_ACEOF |
| 1358 | |
| 1359 | Optional Features: |
| 1360 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1361 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1362 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1363 | --enable-compression enable EXPERIMENTAL compression support |
| 1364 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1365 | --enable-elf-shlibs select ELF shared libraries |
| 1366 | --enable-bsd-shlibs select BSD shared libraries |
| 1367 | --enable-profile build profiling libraries |
| 1368 | --enable-checker build checker libraries |
| 1369 | --enable-jbd-debug enable journal debugging |
| 1370 | --enable-blkid-debug enable blkid debugging |
| 1371 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1372 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1373 | --disable-debugfs disable support of debugfs program |
| 1374 | --disable-imager disable support of e2image program |
| 1375 | --disable-resizer disable support of e2resize program |
| 1376 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1377 | --enable-fsck build fsck wrapper program |
| 1378 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1379 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1380 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame^] | 1381 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1382 | --disable-nls do not use Native Language Support |
| 1383 | --disable-rpath do not hardcode runtime library paths |
| 1384 | |
| 1385 | Optional Packages: |
| 1386 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1387 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1388 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1389 | --with-cc=COMPILER select compiler to use |
| 1390 | --with-linker=LINKER select linker to use |
| 1391 | --with-ccopts=CCOPTS select compiler command line options |
| 1392 | --with-ldopts=LDOPTS select linker command line options |
| 1393 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1394 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1395 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1396 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1397 | --with-included-gettext use the GNU gettext library included here |
| 1398 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1399 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1400 | |
| 1401 | Some influential environment variables: |
| 1402 | CC C compiler command |
| 1403 | CFLAGS C compiler flags |
| 1404 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1405 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1406 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1407 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1408 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1409 | CPP C preprocessor |
| 1410 | |
| 1411 | Use these variables to override the choices made by `configure' or to help |
| 1412 | it to find libraries and programs with nonstandard names/locations. |
| 1413 | |
| 1414 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1415 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1416 | fi |
| 1417 | |
| 1418 | if test "$ac_init_help" = "recursive"; then |
| 1419 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1420 | 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] | 1421 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1422 | ac_builddir=. |
| 1423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1424 | case "$ac_dir" in |
| 1425 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1426 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1427 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1428 | # A ".." for each directory in $ac_dir_suffix. |
| 1429 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1430 | case $ac_top_builddir_sub in |
| 1431 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1432 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1433 | esac ;; |
| 1434 | esac |
| 1435 | ac_abs_top_builddir=$ac_pwd |
| 1436 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1437 | # for backward compatibility: |
| 1438 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | |
| 1440 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1441 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1442 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1443 | ac_top_srcdir=$ac_top_builddir_sub |
| 1444 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1445 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1446 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1447 | ac_top_srcdir=$srcdir |
| 1448 | ac_abs_top_srcdir=$srcdir ;; |
| 1449 | *) # Relative name. |
| 1450 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1451 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1452 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1453 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1454 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1455 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1456 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1457 | # Check for guested configure. |
| 1458 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1459 | echo && |
| 1460 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1461 | elif test -f "$ac_srcdir/configure"; then |
| 1462 | echo && |
| 1463 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1464 | else |
| 1465 | 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] | 1466 | fi || ac_status=$? |
| 1467 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1468 | done |
| 1469 | fi |
| 1470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1471 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1472 | if $ac_init_version; then |
| 1473 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1474 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1475 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1477 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1478 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1479 | This configure script is free software; the Free Software Foundation |
| 1480 | gives unlimited permission to copy, distribute and modify it. |
| 1481 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1482 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1484 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1485 | This file contains any messages produced by compilers while |
| 1486 | running configure, to aid debugging if configure makes a mistake. |
| 1487 | |
| 1488 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1489 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1490 | |
| 1491 | $ $0 $@ |
| 1492 | |
| 1493 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1494 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1495 | { |
| 1496 | cat <<_ASUNAME |
| 1497 | ## --------- ## |
| 1498 | ## Platform. ## |
| 1499 | ## --------- ## |
| 1500 | |
| 1501 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1502 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1503 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1504 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1505 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1506 | |
| 1507 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1508 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1509 | |
| 1510 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1511 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1512 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1513 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1514 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1515 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1516 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1517 | |
| 1518 | _ASUNAME |
| 1519 | |
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1521 | for as_dir in $PATH |
| 1522 | do |
| 1523 | IFS=$as_save_IFS |
| 1524 | test -z "$as_dir" && as_dir=. |
| 1525 | echo "PATH: $as_dir" |
| 1526 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1527 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | |
| 1529 | } >&5 |
| 1530 | |
| 1531 | cat >&5 <<_ACEOF |
| 1532 | |
| 1533 | |
| 1534 | ## ----------- ## |
| 1535 | ## Core tests. ## |
| 1536 | ## ----------- ## |
| 1537 | |
| 1538 | _ACEOF |
| 1539 | |
| 1540 | |
| 1541 | # Keep a trace of the command line. |
| 1542 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1543 | # Strip out --silent because we don't want to record it for future runs. |
| 1544 | # Also quote any args containing shell meta-characters. |
| 1545 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1546 | ac_configure_args= |
| 1547 | ac_configure_args0= |
| 1548 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1549 | ac_must_keep_next=false |
| 1550 | for ac_pass in 1 2 |
| 1551 | do |
| 1552 | for ac_arg |
| 1553 | do |
| 1554 | case $ac_arg in |
| 1555 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1556 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1557 | | -silent | --silent | --silen | --sile | --sil) |
| 1558 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1559 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1561 | esac |
| 1562 | case $ac_pass in |
| 1563 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1564 | 2) |
| 1565 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1566 | if test $ac_must_keep_next = true; then |
| 1567 | ac_must_keep_next=false # Got value, back to normal. |
| 1568 | else |
| 1569 | case $ac_arg in |
| 1570 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1571 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1572 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1573 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1574 | case "$ac_configure_args0 " in |
| 1575 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1576 | esac |
| 1577 | ;; |
| 1578 | -* ) ac_must_keep_next=true ;; |
| 1579 | esac |
| 1580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1581 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1582 | ;; |
| 1583 | esac |
| 1584 | done |
| 1585 | done |
| 1586 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1587 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1588 | |
| 1589 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1590 | # config.log. We remove comments because anyway the quotes in there |
| 1591 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1592 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1593 | # 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] | 1594 | trap 'exit_status=$? |
| 1595 | # Save into config.log some information that might help in debugging. |
| 1596 | { |
| 1597 | echo |
| 1598 | |
| 1599 | cat <<\_ASBOX |
| 1600 | ## ---------------- ## |
| 1601 | ## Cache variables. ## |
| 1602 | ## ---------------- ## |
| 1603 | _ASBOX |
| 1604 | echo |
| 1605 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1606 | ( |
| 1607 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1608 | eval ac_val=\$$ac_var |
| 1609 | case $ac_val in #( |
| 1610 | *${as_nl}*) |
| 1611 | case $ac_var in #( |
| 1612 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1613 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1614 | esac |
| 1615 | case $ac_var in #( |
| 1616 | _ | IFS | as_nl) ;; #( |
| 1617 | *) $as_unset $ac_var ;; |
| 1618 | esac ;; |
| 1619 | esac |
| 1620 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1621 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1622 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1623 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1624 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1625 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1626 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1627 | ;; #( |
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 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1630 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1631 | esac | |
| 1632 | sort |
| 1633 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1634 | echo |
| 1635 | |
| 1636 | cat <<\_ASBOX |
| 1637 | ## ----------------- ## |
| 1638 | ## Output variables. ## |
| 1639 | ## ----------------- ## |
| 1640 | _ASBOX |
| 1641 | echo |
| 1642 | for ac_var in $ac_subst_vars |
| 1643 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1644 | eval ac_val=\$$ac_var |
| 1645 | case $ac_val in |
| 1646 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1647 | esac |
| 1648 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1649 | done | sort |
| 1650 | echo |
| 1651 | |
| 1652 | if test -n "$ac_subst_files"; then |
| 1653 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1654 | ## ------------------- ## |
| 1655 | ## File substitutions. ## |
| 1656 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1657 | _ASBOX |
| 1658 | echo |
| 1659 | for ac_var in $ac_subst_files |
| 1660 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1661 | eval ac_val=\$$ac_var |
| 1662 | case $ac_val in |
| 1663 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1664 | esac |
| 1665 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1666 | done | sort |
| 1667 | echo |
| 1668 | fi |
| 1669 | |
| 1670 | if test -s confdefs.h; then |
| 1671 | cat <<\_ASBOX |
| 1672 | ## ----------- ## |
| 1673 | ## confdefs.h. ## |
| 1674 | ## ----------- ## |
| 1675 | _ASBOX |
| 1676 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1677 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1678 | echo |
| 1679 | fi |
| 1680 | test "$ac_signal" != 0 && |
| 1681 | echo "$as_me: caught signal $ac_signal" |
| 1682 | echo "$as_me: exit $exit_status" |
| 1683 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1684 | rm -f core *.core core.conftest.* && |
| 1685 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1686 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1687 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1688 | for ac_signal in 1 2 13 15; do |
| 1689 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1690 | done |
| 1691 | ac_signal=0 |
| 1692 | |
| 1693 | # 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] | 1694 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1695 | |
| 1696 | # Predefined preprocessor variables. |
| 1697 | |
| 1698 | cat >>confdefs.h <<_ACEOF |
| 1699 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1700 | _ACEOF |
| 1701 | |
| 1702 | |
| 1703 | cat >>confdefs.h <<_ACEOF |
| 1704 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1705 | _ACEOF |
| 1706 | |
| 1707 | |
| 1708 | cat >>confdefs.h <<_ACEOF |
| 1709 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1710 | _ACEOF |
| 1711 | |
| 1712 | |
| 1713 | cat >>confdefs.h <<_ACEOF |
| 1714 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1715 | _ACEOF |
| 1716 | |
| 1717 | |
| 1718 | cat >>confdefs.h <<_ACEOF |
| 1719 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1720 | _ACEOF |
| 1721 | |
| 1722 | |
| 1723 | # 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] | 1724 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1725 | if test -n "$CONFIG_SITE"; then |
| 1726 | set x "$CONFIG_SITE" |
| 1727 | elif test "x$prefix" != xNONE; then |
| 1728 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1729 | else |
| 1730 | set x "$ac_default_prefix/share/config.site" \ |
| 1731 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1732 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1733 | shift |
| 1734 | for ac_site_file |
| 1735 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1736 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1737 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1738 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1739 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1740 | . "$ac_site_file" |
| 1741 | fi |
| 1742 | done |
| 1743 | |
| 1744 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1745 | # Some versions of bash will fail to source /dev/null (special |
| 1746 | # files actually), so we avoid doing that. |
| 1747 | if test -f "$cache_file"; then |
| 1748 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1749 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1750 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1751 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1752 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1753 | esac |
| 1754 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1755 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1756 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1757 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1758 | >$cache_file |
| 1759 | fi |
| 1760 | |
| 1761 | # Check that the precious variables saved in the cache have kept the same |
| 1762 | # value. |
| 1763 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1764 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1765 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1766 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1767 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1768 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1769 | case $ac_old_set,$ac_new_set in |
| 1770 | set,) |
| 1771 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1772 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1773 | ac_cache_corrupted=: ;; |
| 1774 | ,set) |
| 1775 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1776 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1777 | ac_cache_corrupted=: ;; |
| 1778 | ,);; |
| 1779 | *) |
| 1780 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1781 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1782 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1783 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1784 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1785 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1786 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1787 | ac_cache_corrupted=: |
| 1788 | fi;; |
| 1789 | esac |
| 1790 | # Pass precious variables to config.status. |
| 1791 | if test "$ac_new_set" = set; then |
| 1792 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1793 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1794 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1795 | esac |
| 1796 | case " $ac_configure_args " in |
| 1797 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1798 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1799 | esac |
| 1800 | fi |
| 1801 | done |
| 1802 | if $ac_cache_corrupted; then |
| 1803 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1804 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1805 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1806 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1807 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1808 | fi |
| 1809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1826 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1827 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1832 | |
| 1833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1834 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1835 | for ac_dir in config "$srcdir"/config; do |
| 1836 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1837 | ac_aux_dir=$ac_dir |
| 1838 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1839 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1840 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1841 | ac_aux_dir=$ac_dir |
| 1842 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1843 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1844 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1845 | ac_aux_dir=$ac_dir |
| 1846 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1847 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1848 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1849 | done |
| 1850 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1851 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1852 | 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] | 1853 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1854 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1855 | |
| 1856 | # These three variables are undocumented and unsupported, |
| 1857 | # and are intended to be withdrawn in a future Autoconf release. |
| 1858 | # They can cause serious problems if a builder's source tree is in a directory |
| 1859 | # whose full name contains unusual characters. |
| 1860 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1861 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1862 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1863 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1864 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1865 | MCONFIG=./MCONFIG |
| 1866 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1867 | BINARY_TYPE=bin |
| 1868 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1869 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1870 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1871 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1872 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1873 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1874 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1875 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1876 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1877 | E2FSPROGS_YEAR=$YEAR |
| 1878 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1879 | E2FSPROGS_YEAR=19$YEAR |
| 1880 | else |
| 1881 | E2FSPROGS_YEAR=20$YEAR |
| 1882 | fi |
| 1883 | |
| 1884 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1885 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1886 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1887 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1888 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1889 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1890 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1891 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1892 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1893 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1894 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1895 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1896 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1897 | *) echo "Unknown month $MONTH??" ;; |
| 1898 | esac |
| 1899 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1900 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1901 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
| 1902 | pre_vers=`echo $base_ver 0.01 - p | dc` |
| 1903 | |
| 1904 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1905 | |
| 1906 | case $E2FSPROGS_VERSION in |
| 1907 | *-WIP|pre-*) |
| 1908 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1909 | ;; |
| 1910 | *) |
| 1911 | E2FSPROGS_PKGVER="$base_ver" |
| 1912 | ;; |
| 1913 | esac |
| 1914 | |
| 1915 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1916 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1917 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1918 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1919 | |
| 1920 | |
| 1921 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1922 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1923 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1924 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1925 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1926 | 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] | 1927 | { (exit 1); exit 1; }; } |
| 1928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1929 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1930 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1931 | if test "${ac_cv_build+set}" = set; then |
| 1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1933 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1934 | ac_build_alias=$build_alias |
| 1935 | test "x$ac_build_alias" = x && |
| 1936 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1937 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1938 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1939 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1940 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1941 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1942 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1943 | 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] | 1944 | { (exit 1); exit 1; }; } |
| 1945 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1946 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1947 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1948 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1949 | case $ac_cv_build in |
| 1950 | *-*-*) ;; |
| 1951 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1952 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1953 | { (exit 1); exit 1; }; };; |
| 1954 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1955 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1956 | ac_save_IFS=$IFS; IFS='-' |
| 1957 | set x $ac_cv_build |
| 1958 | shift |
| 1959 | build_cpu=$1 |
| 1960 | build_vendor=$2 |
| 1961 | shift; shift |
| 1962 | # Remember, the first character of IFS is used to create $*, |
| 1963 | # except with old shells: |
| 1964 | build_os=$* |
| 1965 | IFS=$ac_save_IFS |
| 1966 | 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] | 1967 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1969 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1970 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1971 | if test "${ac_cv_host+set}" = set; then |
| 1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1973 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1974 | if test "x$host_alias" = x; then |
| 1975 | ac_cv_host=$ac_cv_build |
| 1976 | else |
| 1977 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1978 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1979 | 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] | 1980 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1981 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1983 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1984 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1985 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1986 | case $ac_cv_host in |
| 1987 | *-*-*) ;; |
| 1988 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1989 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1990 | { (exit 1); exit 1; }; };; |
| 1991 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1992 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1993 | ac_save_IFS=$IFS; IFS='-' |
| 1994 | set x $ac_cv_host |
| 1995 | shift |
| 1996 | host_cpu=$1 |
| 1997 | host_vendor=$2 |
| 1998 | shift; shift |
| 1999 | # Remember, the first character of IFS is used to create $*, |
| 2000 | # except with old shells: |
| 2001 | host_os=$* |
| 2002 | IFS=$ac_save_IFS |
| 2003 | 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] | 2004 | |
| 2005 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2007 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2008 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2009 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2010 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2011 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2012 | fi |
| 2013 | |
| 2014 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2015 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2016 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2017 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2018 | CC=$withval |
| 2019 | else |
| 2020 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2021 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2022 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2023 | fi |
| 2024 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2025 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2026 | ac_ext=c |
| 2027 | ac_cpp='$CPP $CPPFLAGS' |
| 2028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2031 | if test -n "$ac_tool_prefix"; then |
| 2032 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2033 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2036 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2038 | else |
| 2039 | if test -n "$CC"; then |
| 2040 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2043 | for as_dir in $PATH |
| 2044 | do |
| 2045 | IFS=$as_save_IFS |
| 2046 | test -z "$as_dir" && as_dir=. |
| 2047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2048 | 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] | 2049 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2051 | break 2 |
| 2052 | fi |
| 2053 | done |
| 2054 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2055 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2056 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2057 | fi |
| 2058 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2059 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2060 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2062 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2063 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2065 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2066 | fi |
| 2067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2068 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2069 | fi |
| 2070 | if test -z "$ac_cv_prog_CC"; then |
| 2071 | ac_ct_CC=$CC |
| 2072 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2073 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2076 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2078 | else |
| 2079 | if test -n "$ac_ct_CC"; then |
| 2080 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2081 | else |
| 2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2083 | for as_dir in $PATH |
| 2084 | do |
| 2085 | IFS=$as_save_IFS |
| 2086 | test -z "$as_dir" && as_dir=. |
| 2087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2088 | 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] | 2089 | ac_cv_prog_ac_ct_CC="gcc" |
| 2090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2091 | break 2 |
| 2092 | fi |
| 2093 | done |
| 2094 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2095 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2096 | |
| 2097 | fi |
| 2098 | fi |
| 2099 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2100 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2102 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2103 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2105 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2106 | fi |
| 2107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2108 | if test "x$ac_ct_CC" = x; then |
| 2109 | CC="" |
| 2110 | else |
| 2111 | case $cross_compiling:$ac_tool_warned in |
| 2112 | yes:) |
| 2113 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2114 | whose name does not start with the host triplet. If you think this |
| 2115 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2116 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2117 | whose name does not start with the host triplet. If you think this |
| 2118 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2119 | ac_tool_warned=yes ;; |
| 2120 | esac |
| 2121 | CC=$ac_ct_CC |
| 2122 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2123 | else |
| 2124 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2125 | fi |
| 2126 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2127 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2128 | if test -n "$ac_tool_prefix"; then |
| 2129 | # 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] | 2130 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2133 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2135 | else |
| 2136 | if test -n "$CC"; then |
| 2137 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2140 | for as_dir in $PATH |
| 2141 | do |
| 2142 | IFS=$as_save_IFS |
| 2143 | test -z "$as_dir" && as_dir=. |
| 2144 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2145 | 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] | 2146 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2148 | break 2 |
| 2149 | fi |
| 2150 | done |
| 2151 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2152 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2153 | |
| 2154 | fi |
| 2155 | fi |
| 2156 | CC=$ac_cv_prog_CC |
| 2157 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2159 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2160 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2161 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2162 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2163 | fi |
| 2164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2166 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2167 | fi |
| 2168 | if test -z "$CC"; then |
| 2169 | # Extract the first word of "cc", so it can be a program name with args. |
| 2170 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2171 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2173 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2175 | else |
| 2176 | if test -n "$CC"; then |
| 2177 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2178 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2179 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2181 | for as_dir in $PATH |
| 2182 | do |
| 2183 | IFS=$as_save_IFS |
| 2184 | test -z "$as_dir" && as_dir=. |
| 2185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2186 | 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] | 2187 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2188 | ac_prog_rejected=yes |
| 2189 | continue |
| 2190 | fi |
| 2191 | ac_cv_prog_CC="cc" |
| 2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2193 | break 2 |
| 2194 | fi |
| 2195 | done |
| 2196 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2197 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2198 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2199 | if test $ac_prog_rejected = yes; then |
| 2200 | # We found a bogon in the path, so make sure we never use it. |
| 2201 | set dummy $ac_cv_prog_CC |
| 2202 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2203 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2204 | # We chose a different compiler from the bogus one. |
| 2205 | # However, it has the same basename, so the bogon will be chosen |
| 2206 | # first if we set CC to just the basename; use the full file name. |
| 2207 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2208 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2209 | fi |
| 2210 | fi |
| 2211 | fi |
| 2212 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2213 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2214 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2216 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2217 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2223 | fi |
| 2224 | if test -z "$CC"; then |
| 2225 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2226 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2227 | do |
| 2228 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2229 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2230 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2232 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2234 | else |
| 2235 | if test -n "$CC"; then |
| 2236 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2237 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2239 | for as_dir in $PATH |
| 2240 | do |
| 2241 | IFS=$as_save_IFS |
| 2242 | test -z "$as_dir" && as_dir=. |
| 2243 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2244 | 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] | 2245 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2247 | break 2 |
| 2248 | fi |
| 2249 | done |
| 2250 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2251 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2252 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | fi |
| 2254 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2255 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2258 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2259 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2261 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2262 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2263 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2264 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2265 | test -n "$CC" && break |
| 2266 | done |
| 2267 | fi |
| 2268 | if test -z "$CC"; then |
| 2269 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2270 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2271 | do |
| 2272 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2273 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2278 | else |
| 2279 | if test -n "$ac_ct_CC"; then |
| 2280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2281 | else |
| 2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2283 | for as_dir in $PATH |
| 2284 | do |
| 2285 | IFS=$as_save_IFS |
| 2286 | test -z "$as_dir" && as_dir=. |
| 2287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2288 | 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] | 2289 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2291 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2292 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | done |
| 2294 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2295 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2296 | |
| 2297 | fi |
| 2298 | fi |
| 2299 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2300 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2302 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2303 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2305 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2306 | fi |
| 2307 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2309 | test -n "$ac_ct_CC" && break |
| 2310 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2312 | if test "x$ac_ct_CC" = x; then |
| 2313 | CC="" |
| 2314 | else |
| 2315 | case $cross_compiling:$ac_tool_warned in |
| 2316 | yes:) |
| 2317 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2318 | whose name does not start with the host triplet. If you think this |
| 2319 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2320 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2321 | whose name does not start with the host triplet. If you think this |
| 2322 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2323 | ac_tool_warned=yes ;; |
| 2324 | esac |
| 2325 | CC=$ac_ct_CC |
| 2326 | fi |
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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2329 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2330 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2331 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2332 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2333 | See \`config.log' for more details." >&5 |
| 2334 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2335 | See \`config.log' for more details." >&2;} |
| 2336 | { (exit 1); exit 1; }; } |
| 2337 | |
| 2338 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2339 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2340 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2341 | { (ac_try="$ac_compiler --version >&5" |
| 2342 | case "(($ac_try" in |
| 2343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2344 | *) ac_try_echo=$ac_try;; |
| 2345 | esac |
| 2346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2347 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | ac_status=$? |
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2351 | { (ac_try="$ac_compiler -v >&5" |
| 2352 | case "(($ac_try" in |
| 2353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2354 | *) ac_try_echo=$ac_try;; |
| 2355 | esac |
| 2356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2357 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2358 | ac_status=$? |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2361 | { (ac_try="$ac_compiler -V >&5" |
| 2362 | case "(($ac_try" in |
| 2363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2364 | *) ac_try_echo=$ac_try;; |
| 2365 | esac |
| 2366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2367 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2368 | ac_status=$? |
| 2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2370 | (exit $ac_status); } |
| 2371 | |
| 2372 | cat >conftest.$ac_ext <<_ACEOF |
| 2373 | /* confdefs.h. */ |
| 2374 | _ACEOF |
| 2375 | cat confdefs.h >>conftest.$ac_ext |
| 2376 | cat >>conftest.$ac_ext <<_ACEOF |
| 2377 | /* end confdefs.h. */ |
| 2378 | |
| 2379 | int |
| 2380 | main () |
| 2381 | { |
| 2382 | |
| 2383 | ; |
| 2384 | return 0; |
| 2385 | } |
| 2386 | _ACEOF |
| 2387 | ac_clean_files_save=$ac_clean_files |
| 2388 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2389 | # Try to create an executable without -o first, disregard a.out. |
| 2390 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2391 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2393 | 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] | 2394 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2395 | # |
| 2396 | # List of possible output files, starting from the most likely. |
| 2397 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2398 | # only as a last resort. b.out is created by i960 compilers. |
| 2399 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2400 | # |
| 2401 | # The IRIX 6 linker writes into existing files which may not be |
| 2402 | # executable, retaining their permissions. Remove them first so a |
| 2403 | # subsequent execution test works. |
| 2404 | ac_rmfiles= |
| 2405 | for ac_file in $ac_files |
| 2406 | do |
| 2407 | case $ac_file in |
| 2408 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2409 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2410 | esac |
| 2411 | done |
| 2412 | rm -f $ac_rmfiles |
| 2413 | |
| 2414 | if { (ac_try="$ac_link_default" |
| 2415 | case "(($ac_try" in |
| 2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2417 | *) ac_try_echo=$ac_try;; |
| 2418 | esac |
| 2419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2420 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2421 | ac_status=$? |
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2424 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2425 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2426 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2427 | # so that the user can short-circuit this test for compilers unknown to |
| 2428 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2429 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2430 | do |
| 2431 | test -f "$ac_file" || continue |
| 2432 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2433 | *.$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] | 2434 | ;; |
| 2435 | [ab].out ) |
| 2436 | # We found the default executable, but exeext='' is most |
| 2437 | # certainly right. |
| 2438 | break;; |
| 2439 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2440 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2441 | then :; else |
| 2442 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2443 | fi |
| 2444 | # We set ac_cv_exeext here because the later test for it is not |
| 2445 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2446 | # argument, so we may need to know it at that point already. |
| 2447 | # Even if this section looks crufty: it has the advantage of |
| 2448 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2449 | break;; |
| 2450 | * ) |
| 2451 | break;; |
| 2452 | esac |
| 2453 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2454 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2455 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2456 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2457 | ac_file='' |
| 2458 | fi |
| 2459 | |
| 2460 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2461 | echo "${ECHO_T}$ac_file" >&6; } |
| 2462 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | echo "$as_me: failed program was:" >&5 |
| 2464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2465 | |
| 2466 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2467 | See \`config.log' for more details." >&5 |
| 2468 | echo "$as_me: error: C compiler cannot create executables |
| 2469 | See \`config.log' for more details." >&2;} |
| 2470 | { (exit 77); exit 77; }; } |
| 2471 | fi |
| 2472 | |
| 2473 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | # 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] | 2476 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2477 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2478 | 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] | 2479 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2480 | # If not cross compiling, check that we can run a simple program. |
| 2481 | if test "$cross_compiling" != yes; then |
| 2482 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2483 | { (case "(($ac_try" in |
| 2484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2485 | *) ac_try_echo=$ac_try;; |
| 2486 | esac |
| 2487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2488 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2489 | ac_status=$? |
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2491 | (exit $ac_status); }; }; then |
| 2492 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2493 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2494 | if test "$cross_compiling" = maybe; then |
| 2495 | cross_compiling=yes |
| 2496 | else |
| 2497 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2498 | If you meant to cross compile, use \`--host'. |
| 2499 | See \`config.log' for more details." >&5 |
| 2500 | echo "$as_me: error: cannot run C compiled programs. |
| 2501 | If you meant to cross compile, use \`--host'. |
| 2502 | See \`config.log' for more details." >&2;} |
| 2503 | { (exit 1); exit 1; }; } |
| 2504 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2505 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2508 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2511 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2512 | # 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] | 2513 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2515 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2516 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2517 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2518 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2520 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2521 | if { (ac_try="$ac_link" |
| 2522 | case "(($ac_try" in |
| 2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2524 | *) ac_try_echo=$ac_try;; |
| 2525 | esac |
| 2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2527 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2528 | ac_status=$? |
| 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2530 | (exit $ac_status); }; then |
| 2531 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2532 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2533 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2534 | # `rm'. |
| 2535 | for ac_file in conftest.exe conftest conftest.*; do |
| 2536 | test -f "$ac_file" || continue |
| 2537 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2538 | *.$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] | 2539 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | break;; |
| 2541 | * ) break;; |
| 2542 | esac |
| 2543 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2544 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2546 | See \`config.log' for more details." >&5 |
| 2547 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2548 | See \`config.log' for more details." >&2;} |
| 2549 | { (exit 1); exit 1; }; } |
| 2550 | fi |
| 2551 | |
| 2552 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2553 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2554 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2555 | |
| 2556 | rm -f conftest.$ac_ext |
| 2557 | EXEEXT=$ac_cv_exeext |
| 2558 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2559 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2560 | 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] | 2561 | if test "${ac_cv_objext+set}" = set; then |
| 2562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2563 | else |
| 2564 | cat >conftest.$ac_ext <<_ACEOF |
| 2565 | /* confdefs.h. */ |
| 2566 | _ACEOF |
| 2567 | cat confdefs.h >>conftest.$ac_ext |
| 2568 | cat >>conftest.$ac_ext <<_ACEOF |
| 2569 | /* end confdefs.h. */ |
| 2570 | |
| 2571 | int |
| 2572 | main () |
| 2573 | { |
| 2574 | |
| 2575 | ; |
| 2576 | return 0; |
| 2577 | } |
| 2578 | _ACEOF |
| 2579 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2580 | if { (ac_try="$ac_compile" |
| 2581 | case "(($ac_try" in |
| 2582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2583 | *) ac_try_echo=$ac_try;; |
| 2584 | esac |
| 2585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2586 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | ac_status=$? |
| 2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2589 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2590 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2591 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2592 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2595 | break;; |
| 2596 | esac |
| 2597 | done |
| 2598 | else |
| 2599 | echo "$as_me: failed program was:" >&5 |
| 2600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2601 | |
| 2602 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2603 | See \`config.log' for more details." >&5 |
| 2604 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2605 | See \`config.log' for more details." >&2;} |
| 2606 | { (exit 1); exit 1; }; } |
| 2607 | fi |
| 2608 | |
| 2609 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2612 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2613 | OBJEXT=$ac_cv_objext |
| 2614 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2616 | 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] | 2617 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2619 | else |
| 2620 | cat >conftest.$ac_ext <<_ACEOF |
| 2621 | /* confdefs.h. */ |
| 2622 | _ACEOF |
| 2623 | cat confdefs.h >>conftest.$ac_ext |
| 2624 | cat >>conftest.$ac_ext <<_ACEOF |
| 2625 | /* end confdefs.h. */ |
| 2626 | |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | #ifndef __GNUC__ |
| 2631 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2632 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2634 | ; |
| 2635 | return 0; |
| 2636 | } |
| 2637 | _ACEOF |
| 2638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2639 | if { (ac_try="$ac_compile" |
| 2640 | case "(($ac_try" in |
| 2641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2642 | *) ac_try_echo=$ac_try;; |
| 2643 | esac |
| 2644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2646 | ac_status=$? |
| 2647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2648 | rm -f conftest.er1 |
| 2649 | cat conftest.err >&5 |
| 2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2651 | (exit $ac_status); } && { |
| 2652 | test -z "$ac_c_werror_flag" || |
| 2653 | test ! -s conftest.err |
| 2654 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2656 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2657 | echo "$as_me: failed program was:" >&5 |
| 2658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2660 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2662 | |
| 2663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2664 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2665 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2668 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2669 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2670 | ac_test_CFLAGS=${CFLAGS+set} |
| 2671 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2672 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2673 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2674 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2676 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2677 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2678 | ac_c_werror_flag=yes |
| 2679 | ac_cv_prog_cc_g=no |
| 2680 | CFLAGS="-g" |
| 2681 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2682 | /* confdefs.h. */ |
| 2683 | _ACEOF |
| 2684 | cat confdefs.h >>conftest.$ac_ext |
| 2685 | cat >>conftest.$ac_ext <<_ACEOF |
| 2686 | /* end confdefs.h. */ |
| 2687 | |
| 2688 | int |
| 2689 | main () |
| 2690 | { |
| 2691 | |
| 2692 | ; |
| 2693 | return 0; |
| 2694 | } |
| 2695 | _ACEOF |
| 2696 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2697 | if { (ac_try="$ac_compile" |
| 2698 | case "(($ac_try" in |
| 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2700 | *) ac_try_echo=$ac_try;; |
| 2701 | esac |
| 2702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2703 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2704 | ac_status=$? |
| 2705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2706 | rm -f conftest.er1 |
| 2707 | cat conftest.err >&5 |
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2709 | (exit $ac_status); } && { |
| 2710 | test -z "$ac_c_werror_flag" || |
| 2711 | test ! -s conftest.err |
| 2712 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2713 | ac_cv_prog_cc_g=yes |
| 2714 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2715 | echo "$as_me: failed program was:" >&5 |
| 2716 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2718 | CFLAGS="" |
| 2719 | cat >conftest.$ac_ext <<_ACEOF |
| 2720 | /* confdefs.h. */ |
| 2721 | _ACEOF |
| 2722 | cat confdefs.h >>conftest.$ac_ext |
| 2723 | cat >>conftest.$ac_ext <<_ACEOF |
| 2724 | /* end confdefs.h. */ |
| 2725 | |
| 2726 | int |
| 2727 | main () |
| 2728 | { |
| 2729 | |
| 2730 | ; |
| 2731 | return 0; |
| 2732 | } |
| 2733 | _ACEOF |
| 2734 | rm -f conftest.$ac_objext |
| 2735 | if { (ac_try="$ac_compile" |
| 2736 | case "(($ac_try" in |
| 2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2738 | *) ac_try_echo=$ac_try;; |
| 2739 | esac |
| 2740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2741 | (eval "$ac_compile") 2>conftest.er1 |
| 2742 | ac_status=$? |
| 2743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2744 | rm -f conftest.er1 |
| 2745 | cat conftest.err >&5 |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2747 | (exit $ac_status); } && { |
| 2748 | test -z "$ac_c_werror_flag" || |
| 2749 | test ! -s conftest.err |
| 2750 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2751 | : |
| 2752 | else |
| 2753 | echo "$as_me: failed program was:" >&5 |
| 2754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2755 | |
| 2756 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2757 | CFLAGS="-g" |
| 2758 | cat >conftest.$ac_ext <<_ACEOF |
| 2759 | /* confdefs.h. */ |
| 2760 | _ACEOF |
| 2761 | cat confdefs.h >>conftest.$ac_ext |
| 2762 | cat >>conftest.$ac_ext <<_ACEOF |
| 2763 | /* end confdefs.h. */ |
| 2764 | |
| 2765 | int |
| 2766 | main () |
| 2767 | { |
| 2768 | |
| 2769 | ; |
| 2770 | return 0; |
| 2771 | } |
| 2772 | _ACEOF |
| 2773 | rm -f conftest.$ac_objext |
| 2774 | if { (ac_try="$ac_compile" |
| 2775 | case "(($ac_try" in |
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2777 | *) ac_try_echo=$ac_try;; |
| 2778 | esac |
| 2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2780 | (eval "$ac_compile") 2>conftest.er1 |
| 2781 | ac_status=$? |
| 2782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2783 | rm -f conftest.er1 |
| 2784 | cat conftest.err >&5 |
| 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2786 | (exit $ac_status); } && { |
| 2787 | test -z "$ac_c_werror_flag" || |
| 2788 | test ! -s conftest.err |
| 2789 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2790 | ac_cv_prog_cc_g=yes |
| 2791 | else |
| 2792 | echo "$as_me: failed program was:" >&5 |
| 2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2794 | |
| 2795 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | |
| 2798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2799 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2800 | |
| 2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2802 | fi |
| 2803 | |
| 2804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2805 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2806 | fi |
| 2807 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2808 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2809 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2810 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2811 | elif test $ac_cv_prog_cc_g = yes; then |
| 2812 | if test "$GCC" = yes; then |
| 2813 | CFLAGS="-g -O2" |
| 2814 | else |
| 2815 | CFLAGS="-g" |
| 2816 | fi |
| 2817 | else |
| 2818 | if test "$GCC" = yes; then |
| 2819 | CFLAGS="-O2" |
| 2820 | else |
| 2821 | CFLAGS= |
| 2822 | fi |
| 2823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2824 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2825 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2826 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2828 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2829 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2830 | ac_save_CC=$CC |
| 2831 | cat >conftest.$ac_ext <<_ACEOF |
| 2832 | /* confdefs.h. */ |
| 2833 | _ACEOF |
| 2834 | cat confdefs.h >>conftest.$ac_ext |
| 2835 | cat >>conftest.$ac_ext <<_ACEOF |
| 2836 | /* end confdefs.h. */ |
| 2837 | #include <stdarg.h> |
| 2838 | #include <stdio.h> |
| 2839 | #include <sys/types.h> |
| 2840 | #include <sys/stat.h> |
| 2841 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2842 | struct buf { int x; }; |
| 2843 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2844 | static char *e (p, i) |
| 2845 | char **p; |
| 2846 | int i; |
| 2847 | { |
| 2848 | return p[i]; |
| 2849 | } |
| 2850 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2851 | { |
| 2852 | char *s; |
| 2853 | va_list v; |
| 2854 | va_start (v,p); |
| 2855 | s = g (p, va_arg (v,int)); |
| 2856 | va_end (v); |
| 2857 | return s; |
| 2858 | } |
| 2859 | |
| 2860 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2861 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2862 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2863 | 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] | 2864 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2865 | 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] | 2866 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2867 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2869 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2870 | inside strings and character constants. */ |
| 2871 | #define FOO(x) 'x' |
| 2872 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2873 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2874 | int test (int i, double x); |
| 2875 | struct s1 {int (*f) (int a);}; |
| 2876 | struct s2 {int (*f) (double a);}; |
| 2877 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2878 | int argc; |
| 2879 | char **argv; |
| 2880 | int |
| 2881 | main () |
| 2882 | { |
| 2883 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2884 | ; |
| 2885 | return 0; |
| 2886 | } |
| 2887 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2888 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2889 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2890 | do |
| 2891 | CC="$ac_save_CC $ac_arg" |
| 2892 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
| 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
| 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2899 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2900 | ac_status=$? |
| 2901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2902 | rm -f conftest.er1 |
| 2903 | cat conftest.err >&5 |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2905 | (exit $ac_status); } && { |
| 2906 | test -z "$ac_c_werror_flag" || |
| 2907 | test ! -s conftest.err |
| 2908 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2909 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2910 | else |
| 2911 | echo "$as_me: failed program was:" >&5 |
| 2912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2913 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2916 | |
| 2917 | rm -f core conftest.err conftest.$ac_objext |
| 2918 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2920 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2921 | CC=$ac_save_CC |
| 2922 | |
| 2923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2924 | # AC_CACHE_VAL |
| 2925 | case "x$ac_cv_prog_cc_c89" in |
| 2926 | x) |
| 2927 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2928 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2929 | xno) |
| 2930 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2931 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2932 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2933 | CC="$CC $ac_cv_prog_cc_c89" |
| 2934 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2935 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | esac |
| 2937 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2939 | ac_ext=c |
| 2940 | ac_cpp='$CPP $CPPFLAGS' |
| 2941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2944 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2945 | ac_ext=c |
| 2946 | ac_cpp='$CPP $CPPFLAGS' |
| 2947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2950 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2951 | 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] | 2952 | # On Suns, sometimes $CPP names a directory. |
| 2953 | if test -n "$CPP" && test -d "$CPP"; then |
| 2954 | CPP= |
| 2955 | fi |
| 2956 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2959 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2960 | # Double quotes because CPP needs to be expanded |
| 2961 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2962 | do |
| 2963 | ac_preproc_ok=false |
| 2964 | for ac_c_preproc_warn_flag in '' yes |
| 2965 | do |
| 2966 | # Use a header file that comes with gcc, so configuring glibc |
| 2967 | # with a fresh cross-compiler works. |
| 2968 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2969 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2970 | # 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] | 2971 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2972 | cat >conftest.$ac_ext <<_ACEOF |
| 2973 | /* confdefs.h. */ |
| 2974 | _ACEOF |
| 2975 | cat confdefs.h >>conftest.$ac_ext |
| 2976 | cat >>conftest.$ac_ext <<_ACEOF |
| 2977 | /* end confdefs.h. */ |
| 2978 | #ifdef __STDC__ |
| 2979 | # include <limits.h> |
| 2980 | #else |
| 2981 | # include <assert.h> |
| 2982 | #endif |
| 2983 | Syntax error |
| 2984 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2986 | case "(($ac_try" in |
| 2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2988 | *) ac_try_echo=$ac_try;; |
| 2989 | esac |
| 2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2992 | ac_status=$? |
| 2993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2994 | rm -f conftest.er1 |
| 2995 | cat conftest.err >&5 |
| 2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2997 | (exit $ac_status); } >/dev/null && { |
| 2998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2999 | test ! -s conftest.err |
| 3000 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3001 | : |
| 3002 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | echo "$as_me: failed program was:" >&5 |
| 3004 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3005 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3006 | # Broken: fails on valid input. |
| 3007 | continue |
| 3008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | rm -f conftest.err conftest.$ac_ext |
| 3011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3012 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3013 | # can be detected and how. |
| 3014 | cat >conftest.$ac_ext <<_ACEOF |
| 3015 | /* confdefs.h. */ |
| 3016 | _ACEOF |
| 3017 | cat confdefs.h >>conftest.$ac_ext |
| 3018 | cat >>conftest.$ac_ext <<_ACEOF |
| 3019 | /* end confdefs.h. */ |
| 3020 | #include <ac_nonexistent.h> |
| 3021 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3023 | case "(($ac_try" in |
| 3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3025 | *) ac_try_echo=$ac_try;; |
| 3026 | esac |
| 3027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3029 | ac_status=$? |
| 3030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3031 | rm -f conftest.er1 |
| 3032 | cat conftest.err >&5 |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3034 | (exit $ac_status); } >/dev/null && { |
| 3035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3036 | test ! -s conftest.err |
| 3037 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | # Broken: success on invalid input. |
| 3039 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | echo "$as_me: failed program was:" >&5 |
| 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
| 3044 | # Passes both tests. |
| 3045 | ac_preproc_ok=: |
| 3046 | break |
| 3047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3048 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3049 | rm -f conftest.err conftest.$ac_ext |
| 3050 | |
| 3051 | done |
| 3052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3053 | rm -f conftest.err conftest.$ac_ext |
| 3054 | if $ac_preproc_ok; then |
| 3055 | break |
| 3056 | fi |
| 3057 | |
| 3058 | done |
| 3059 | ac_cv_prog_CPP=$CPP |
| 3060 | |
| 3061 | fi |
| 3062 | CPP=$ac_cv_prog_CPP |
| 3063 | else |
| 3064 | ac_cv_prog_CPP=$CPP |
| 3065 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3066 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3067 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3068 | ac_preproc_ok=false |
| 3069 | for ac_c_preproc_warn_flag in '' yes |
| 3070 | do |
| 3071 | # Use a header file that comes with gcc, so configuring glibc |
| 3072 | # with a fresh cross-compiler works. |
| 3073 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3074 | # <limits.h> exists even on freestanding compilers. |
| 3075 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3076 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3077 | cat >conftest.$ac_ext <<_ACEOF |
| 3078 | /* confdefs.h. */ |
| 3079 | _ACEOF |
| 3080 | cat confdefs.h >>conftest.$ac_ext |
| 3081 | cat >>conftest.$ac_ext <<_ACEOF |
| 3082 | /* end confdefs.h. */ |
| 3083 | #ifdef __STDC__ |
| 3084 | # include <limits.h> |
| 3085 | #else |
| 3086 | # include <assert.h> |
| 3087 | #endif |
| 3088 | Syntax error |
| 3089 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3091 | case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | ac_status=$? |
| 3098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3099 | rm -f conftest.er1 |
| 3100 | cat conftest.err >&5 |
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3102 | (exit $ac_status); } >/dev/null && { |
| 3103 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3104 | test ! -s conftest.err |
| 3105 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | : |
| 3107 | else |
| 3108 | echo "$as_me: failed program was:" >&5 |
| 3109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3110 | |
| 3111 | # Broken: fails on valid input. |
| 3112 | continue |
| 3113 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3115 | rm -f conftest.err conftest.$ac_ext |
| 3116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3117 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | # can be detected and how. |
| 3119 | cat >conftest.$ac_ext <<_ACEOF |
| 3120 | /* confdefs.h. */ |
| 3121 | _ACEOF |
| 3122 | cat confdefs.h >>conftest.$ac_ext |
| 3123 | cat >>conftest.$ac_ext <<_ACEOF |
| 3124 | /* end confdefs.h. */ |
| 3125 | #include <ac_nonexistent.h> |
| 3126 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3127 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3128 | case "(($ac_try" in |
| 3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3130 | *) ac_try_echo=$ac_try;; |
| 3131 | esac |
| 3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3133 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3134 | ac_status=$? |
| 3135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3136 | rm -f conftest.er1 |
| 3137 | cat conftest.err >&5 |
| 3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3139 | (exit $ac_status); } >/dev/null && { |
| 3140 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3141 | test ! -s conftest.err |
| 3142 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3143 | # Broken: success on invalid input. |
| 3144 | continue |
| 3145 | else |
| 3146 | echo "$as_me: failed program was:" >&5 |
| 3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3148 | |
| 3149 | # Passes both tests. |
| 3150 | ac_preproc_ok=: |
| 3151 | break |
| 3152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3154 | rm -f conftest.err conftest.$ac_ext |
| 3155 | |
| 3156 | done |
| 3157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3158 | rm -f conftest.err conftest.$ac_ext |
| 3159 | if $ac_preproc_ok; then |
| 3160 | : |
| 3161 | else |
| 3162 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3163 | See \`config.log' for more details." >&5 |
| 3164 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3165 | See \`config.log' for more details." >&2;} |
| 3166 | { (exit 1); exit 1; }; } |
| 3167 | fi |
| 3168 | |
| 3169 | ac_ext=c |
| 3170 | ac_cpp='$CPP $CPPFLAGS' |
| 3171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3174 | |
| 3175 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3176 | # Check whether --with-linker was given. |
| 3177 | if test "${with_linker+set}" = set; then |
| 3178 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3179 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3180 | LD=$withval |
| 3181 | else |
| 3182 | if test -z "$LD" ; then LD=$CC; fi |
| 3183 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3184 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3185 | fi |
| 3186 | export LD |
| 3187 | |
| 3188 | |
| 3189 | # Check whether --with-ccopts was given. |
| 3190 | if test "${with_ccopts+set}" = set; then |
| 3191 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3192 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3193 | CFLAGS=$withval |
| 3194 | fi |
| 3195 | |
| 3196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3197 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3198 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3199 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3201 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3202 | # Extract the first word of "grep ggrep" to use in msg output |
| 3203 | if test -z "$GREP"; then |
| 3204 | set dummy grep ggrep; ac_prog_name=$2 |
| 3205 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3207 | else |
| 3208 | ac_path_GREP_found=false |
| 3209 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3211 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3212 | do |
| 3213 | IFS=$as_save_IFS |
| 3214 | test -z "$as_dir" && as_dir=. |
| 3215 | for ac_prog in grep ggrep; do |
| 3216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3217 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3218 | { 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] | 3219 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3220 | # Check for GNU $ac_path_GREP |
| 3221 | case `"$ac_path_GREP" --version 2>&1` in |
| 3222 | *GNU*) |
| 3223 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3224 | *) |
| 3225 | ac_count=0 |
| 3226 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3227 | while : |
| 3228 | do |
| 3229 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3230 | mv "conftest.tmp" "conftest.in" |
| 3231 | cp "conftest.in" "conftest.nl" |
| 3232 | echo 'GREP' >> "conftest.nl" |
| 3233 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3234 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3235 | ac_count=`expr $ac_count + 1` |
| 3236 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3237 | # Best one so far, save it but keep looking for a better one |
| 3238 | ac_cv_path_GREP="$ac_path_GREP" |
| 3239 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3241 | # 10*(2^10) chars as input seems more than enough |
| 3242 | test $ac_count -gt 10 && break |
| 3243 | done |
| 3244 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3245 | esac |
| 3246 | |
| 3247 | |
| 3248 | $ac_path_GREP_found && break 3 |
| 3249 | done |
| 3250 | done |
| 3251 | |
| 3252 | done |
| 3253 | IFS=$as_save_IFS |
| 3254 | |
| 3255 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3257 | |
| 3258 | GREP="$ac_cv_path_GREP" |
| 3259 | if test -z "$GREP"; then |
| 3260 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3261 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3262 | { (exit 1); exit 1; }; } |
| 3263 | fi |
| 3264 | |
| 3265 | else |
| 3266 | ac_cv_path_GREP=$GREP |
| 3267 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | |
| 3269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3270 | fi |
| 3271 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3272 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3273 | GREP="$ac_cv_path_GREP" |
| 3274 | |
| 3275 | |
| 3276 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3277 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3278 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3280 | else |
| 3281 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3282 | then ac_cv_path_EGREP="$GREP -E" |
| 3283 | else |
| 3284 | # Extract the first word of "egrep" to use in msg output |
| 3285 | if test -z "$EGREP"; then |
| 3286 | set dummy egrep; ac_prog_name=$2 |
| 3287 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3289 | else |
| 3290 | ac_path_EGREP_found=false |
| 3291 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3293 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3294 | do |
| 3295 | IFS=$as_save_IFS |
| 3296 | test -z "$as_dir" && as_dir=. |
| 3297 | for ac_prog in egrep; do |
| 3298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3299 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3300 | { 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] | 3301 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3302 | # Check for GNU $ac_path_EGREP |
| 3303 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3304 | *GNU*) |
| 3305 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3306 | *) |
| 3307 | ac_count=0 |
| 3308 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3309 | while : |
| 3310 | do |
| 3311 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3312 | mv "conftest.tmp" "conftest.in" |
| 3313 | cp "conftest.in" "conftest.nl" |
| 3314 | echo 'EGREP' >> "conftest.nl" |
| 3315 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3316 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3317 | ac_count=`expr $ac_count + 1` |
| 3318 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3319 | # Best one so far, save it but keep looking for a better one |
| 3320 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3321 | ac_path_EGREP_max=$ac_count |
| 3322 | fi |
| 3323 | # 10*(2^10) chars as input seems more than enough |
| 3324 | test $ac_count -gt 10 && break |
| 3325 | done |
| 3326 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3327 | esac |
| 3328 | |
| 3329 | |
| 3330 | $ac_path_EGREP_found && break 3 |
| 3331 | done |
| 3332 | done |
| 3333 | |
| 3334 | done |
| 3335 | IFS=$as_save_IFS |
| 3336 | |
| 3337 | |
| 3338 | fi |
| 3339 | |
| 3340 | EGREP="$ac_cv_path_EGREP" |
| 3341 | if test -z "$EGREP"; then |
| 3342 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3343 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3344 | { (exit 1); exit 1; }; } |
| 3345 | fi |
| 3346 | |
| 3347 | else |
| 3348 | ac_cv_path_EGREP=$EGREP |
| 3349 | fi |
| 3350 | |
| 3351 | |
| 3352 | fi |
| 3353 | fi |
| 3354 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3355 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3356 | EGREP="$ac_cv_path_EGREP" |
| 3357 | |
| 3358 | |
| 3359 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3360 | 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] | 3361 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3363 | else |
| 3364 | cat >conftest.$ac_ext <<_ACEOF |
| 3365 | /* confdefs.h. */ |
| 3366 | _ACEOF |
| 3367 | cat confdefs.h >>conftest.$ac_ext |
| 3368 | cat >>conftest.$ac_ext <<_ACEOF |
| 3369 | /* end confdefs.h. */ |
| 3370 | #include <stdlib.h> |
| 3371 | #include <stdarg.h> |
| 3372 | #include <string.h> |
| 3373 | #include <float.h> |
| 3374 | |
| 3375 | int |
| 3376 | main () |
| 3377 | { |
| 3378 | |
| 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3384 | if { (ac_try="$ac_compile" |
| 3385 | case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3391 | ac_status=$? |
| 3392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3393 | rm -f conftest.er1 |
| 3394 | cat conftest.err >&5 |
| 3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3396 | (exit $ac_status); } && { |
| 3397 | test -z "$ac_c_werror_flag" || |
| 3398 | test ! -s conftest.err |
| 3399 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3400 | ac_cv_header_stdc=yes |
| 3401 | else |
| 3402 | echo "$as_me: failed program was:" >&5 |
| 3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3405 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3407 | |
| 3408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3409 | |
| 3410 | if test $ac_cv_header_stdc = yes; then |
| 3411 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3412 | cat >conftest.$ac_ext <<_ACEOF |
| 3413 | /* confdefs.h. */ |
| 3414 | _ACEOF |
| 3415 | cat confdefs.h >>conftest.$ac_ext |
| 3416 | cat >>conftest.$ac_ext <<_ACEOF |
| 3417 | /* end confdefs.h. */ |
| 3418 | #include <string.h> |
| 3419 | |
| 3420 | _ACEOF |
| 3421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3422 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3423 | : |
| 3424 | else |
| 3425 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3426 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3427 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3428 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3429 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3430 | |
| 3431 | if test $ac_cv_header_stdc = yes; then |
| 3432 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3433 | cat >conftest.$ac_ext <<_ACEOF |
| 3434 | /* confdefs.h. */ |
| 3435 | _ACEOF |
| 3436 | cat confdefs.h >>conftest.$ac_ext |
| 3437 | cat >>conftest.$ac_ext <<_ACEOF |
| 3438 | /* end confdefs.h. */ |
| 3439 | #include <stdlib.h> |
| 3440 | |
| 3441 | _ACEOF |
| 3442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3443 | $EGREP "free" >/dev/null 2>&1; then |
| 3444 | : |
| 3445 | else |
| 3446 | ac_cv_header_stdc=no |
| 3447 | fi |
| 3448 | rm -f conftest* |
| 3449 | |
| 3450 | fi |
| 3451 | |
| 3452 | if test $ac_cv_header_stdc = yes; then |
| 3453 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3454 | if test "$cross_compiling" = yes; then |
| 3455 | : |
| 3456 | else |
| 3457 | cat >conftest.$ac_ext <<_ACEOF |
| 3458 | /* confdefs.h. */ |
| 3459 | _ACEOF |
| 3460 | cat confdefs.h >>conftest.$ac_ext |
| 3461 | cat >>conftest.$ac_ext <<_ACEOF |
| 3462 | /* end confdefs.h. */ |
| 3463 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3464 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3465 | #if ((' ' & 0x0FF) == 0x020) |
| 3466 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3467 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3468 | #else |
| 3469 | # define ISLOWER(c) \ |
| 3470 | (('a' <= (c) && (c) <= 'i') \ |
| 3471 | || ('j' <= (c) && (c) <= 'r') \ |
| 3472 | || ('s' <= (c) && (c) <= 'z')) |
| 3473 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3474 | #endif |
| 3475 | |
| 3476 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3477 | int |
| 3478 | main () |
| 3479 | { |
| 3480 | int i; |
| 3481 | for (i = 0; i < 256; i++) |
| 3482 | if (XOR (islower (i), ISLOWER (i)) |
| 3483 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3484 | return 2; |
| 3485 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3486 | } |
| 3487 | _ACEOF |
| 3488 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3489 | if { (ac_try="$ac_link" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
| 3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3495 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3496 | ac_status=$? |
| 3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3499 | { (case "(($ac_try" in |
| 3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3501 | *) ac_try_echo=$ac_try;; |
| 3502 | esac |
| 3503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3504 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3505 | ac_status=$? |
| 3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3507 | (exit $ac_status); }; }; then |
| 3508 | : |
| 3509 | else |
| 3510 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3511 | echo "$as_me: failed program was:" >&5 |
| 3512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3513 | |
| 3514 | ( exit $ac_status ) |
| 3515 | ac_cv_header_stdc=no |
| 3516 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3517 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3518 | fi |
| 3519 | |
| 3520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3521 | fi |
| 3522 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3523 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3524 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3525 | if test $ac_cv_header_stdc = yes; then |
| 3526 | |
| 3527 | cat >>confdefs.h <<\_ACEOF |
| 3528 | #define STDC_HEADERS 1 |
| 3529 | _ACEOF |
| 3530 | |
| 3531 | fi |
| 3532 | |
| 3533 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3544 | inttypes.h stdint.h unistd.h |
| 3545 | do |
| 3546 | 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] | 3547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3549 | 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] | 3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3551 | else |
| 3552 | cat >conftest.$ac_ext <<_ACEOF |
| 3553 | /* confdefs.h. */ |
| 3554 | _ACEOF |
| 3555 | cat confdefs.h >>conftest.$ac_ext |
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
| 3557 | /* end confdefs.h. */ |
| 3558 | $ac_includes_default |
| 3559 | |
| 3560 | #include <$ac_header> |
| 3561 | _ACEOF |
| 3562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3563 | if { (ac_try="$ac_compile" |
| 3564 | case "(($ac_try" in |
| 3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3566 | *) ac_try_echo=$ac_try;; |
| 3567 | esac |
| 3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3569 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3570 | ac_status=$? |
| 3571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3572 | rm -f conftest.er1 |
| 3573 | cat conftest.err >&5 |
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3575 | (exit $ac_status); } && { |
| 3576 | test -z "$ac_c_werror_flag" || |
| 3577 | test ! -s conftest.err |
| 3578 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3579 | eval "$as_ac_Header=yes" |
| 3580 | else |
| 3581 | echo "$as_me: failed program was:" >&5 |
| 3582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3584 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3586 | |
| 3587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3591 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3593 | cat >>confdefs.h <<_ACEOF |
| 3594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3595 | _ACEOF |
| 3596 | |
| 3597 | fi |
| 3598 | |
| 3599 | done |
| 3600 | |
| 3601 | |
| 3602 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3603 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3604 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3605 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3608 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3609 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3610 | else |
| 3611 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3612 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3613 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3614 | cat >conftest.$ac_ext <<_ACEOF |
| 3615 | /* confdefs.h. */ |
| 3616 | _ACEOF |
| 3617 | cat confdefs.h >>conftest.$ac_ext |
| 3618 | cat >>conftest.$ac_ext <<_ACEOF |
| 3619 | /* end confdefs.h. */ |
| 3620 | $ac_includes_default |
| 3621 | #include <linux/fs.h> |
| 3622 | _ACEOF |
| 3623 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3624 | if { (ac_try="$ac_compile" |
| 3625 | case "(($ac_try" in |
| 3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3627 | *) ac_try_echo=$ac_try;; |
| 3628 | esac |
| 3629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3630 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3631 | ac_status=$? |
| 3632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3633 | rm -f conftest.er1 |
| 3634 | cat conftest.err >&5 |
| 3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3636 | (exit $ac_status); } && { |
| 3637 | test -z "$ac_c_werror_flag" || |
| 3638 | test ! -s conftest.err |
| 3639 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3640 | ac_header_compiler=yes |
| 3641 | else |
| 3642 | echo "$as_me: failed program was:" >&5 |
| 3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3644 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3645 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3647 | |
| 3648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3649 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3650 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3651 | |
| 3652 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3653 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3654 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3655 | cat >conftest.$ac_ext <<_ACEOF |
| 3656 | /* confdefs.h. */ |
| 3657 | _ACEOF |
| 3658 | cat confdefs.h >>conftest.$ac_ext |
| 3659 | cat >>conftest.$ac_ext <<_ACEOF |
| 3660 | /* end confdefs.h. */ |
| 3661 | #include <linux/fs.h> |
| 3662 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3664 | case "(($ac_try" in |
| 3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3666 | *) ac_try_echo=$ac_try;; |
| 3667 | esac |
| 3668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3670 | ac_status=$? |
| 3671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3672 | rm -f conftest.er1 |
| 3673 | cat conftest.err >&5 |
| 3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3675 | (exit $ac_status); } >/dev/null && { |
| 3676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3677 | test ! -s conftest.err |
| 3678 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3679 | ac_header_preproc=yes |
| 3680 | else |
| 3681 | echo "$as_me: failed program was:" >&5 |
| 3682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3683 | |
| 3684 | ac_header_preproc=no |
| 3685 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3686 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3687 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3688 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3689 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3690 | |
| 3691 | # So? What about this header? |
| 3692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3693 | yes:no: ) |
| 3694 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3695 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3696 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3697 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3698 | ac_header_preproc=yes |
| 3699 | ;; |
| 3700 | no:yes:* ) |
| 3701 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3702 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3703 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3704 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3705 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3706 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3707 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3708 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3709 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3710 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3711 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3712 | 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] | 3713 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3714 | ;; |
| 3715 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3716 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3717 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3718 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3720 | else |
| 3721 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3722 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3723 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3724 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3725 | |
| 3726 | fi |
| 3727 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3728 | linux_headers=yes |
| 3729 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3730 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3731 | fi |
| 3732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3733 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3734 | if test "$linux_headers" != yes; then |
| 3735 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3738 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3739 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3740 | if test "$GCC" = yes |
| 3741 | then |
| 3742 | case "$host_cpu" in |
| 3743 | alpha) addcflags="-mieee" ;; |
| 3744 | esac |
| 3745 | fi |
| 3746 | if test "x$addcflags" != x |
| 3747 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3748 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3749 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3750 | CFLAGS="$addcflags $CFLAGS" |
| 3751 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3752 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3753 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3754 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3755 | LIB_EXT=.a |
| 3756 | STATIC_LIB_EXT=.a |
| 3757 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3759 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3760 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3761 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3762 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3763 | LDFLAGS=$withval |
| 3764 | else |
| 3765 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3766 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3768 | |
| 3769 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3770 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3771 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3772 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3773 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3774 | fi |
| 3775 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3776 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3777 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3778 | then |
| 3779 | MAINTAINER_CMT=# |
| 3780 | echo "Disabling maintainer mode" |
| 3781 | else |
| 3782 | MAINTAINER_CMT= |
| 3783 | echo "Enabling maintainer mode" |
| 3784 | fi |
| 3785 | |
| 3786 | else |
| 3787 | MAINTAINER_CMT=# |
| 3788 | echo "Disabling maintainer mode by default" |
| 3789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3790 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3792 | |
| 3793 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3794 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3795 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3796 | then |
| 3797 | echo "Disabling compression support" |
| 3798 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3799 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3800 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3801 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3802 | |
| 3803 | echo "Enabling compression support" |
| 3804 | echo "WARNING: Compression support is experimental" |
| 3805 | fi |
| 3806 | |
| 3807 | else |
| 3808 | echo "Disabling compression support by default" |
| 3809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3810 | fi |
| 3811 | |
| 3812 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3813 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3814 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3815 | then |
| 3816 | HTREE_CMT=# |
| 3817 | echo "Disabling htree directory support" |
| 3818 | else |
| 3819 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3820 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3821 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3822 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3823 | |
| 3824 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3825 | fi |
| 3826 | |
| 3827 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3828 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3829 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3830 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3831 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3832 | |
| 3833 | echo "Enabling htree directory support by default" |
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 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3837 | |
| 3838 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3839 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3840 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3841 | then |
| 3842 | ELF_CMT=# |
| 3843 | MAKEFILE_ELF=/dev/null |
| 3844 | echo "Disabling ELF shared libraries" |
| 3845 | else |
| 3846 | ELF_CMT= |
| 3847 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3848 | case "$host_os" in |
| 3849 | solaris2.*) |
| 3850 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3851 | ;; |
| 3852 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3853 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3854 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3855 | echo "Enabling ELF shared libraries" |
| 3856 | fi |
| 3857 | |
| 3858 | else |
| 3859 | MAKEFILE_ELF=/dev/null |
| 3860 | ELF_CMT=# |
| 3861 | echo "Disabling ELF shared libraries by default" |
| 3862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3863 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3864 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3866 | |
| 3867 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3868 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3869 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3870 | then |
| 3871 | BSDLIB_CMT=# |
| 3872 | MAKEFILE_BSDLIB=/dev/null |
| 3873 | echo "Disabling BSD shared libraries" |
| 3874 | else |
| 3875 | BSDLIB_CMT= |
| 3876 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3877 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3878 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3879 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3880 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3881 | LIB_EXT=.dylib |
| 3882 | ;; |
| 3883 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3884 | echo "Enabling BSD shared libraries" |
| 3885 | fi |
| 3886 | |
| 3887 | else |
| 3888 | MAKEFILE_BSDLIB=/dev/null |
| 3889 | BSDLIB_CMT=# |
| 3890 | echo "Disabling BSD shared libraries by default" |
| 3891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3892 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3893 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3895 | |
| 3896 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3897 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3898 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3899 | then |
| 3900 | PROFILE_CMT=# |
| 3901 | MAKEFILE_PROFILE=/dev/null |
| 3902 | echo "Disabling profiling libraries" |
| 3903 | else |
| 3904 | PROFILE_CMT= |
| 3905 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3906 | PROFILED_LIB_EXT=_p.a |
| 3907 | echo "Building profiling libraries" |
| 3908 | fi |
| 3909 | |
| 3910 | else |
| 3911 | PROFILE_CMT=# |
| 3912 | MAKEFILE_PROFILE=/dev/null |
| 3913 | echo "Disabling profiling libraries by default" |
| 3914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3915 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3916 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3918 | |
| 3919 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3920 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3921 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3922 | then |
| 3923 | CHECKER_CMT=# |
| 3924 | MAKEFILE_CHECKER=/dev/null |
| 3925 | echo "Disabling checker libraries" |
| 3926 | else |
| 3927 | CHECKER_CMT= |
| 3928 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3929 | echo "Building checker libraries" |
| 3930 | fi |
| 3931 | |
| 3932 | else |
| 3933 | CHECKER_CMT=# |
| 3934 | MAKEFILE_CHECKER=/dev/null |
| 3935 | echo "Disabling checker libraries by default" |
| 3936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3937 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3943 | |
| 3944 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3945 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3946 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3947 | then |
| 3948 | echo "Disabling journal debugging" |
| 3949 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3950 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3951 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3952 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3953 | |
| 3954 | echo "Enabling journal debugging" |
| 3955 | fi |
| 3956 | |
| 3957 | else |
| 3958 | echo "Disabling journal debugging by default" |
| 3959 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3960 | fi |
| 3961 | |
| 3962 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3963 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3964 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3965 | then |
| 3966 | echo "Disabling blkid debugging" |
| 3967 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3968 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3969 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3970 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3971 | |
| 3972 | echo "Enabling blkid debugging" |
| 3973 | fi |
| 3974 | |
| 3975 | else |
| 3976 | echo "Disabling blkid debugging by default" |
| 3977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3978 | fi |
| 3979 | |
| 3980 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3981 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3982 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3983 | then |
| 3984 | echo "Disabling testio debugging" |
| 3985 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3986 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3987 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3988 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3989 | |
| 3990 | echo "Enabling testio debugging" |
| 3991 | fi |
| 3992 | |
| 3993 | else |
| 3994 | echo "Disabling testio debugging by default" |
| 3995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3996 | fi |
| 3997 | |
| 3998 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3999 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4000 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4001 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4002 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4003 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4004 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4005 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4006 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4007 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4008 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4009 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4010 | echo "Enabling swapfs support" |
| 4011 | fi |
| 4012 | |
| 4013 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4014 | SWAPFS_CMT= |
| 4015 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4016 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4017 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4018 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4019 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4021 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4023 | |
| 4024 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4025 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4026 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4027 | then |
| 4028 | echo "Disabling debugfs support" |
| 4029 | DEBUGFS_CMT="#" |
| 4030 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4031 | DEBUGFS_CMT= |
| 4032 | echo "Enabling debugfs support" |
| 4033 | fi |
| 4034 | |
| 4035 | else |
| 4036 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4037 | DEBUGFS_CMT= |
| 4038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4039 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4041 | |
| 4042 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4043 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4044 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4045 | then |
| 4046 | echo "Disabling e2image support" |
| 4047 | IMAGER_CMT="#" |
| 4048 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4049 | IMAGER_CMT= |
| 4050 | echo "Enabling e2image support" |
| 4051 | fi |
| 4052 | |
| 4053 | else |
| 4054 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4055 | IMAGER_CMT= |
| 4056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4057 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4059 | |
| 4060 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4061 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4062 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4063 | then |
| 4064 | echo "Disabling e2resize support" |
| 4065 | RESIZER_CMT="#" |
| 4066 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4067 | RESIZER_CMT= |
| 4068 | echo "Enabling e2resize support" |
| 4069 | fi |
| 4070 | |
| 4071 | else |
| 4072 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4073 | RESIZER_CMT= |
| 4074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4075 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4077 | |
| 4078 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4079 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4080 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4081 | then |
| 4082 | E2FSCK_TYPE=static |
| 4083 | echo "Building e2fsck statically" |
| 4084 | else |
| 4085 | E2FSCK_TYPE=shared |
| 4086 | echo "Building e2fsck dynamically" |
| 4087 | fi |
| 4088 | |
| 4089 | else |
| 4090 | E2FSCK_TYPE=static |
| 4091 | echo "Building e2fsck statically by default" |
| 4092 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4093 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4095 | |
| 4096 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4097 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4098 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4099 | then |
| 4100 | FSCK_PROG='' FSCK_MAN='' |
| 4101 | echo "Not building fsck wrapper" |
| 4102 | else |
| 4103 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4104 | echo "Building fsck wrapper" |
| 4105 | fi |
| 4106 | |
| 4107 | else |
| 4108 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4109 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4110 | FSCK_PROG='' FSCK_MAN='' |
| 4111 | echo "Not building fsck wrapper by default" |
| 4112 | ;; |
| 4113 | *) |
| 4114 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4115 | echo "Building fsck wrapper by default" |
| 4116 | esac |
| 4117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4118 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4119 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4121 | |
| 4122 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4123 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4124 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4125 | then |
| 4126 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4127 | echo "Not building e2initrd helper" |
| 4128 | else |
| 4129 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4130 | echo "Building e2initrd helper" |
| 4131 | fi |
| 4132 | |
| 4133 | else |
| 4134 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4135 | echo "Building e2initrd helper by default" |
| 4136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4137 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4138 | |
| 4139 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4140 | |
| 4141 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4142 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4143 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4144 | then |
| 4145 | echo "Disabling device-mapper support" |
| 4146 | DEVMAPPER_REQ='' |
| 4147 | DEVMAPPER_LIBS='' |
| 4148 | STATIC_DEVMAPPER_LIBS='' |
| 4149 | else |
| 4150 | cat >>confdefs.h <<\_ACEOF |
| 4151 | #define HAVE_DEVMAPPER 1 |
| 4152 | _ACEOF |
| 4153 | |
| 4154 | echo "Enabling device-mapper support" |
| 4155 | |
| 4156 | DEVMAPPER_REQ='libselinux libsepol' |
| 4157 | DEVMAPPER_PC_LIBS='-ldevmapper' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4158 | DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' |
| 4159 | 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] | 4160 | |
| 4161 | fi |
| 4162 | |
| 4163 | else |
| 4164 | echo "Disabling device-mapper support by default" |
| 4165 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4166 | fi |
| 4167 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4172 | # Check whether --enable-tls was given. |
| 4173 | if test "${enable_tls+set}" = set; then |
| 4174 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4175 | then |
| 4176 | try_tls="" |
| 4177 | echo "Disabling thread local support" |
| 4178 | else |
| 4179 | try_tls="yes" |
| 4180 | echo "Enabling thread local support" |
| 4181 | fi |
| 4182 | |
| 4183 | else |
| 4184 | try_tls="yes" |
| 4185 | echo "Try using thread local support by default" |
| 4186 | |
| 4187 | fi |
| 4188 | |
| 4189 | if test "$try_tls" = "yes" |
| 4190 | then |
| 4191 | |
| 4192 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4193 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4194 | if test "${ac_cv_tls+set}" = set; then |
| 4195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4196 | else |
| 4197 | |
| 4198 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4199 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4200 | case $ax_tls_keyword in |
| 4201 | none) ac_cv_tls=none ; break ;; |
| 4202 | *) |
| 4203 | cat >conftest.$ac_ext <<_ACEOF |
| 4204 | /* confdefs.h. */ |
| 4205 | _ACEOF |
| 4206 | cat confdefs.h >>conftest.$ac_ext |
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
| 4208 | /* end confdefs.h. */ |
| 4209 | #include <stdlib.h> |
| 4210 | static void |
| 4211 | foo(void) { |
| 4212 | static $ax_tls_keyword int bar; |
| 4213 | exit(1); |
| 4214 | } |
| 4215 | int |
| 4216 | main () |
| 4217 | { |
| 4218 | |
| 4219 | ; |
| 4220 | return 0; |
| 4221 | } |
| 4222 | _ACEOF |
| 4223 | rm -f conftest.$ac_objext |
| 4224 | if { (ac_try="$ac_compile" |
| 4225 | case "(($ac_try" in |
| 4226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4227 | *) ac_try_echo=$ac_try;; |
| 4228 | esac |
| 4229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4230 | (eval "$ac_compile") 2>conftest.er1 |
| 4231 | ac_status=$? |
| 4232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4233 | rm -f conftest.er1 |
| 4234 | cat conftest.err >&5 |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); } && { |
| 4237 | test -z "$ac_c_werror_flag" || |
| 4238 | test ! -s conftest.err |
| 4239 | } && test -s conftest.$ac_objext; then |
| 4240 | ac_cv_tls=$ax_tls_keyword ; break |
| 4241 | else |
| 4242 | echo "$as_me: failed program was:" >&5 |
| 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4244 | |
| 4245 | ac_cv_tls=none |
| 4246 | |
| 4247 | fi |
| 4248 | |
| 4249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4250 | esac |
| 4251 | done |
| 4252 | |
| 4253 | fi |
| 4254 | |
| 4255 | |
| 4256 | if test "$ac_cv_tls" != "none"; then |
| 4257 | |
| 4258 | cat >>confdefs.h <<_ACEOF |
| 4259 | #define TLS $ac_cv_tls |
| 4260 | _ACEOF |
| 4261 | |
| 4262 | fi |
| 4263 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4264 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4265 | |
| 4266 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame^] | 4267 | # Check whether --enable-uuidd was given. |
| 4268 | if test "${enable_uuidd+set}" = set; then |
| 4269 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4270 | then |
| 4271 | echo "Not building uuidd" |
| 4272 | UUIDD_CMT="#" |
| 4273 | else |
| 4274 | cat >>confdefs.h <<\_ACEOF |
| 4275 | #define USE_UUIDD 1 |
| 4276 | _ACEOF |
| 4277 | |
| 4278 | UUIDD_CMT="" |
| 4279 | echo "Building uuidd" |
| 4280 | fi |
| 4281 | |
| 4282 | else |
| 4283 | cat >>confdefs.h <<\_ACEOF |
| 4284 | #define USE_UUIDD 1 |
| 4285 | _ACEOF |
| 4286 | |
| 4287 | UUIDD_CMT="" |
| 4288 | echo "Building uuidd by default" |
| 4289 | |
| 4290 | fi |
| 4291 | |
| 4292 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4293 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4294 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4295 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4296 | PACKAGE=e2fsprogs |
| 4297 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4298 | VERSION=0.14.1 |
| 4299 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4300 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4301 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4303 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4304 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4305 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4306 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4307 | |
| 4308 | |
| 4309 | |
| 4310 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4311 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4312 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4313 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4314 | 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] | 4315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4316 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4317 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4318 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4319 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4320 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4321 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4322 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4323 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4324 | *@@@%%%=?*=@@@%%%*) |
| 4325 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4326 | *) |
| 4327 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4328 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4329 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4330 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4331 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4332 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4333 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4334 | SET_MAKE= |
| 4335 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4336 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4337 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4338 | SET_MAKE="MAKE=${MAKE-make}" |
| 4339 | fi |
| 4340 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4341 | # Find a good install program. We prefer a C program (faster), |
| 4342 | # so one script is as good as another. But avoid the broken or |
| 4343 | # incompatible versions: |
| 4344 | # SysV /etc/install, /usr/sbin/install |
| 4345 | # SunOS /usr/etc/install |
| 4346 | # IRIX /sbin/install |
| 4347 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4348 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4349 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4350 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4351 | # 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] | 4352 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4353 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4354 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4355 | 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] | 4356 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4357 | if test "${ac_cv_path_install+set}" = set; then |
| 4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4359 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | # Account for people who put trailing slashes in PATH elements. |
| 4366 | case $as_dir/ in |
| 4367 | ./ | .// | /cC/* | \ |
| 4368 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4369 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4370 | /usr/ucb/* ) ;; |
| 4371 | *) |
| 4372 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4373 | # Don't use installbsd from OSF since it installs stuff as root |
| 4374 | # by default. |
| 4375 | for ac_prog in ginstall scoinst install; do |
| 4376 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4377 | 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] | 4378 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4379 | 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] | 4380 | # AIX install. It has an incompatible calling convention. |
| 4381 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4382 | elif test $ac_prog = install && |
| 4383 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4384 | # program-specific install script used by HP pwplus--don't use. |
| 4385 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4386 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4387 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4388 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4389 | fi |
| 4390 | fi |
| 4391 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4392 | done |
| 4393 | ;; |
| 4394 | esac |
| 4395 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4396 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4397 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4398 | |
| 4399 | fi |
| 4400 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4401 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4402 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4403 | # As a last resort, use the slow shell script. Don't cache a |
| 4404 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4405 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4406 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4407 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4408 | fi |
| 4409 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4410 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4411 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4412 | |
| 4413 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4414 | # It thinks the first close brace ends the variable substitution. |
| 4415 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4417 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4418 | |
| 4419 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4420 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4421 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4422 | MKINSTALLDIRS= |
| 4423 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4424 | case "$ac_aux_dir" in |
| 4425 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4426 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4427 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4428 | fi |
| 4429 | if test -z "$MKINSTALLDIRS"; then |
| 4430 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4431 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4433 | |
| 4434 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4435 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4436 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4437 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4438 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4439 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4440 | else |
| 4441 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4442 | fi |
| 4443 | |
| 4444 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4445 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4446 | |
| 4447 | |
| 4448 | |
| 4449 | |
| 4450 | |
| 4451 | |
| 4452 | # Prepare PATH_SEPARATOR. |
| 4453 | # The user is always right. |
| 4454 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4455 | echo "#! /bin/sh" >conf$$.sh |
| 4456 | echo "exit 0" >>conf$$.sh |
| 4457 | chmod +x conf$$.sh |
| 4458 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4459 | PATH_SEPARATOR=';' |
| 4460 | else |
| 4461 | PATH_SEPARATOR=: |
| 4462 | fi |
| 4463 | rm -f conf$$.sh |
| 4464 | fi |
| 4465 | |
| 4466 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4467 | # as systems may use methods other than mode bits to determine executability. |
| 4468 | cat >conf$$.file <<_ASEOF |
| 4469 | #! /bin/sh |
| 4470 | exit 0 |
| 4471 | _ASEOF |
| 4472 | chmod +x conf$$.file |
| 4473 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4474 | ac_executable_p="test -x" |
| 4475 | else |
| 4476 | ac_executable_p="test -f" |
| 4477 | fi |
| 4478 | rm -f conf$$.file |
| 4479 | |
| 4480 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4481 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4484 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4486 | else |
| 4487 | case "$MSGFMT" in |
| 4488 | [\\/]* | ?:[\\/]*) |
| 4489 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4490 | ;; |
| 4491 | *) |
| 4492 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4493 | for ac_dir in $PATH; do |
| 4494 | IFS="$ac_save_IFS" |
| 4495 | test -z "$ac_dir" && ac_dir=. |
| 4496 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4497 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4498 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4499 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4500 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4501 | break 2 |
| 4502 | fi |
| 4503 | fi |
| 4504 | done |
| 4505 | done |
| 4506 | IFS="$ac_save_IFS" |
| 4507 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4508 | ;; |
| 4509 | esac |
| 4510 | fi |
| 4511 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4512 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4513 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4514 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4515 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4516 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4517 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4518 | fi |
| 4519 | |
| 4520 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4521 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4524 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4526 | else |
| 4527 | case $GMSGFMT in |
| 4528 | [\\/]* | ?:[\\/]*) |
| 4529 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4530 | ;; |
| 4531 | *) |
| 4532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4533 | for as_dir in $PATH |
| 4534 | do |
| 4535 | IFS=$as_save_IFS |
| 4536 | test -z "$as_dir" && as_dir=. |
| 4537 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4538 | 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] | 4539 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4541 | break 2 |
| 4542 | fi |
| 4543 | done |
| 4544 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4545 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4546 | |
| 4547 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4548 | ;; |
| 4549 | esac |
| 4550 | fi |
| 4551 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4552 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4553 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4554 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4556 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4557 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4558 | fi |
| 4559 | |
| 4560 | |
| 4561 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4562 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4563 | # Prepare PATH_SEPARATOR. |
| 4564 | # The user is always right. |
| 4565 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4566 | echo "#! /bin/sh" >conf$$.sh |
| 4567 | echo "exit 0" >>conf$$.sh |
| 4568 | chmod +x conf$$.sh |
| 4569 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4570 | PATH_SEPARATOR=';' |
| 4571 | else |
| 4572 | PATH_SEPARATOR=: |
| 4573 | fi |
| 4574 | rm -f conf$$.sh |
| 4575 | fi |
| 4576 | |
| 4577 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4578 | # as systems may use methods other than mode bits to determine executability. |
| 4579 | cat >conf$$.file <<_ASEOF |
| 4580 | #! /bin/sh |
| 4581 | exit 0 |
| 4582 | _ASEOF |
| 4583 | chmod +x conf$$.file |
| 4584 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4585 | ac_executable_p="test -x" |
| 4586 | else |
| 4587 | ac_executable_p="test -f" |
| 4588 | fi |
| 4589 | rm -f conf$$.file |
| 4590 | |
| 4591 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4592 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4595 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4597 | else |
| 4598 | case "$XGETTEXT" in |
| 4599 | [\\/]* | ?:[\\/]*) |
| 4600 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4601 | ;; |
| 4602 | *) |
| 4603 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4604 | for ac_dir in $PATH; do |
| 4605 | IFS="$ac_save_IFS" |
| 4606 | test -z "$ac_dir" && ac_dir=. |
| 4607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4608 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4609 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4610 | (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 |
| 4611 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4612 | break 2 |
| 4613 | fi |
| 4614 | fi |
| 4615 | done |
| 4616 | done |
| 4617 | IFS="$ac_save_IFS" |
| 4618 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4619 | ;; |
| 4620 | esac |
| 4621 | fi |
| 4622 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4623 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4624 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4625 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4626 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4628 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4629 | fi |
| 4630 | |
| 4631 | rm -f messages.po |
| 4632 | |
| 4633 | |
| 4634 | # Prepare PATH_SEPARATOR. |
| 4635 | # The user is always right. |
| 4636 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4637 | echo "#! /bin/sh" >conf$$.sh |
| 4638 | echo "exit 0" >>conf$$.sh |
| 4639 | chmod +x conf$$.sh |
| 4640 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4641 | PATH_SEPARATOR=';' |
| 4642 | else |
| 4643 | PATH_SEPARATOR=: |
| 4644 | fi |
| 4645 | rm -f conf$$.sh |
| 4646 | fi |
| 4647 | |
| 4648 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4649 | # as systems may use methods other than mode bits to determine executability. |
| 4650 | cat >conf$$.file <<_ASEOF |
| 4651 | #! /bin/sh |
| 4652 | exit 0 |
| 4653 | _ASEOF |
| 4654 | chmod +x conf$$.file |
| 4655 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4656 | ac_executable_p="test -x" |
| 4657 | else |
| 4658 | ac_executable_p="test -f" |
| 4659 | fi |
| 4660 | rm -f conf$$.file |
| 4661 | |
| 4662 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4663 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4666 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4668 | else |
| 4669 | case "$MSGMERGE" in |
| 4670 | [\\/]* | ?:[\\/]*) |
| 4671 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4672 | ;; |
| 4673 | *) |
| 4674 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4675 | for ac_dir in $PATH; do |
| 4676 | IFS="$ac_save_IFS" |
| 4677 | test -z "$ac_dir" && ac_dir=. |
| 4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4679 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4680 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4681 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4682 | break 2 |
| 4683 | fi |
| 4684 | fi |
| 4685 | done |
| 4686 | done |
| 4687 | IFS="$ac_save_IFS" |
| 4688 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4689 | ;; |
| 4690 | esac |
| 4691 | fi |
| 4692 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4693 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4694 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4695 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4696 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4698 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4699 | fi |
| 4700 | |
| 4701 | |
| 4702 | if test "$GMSGFMT" != ":"; then |
| 4703 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4704 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4705 | : ; |
| 4706 | else |
| 4707 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4708 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4709 | 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] | 4710 | GMSGFMT=":" |
| 4711 | fi |
| 4712 | fi |
| 4713 | |
| 4714 | if test "$XGETTEXT" != ":"; then |
| 4715 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4716 | (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 |
| 4717 | : ; |
| 4718 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4719 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4720 | 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] | 4721 | XGETTEXT=":" |
| 4722 | fi |
| 4723 | rm -f messages.po |
| 4724 | fi |
| 4725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4726 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4727 | |
| 4728 | |
| 4729 | if test -n "$ac_tool_prefix"; then |
| 4730 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4731 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4732 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4734 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4736 | else |
| 4737 | if test -n "$RANLIB"; then |
| 4738 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4739 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4741 | for as_dir in $PATH |
| 4742 | do |
| 4743 | IFS=$as_save_IFS |
| 4744 | test -z "$as_dir" && as_dir=. |
| 4745 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4746 | 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] | 4747 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4749 | break 2 |
| 4750 | fi |
| 4751 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4752 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4753 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4754 | |
| 4755 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4756 | fi |
| 4757 | RANLIB=$ac_cv_prog_RANLIB |
| 4758 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4759 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4760 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4761 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4762 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4763 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4764 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4767 | fi |
| 4768 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4769 | ac_ct_RANLIB=$RANLIB |
| 4770 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4771 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4774 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4776 | else |
| 4777 | if test -n "$ac_ct_RANLIB"; then |
| 4778 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4779 | else |
| 4780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4781 | for as_dir in $PATH |
| 4782 | do |
| 4783 | IFS=$as_save_IFS |
| 4784 | test -z "$as_dir" && as_dir=. |
| 4785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4786 | 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] | 4787 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4789 | break 2 |
| 4790 | fi |
| 4791 | done |
| 4792 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4793 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4794 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4795 | fi |
| 4796 | fi |
| 4797 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4798 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4799 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4800 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4801 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4803 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4804 | fi |
| 4805 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4806 | if test "x$ac_ct_RANLIB" = x; then |
| 4807 | RANLIB=":" |
| 4808 | else |
| 4809 | case $cross_compiling:$ac_tool_warned in |
| 4810 | yes:) |
| 4811 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4812 | whose name does not start with the host triplet. If you think this |
| 4813 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4814 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4815 | whose name does not start with the host triplet. If you think this |
| 4816 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4817 | ac_tool_warned=yes ;; |
| 4818 | esac |
| 4819 | RANLIB=$ac_ct_RANLIB |
| 4820 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4821 | else |
| 4822 | RANLIB="$ac_cv_prog_RANLIB" |
| 4823 | fi |
| 4824 | |
| 4825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4826 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4827 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4828 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4830 | else |
| 4831 | ac_check_lib_save_LIBS=$LIBS |
| 4832 | LIBS="-lcposix $LIBS" |
| 4833 | cat >conftest.$ac_ext <<_ACEOF |
| 4834 | /* confdefs.h. */ |
| 4835 | _ACEOF |
| 4836 | cat confdefs.h >>conftest.$ac_ext |
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
| 4838 | /* end confdefs.h. */ |
| 4839 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4840 | /* Override any GCC internal prototype to avoid an error. |
| 4841 | Use char because int might match the return type of a GCC |
| 4842 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4843 | #ifdef __cplusplus |
| 4844 | extern "C" |
| 4845 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4846 | char strerror (); |
| 4847 | int |
| 4848 | main () |
| 4849 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4850 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4851 | ; |
| 4852 | return 0; |
| 4853 | } |
| 4854 | _ACEOF |
| 4855 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4856 | if { (ac_try="$ac_link" |
| 4857 | case "(($ac_try" in |
| 4858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4859 | *) ac_try_echo=$ac_try;; |
| 4860 | esac |
| 4861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4862 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4863 | ac_status=$? |
| 4864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4865 | rm -f conftest.er1 |
| 4866 | cat conftest.err >&5 |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4868 | (exit $ac_status); } && { |
| 4869 | test -z "$ac_c_werror_flag" || |
| 4870 | test ! -s conftest.err |
| 4871 | } && test -s conftest$ac_exeext && |
| 4872 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4873 | ac_cv_lib_cposix_strerror=yes |
| 4874 | else |
| 4875 | echo "$as_me: failed program was:" >&5 |
| 4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4877 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4878 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4879 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4880 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4881 | 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] | 4882 | conftest$ac_exeext conftest.$ac_ext |
| 4883 | LIBS=$ac_check_lib_save_LIBS |
| 4884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4885 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4886 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4887 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4888 | LIBS="$LIBS -lcposix" |
| 4889 | fi |
| 4890 | |
| 4891 | |
| 4892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4893 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4894 | 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] | 4895 | if test "${ac_cv_c_const+set}" = set; then |
| 4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4897 | else |
| 4898 | cat >conftest.$ac_ext <<_ACEOF |
| 4899 | /* confdefs.h. */ |
| 4900 | _ACEOF |
| 4901 | cat confdefs.h >>conftest.$ac_ext |
| 4902 | cat >>conftest.$ac_ext <<_ACEOF |
| 4903 | /* end confdefs.h. */ |
| 4904 | |
| 4905 | int |
| 4906 | main () |
| 4907 | { |
| 4908 | /* FIXME: Include the comments suggested by Paul. */ |
| 4909 | #ifndef __cplusplus |
| 4910 | /* Ultrix mips cc rejects this. */ |
| 4911 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4912 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4913 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4914 | char const *const *pcpcc; |
| 4915 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4916 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4917 | struct point {int x, y;}; |
| 4918 | static struct point const zero = {0,0}; |
| 4919 | /* AIX XL C 1.02.0.0 rejects this. |
| 4920 | It does not let you subtract one const X* pointer from another in |
| 4921 | an arm of an if-expression whose if-part is not a constant |
| 4922 | expression */ |
| 4923 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4924 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4925 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4926 | ++pcpcc; |
| 4927 | ppc = (char**) pcpcc; |
| 4928 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4929 | { /* SCO 3.2v4 cc rejects this. */ |
| 4930 | char *t; |
| 4931 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4932 | |
| 4933 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4934 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4935 | } |
| 4936 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4937 | int x[] = {25, 17}; |
| 4938 | const int *foo = &x[0]; |
| 4939 | ++foo; |
| 4940 | } |
| 4941 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4942 | typedef const int *iptr; |
| 4943 | iptr p = 0; |
| 4944 | ++p; |
| 4945 | } |
| 4946 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4947 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4948 | struct s { int j; const int *ap[3]; }; |
| 4949 | struct s *b; b->j = 5; |
| 4950 | } |
| 4951 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4952 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4953 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4954 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4955 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4956 | #endif |
| 4957 | |
| 4958 | ; |
| 4959 | return 0; |
| 4960 | } |
| 4961 | _ACEOF |
| 4962 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4963 | if { (ac_try="$ac_compile" |
| 4964 | case "(($ac_try" in |
| 4965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4966 | *) ac_try_echo=$ac_try;; |
| 4967 | esac |
| 4968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4969 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4970 | ac_status=$? |
| 4971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4972 | rm -f conftest.er1 |
| 4973 | cat conftest.err >&5 |
| 4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4975 | (exit $ac_status); } && { |
| 4976 | test -z "$ac_c_werror_flag" || |
| 4977 | test ! -s conftest.err |
| 4978 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4979 | ac_cv_c_const=yes |
| 4980 | else |
| 4981 | echo "$as_me: failed program was:" >&5 |
| 4982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4983 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4984 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4985 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4986 | |
| 4987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4988 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4989 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4990 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4991 | if test $ac_cv_c_const = no; then |
| 4992 | |
| 4993 | cat >>confdefs.h <<\_ACEOF |
| 4994 | #define const |
| 4995 | _ACEOF |
| 4996 | |
| 4997 | fi |
| 4998 | |
| 4999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5000 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5001 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5002 | if test "${bh_cv_c_signed+set}" = set; then |
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5004 | else |
| 5005 | cat >conftest.$ac_ext <<_ACEOF |
| 5006 | /* confdefs.h. */ |
| 5007 | _ACEOF |
| 5008 | cat confdefs.h >>conftest.$ac_ext |
| 5009 | cat >>conftest.$ac_ext <<_ACEOF |
| 5010 | /* end confdefs.h. */ |
| 5011 | |
| 5012 | int |
| 5013 | main () |
| 5014 | { |
| 5015 | signed char x; |
| 5016 | ; |
| 5017 | return 0; |
| 5018 | } |
| 5019 | _ACEOF |
| 5020 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5021 | if { (ac_try="$ac_compile" |
| 5022 | case "(($ac_try" in |
| 5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5024 | *) ac_try_echo=$ac_try;; |
| 5025 | esac |
| 5026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5027 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5028 | ac_status=$? |
| 5029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5030 | rm -f conftest.er1 |
| 5031 | cat conftest.err >&5 |
| 5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5033 | (exit $ac_status); } && { |
| 5034 | test -z "$ac_c_werror_flag" || |
| 5035 | test ! -s conftest.err |
| 5036 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5037 | bh_cv_c_signed=yes |
| 5038 | else |
| 5039 | echo "$as_me: failed program was:" >&5 |
| 5040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5042 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5043 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5044 | |
| 5045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5046 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5047 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5048 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5049 | if test $bh_cv_c_signed = no; then |
| 5050 | |
| 5051 | cat >>confdefs.h <<\_ACEOF |
| 5052 | #define signed |
| 5053 | _ACEOF |
| 5054 | |
| 5055 | fi |
| 5056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5057 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5058 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5059 | if test "${ac_cv_c_inline+set}" = set; then |
| 5060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5061 | else |
| 5062 | ac_cv_c_inline=no |
| 5063 | for ac_kw in inline __inline__ __inline; do |
| 5064 | cat >conftest.$ac_ext <<_ACEOF |
| 5065 | /* confdefs.h. */ |
| 5066 | _ACEOF |
| 5067 | cat confdefs.h >>conftest.$ac_ext |
| 5068 | cat >>conftest.$ac_ext <<_ACEOF |
| 5069 | /* end confdefs.h. */ |
| 5070 | #ifndef __cplusplus |
| 5071 | typedef int foo_t; |
| 5072 | static $ac_kw foo_t static_foo () {return 0; } |
| 5073 | $ac_kw foo_t foo () {return 0; } |
| 5074 | #endif |
| 5075 | |
| 5076 | _ACEOF |
| 5077 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5078 | if { (ac_try="$ac_compile" |
| 5079 | case "(($ac_try" in |
| 5080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5081 | *) ac_try_echo=$ac_try;; |
| 5082 | esac |
| 5083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5084 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5085 | ac_status=$? |
| 5086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5087 | rm -f conftest.er1 |
| 5088 | cat conftest.err >&5 |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5090 | (exit $ac_status); } && { |
| 5091 | test -z "$ac_c_werror_flag" || |
| 5092 | test ! -s conftest.err |
| 5093 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5094 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5095 | else |
| 5096 | echo "$as_me: failed program was:" >&5 |
| 5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5099 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5100 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5101 | |
| 5102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5103 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5104 | done |
| 5105 | |
| 5106 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5107 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5108 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5109 | |
| 5110 | |
| 5111 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5112 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5113 | *) |
| 5114 | case $ac_cv_c_inline in |
| 5115 | no) ac_val=;; |
| 5116 | *) ac_val=$ac_cv_c_inline;; |
| 5117 | esac |
| 5118 | cat >>confdefs.h <<_ACEOF |
| 5119 | #ifndef __cplusplus |
| 5120 | #define inline $ac_val |
| 5121 | #endif |
| 5122 | _ACEOF |
| 5123 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5124 | esac |
| 5125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5126 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5127 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5128 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5130 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5131 | cat >conftest.$ac_ext <<_ACEOF |
| 5132 | /* confdefs.h. */ |
| 5133 | _ACEOF |
| 5134 | cat confdefs.h >>conftest.$ac_ext |
| 5135 | cat >>conftest.$ac_ext <<_ACEOF |
| 5136 | /* end confdefs.h. */ |
| 5137 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5138 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5139 | int |
| 5140 | main () |
| 5141 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5142 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5143 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5144 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5145 | return 0; |
| 5146 | ; |
| 5147 | return 0; |
| 5148 | } |
| 5149 | _ACEOF |
| 5150 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5151 | if { (ac_try="$ac_compile" |
| 5152 | case "(($ac_try" in |
| 5153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5154 | *) ac_try_echo=$ac_try;; |
| 5155 | esac |
| 5156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5157 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5158 | ac_status=$? |
| 5159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5160 | rm -f conftest.er1 |
| 5161 | cat conftest.err >&5 |
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5163 | (exit $ac_status); } && { |
| 5164 | test -z "$ac_c_werror_flag" || |
| 5165 | test ! -s conftest.err |
| 5166 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5167 | ac_cv_type_off_t=yes |
| 5168 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5169 | echo "$as_me: failed program was:" >&5 |
| 5170 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5172 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5173 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5174 | |
| 5175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5176 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5177 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5178 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5179 | if test $ac_cv_type_off_t = yes; then |
| 5180 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5181 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5182 | |
| 5183 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5184 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5185 | _ACEOF |
| 5186 | |
| 5187 | fi |
| 5188 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5189 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5190 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5191 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5193 | else |
| 5194 | cat >conftest.$ac_ext <<_ACEOF |
| 5195 | /* confdefs.h. */ |
| 5196 | _ACEOF |
| 5197 | cat confdefs.h >>conftest.$ac_ext |
| 5198 | cat >>conftest.$ac_ext <<_ACEOF |
| 5199 | /* end confdefs.h. */ |
| 5200 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5201 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5202 | int |
| 5203 | main () |
| 5204 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5205 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5206 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5207 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5208 | return 0; |
| 5209 | ; |
| 5210 | return 0; |
| 5211 | } |
| 5212 | _ACEOF |
| 5213 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5214 | if { (ac_try="$ac_compile" |
| 5215 | case "(($ac_try" in |
| 5216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5217 | *) ac_try_echo=$ac_try;; |
| 5218 | esac |
| 5219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5220 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5221 | ac_status=$? |
| 5222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5223 | rm -f conftest.er1 |
| 5224 | cat conftest.err >&5 |
| 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5226 | (exit $ac_status); } && { |
| 5227 | test -z "$ac_c_werror_flag" || |
| 5228 | test ! -s conftest.err |
| 5229 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5230 | ac_cv_type_size_t=yes |
| 5231 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5232 | echo "$as_me: failed program was:" >&5 |
| 5233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5234 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5235 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5236 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5237 | |
| 5238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5239 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5240 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5241 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5242 | if test $ac_cv_type_size_t = yes; then |
| 5243 | : |
| 5244 | else |
| 5245 | |
| 5246 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5247 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5248 | _ACEOF |
| 5249 | |
| 5250 | fi |
| 5251 | |
| 5252 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5253 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5254 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5255 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5257 | else |
| 5258 | cat >conftest.$ac_ext <<_ACEOF |
| 5259 | /* confdefs.h. */ |
| 5260 | _ACEOF |
| 5261 | cat confdefs.h >>conftest.$ac_ext |
| 5262 | cat >>conftest.$ac_ext <<_ACEOF |
| 5263 | /* end confdefs.h. */ |
| 5264 | long long ll = 1LL; int i = 63; |
| 5265 | int |
| 5266 | main () |
| 5267 | { |
| 5268 | long long llmax = (long long) -1; |
| 5269 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5270 | ; |
| 5271 | return 0; |
| 5272 | } |
| 5273 | _ACEOF |
| 5274 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5275 | if { (ac_try="$ac_link" |
| 5276 | case "(($ac_try" in |
| 5277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5278 | *) ac_try_echo=$ac_try;; |
| 5279 | esac |
| 5280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5281 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5282 | ac_status=$? |
| 5283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5284 | rm -f conftest.er1 |
| 5285 | cat conftest.err >&5 |
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5287 | (exit $ac_status); } && { |
| 5288 | test -z "$ac_c_werror_flag" || |
| 5289 | test ! -s conftest.err |
| 5290 | } && test -s conftest$ac_exeext && |
| 5291 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5292 | ac_cv_type_long_long=yes |
| 5293 | else |
| 5294 | echo "$as_me: failed program was:" >&5 |
| 5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5296 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5297 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5298 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5299 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5300 | 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] | 5301 | conftest$ac_exeext conftest.$ac_ext |
| 5302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5303 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5304 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5305 | if test $ac_cv_type_long_long = yes; then |
| 5306 | |
| 5307 | cat >>confdefs.h <<\_ACEOF |
| 5308 | #define HAVE_LONG_LONG 1 |
| 5309 | _ACEOF |
| 5310 | |
| 5311 | fi |
| 5312 | |
| 5313 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5314 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5315 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5316 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5318 | else |
| 5319 | if test "$GCC" = yes; then |
| 5320 | gt_cv_c_long_double=yes |
| 5321 | else |
| 5322 | cat >conftest.$ac_ext <<_ACEOF |
| 5323 | /* confdefs.h. */ |
| 5324 | _ACEOF |
| 5325 | cat confdefs.h >>conftest.$ac_ext |
| 5326 | cat >>conftest.$ac_ext <<_ACEOF |
| 5327 | /* end confdefs.h. */ |
| 5328 | |
| 5329 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5330 | long double foo = 0.0; |
| 5331 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5332 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5333 | |
| 5334 | int |
| 5335 | main () |
| 5336 | { |
| 5337 | |
| 5338 | ; |
| 5339 | return 0; |
| 5340 | } |
| 5341 | _ACEOF |
| 5342 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5343 | if { (ac_try="$ac_compile" |
| 5344 | case "(($ac_try" in |
| 5345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5346 | *) ac_try_echo=$ac_try;; |
| 5347 | esac |
| 5348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5349 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5350 | ac_status=$? |
| 5351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5352 | rm -f conftest.er1 |
| 5353 | cat conftest.err >&5 |
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5355 | (exit $ac_status); } && { |
| 5356 | test -z "$ac_c_werror_flag" || |
| 5357 | test ! -s conftest.err |
| 5358 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5359 | gt_cv_c_long_double=yes |
| 5360 | else |
| 5361 | echo "$as_me: failed program was:" >&5 |
| 5362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5363 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5364 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5366 | |
| 5367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5368 | fi |
| 5369 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5370 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5371 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5372 | if test $gt_cv_c_long_double = yes; then |
| 5373 | |
| 5374 | cat >>confdefs.h <<\_ACEOF |
| 5375 | #define HAVE_LONG_DOUBLE 1 |
| 5376 | _ACEOF |
| 5377 | |
| 5378 | fi |
| 5379 | |
| 5380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5381 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5382 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5383 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5385 | else |
| 5386 | cat >conftest.$ac_ext <<_ACEOF |
| 5387 | /* confdefs.h. */ |
| 5388 | _ACEOF |
| 5389 | cat confdefs.h >>conftest.$ac_ext |
| 5390 | cat >>conftest.$ac_ext <<_ACEOF |
| 5391 | /* end confdefs.h. */ |
| 5392 | #include <stddef.h> |
| 5393 | wchar_t foo = (wchar_t)'\0'; |
| 5394 | int |
| 5395 | main () |
| 5396 | { |
| 5397 | |
| 5398 | ; |
| 5399 | return 0; |
| 5400 | } |
| 5401 | _ACEOF |
| 5402 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5403 | if { (ac_try="$ac_compile" |
| 5404 | case "(($ac_try" in |
| 5405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5406 | *) ac_try_echo=$ac_try;; |
| 5407 | esac |
| 5408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5409 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5410 | ac_status=$? |
| 5411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5412 | rm -f conftest.er1 |
| 5413 | cat conftest.err >&5 |
| 5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5415 | (exit $ac_status); } && { |
| 5416 | test -z "$ac_c_werror_flag" || |
| 5417 | test ! -s conftest.err |
| 5418 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5419 | gt_cv_c_wchar_t=yes |
| 5420 | else |
| 5421 | echo "$as_me: failed program was:" >&5 |
| 5422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5424 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5425 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5426 | |
| 5427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5428 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5429 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5430 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5431 | if test $gt_cv_c_wchar_t = yes; then |
| 5432 | |
| 5433 | cat >>confdefs.h <<\_ACEOF |
| 5434 | #define HAVE_WCHAR_T 1 |
| 5435 | _ACEOF |
| 5436 | |
| 5437 | fi |
| 5438 | |
| 5439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5440 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5441 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5442 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5444 | else |
| 5445 | cat >conftest.$ac_ext <<_ACEOF |
| 5446 | /* confdefs.h. */ |
| 5447 | _ACEOF |
| 5448 | cat confdefs.h >>conftest.$ac_ext |
| 5449 | cat >>conftest.$ac_ext <<_ACEOF |
| 5450 | /* end confdefs.h. */ |
| 5451 | #include <wchar.h> |
| 5452 | wint_t foo = (wchar_t)'\0'; |
| 5453 | int |
| 5454 | main () |
| 5455 | { |
| 5456 | |
| 5457 | ; |
| 5458 | return 0; |
| 5459 | } |
| 5460 | _ACEOF |
| 5461 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5462 | if { (ac_try="$ac_compile" |
| 5463 | case "(($ac_try" in |
| 5464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5465 | *) ac_try_echo=$ac_try;; |
| 5466 | esac |
| 5467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5468 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5469 | ac_status=$? |
| 5470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5471 | rm -f conftest.er1 |
| 5472 | cat conftest.err >&5 |
| 5473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5474 | (exit $ac_status); } && { |
| 5475 | test -z "$ac_c_werror_flag" || |
| 5476 | test ! -s conftest.err |
| 5477 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5478 | gt_cv_c_wint_t=yes |
| 5479 | else |
| 5480 | echo "$as_me: failed program was:" >&5 |
| 5481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5483 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5485 | |
| 5486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5487 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5488 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5489 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5490 | if test $gt_cv_c_wint_t = yes; then |
| 5491 | |
| 5492 | cat >>confdefs.h <<\_ACEOF |
| 5493 | #define HAVE_WINT_T 1 |
| 5494 | _ACEOF |
| 5495 | |
| 5496 | fi |
| 5497 | |
| 5498 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5499 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5500 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5501 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5503 | else |
| 5504 | cat >conftest.$ac_ext <<_ACEOF |
| 5505 | /* confdefs.h. */ |
| 5506 | _ACEOF |
| 5507 | cat confdefs.h >>conftest.$ac_ext |
| 5508 | cat >>conftest.$ac_ext <<_ACEOF |
| 5509 | /* end confdefs.h. */ |
| 5510 | #include <sys/types.h> |
| 5511 | #include <inttypes.h> |
| 5512 | int |
| 5513 | main () |
| 5514 | { |
| 5515 | uintmax_t i = (uintmax_t) -1; |
| 5516 | ; |
| 5517 | return 0; |
| 5518 | } |
| 5519 | _ACEOF |
| 5520 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5521 | if { (ac_try="$ac_compile" |
| 5522 | case "(($ac_try" in |
| 5523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5524 | *) ac_try_echo=$ac_try;; |
| 5525 | esac |
| 5526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5527 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5528 | ac_status=$? |
| 5529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5530 | rm -f conftest.er1 |
| 5531 | cat conftest.err >&5 |
| 5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5533 | (exit $ac_status); } && { |
| 5534 | test -z "$ac_c_werror_flag" || |
| 5535 | test ! -s conftest.err |
| 5536 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5537 | jm_ac_cv_header_inttypes_h=yes |
| 5538 | else |
| 5539 | echo "$as_me: failed program was:" >&5 |
| 5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5542 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5544 | |
| 5545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5546 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5547 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5548 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5549 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5550 | |
| 5551 | cat >>confdefs.h <<_ACEOF |
| 5552 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5553 | _ACEOF |
| 5554 | |
| 5555 | fi |
| 5556 | |
| 5557 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5558 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5559 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5560 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5562 | else |
| 5563 | cat >conftest.$ac_ext <<_ACEOF |
| 5564 | /* confdefs.h. */ |
| 5565 | _ACEOF |
| 5566 | cat confdefs.h >>conftest.$ac_ext |
| 5567 | cat >>conftest.$ac_ext <<_ACEOF |
| 5568 | /* end confdefs.h. */ |
| 5569 | #include <sys/types.h> |
| 5570 | #include <stdint.h> |
| 5571 | int |
| 5572 | main () |
| 5573 | { |
| 5574 | uintmax_t i = (uintmax_t) -1; |
| 5575 | ; |
| 5576 | return 0; |
| 5577 | } |
| 5578 | _ACEOF |
| 5579 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5580 | if { (ac_try="$ac_compile" |
| 5581 | case "(($ac_try" in |
| 5582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5583 | *) ac_try_echo=$ac_try;; |
| 5584 | esac |
| 5585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5586 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5587 | ac_status=$? |
| 5588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5589 | rm -f conftest.er1 |
| 5590 | cat conftest.err >&5 |
| 5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5592 | (exit $ac_status); } && { |
| 5593 | test -z "$ac_c_werror_flag" || |
| 5594 | test ! -s conftest.err |
| 5595 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5596 | jm_ac_cv_header_stdint_h=yes |
| 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5601 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5603 | |
| 5604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5606 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5607 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5608 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5609 | |
| 5610 | cat >>confdefs.h <<_ACEOF |
| 5611 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5612 | _ACEOF |
| 5613 | |
| 5614 | fi |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5619 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5620 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5621 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5623 | else |
| 5624 | cat >conftest.$ac_ext <<_ACEOF |
| 5625 | /* confdefs.h. */ |
| 5626 | _ACEOF |
| 5627 | cat confdefs.h >>conftest.$ac_ext |
| 5628 | cat >>conftest.$ac_ext <<_ACEOF |
| 5629 | /* end confdefs.h. */ |
| 5630 | |
| 5631 | #include <stddef.h> |
| 5632 | #include <stdlib.h> |
| 5633 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5634 | #include <stdint.h> |
| 5635 | #endif |
| 5636 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5637 | #include <inttypes.h> |
| 5638 | #endif |
| 5639 | |
| 5640 | int |
| 5641 | main () |
| 5642 | { |
| 5643 | intmax_t x = -1; |
| 5644 | ; |
| 5645 | return 0; |
| 5646 | } |
| 5647 | _ACEOF |
| 5648 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5649 | if { (ac_try="$ac_compile" |
| 5650 | case "(($ac_try" in |
| 5651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5652 | *) ac_try_echo=$ac_try;; |
| 5653 | esac |
| 5654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5655 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5656 | ac_status=$? |
| 5657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5658 | rm -f conftest.er1 |
| 5659 | cat conftest.err >&5 |
| 5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5661 | (exit $ac_status); } && { |
| 5662 | test -z "$ac_c_werror_flag" || |
| 5663 | test ! -s conftest.err |
| 5664 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5665 | gt_cv_c_intmax_t=yes |
| 5666 | else |
| 5667 | echo "$as_me: failed program was:" >&5 |
| 5668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5669 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5670 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5671 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5672 | |
| 5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5674 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5675 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5676 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5677 | if test $gt_cv_c_intmax_t = yes; then |
| 5678 | |
| 5679 | cat >>confdefs.h <<\_ACEOF |
| 5680 | #define HAVE_INTMAX_T 1 |
| 5681 | _ACEOF |
| 5682 | |
| 5683 | fi |
| 5684 | |
| 5685 | |
| 5686 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5687 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5688 | 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] | 5689 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5691 | else |
| 5692 | |
| 5693 | if test "$cross_compiling" = yes; then |
| 5694 | |
| 5695 | cat >conftest.$ac_ext <<_ACEOF |
| 5696 | /* confdefs.h. */ |
| 5697 | _ACEOF |
| 5698 | cat confdefs.h >>conftest.$ac_ext |
| 5699 | cat >>conftest.$ac_ext <<_ACEOF |
| 5700 | /* end confdefs.h. */ |
| 5701 | |
| 5702 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5703 | notposix |
| 5704 | #endif |
| 5705 | |
| 5706 | _ACEOF |
| 5707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5708 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5709 | gt_cv_func_printf_posix="guessing no" |
| 5710 | else |
| 5711 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5712 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5713 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5714 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5715 | |
| 5716 | else |
| 5717 | cat >conftest.$ac_ext <<_ACEOF |
| 5718 | /* confdefs.h. */ |
| 5719 | _ACEOF |
| 5720 | cat confdefs.h >>conftest.$ac_ext |
| 5721 | cat >>conftest.$ac_ext <<_ACEOF |
| 5722 | /* end confdefs.h. */ |
| 5723 | |
| 5724 | #include <stdio.h> |
| 5725 | #include <string.h> |
| 5726 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5727 | dollar expansion (possibly an autoconf bug). */ |
| 5728 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5729 | static char buf[100]; |
| 5730 | int main () |
| 5731 | { |
| 5732 | sprintf (buf, format, 33, 55); |
| 5733 | return (strcmp (buf, "55 33") != 0); |
| 5734 | } |
| 5735 | _ACEOF |
| 5736 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5737 | if { (ac_try="$ac_link" |
| 5738 | case "(($ac_try" in |
| 5739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5740 | *) ac_try_echo=$ac_try;; |
| 5741 | esac |
| 5742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5743 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5747 | { (case "(($ac_try" in |
| 5748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5749 | *) ac_try_echo=$ac_try;; |
| 5750 | esac |
| 5751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5752 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5753 | ac_status=$? |
| 5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5755 | (exit $ac_status); }; }; then |
| 5756 | gt_cv_func_printf_posix=yes |
| 5757 | else |
| 5758 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5759 | echo "$as_me: failed program was:" >&5 |
| 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
| 5762 | ( exit $ac_status ) |
| 5763 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5764 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5765 | 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] | 5766 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5768 | |
| 5769 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5770 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5771 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5772 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5773 | case $gt_cv_func_printf_posix in |
| 5774 | *yes) |
| 5775 | |
| 5776 | cat >>confdefs.h <<\_ACEOF |
| 5777 | #define HAVE_POSIX_PRINTF 1 |
| 5778 | _ACEOF |
| 5779 | |
| 5780 | ;; |
| 5781 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5782 | |
| 5783 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5784 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5785 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5786 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5787 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5789 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5790 | cat >conftest.$ac_ext <<_ACEOF |
| 5791 | /* confdefs.h. */ |
| 5792 | _ACEOF |
| 5793 | cat confdefs.h >>conftest.$ac_ext |
| 5794 | cat >>conftest.$ac_ext <<_ACEOF |
| 5795 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5796 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5797 | int |
| 5798 | main () |
| 5799 | { |
| 5800 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5801 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5802 | ; |
| 5803 | return 0; |
| 5804 | } |
| 5805 | _ACEOF |
| 5806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5807 | if { (ac_try="$ac_link" |
| 5808 | case "(($ac_try" in |
| 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5810 | *) ac_try_echo=$ac_try;; |
| 5811 | esac |
| 5812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5813 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5814 | ac_status=$? |
| 5815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5816 | rm -f conftest.er1 |
| 5817 | cat conftest.err >&5 |
| 5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5819 | (exit $ac_status); } && { |
| 5820 | test -z "$ac_c_werror_flag" || |
| 5821 | test ! -s conftest.err |
| 5822 | } && test -s conftest$ac_exeext && |
| 5823 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5824 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5825 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5829 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5830 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5831 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5832 | 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] | 5833 | conftest$ac_exeext conftest.$ac_ext |
| 5834 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5835 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5836 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5837 | if test $ac_cv_working_alloca_h = yes; then |
| 5838 | |
| 5839 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5840 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5841 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5842 | |
| 5843 | fi |
| 5844 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5845 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5846 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5847 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5849 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5850 | cat >conftest.$ac_ext <<_ACEOF |
| 5851 | /* confdefs.h. */ |
| 5852 | _ACEOF |
| 5853 | cat confdefs.h >>conftest.$ac_ext |
| 5854 | cat >>conftest.$ac_ext <<_ACEOF |
| 5855 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5856 | #ifdef __GNUC__ |
| 5857 | # define alloca __builtin_alloca |
| 5858 | #else |
| 5859 | # ifdef _MSC_VER |
| 5860 | # include <malloc.h> |
| 5861 | # define alloca _alloca |
| 5862 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5863 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5864 | # include <alloca.h> |
| 5865 | # else |
| 5866 | # ifdef _AIX |
| 5867 | #pragma alloca |
| 5868 | # else |
| 5869 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5870 | char *alloca (); |
| 5871 | # endif |
| 5872 | # endif |
| 5873 | # endif |
| 5874 | # endif |
| 5875 | #endif |
| 5876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5877 | int |
| 5878 | main () |
| 5879 | { |
| 5880 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5881 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5882 | ; |
| 5883 | return 0; |
| 5884 | } |
| 5885 | _ACEOF |
| 5886 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5887 | if { (ac_try="$ac_link" |
| 5888 | case "(($ac_try" in |
| 5889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5890 | *) ac_try_echo=$ac_try;; |
| 5891 | esac |
| 5892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5893 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5894 | ac_status=$? |
| 5895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5896 | rm -f conftest.er1 |
| 5897 | cat conftest.err >&5 |
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5899 | (exit $ac_status); } && { |
| 5900 | test -z "$ac_c_werror_flag" || |
| 5901 | test ! -s conftest.err |
| 5902 | } && test -s conftest$ac_exeext && |
| 5903 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5904 | ac_cv_func_alloca_works=yes |
| 5905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5906 | echo "$as_me: failed program was:" >&5 |
| 5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5909 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5911 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5912 | 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] | 5913 | conftest$ac_exeext conftest.$ac_ext |
| 5914 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5915 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5916 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5917 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5918 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5919 | |
| 5920 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5921 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5922 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5923 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5924 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5925 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5926 | # that cause trouble. Some versions do not even contain alloca or |
| 5927 | # contain a buggy version. If you still want to use their alloca, |
| 5928 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5930 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | |
| 5932 | cat >>confdefs.h <<\_ACEOF |
| 5933 | #define C_ALLOCA 1 |
| 5934 | _ACEOF |
| 5935 | |
| 5936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5937 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5938 | 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] | 5939 | if test "${ac_cv_os_cray+set}" = set; then |
| 5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5941 | else |
| 5942 | cat >conftest.$ac_ext <<_ACEOF |
| 5943 | /* confdefs.h. */ |
| 5944 | _ACEOF |
| 5945 | cat confdefs.h >>conftest.$ac_ext |
| 5946 | cat >>conftest.$ac_ext <<_ACEOF |
| 5947 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5948 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5949 | webecray |
| 5950 | #else |
| 5951 | wenotbecray |
| 5952 | #endif |
| 5953 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5954 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5956 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5957 | ac_cv_os_cray=yes |
| 5958 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5959 | ac_cv_os_cray=no |
| 5960 | fi |
| 5961 | rm -f conftest* |
| 5962 | |
| 5963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5964 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5965 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5966 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5967 | for ac_func in _getb67 GETB67 getb67; do |
| 5968 | 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] | 5969 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 5971 | 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] | 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5973 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5974 | cat >conftest.$ac_ext <<_ACEOF |
| 5975 | /* confdefs.h. */ |
| 5976 | _ACEOF |
| 5977 | cat confdefs.h >>conftest.$ac_ext |
| 5978 | cat >>conftest.$ac_ext <<_ACEOF |
| 5979 | /* end confdefs.h. */ |
| 5980 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5981 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5982 | #define $ac_func innocuous_$ac_func |
| 5983 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5984 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5985 | which can conflict with char $ac_func (); below. |
| 5986 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5987 | <limits.h> exists even on freestanding compilers. */ |
| 5988 | |
| 5989 | #ifdef __STDC__ |
| 5990 | # include <limits.h> |
| 5991 | #else |
| 5992 | # include <assert.h> |
| 5993 | #endif |
| 5994 | |
| 5995 | #undef $ac_func |
| 5996 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5997 | /* Override any GCC internal prototype to avoid an error. |
| 5998 | Use char because int might match the return type of a GCC |
| 5999 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | #ifdef __cplusplus |
| 6001 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6002 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6003 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6004 | /* The GNU C library defines this for functions which it implements |
| 6005 | to always fail with ENOSYS. Some functions are actually named |
| 6006 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6007 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6008 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6009 | #endif |
| 6010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | int |
| 6012 | main () |
| 6013 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6014 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6020 | if { (ac_try="$ac_link" |
| 6021 | case "(($ac_try" in |
| 6022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6023 | *) ac_try_echo=$ac_try;; |
| 6024 | esac |
| 6025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6026 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | ac_status=$? |
| 6028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6029 | rm -f conftest.er1 |
| 6030 | cat conftest.err >&5 |
| 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6032 | (exit $ac_status); } && { |
| 6033 | test -z "$ac_c_werror_flag" || |
| 6034 | test ! -s conftest.err |
| 6035 | } && test -s conftest$ac_exeext && |
| 6036 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6037 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6038 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6039 | echo "$as_me: failed program was:" >&5 |
| 6040 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6042 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6044 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6045 | 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] | 6046 | conftest$ac_exeext conftest.$ac_ext |
| 6047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6048 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6050 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6051 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6052 | |
| 6053 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6054 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6055 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6056 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6057 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6058 | fi |
| 6059 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6060 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6061 | fi |
| 6062 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6063 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6064 | 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] | 6065 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6067 | else |
| 6068 | if test "$cross_compiling" = yes; then |
| 6069 | ac_cv_c_stack_direction=0 |
| 6070 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6071 | cat >conftest.$ac_ext <<_ACEOF |
| 6072 | /* confdefs.h. */ |
| 6073 | _ACEOF |
| 6074 | cat confdefs.h >>conftest.$ac_ext |
| 6075 | cat >>conftest.$ac_ext <<_ACEOF |
| 6076 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6077 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6079 | find_stack_direction () |
| 6080 | { |
| 6081 | static char *addr = 0; |
| 6082 | auto char dummy; |
| 6083 | if (addr == 0) |
| 6084 | { |
| 6085 | addr = &dummy; |
| 6086 | return find_stack_direction (); |
| 6087 | } |
| 6088 | else |
| 6089 | return (&dummy > addr) ? 1 : -1; |
| 6090 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6091 | |
| 6092 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6093 | main () |
| 6094 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6095 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6096 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | _ACEOF |
| 6098 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6099 | if { (ac_try="$ac_link" |
| 6100 | case "(($ac_try" in |
| 6101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6102 | *) ac_try_echo=$ac_try;; |
| 6103 | esac |
| 6104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6105 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6106 | ac_status=$? |
| 6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6109 | { (case "(($ac_try" in |
| 6110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6111 | *) ac_try_echo=$ac_try;; |
| 6112 | esac |
| 6113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6114 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | ac_status=$? |
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6117 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6118 | ac_cv_c_stack_direction=1 |
| 6119 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6121 | echo "$as_me: failed program was:" >&5 |
| 6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6123 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6124 | ( exit $ac_status ) |
| 6125 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6126 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6127 | 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] | 6128 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6129 | |
| 6130 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6131 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6132 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6133 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6134 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6135 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6136 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6137 | _ACEOF |
| 6138 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6139 | |
| 6140 | fi |
| 6141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6142 | |
| 6143 | |
| 6144 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6145 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6146 | 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] | 6147 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6148 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6150 | 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] | 6151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6155 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6156 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6157 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6158 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6160 | cat >conftest.$ac_ext <<_ACEOF |
| 6161 | /* confdefs.h. */ |
| 6162 | _ACEOF |
| 6163 | cat confdefs.h >>conftest.$ac_ext |
| 6164 | cat >>conftest.$ac_ext <<_ACEOF |
| 6165 | /* end confdefs.h. */ |
| 6166 | $ac_includes_default |
| 6167 | #include <$ac_header> |
| 6168 | _ACEOF |
| 6169 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6170 | if { (ac_try="$ac_compile" |
| 6171 | case "(($ac_try" in |
| 6172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6173 | *) ac_try_echo=$ac_try;; |
| 6174 | esac |
| 6175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6176 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6177 | ac_status=$? |
| 6178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6179 | rm -f conftest.er1 |
| 6180 | cat conftest.err >&5 |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6182 | (exit $ac_status); } && { |
| 6183 | test -z "$ac_c_werror_flag" || |
| 6184 | test ! -s conftest.err |
| 6185 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6186 | ac_header_compiler=yes |
| 6187 | else |
| 6188 | echo "$as_me: failed program was:" >&5 |
| 6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6191 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6192 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6193 | |
| 6194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6195 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6196 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6197 | |
| 6198 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6199 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6201 | cat >conftest.$ac_ext <<_ACEOF |
| 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
| 6207 | #include <$ac_header> |
| 6208 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6209 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6210 | case "(($ac_try" in |
| 6211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6212 | *) ac_try_echo=$ac_try;; |
| 6213 | esac |
| 6214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6215 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | ac_status=$? |
| 6217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6218 | rm -f conftest.er1 |
| 6219 | cat conftest.err >&5 |
| 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6221 | (exit $ac_status); } >/dev/null && { |
| 6222 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6223 | test ! -s conftest.err |
| 6224 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6225 | ac_header_preproc=yes |
| 6226 | else |
| 6227 | echo "$as_me: failed program was:" >&5 |
| 6228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6229 | |
| 6230 | ac_header_preproc=no |
| 6231 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6232 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6233 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6234 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6235 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6236 | |
| 6237 | # So? What about this header? |
| 6238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6239 | yes:no: ) |
| 6240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6244 | ac_header_preproc=yes |
| 6245 | ;; |
| 6246 | no:yes:* ) |
| 6247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6258 | 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] | 6259 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6260 | ;; |
| 6261 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6262 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6264 | 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] | 6265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6266 | else |
| 6267 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6269 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6270 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6271 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6272 | |
| 6273 | fi |
| 6274 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6275 | cat >>confdefs.h <<_ACEOF |
| 6276 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6277 | _ACEOF |
| 6278 | |
| 6279 | fi |
| 6280 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6281 | done |
| 6282 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6284 | for ac_func in getpagesize |
| 6285 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6286 | 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] | 6287 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6289 | 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] | 6290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6291 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | cat >conftest.$ac_ext <<_ACEOF |
| 6293 | /* confdefs.h. */ |
| 6294 | _ACEOF |
| 6295 | cat confdefs.h >>conftest.$ac_ext |
| 6296 | cat >>conftest.$ac_ext <<_ACEOF |
| 6297 | /* end confdefs.h. */ |
| 6298 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6299 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6300 | #define $ac_func innocuous_$ac_func |
| 6301 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6302 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6303 | which can conflict with char $ac_func (); below. |
| 6304 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6305 | <limits.h> exists even on freestanding compilers. */ |
| 6306 | |
| 6307 | #ifdef __STDC__ |
| 6308 | # include <limits.h> |
| 6309 | #else |
| 6310 | # include <assert.h> |
| 6311 | #endif |
| 6312 | |
| 6313 | #undef $ac_func |
| 6314 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6315 | /* Override any GCC internal prototype to avoid an error. |
| 6316 | Use char because int might match the return type of a GCC |
| 6317 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6318 | #ifdef __cplusplus |
| 6319 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6320 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6321 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6322 | /* The GNU C library defines this for functions which it implements |
| 6323 | to always fail with ENOSYS. Some functions are actually named |
| 6324 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6325 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6326 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6327 | #endif |
| 6328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6329 | int |
| 6330 | main () |
| 6331 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6332 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6333 | ; |
| 6334 | return 0; |
| 6335 | } |
| 6336 | _ACEOF |
| 6337 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6338 | if { (ac_try="$ac_link" |
| 6339 | case "(($ac_try" in |
| 6340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6341 | *) ac_try_echo=$ac_try;; |
| 6342 | esac |
| 6343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6344 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6345 | ac_status=$? |
| 6346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6347 | rm -f conftest.er1 |
| 6348 | cat conftest.err >&5 |
| 6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6350 | (exit $ac_status); } && { |
| 6351 | test -z "$ac_c_werror_flag" || |
| 6352 | test ! -s conftest.err |
| 6353 | } && test -s conftest$ac_exeext && |
| 6354 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6355 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6356 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6357 | echo "$as_me: failed program was:" >&5 |
| 6358 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6359 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6360 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6362 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6363 | 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] | 6364 | conftest$ac_exeext conftest.$ac_ext |
| 6365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6366 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6367 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6368 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6369 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6370 | cat >>confdefs.h <<_ACEOF |
| 6371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6372 | _ACEOF |
| 6373 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6374 | fi |
| 6375 | done |
| 6376 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6377 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6378 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6379 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6381 | else |
| 6382 | if test "$cross_compiling" = yes; then |
| 6383 | ac_cv_func_mmap_fixed_mapped=no |
| 6384 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6385 | cat >conftest.$ac_ext <<_ACEOF |
| 6386 | /* confdefs.h. */ |
| 6387 | _ACEOF |
| 6388 | cat confdefs.h >>conftest.$ac_ext |
| 6389 | cat >>conftest.$ac_ext <<_ACEOF |
| 6390 | /* end confdefs.h. */ |
| 6391 | $ac_includes_default |
| 6392 | /* malloc might have been renamed as rpl_malloc. */ |
| 6393 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6394 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6395 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6396 | Here is a matrix of mmap possibilities: |
| 6397 | mmap private not fixed |
| 6398 | mmap private fixed at somewhere currently unmapped |
| 6399 | mmap private fixed at somewhere already mapped |
| 6400 | mmap shared not fixed |
| 6401 | mmap shared fixed at somewhere currently unmapped |
| 6402 | mmap shared fixed at somewhere already mapped |
| 6403 | For private mappings, we should verify that changes cannot be read() |
| 6404 | back from the file, nor mmap's back from the file at a different |
| 6405 | address. (There have been systems where private was not correctly |
| 6406 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6407 | 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] | 6408 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6409 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6410 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6411 | |
| 6412 | Grep wants private fixed already mapped. |
| 6413 | The main things grep needs to know about mmap are: |
| 6414 | * does it exist and is it safe to write into the mmap'd area |
| 6415 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6417 | #include <fcntl.h> |
| 6418 | #include <sys/mman.h> |
| 6419 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6420 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | char *malloc (); |
| 6422 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6423 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6424 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6425 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6426 | /* 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] | 6427 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6428 | # define HAVE_SYS_PARAM_H 1 |
| 6429 | # endif |
| 6430 | |
| 6431 | # ifdef _SC_PAGESIZE |
| 6432 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6433 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6434 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6435 | # include <sys/param.h> |
| 6436 | # ifdef EXEC_PAGESIZE |
| 6437 | # define getpagesize() EXEC_PAGESIZE |
| 6438 | # else /* no EXEC_PAGESIZE */ |
| 6439 | # ifdef NBPG |
| 6440 | # define getpagesize() NBPG * CLSIZE |
| 6441 | # ifndef CLSIZE |
| 6442 | # define CLSIZE 1 |
| 6443 | # endif /* no CLSIZE */ |
| 6444 | # else /* no NBPG */ |
| 6445 | # ifdef NBPC |
| 6446 | # define getpagesize() NBPC |
| 6447 | # else /* no NBPC */ |
| 6448 | # ifdef PAGESIZE |
| 6449 | # define getpagesize() PAGESIZE |
| 6450 | # endif /* PAGESIZE */ |
| 6451 | # endif /* no NBPC */ |
| 6452 | # endif /* no NBPG */ |
| 6453 | # endif /* no EXEC_PAGESIZE */ |
| 6454 | # else /* no HAVE_SYS_PARAM_H */ |
| 6455 | # define getpagesize() 8192 /* punt totally */ |
| 6456 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6457 | # endif /* no _SC_PAGESIZE */ |
| 6458 | |
| 6459 | #endif /* no HAVE_GETPAGESIZE */ |
| 6460 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6461 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6462 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6463 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6464 | char *data, *data2, *data3; |
| 6465 | int i, pagesize; |
| 6466 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6468 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | /* First, make a file with some known garbage in it. */ |
| 6471 | data = (char *) malloc (pagesize); |
| 6472 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6473 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6474 | for (i = 0; i < pagesize; ++i) |
| 6475 | *(data + i) = rand (); |
| 6476 | umask (0); |
| 6477 | fd = creat ("conftest.mmap", 0600); |
| 6478 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6479 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6480 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6481 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6482 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6483 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6484 | /* Next, try to mmap the file at a fixed address which already has |
| 6485 | something else allocated at it. If we can, also make sure that |
| 6486 | we see the same garbage. */ |
| 6487 | fd = open ("conftest.mmap", O_RDWR); |
| 6488 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6489 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6490 | data2 = (char *) malloc (2 * pagesize); |
| 6491 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6492 | return 1; |
| 6493 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6494 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6495 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6496 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | for (i = 0; i < pagesize; ++i) |
| 6498 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6499 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6500 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | /* Finally, make sure that changes to the mapped area do not |
| 6502 | percolate back to the file as seen by read(). (This is a bug on |
| 6503 | some variants of i386 svr4.0.) */ |
| 6504 | for (i = 0; i < pagesize; ++i) |
| 6505 | *(data2 + i) = *(data2 + i) + 1; |
| 6506 | data3 = (char *) malloc (pagesize); |
| 6507 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6508 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6509 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6510 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6511 | for (i = 0; i < pagesize; ++i) |
| 6512 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6513 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6514 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6515 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6516 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6517 | _ACEOF |
| 6518 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6519 | if { (ac_try="$ac_link" |
| 6520 | case "(($ac_try" in |
| 6521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6522 | *) ac_try_echo=$ac_try;; |
| 6523 | esac |
| 6524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6525 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6526 | ac_status=$? |
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6529 | { (case "(($ac_try" in |
| 6530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6531 | *) ac_try_echo=$ac_try;; |
| 6532 | esac |
| 6533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6534 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | ac_status=$? |
| 6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6537 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6538 | ac_cv_func_mmap_fixed_mapped=yes |
| 6539 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6540 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6541 | echo "$as_me: failed program was:" >&5 |
| 6542 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6544 | ( exit $ac_status ) |
| 6545 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6546 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6547 | 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] | 6548 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6549 | |
| 6550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6552 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6553 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6554 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6555 | |
| 6556 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6557 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6558 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6559 | |
| 6560 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6562 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6563 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6564 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6565 | 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] | 6566 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6568 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6569 | cat >conftest.$ac_ext <<_ACEOF |
| 6570 | /* confdefs.h. */ |
| 6571 | _ACEOF |
| 6572 | cat confdefs.h >>conftest.$ac_ext |
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
| 6574 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6575 | |
| 6576 | #include <features.h> |
| 6577 | #ifdef __GNU_LIBRARY__ |
| 6578 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6579 | Lucky GNU user |
| 6580 | #endif |
| 6581 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6582 | |
| 6583 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6585 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6586 | ac_cv_gnu_library_2_1=yes |
| 6587 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6588 | ac_cv_gnu_library_2_1=no |
| 6589 | fi |
| 6590 | rm -f conftest* |
| 6591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | |
| 6593 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6594 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6595 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6596 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6597 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6598 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6599 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | |
| 6602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6603 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6604 | 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] | 6605 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6607 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6609 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6610 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6611 | # Guess based on the CPU. |
| 6612 | case "$host_cpu" in |
| 6613 | alpha* | i3456786 | m68k | s390*) |
| 6614 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6615 | *) |
| 6616 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6617 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6619 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6620 | cat >conftest.$ac_ext <<_ACEOF |
| 6621 | /* confdefs.h. */ |
| 6622 | _ACEOF |
| 6623 | cat confdefs.h >>conftest.$ac_ext |
| 6624 | cat >>conftest.$ac_ext <<_ACEOF |
| 6625 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6626 | |
| 6627 | #include <stdlib.h> |
| 6628 | #include <signal.h> |
| 6629 | |
| 6630 | static void |
| 6631 | #ifdef __cplusplus |
| 6632 | sigfpe_handler (int sig) |
| 6633 | #else |
| 6634 | sigfpe_handler (sig) int sig; |
| 6635 | #endif |
| 6636 | { |
| 6637 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6638 | exit (sig != SIGFPE); |
| 6639 | } |
| 6640 | |
| 6641 | int x = 1; |
| 6642 | int y = 0; |
| 6643 | int z; |
| 6644 | int nan; |
| 6645 | |
| 6646 | int main () |
| 6647 | { |
| 6648 | signal (SIGFPE, sigfpe_handler); |
| 6649 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6650 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6651 | signal (SIGTRAP, sigfpe_handler); |
| 6652 | #endif |
| 6653 | /* Linux/SPARC yields signal SIGILL. */ |
| 6654 | #if defined (__sparc__) && defined (__linux__) |
| 6655 | signal (SIGILL, sigfpe_handler); |
| 6656 | #endif |
| 6657 | |
| 6658 | z = x / y; |
| 6659 | nan = y / y; |
| 6660 | exit (1); |
| 6661 | } |
| 6662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6663 | _ACEOF |
| 6664 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6665 | if { (ac_try="$ac_link" |
| 6666 | case "(($ac_try" in |
| 6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6668 | *) ac_try_echo=$ac_try;; |
| 6669 | esac |
| 6670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6671 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | ac_status=$? |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6675 | { (case "(($ac_try" in |
| 6676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6677 | *) ac_try_echo=$ac_try;; |
| 6678 | esac |
| 6679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6680 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6681 | ac_status=$? |
| 6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6683 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6684 | gt_cv_int_divbyzero_sigfpe=yes |
| 6685 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6686 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6687 | echo "$as_me: failed program was:" >&5 |
| 6688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6689 | |
| 6690 | ( exit $ac_status ) |
| 6691 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6692 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6693 | 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] | 6694 | fi |
| 6695 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6696 | |
| 6697 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6698 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6699 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6700 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6701 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6702 | *yes) value=1;; |
| 6703 | *) value=0;; |
| 6704 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | |
| 6706 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6707 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6708 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6709 | |
| 6710 | |
| 6711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6712 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6713 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6714 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6716 | else |
| 6717 | cat >conftest.$ac_ext <<_ACEOF |
| 6718 | /* confdefs.h. */ |
| 6719 | _ACEOF |
| 6720 | cat confdefs.h >>conftest.$ac_ext |
| 6721 | cat >>conftest.$ac_ext <<_ACEOF |
| 6722 | /* end confdefs.h. */ |
| 6723 | unsigned long long ull = 1ULL; int i = 63; |
| 6724 | int |
| 6725 | main () |
| 6726 | { |
| 6727 | unsigned long long ullmax = (unsigned long long) -1; |
| 6728 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6729 | ; |
| 6730 | return 0; |
| 6731 | } |
| 6732 | _ACEOF |
| 6733 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6734 | if { (ac_try="$ac_link" |
| 6735 | case "(($ac_try" in |
| 6736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6737 | *) ac_try_echo=$ac_try;; |
| 6738 | esac |
| 6739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6740 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6741 | ac_status=$? |
| 6742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6743 | rm -f conftest.er1 |
| 6744 | cat conftest.err >&5 |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6746 | (exit $ac_status); } && { |
| 6747 | test -z "$ac_c_werror_flag" || |
| 6748 | test ! -s conftest.err |
| 6749 | } && test -s conftest$ac_exeext && |
| 6750 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | ac_cv_type_unsigned_long_long=yes |
| 6752 | else |
| 6753 | echo "$as_me: failed program was:" >&5 |
| 6754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6755 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6756 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6758 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6759 | 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] | 6760 | conftest$ac_exeext conftest.$ac_ext |
| 6761 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6763 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6764 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6765 | |
| 6766 | cat >>confdefs.h <<\_ACEOF |
| 6767 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6768 | _ACEOF |
| 6769 | |
| 6770 | fi |
| 6771 | |
| 6772 | |
| 6773 | |
| 6774 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6775 | 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] | 6776 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6777 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6778 | && ac_type='unsigned long long' \ |
| 6779 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6780 | |
| 6781 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6782 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6783 | _ACEOF |
| 6784 | |
| 6785 | else |
| 6786 | |
| 6787 | cat >>confdefs.h <<\_ACEOF |
| 6788 | #define HAVE_UINTMAX_T 1 |
| 6789 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6790 | |
| 6791 | fi |
| 6792 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6794 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6795 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6796 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6798 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6799 | |
| 6800 | cat >conftest.$ac_ext <<_ACEOF |
| 6801 | /* confdefs.h. */ |
| 6802 | _ACEOF |
| 6803 | cat confdefs.h >>conftest.$ac_ext |
| 6804 | cat >>conftest.$ac_ext <<_ACEOF |
| 6805 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6806 | #include <sys/types.h> |
| 6807 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6808 | int |
| 6809 | main () |
| 6810 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6811 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | ; |
| 6813 | return 0; |
| 6814 | } |
| 6815 | _ACEOF |
| 6816 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6817 | if { (ac_try="$ac_compile" |
| 6818 | case "(($ac_try" in |
| 6819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6820 | *) ac_try_echo=$ac_try;; |
| 6821 | esac |
| 6822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6823 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6824 | ac_status=$? |
| 6825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6826 | rm -f conftest.er1 |
| 6827 | cat conftest.err >&5 |
| 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6829 | (exit $ac_status); } && { |
| 6830 | test -z "$ac_c_werror_flag" || |
| 6831 | test ! -s conftest.err |
| 6832 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6833 | gt_cv_header_inttypes_h=yes |
| 6834 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | echo "$as_me: failed program was:" >&5 |
| 6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6838 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6839 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6840 | |
| 6841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | |
| 6843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6845 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6846 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6847 | |
| 6848 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6849 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6851 | |
| 6852 | fi |
| 6853 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6854 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6855 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6856 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6857 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6858 | 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] | 6859 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6861 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6862 | |
| 6863 | cat >conftest.$ac_ext <<_ACEOF |
| 6864 | /* confdefs.h. */ |
| 6865 | _ACEOF |
| 6866 | cat confdefs.h >>conftest.$ac_ext |
| 6867 | cat >>conftest.$ac_ext <<_ACEOF |
| 6868 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6869 | #include <inttypes.h> |
| 6870 | #ifdef PRId32 |
| 6871 | char *p = PRId32; |
| 6872 | #endif |
| 6873 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6874 | int |
| 6875 | main () |
| 6876 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6877 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | ; |
| 6879 | return 0; |
| 6880 | } |
| 6881 | _ACEOF |
| 6882 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6883 | if { (ac_try="$ac_compile" |
| 6884 | case "(($ac_try" in |
| 6885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6886 | *) ac_try_echo=$ac_try;; |
| 6887 | esac |
| 6888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6889 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6890 | ac_status=$? |
| 6891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6892 | rm -f conftest.er1 |
| 6893 | cat conftest.err >&5 |
| 6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6895 | (exit $ac_status); } && { |
| 6896 | test -z "$ac_c_werror_flag" || |
| 6897 | test ! -s conftest.err |
| 6898 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6899 | gt_cv_inttypes_pri_broken=no |
| 6900 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | echo "$as_me: failed program was:" >&5 |
| 6902 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6903 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6904 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6905 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6906 | |
| 6907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6908 | |
| 6909 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6910 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6911 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6912 | fi |
| 6913 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6914 | |
| 6915 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6916 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6918 | |
| 6919 | fi |
| 6920 | |
| 6921 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | for ac_header in stdint.h |
| 6924 | do |
| 6925 | 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] | 6926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6927 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6929 | 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] | 6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6931 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6934 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6935 | else |
| 6936 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6937 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6939 | cat >conftest.$ac_ext <<_ACEOF |
| 6940 | /* confdefs.h. */ |
| 6941 | _ACEOF |
| 6942 | cat confdefs.h >>conftest.$ac_ext |
| 6943 | cat >>conftest.$ac_ext <<_ACEOF |
| 6944 | /* end confdefs.h. */ |
| 6945 | $ac_includes_default |
| 6946 | #include <$ac_header> |
| 6947 | _ACEOF |
| 6948 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6949 | if { (ac_try="$ac_compile" |
| 6950 | case "(($ac_try" in |
| 6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6952 | *) ac_try_echo=$ac_try;; |
| 6953 | esac |
| 6954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6955 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | ac_status=$? |
| 6957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6958 | rm -f conftest.er1 |
| 6959 | cat conftest.err >&5 |
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6961 | (exit $ac_status); } && { |
| 6962 | test -z "$ac_c_werror_flag" || |
| 6963 | test ! -s conftest.err |
| 6964 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6965 | ac_header_compiler=yes |
| 6966 | else |
| 6967 | echo "$as_me: failed program was:" >&5 |
| 6968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6970 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6971 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6972 | |
| 6973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6974 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6975 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | |
| 6977 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6978 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6980 | cat >conftest.$ac_ext <<_ACEOF |
| 6981 | /* confdefs.h. */ |
| 6982 | _ACEOF |
| 6983 | cat confdefs.h >>conftest.$ac_ext |
| 6984 | cat >>conftest.$ac_ext <<_ACEOF |
| 6985 | /* end confdefs.h. */ |
| 6986 | #include <$ac_header> |
| 6987 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6988 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6989 | case "(($ac_try" in |
| 6990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6991 | *) ac_try_echo=$ac_try;; |
| 6992 | esac |
| 6993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | ac_status=$? |
| 6996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6997 | rm -f conftest.er1 |
| 6998 | cat conftest.err >&5 |
| 6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7000 | (exit $ac_status); } >/dev/null && { |
| 7001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7002 | test ! -s conftest.err |
| 7003 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7004 | ac_header_preproc=yes |
| 7005 | else |
| 7006 | echo "$as_me: failed program was:" >&5 |
| 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7008 | |
| 7009 | ac_header_preproc=no |
| 7010 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7011 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7012 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7014 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7015 | |
| 7016 | # So? What about this header? |
| 7017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7018 | yes:no: ) |
| 7019 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7020 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7022 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7023 | ac_header_preproc=yes |
| 7024 | ;; |
| 7025 | no:yes:* ) |
| 7026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7030 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7031 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7032 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7033 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7035 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7036 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7037 | 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] | 7038 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | ;; |
| 7040 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7041 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7043 | 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] | 7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7045 | else |
| 7046 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7048 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7050 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7051 | |
| 7052 | fi |
| 7053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7054 | cat >>confdefs.h <<_ACEOF |
| 7055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7056 | _ACEOF |
| 7057 | |
| 7058 | fi |
| 7059 | |
| 7060 | done |
| 7061 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7062 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7063 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7064 | result= |
| 7065 | cat >conftest.$ac_ext <<_ACEOF |
| 7066 | /* confdefs.h. */ |
| 7067 | _ACEOF |
| 7068 | cat confdefs.h >>conftest.$ac_ext |
| 7069 | cat >>conftest.$ac_ext <<_ACEOF |
| 7070 | /* end confdefs.h. */ |
| 7071 | |
| 7072 | #include <limits.h> |
| 7073 | #if HAVE_STDINT_H |
| 7074 | #include <stdint.h> |
| 7075 | #endif |
| 7076 | #ifdef SIZE_MAX |
| 7077 | Found it |
| 7078 | #endif |
| 7079 | |
| 7080 | _ACEOF |
| 7081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7082 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7083 | result=yes |
| 7084 | fi |
| 7085 | rm -f conftest* |
| 7086 | |
| 7087 | if test -z "$result"; then |
| 7088 | if test "$cross_compiling" = yes; then |
| 7089 | # Depending upon the size, compute the lo and hi bounds. |
| 7090 | cat >conftest.$ac_ext <<_ACEOF |
| 7091 | /* confdefs.h. */ |
| 7092 | _ACEOF |
| 7093 | cat confdefs.h >>conftest.$ac_ext |
| 7094 | cat >>conftest.$ac_ext <<_ACEOF |
| 7095 | /* end confdefs.h. */ |
| 7096 | #include <stddef.h> |
| 7097 | int |
| 7098 | main () |
| 7099 | { |
| 7100 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7101 | test_array [0] = 0 |
| 7102 | |
| 7103 | ; |
| 7104 | return 0; |
| 7105 | } |
| 7106 | _ACEOF |
| 7107 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7108 | if { (ac_try="$ac_compile" |
| 7109 | case "(($ac_try" in |
| 7110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7111 | *) ac_try_echo=$ac_try;; |
| 7112 | esac |
| 7113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7114 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7115 | ac_status=$? |
| 7116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7117 | rm -f conftest.er1 |
| 7118 | cat conftest.err >&5 |
| 7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7120 | (exit $ac_status); } && { |
| 7121 | test -z "$ac_c_werror_flag" || |
| 7122 | test ! -s conftest.err |
| 7123 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7124 | ac_lo=0 ac_mid=0 |
| 7125 | while :; do |
| 7126 | cat >conftest.$ac_ext <<_ACEOF |
| 7127 | /* confdefs.h. */ |
| 7128 | _ACEOF |
| 7129 | cat confdefs.h >>conftest.$ac_ext |
| 7130 | cat >>conftest.$ac_ext <<_ACEOF |
| 7131 | /* end confdefs.h. */ |
| 7132 | #include <stddef.h> |
| 7133 | int |
| 7134 | main () |
| 7135 | { |
| 7136 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7137 | test_array [0] = 0 |
| 7138 | |
| 7139 | ; |
| 7140 | return 0; |
| 7141 | } |
| 7142 | _ACEOF |
| 7143 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7144 | if { (ac_try="$ac_compile" |
| 7145 | case "(($ac_try" in |
| 7146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7147 | *) ac_try_echo=$ac_try;; |
| 7148 | esac |
| 7149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7150 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7151 | ac_status=$? |
| 7152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7153 | rm -f conftest.er1 |
| 7154 | cat conftest.err >&5 |
| 7155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7156 | (exit $ac_status); } && { |
| 7157 | test -z "$ac_c_werror_flag" || |
| 7158 | test ! -s conftest.err |
| 7159 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7160 | ac_hi=$ac_mid; break |
| 7161 | else |
| 7162 | echo "$as_me: failed program was:" >&5 |
| 7163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7165 | ac_lo=`expr $ac_mid + 1` |
| 7166 | if test $ac_lo -le $ac_mid; then |
| 7167 | ac_lo= ac_hi= |
| 7168 | break |
| 7169 | fi |
| 7170 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7171 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7172 | |
| 7173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7174 | done |
| 7175 | else |
| 7176 | echo "$as_me: failed program was:" >&5 |
| 7177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7179 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | /* confdefs.h. */ |
| 7181 | _ACEOF |
| 7182 | cat confdefs.h >>conftest.$ac_ext |
| 7183 | cat >>conftest.$ac_ext <<_ACEOF |
| 7184 | /* end confdefs.h. */ |
| 7185 | #include <stddef.h> |
| 7186 | int |
| 7187 | main () |
| 7188 | { |
| 7189 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7190 | test_array [0] = 0 |
| 7191 | |
| 7192 | ; |
| 7193 | return 0; |
| 7194 | } |
| 7195 | _ACEOF |
| 7196 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7197 | if { (ac_try="$ac_compile" |
| 7198 | case "(($ac_try" in |
| 7199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7200 | *) ac_try_echo=$ac_try;; |
| 7201 | esac |
| 7202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7203 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7204 | ac_status=$? |
| 7205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7206 | rm -f conftest.er1 |
| 7207 | cat conftest.err >&5 |
| 7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7209 | (exit $ac_status); } && { |
| 7210 | test -z "$ac_c_werror_flag" || |
| 7211 | test ! -s conftest.err |
| 7212 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7213 | ac_hi=-1 ac_mid=-1 |
| 7214 | while :; do |
| 7215 | cat >conftest.$ac_ext <<_ACEOF |
| 7216 | /* confdefs.h. */ |
| 7217 | _ACEOF |
| 7218 | cat confdefs.h >>conftest.$ac_ext |
| 7219 | cat >>conftest.$ac_ext <<_ACEOF |
| 7220 | /* end confdefs.h. */ |
| 7221 | #include <stddef.h> |
| 7222 | int |
| 7223 | main () |
| 7224 | { |
| 7225 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7226 | test_array [0] = 0 |
| 7227 | |
| 7228 | ; |
| 7229 | return 0; |
| 7230 | } |
| 7231 | _ACEOF |
| 7232 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7233 | if { (ac_try="$ac_compile" |
| 7234 | case "(($ac_try" in |
| 7235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7236 | *) ac_try_echo=$ac_try;; |
| 7237 | esac |
| 7238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7239 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | ac_status=$? |
| 7241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7242 | rm -f conftest.er1 |
| 7243 | cat conftest.err >&5 |
| 7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7245 | (exit $ac_status); } && { |
| 7246 | test -z "$ac_c_werror_flag" || |
| 7247 | test ! -s conftest.err |
| 7248 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7249 | ac_lo=$ac_mid; break |
| 7250 | else |
| 7251 | echo "$as_me: failed program was:" >&5 |
| 7252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7254 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7255 | if test $ac_mid -le $ac_hi; then |
| 7256 | ac_lo= ac_hi= |
| 7257 | break |
| 7258 | fi |
| 7259 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7261 | |
| 7262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7263 | done |
| 7264 | else |
| 7265 | echo "$as_me: failed program was:" >&5 |
| 7266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7268 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7270 | |
| 7271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7272 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7273 | |
| 7274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7275 | # Binary search between lo and hi bounds. |
| 7276 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7277 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7278 | cat >conftest.$ac_ext <<_ACEOF |
| 7279 | /* confdefs.h. */ |
| 7280 | _ACEOF |
| 7281 | cat confdefs.h >>conftest.$ac_ext |
| 7282 | cat >>conftest.$ac_ext <<_ACEOF |
| 7283 | /* end confdefs.h. */ |
| 7284 | #include <stddef.h> |
| 7285 | int |
| 7286 | main () |
| 7287 | { |
| 7288 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7289 | test_array [0] = 0 |
| 7290 | |
| 7291 | ; |
| 7292 | return 0; |
| 7293 | } |
| 7294 | _ACEOF |
| 7295 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7296 | if { (ac_try="$ac_compile" |
| 7297 | case "(($ac_try" in |
| 7298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7299 | *) ac_try_echo=$ac_try;; |
| 7300 | esac |
| 7301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7302 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7303 | ac_status=$? |
| 7304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7305 | rm -f conftest.er1 |
| 7306 | cat conftest.err >&5 |
| 7307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7308 | (exit $ac_status); } && { |
| 7309 | test -z "$ac_c_werror_flag" || |
| 7310 | test ! -s conftest.err |
| 7311 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7312 | ac_hi=$ac_mid |
| 7313 | else |
| 7314 | echo "$as_me: failed program was:" >&5 |
| 7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7317 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7319 | |
| 7320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7321 | done |
| 7322 | case $ac_lo in |
| 7323 | ?*) res_hi=$ac_lo;; |
| 7324 | '') result=? ;; |
| 7325 | esac |
| 7326 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | cat >conftest.$ac_ext <<_ACEOF |
| 7328 | /* confdefs.h. */ |
| 7329 | _ACEOF |
| 7330 | cat confdefs.h >>conftest.$ac_ext |
| 7331 | cat >>conftest.$ac_ext <<_ACEOF |
| 7332 | /* end confdefs.h. */ |
| 7333 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7334 | static long int longval () { return ~(size_t)0 / 10; } |
| 7335 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7336 | #include <stdio.h> |
| 7337 | #include <stdlib.h> |
| 7338 | int |
| 7339 | main () |
| 7340 | { |
| 7341 | |
| 7342 | FILE *f = fopen ("conftest.val", "w"); |
| 7343 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7344 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | if ((~(size_t)0 / 10) < 0) |
| 7346 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7347 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7348 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7349 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | fprintf (f, "%ld\n", i); |
| 7351 | } |
| 7352 | else |
| 7353 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7354 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7355 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7356 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7357 | fprintf (f, "%lu\n", i); |
| 7358 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7359 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7360 | |
| 7361 | ; |
| 7362 | return 0; |
| 7363 | } |
| 7364 | _ACEOF |
| 7365 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7366 | if { (ac_try="$ac_link" |
| 7367 | case "(($ac_try" in |
| 7368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7369 | *) ac_try_echo=$ac_try;; |
| 7370 | esac |
| 7371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7372 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7373 | ac_status=$? |
| 7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7376 | { (case "(($ac_try" in |
| 7377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7378 | *) ac_try_echo=$ac_try;; |
| 7379 | esac |
| 7380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7381 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7382 | ac_status=$? |
| 7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7384 | (exit $ac_status); }; }; then |
| 7385 | res_hi=`cat conftest.val` |
| 7386 | else |
| 7387 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7388 | echo "$as_me: failed program was:" >&5 |
| 7389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7390 | |
| 7391 | ( exit $ac_status ) |
| 7392 | result=? |
| 7393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7394 | 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] | 7395 | fi |
| 7396 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7397 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7398 | if test "$cross_compiling" = yes; then |
| 7399 | # Depending upon the size, compute the lo and hi bounds. |
| 7400 | cat >conftest.$ac_ext <<_ACEOF |
| 7401 | /* confdefs.h. */ |
| 7402 | _ACEOF |
| 7403 | cat confdefs.h >>conftest.$ac_ext |
| 7404 | cat >>conftest.$ac_ext <<_ACEOF |
| 7405 | /* end confdefs.h. */ |
| 7406 | #include <stddef.h> |
| 7407 | int |
| 7408 | main () |
| 7409 | { |
| 7410 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7411 | test_array [0] = 0 |
| 7412 | |
| 7413 | ; |
| 7414 | return 0; |
| 7415 | } |
| 7416 | _ACEOF |
| 7417 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7418 | if { (ac_try="$ac_compile" |
| 7419 | case "(($ac_try" in |
| 7420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7421 | *) ac_try_echo=$ac_try;; |
| 7422 | esac |
| 7423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7424 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7425 | ac_status=$? |
| 7426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7427 | rm -f conftest.er1 |
| 7428 | cat conftest.err >&5 |
| 7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7430 | (exit $ac_status); } && { |
| 7431 | test -z "$ac_c_werror_flag" || |
| 7432 | test ! -s conftest.err |
| 7433 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7434 | ac_lo=0 ac_mid=0 |
| 7435 | while :; do |
| 7436 | cat >conftest.$ac_ext <<_ACEOF |
| 7437 | /* confdefs.h. */ |
| 7438 | _ACEOF |
| 7439 | cat confdefs.h >>conftest.$ac_ext |
| 7440 | cat >>conftest.$ac_ext <<_ACEOF |
| 7441 | /* end confdefs.h. */ |
| 7442 | #include <stddef.h> |
| 7443 | int |
| 7444 | main () |
| 7445 | { |
| 7446 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7447 | test_array [0] = 0 |
| 7448 | |
| 7449 | ; |
| 7450 | return 0; |
| 7451 | } |
| 7452 | _ACEOF |
| 7453 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7454 | if { (ac_try="$ac_compile" |
| 7455 | case "(($ac_try" in |
| 7456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7457 | *) ac_try_echo=$ac_try;; |
| 7458 | esac |
| 7459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7460 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7461 | ac_status=$? |
| 7462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7463 | rm -f conftest.er1 |
| 7464 | cat conftest.err >&5 |
| 7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7466 | (exit $ac_status); } && { |
| 7467 | test -z "$ac_c_werror_flag" || |
| 7468 | test ! -s conftest.err |
| 7469 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7470 | ac_hi=$ac_mid; break |
| 7471 | else |
| 7472 | echo "$as_me: failed program was:" >&5 |
| 7473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7475 | ac_lo=`expr $ac_mid + 1` |
| 7476 | if test $ac_lo -le $ac_mid; then |
| 7477 | ac_lo= ac_hi= |
| 7478 | break |
| 7479 | fi |
| 7480 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7482 | |
| 7483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7484 | done |
| 7485 | else |
| 7486 | echo "$as_me: failed program was:" >&5 |
| 7487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7488 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7489 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7490 | /* confdefs.h. */ |
| 7491 | _ACEOF |
| 7492 | cat confdefs.h >>conftest.$ac_ext |
| 7493 | cat >>conftest.$ac_ext <<_ACEOF |
| 7494 | /* end confdefs.h. */ |
| 7495 | #include <stddef.h> |
| 7496 | int |
| 7497 | main () |
| 7498 | { |
| 7499 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7500 | test_array [0] = 0 |
| 7501 | |
| 7502 | ; |
| 7503 | return 0; |
| 7504 | } |
| 7505 | _ACEOF |
| 7506 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7507 | if { (ac_try="$ac_compile" |
| 7508 | case "(($ac_try" in |
| 7509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7510 | *) ac_try_echo=$ac_try;; |
| 7511 | esac |
| 7512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7513 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7514 | ac_status=$? |
| 7515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7516 | rm -f conftest.er1 |
| 7517 | cat conftest.err >&5 |
| 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7519 | (exit $ac_status); } && { |
| 7520 | test -z "$ac_c_werror_flag" || |
| 7521 | test ! -s conftest.err |
| 7522 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7523 | ac_hi=-1 ac_mid=-1 |
| 7524 | while :; do |
| 7525 | cat >conftest.$ac_ext <<_ACEOF |
| 7526 | /* confdefs.h. */ |
| 7527 | _ACEOF |
| 7528 | cat confdefs.h >>conftest.$ac_ext |
| 7529 | cat >>conftest.$ac_ext <<_ACEOF |
| 7530 | /* end confdefs.h. */ |
| 7531 | #include <stddef.h> |
| 7532 | int |
| 7533 | main () |
| 7534 | { |
| 7535 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7536 | test_array [0] = 0 |
| 7537 | |
| 7538 | ; |
| 7539 | return 0; |
| 7540 | } |
| 7541 | _ACEOF |
| 7542 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7543 | if { (ac_try="$ac_compile" |
| 7544 | case "(($ac_try" in |
| 7545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7546 | *) ac_try_echo=$ac_try;; |
| 7547 | esac |
| 7548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7549 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7550 | ac_status=$? |
| 7551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7552 | rm -f conftest.er1 |
| 7553 | cat conftest.err >&5 |
| 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7555 | (exit $ac_status); } && { |
| 7556 | test -z "$ac_c_werror_flag" || |
| 7557 | test ! -s conftest.err |
| 7558 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7559 | ac_lo=$ac_mid; break |
| 7560 | else |
| 7561 | echo "$as_me: failed program was:" >&5 |
| 7562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7563 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7564 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7565 | if test $ac_mid -le $ac_hi; then |
| 7566 | ac_lo= ac_hi= |
| 7567 | break |
| 7568 | fi |
| 7569 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7571 | |
| 7572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7573 | done |
| 7574 | else |
| 7575 | echo "$as_me: failed program was:" >&5 |
| 7576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7578 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7579 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7580 | |
| 7581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7583 | |
| 7584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7585 | # Binary search between lo and hi bounds. |
| 7586 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7587 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7588 | cat >conftest.$ac_ext <<_ACEOF |
| 7589 | /* confdefs.h. */ |
| 7590 | _ACEOF |
| 7591 | cat confdefs.h >>conftest.$ac_ext |
| 7592 | cat >>conftest.$ac_ext <<_ACEOF |
| 7593 | /* end confdefs.h. */ |
| 7594 | #include <stddef.h> |
| 7595 | int |
| 7596 | main () |
| 7597 | { |
| 7598 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7599 | test_array [0] = 0 |
| 7600 | |
| 7601 | ; |
| 7602 | return 0; |
| 7603 | } |
| 7604 | _ACEOF |
| 7605 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7606 | if { (ac_try="$ac_compile" |
| 7607 | case "(($ac_try" in |
| 7608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7609 | *) ac_try_echo=$ac_try;; |
| 7610 | esac |
| 7611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7612 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7613 | ac_status=$? |
| 7614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7615 | rm -f conftest.er1 |
| 7616 | cat conftest.err >&5 |
| 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7618 | (exit $ac_status); } && { |
| 7619 | test -z "$ac_c_werror_flag" || |
| 7620 | test ! -s conftest.err |
| 7621 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7622 | ac_hi=$ac_mid |
| 7623 | else |
| 7624 | echo "$as_me: failed program was:" >&5 |
| 7625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7626 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7627 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7629 | |
| 7630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7631 | done |
| 7632 | case $ac_lo in |
| 7633 | ?*) res_lo=$ac_lo;; |
| 7634 | '') result=? ;; |
| 7635 | esac |
| 7636 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7637 | cat >conftest.$ac_ext <<_ACEOF |
| 7638 | /* confdefs.h. */ |
| 7639 | _ACEOF |
| 7640 | cat confdefs.h >>conftest.$ac_ext |
| 7641 | cat >>conftest.$ac_ext <<_ACEOF |
| 7642 | /* end confdefs.h. */ |
| 7643 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7644 | static long int longval () { return ~(size_t)0 % 10; } |
| 7645 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7646 | #include <stdio.h> |
| 7647 | #include <stdlib.h> |
| 7648 | int |
| 7649 | main () |
| 7650 | { |
| 7651 | |
| 7652 | FILE *f = fopen ("conftest.val", "w"); |
| 7653 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7654 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | if ((~(size_t)0 % 10) < 0) |
| 7656 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7657 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7659 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | fprintf (f, "%ld\n", i); |
| 7661 | } |
| 7662 | else |
| 7663 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7664 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7665 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7666 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | fprintf (f, "%lu\n", i); |
| 7668 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7669 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | |
| 7671 | ; |
| 7672 | return 0; |
| 7673 | } |
| 7674 | _ACEOF |
| 7675 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7676 | if { (ac_try="$ac_link" |
| 7677 | case "(($ac_try" in |
| 7678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7679 | *) ac_try_echo=$ac_try;; |
| 7680 | esac |
| 7681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7682 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7683 | ac_status=$? |
| 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7686 | { (case "(($ac_try" in |
| 7687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7688 | *) ac_try_echo=$ac_try;; |
| 7689 | esac |
| 7690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7691 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7692 | ac_status=$? |
| 7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7694 | (exit $ac_status); }; }; then |
| 7695 | res_lo=`cat conftest.val` |
| 7696 | else |
| 7697 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7698 | echo "$as_me: failed program was:" >&5 |
| 7699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7700 | |
| 7701 | ( exit $ac_status ) |
| 7702 | result=? |
| 7703 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7704 | 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] | 7705 | fi |
| 7706 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7707 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7708 | if test "$cross_compiling" = yes; then |
| 7709 | # Depending upon the size, compute the lo and hi bounds. |
| 7710 | cat >conftest.$ac_ext <<_ACEOF |
| 7711 | /* confdefs.h. */ |
| 7712 | _ACEOF |
| 7713 | cat confdefs.h >>conftest.$ac_ext |
| 7714 | cat >>conftest.$ac_ext <<_ACEOF |
| 7715 | /* end confdefs.h. */ |
| 7716 | #include <stddef.h> |
| 7717 | int |
| 7718 | main () |
| 7719 | { |
| 7720 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7721 | test_array [0] = 0 |
| 7722 | |
| 7723 | ; |
| 7724 | return 0; |
| 7725 | } |
| 7726 | _ACEOF |
| 7727 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7728 | if { (ac_try="$ac_compile" |
| 7729 | case "(($ac_try" in |
| 7730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7731 | *) ac_try_echo=$ac_try;; |
| 7732 | esac |
| 7733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7734 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7735 | ac_status=$? |
| 7736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7737 | rm -f conftest.er1 |
| 7738 | cat conftest.err >&5 |
| 7739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7740 | (exit $ac_status); } && { |
| 7741 | test -z "$ac_c_werror_flag" || |
| 7742 | test ! -s conftest.err |
| 7743 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | ac_lo=0 ac_mid=0 |
| 7745 | while :; do |
| 7746 | cat >conftest.$ac_ext <<_ACEOF |
| 7747 | /* confdefs.h. */ |
| 7748 | _ACEOF |
| 7749 | cat confdefs.h >>conftest.$ac_ext |
| 7750 | cat >>conftest.$ac_ext <<_ACEOF |
| 7751 | /* end confdefs.h. */ |
| 7752 | #include <stddef.h> |
| 7753 | int |
| 7754 | main () |
| 7755 | { |
| 7756 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7757 | test_array [0] = 0 |
| 7758 | |
| 7759 | ; |
| 7760 | return 0; |
| 7761 | } |
| 7762 | _ACEOF |
| 7763 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7764 | if { (ac_try="$ac_compile" |
| 7765 | case "(($ac_try" in |
| 7766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7767 | *) ac_try_echo=$ac_try;; |
| 7768 | esac |
| 7769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7770 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7771 | ac_status=$? |
| 7772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7773 | rm -f conftest.er1 |
| 7774 | cat conftest.err >&5 |
| 7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7776 | (exit $ac_status); } && { |
| 7777 | test -z "$ac_c_werror_flag" || |
| 7778 | test ! -s conftest.err |
| 7779 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7780 | ac_hi=$ac_mid; break |
| 7781 | else |
| 7782 | echo "$as_me: failed program was:" >&5 |
| 7783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7785 | ac_lo=`expr $ac_mid + 1` |
| 7786 | if test $ac_lo -le $ac_mid; then |
| 7787 | ac_lo= ac_hi= |
| 7788 | break |
| 7789 | fi |
| 7790 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7792 | |
| 7793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7794 | done |
| 7795 | else |
| 7796 | echo "$as_me: failed program was:" >&5 |
| 7797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7799 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7800 | /* confdefs.h. */ |
| 7801 | _ACEOF |
| 7802 | cat confdefs.h >>conftest.$ac_ext |
| 7803 | cat >>conftest.$ac_ext <<_ACEOF |
| 7804 | /* end confdefs.h. */ |
| 7805 | #include <stddef.h> |
| 7806 | int |
| 7807 | main () |
| 7808 | { |
| 7809 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7810 | test_array [0] = 0 |
| 7811 | |
| 7812 | ; |
| 7813 | return 0; |
| 7814 | } |
| 7815 | _ACEOF |
| 7816 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7817 | if { (ac_try="$ac_compile" |
| 7818 | case "(($ac_try" in |
| 7819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7820 | *) ac_try_echo=$ac_try;; |
| 7821 | esac |
| 7822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7823 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7824 | ac_status=$? |
| 7825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7826 | rm -f conftest.er1 |
| 7827 | cat conftest.err >&5 |
| 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7829 | (exit $ac_status); } && { |
| 7830 | test -z "$ac_c_werror_flag" || |
| 7831 | test ! -s conftest.err |
| 7832 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7833 | ac_hi=-1 ac_mid=-1 |
| 7834 | while :; do |
| 7835 | cat >conftest.$ac_ext <<_ACEOF |
| 7836 | /* confdefs.h. */ |
| 7837 | _ACEOF |
| 7838 | cat confdefs.h >>conftest.$ac_ext |
| 7839 | cat >>conftest.$ac_ext <<_ACEOF |
| 7840 | /* end confdefs.h. */ |
| 7841 | #include <stddef.h> |
| 7842 | int |
| 7843 | main () |
| 7844 | { |
| 7845 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7846 | test_array [0] = 0 |
| 7847 | |
| 7848 | ; |
| 7849 | return 0; |
| 7850 | } |
| 7851 | _ACEOF |
| 7852 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7853 | if { (ac_try="$ac_compile" |
| 7854 | case "(($ac_try" in |
| 7855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7856 | *) ac_try_echo=$ac_try;; |
| 7857 | esac |
| 7858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7859 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7860 | ac_status=$? |
| 7861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7862 | rm -f conftest.er1 |
| 7863 | cat conftest.err >&5 |
| 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7865 | (exit $ac_status); } && { |
| 7866 | test -z "$ac_c_werror_flag" || |
| 7867 | test ! -s conftest.err |
| 7868 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7869 | ac_lo=$ac_mid; break |
| 7870 | else |
| 7871 | echo "$as_me: failed program was:" >&5 |
| 7872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7873 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7874 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7875 | if test $ac_mid -le $ac_hi; then |
| 7876 | ac_lo= ac_hi= |
| 7877 | break |
| 7878 | fi |
| 7879 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7880 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7881 | |
| 7882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7883 | done |
| 7884 | else |
| 7885 | echo "$as_me: failed program was:" >&5 |
| 7886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7888 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7889 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7890 | |
| 7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7892 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7893 | |
| 7894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7895 | # Binary search between lo and hi bounds. |
| 7896 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7897 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7898 | cat >conftest.$ac_ext <<_ACEOF |
| 7899 | /* confdefs.h. */ |
| 7900 | _ACEOF |
| 7901 | cat confdefs.h >>conftest.$ac_ext |
| 7902 | cat >>conftest.$ac_ext <<_ACEOF |
| 7903 | /* end confdefs.h. */ |
| 7904 | #include <stddef.h> |
| 7905 | int |
| 7906 | main () |
| 7907 | { |
| 7908 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7909 | test_array [0] = 0 |
| 7910 | |
| 7911 | ; |
| 7912 | return 0; |
| 7913 | } |
| 7914 | _ACEOF |
| 7915 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7916 | if { (ac_try="$ac_compile" |
| 7917 | case "(($ac_try" in |
| 7918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7919 | *) ac_try_echo=$ac_try;; |
| 7920 | esac |
| 7921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7922 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7923 | ac_status=$? |
| 7924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7925 | rm -f conftest.er1 |
| 7926 | cat conftest.err >&5 |
| 7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7928 | (exit $ac_status); } && { |
| 7929 | test -z "$ac_c_werror_flag" || |
| 7930 | test ! -s conftest.err |
| 7931 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7932 | ac_hi=$ac_mid |
| 7933 | else |
| 7934 | echo "$as_me: failed program was:" >&5 |
| 7935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7937 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7938 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7939 | |
| 7940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7941 | done |
| 7942 | case $ac_lo in |
| 7943 | ?*) fits_in_uint=$ac_lo;; |
| 7944 | '') result=? ;; |
| 7945 | esac |
| 7946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7947 | cat >conftest.$ac_ext <<_ACEOF |
| 7948 | /* confdefs.h. */ |
| 7949 | _ACEOF |
| 7950 | cat confdefs.h >>conftest.$ac_ext |
| 7951 | cat >>conftest.$ac_ext <<_ACEOF |
| 7952 | /* end confdefs.h. */ |
| 7953 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7954 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7955 | 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] | 7956 | #include <stdio.h> |
| 7957 | #include <stdlib.h> |
| 7958 | int |
| 7959 | main () |
| 7960 | { |
| 7961 | |
| 7962 | FILE *f = fopen ("conftest.val", "w"); |
| 7963 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7964 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7965 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7966 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7967 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7968 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7969 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7970 | fprintf (f, "%ld\n", i); |
| 7971 | } |
| 7972 | else |
| 7973 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7974 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7975 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7976 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7977 | fprintf (f, "%lu\n", i); |
| 7978 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7979 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7980 | |
| 7981 | ; |
| 7982 | return 0; |
| 7983 | } |
| 7984 | _ACEOF |
| 7985 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7986 | if { (ac_try="$ac_link" |
| 7987 | case "(($ac_try" in |
| 7988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7989 | *) ac_try_echo=$ac_try;; |
| 7990 | esac |
| 7991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7992 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7993 | ac_status=$? |
| 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7996 | { (case "(($ac_try" in |
| 7997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7998 | *) ac_try_echo=$ac_try;; |
| 7999 | esac |
| 8000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8001 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8002 | ac_status=$? |
| 8003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8004 | (exit $ac_status); }; }; then |
| 8005 | fits_in_uint=`cat conftest.val` |
| 8006 | else |
| 8007 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8008 | echo "$as_me: failed program was:" >&5 |
| 8009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8010 | |
| 8011 | ( exit $ac_status ) |
| 8012 | result=? |
| 8013 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8014 | 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] | 8015 | fi |
| 8016 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8018 | if test "$fits_in_uint" = 1; then |
| 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | /* confdefs.h. */ |
| 8021 | _ACEOF |
| 8022 | cat confdefs.h >>conftest.$ac_ext |
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
| 8024 | /* end confdefs.h. */ |
| 8025 | #include <stddef.h> |
| 8026 | extern size_t foo; |
| 8027 | extern unsigned long foo; |
| 8028 | |
| 8029 | int |
| 8030 | main () |
| 8031 | { |
| 8032 | |
| 8033 | ; |
| 8034 | return 0; |
| 8035 | } |
| 8036 | _ACEOF |
| 8037 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8038 | if { (ac_try="$ac_compile" |
| 8039 | case "(($ac_try" in |
| 8040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8041 | *) ac_try_echo=$ac_try;; |
| 8042 | esac |
| 8043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8044 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8045 | ac_status=$? |
| 8046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8047 | rm -f conftest.er1 |
| 8048 | cat conftest.err >&5 |
| 8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8050 | (exit $ac_status); } && { |
| 8051 | test -z "$ac_c_werror_flag" || |
| 8052 | test ! -s conftest.err |
| 8053 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8054 | fits_in_uint=0 |
| 8055 | else |
| 8056 | echo "$as_me: failed program was:" >&5 |
| 8057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8059 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8060 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8061 | |
| 8062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8063 | fi |
| 8064 | if test -z "$result"; then |
| 8065 | if test "$fits_in_uint" = 1; then |
| 8066 | result="$res_hi$res_lo"U |
| 8067 | else |
| 8068 | result="$res_hi$res_lo"UL |
| 8069 | fi |
| 8070 | else |
| 8071 | result='~(size_t)0' |
| 8072 | fi |
| 8073 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8074 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8075 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8076 | if test "$result" != yes; then |
| 8077 | |
| 8078 | cat >>confdefs.h <<_ACEOF |
| 8079 | #define SIZE_MAX $result |
| 8080 | _ACEOF |
| 8081 | |
| 8082 | fi |
| 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | for ac_header in stdint.h |
| 8088 | do |
| 8089 | 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] | 8090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8091 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8093 | 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] | 8094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8096 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8097 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8098 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8099 | else |
| 8100 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8101 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8102 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8103 | cat >conftest.$ac_ext <<_ACEOF |
| 8104 | /* confdefs.h. */ |
| 8105 | _ACEOF |
| 8106 | cat confdefs.h >>conftest.$ac_ext |
| 8107 | cat >>conftest.$ac_ext <<_ACEOF |
| 8108 | /* end confdefs.h. */ |
| 8109 | $ac_includes_default |
| 8110 | #include <$ac_header> |
| 8111 | _ACEOF |
| 8112 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8113 | if { (ac_try="$ac_compile" |
| 8114 | case "(($ac_try" in |
| 8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8116 | *) ac_try_echo=$ac_try;; |
| 8117 | esac |
| 8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8119 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8120 | ac_status=$? |
| 8121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8122 | rm -f conftest.er1 |
| 8123 | cat conftest.err >&5 |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8125 | (exit $ac_status); } && { |
| 8126 | test -z "$ac_c_werror_flag" || |
| 8127 | test ! -s conftest.err |
| 8128 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8129 | ac_header_compiler=yes |
| 8130 | else |
| 8131 | echo "$as_me: failed program was:" >&5 |
| 8132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8134 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8135 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8136 | |
| 8137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8138 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8139 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8140 | |
| 8141 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8142 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8143 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8144 | cat >conftest.$ac_ext <<_ACEOF |
| 8145 | /* confdefs.h. */ |
| 8146 | _ACEOF |
| 8147 | cat confdefs.h >>conftest.$ac_ext |
| 8148 | cat >>conftest.$ac_ext <<_ACEOF |
| 8149 | /* end confdefs.h. */ |
| 8150 | #include <$ac_header> |
| 8151 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8152 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8153 | case "(($ac_try" in |
| 8154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8155 | *) ac_try_echo=$ac_try;; |
| 8156 | esac |
| 8157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8158 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8159 | ac_status=$? |
| 8160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8161 | rm -f conftest.er1 |
| 8162 | cat conftest.err >&5 |
| 8163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8164 | (exit $ac_status); } >/dev/null && { |
| 8165 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8166 | test ! -s conftest.err |
| 8167 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8168 | ac_header_preproc=yes |
| 8169 | else |
| 8170 | echo "$as_me: failed program was:" >&5 |
| 8171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8172 | |
| 8173 | ac_header_preproc=no |
| 8174 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8175 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8176 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8177 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8178 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8179 | |
| 8180 | # So? What about this header? |
| 8181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8182 | yes:no: ) |
| 8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8186 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8187 | ac_header_preproc=yes |
| 8188 | ;; |
| 8189 | no:yes:* ) |
| 8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8191 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8193 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8194 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8195 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8196 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8197 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8200 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8201 | 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] | 8202 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8203 | ;; |
| 8204 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8207 | 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] | 8208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8209 | else |
| 8210 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8212 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8214 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8215 | |
| 8216 | fi |
| 8217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8218 | cat >>confdefs.h <<_ACEOF |
| 8219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8220 | _ACEOF |
| 8221 | |
| 8222 | fi |
| 8223 | |
| 8224 | done |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | if test "X$prefix" = "XNONE"; then |
| 8229 | acl_final_prefix="$ac_default_prefix" |
| 8230 | else |
| 8231 | acl_final_prefix="$prefix" |
| 8232 | fi |
| 8233 | if test "X$exec_prefix" = "XNONE"; then |
| 8234 | acl_final_exec_prefix='${prefix}' |
| 8235 | else |
| 8236 | acl_final_exec_prefix="$exec_prefix" |
| 8237 | fi |
| 8238 | acl_save_prefix="$prefix" |
| 8239 | prefix="$acl_final_prefix" |
| 8240 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8241 | prefix="$acl_save_prefix" |
| 8242 | |
| 8243 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8244 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8245 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8246 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8247 | else |
| 8248 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8249 | fi |
| 8250 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8251 | # Prepare PATH_SEPARATOR. |
| 8252 | # The user is always right. |
| 8253 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8254 | echo "#! /bin/sh" >conf$$.sh |
| 8255 | echo "exit 0" >>conf$$.sh |
| 8256 | chmod +x conf$$.sh |
| 8257 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8258 | PATH_SEPARATOR=';' |
| 8259 | else |
| 8260 | PATH_SEPARATOR=: |
| 8261 | fi |
| 8262 | rm -f conf$$.sh |
| 8263 | fi |
| 8264 | ac_prog=ld |
| 8265 | if test "$GCC" = yes; then |
| 8266 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8267 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8268 | 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] | 8269 | case $host in |
| 8270 | *-*-mingw*) |
| 8271 | # gcc leaves a trailing carriage return which upsets mingw |
| 8272 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8273 | *) |
| 8274 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8275 | esac |
| 8276 | case $ac_prog in |
| 8277 | # Accept absolute paths. |
| 8278 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8279 | re_direlt='/[^/][^/]*/\.\./' |
| 8280 | # Canonicalize the path of ld |
| 8281 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8282 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8283 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8284 | done |
| 8285 | test -z "$LD" && LD="$ac_prog" |
| 8286 | ;; |
| 8287 | "") |
| 8288 | # If it fails, then pretend we aren't using GCC. |
| 8289 | ac_prog=ld |
| 8290 | ;; |
| 8291 | *) |
| 8292 | # If it is relative, then search for the first ld in PATH. |
| 8293 | with_gnu_ld=unknown |
| 8294 | ;; |
| 8295 | esac |
| 8296 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8297 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8298 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8299 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8300 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8301 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8302 | fi |
| 8303 | if test "${acl_cv_path_LD+set}" = set; then |
| 8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8305 | else |
| 8306 | if test -z "$LD"; then |
| 8307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8308 | for ac_dir in $PATH; do |
| 8309 | test -z "$ac_dir" && ac_dir=. |
| 8310 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8311 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8312 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8313 | # but apparently some GNU ld's only accept -v. |
| 8314 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8315 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8316 | *GNU* | *'with BFD'*) |
| 8317 | test "$with_gnu_ld" != no && break ;; |
| 8318 | *) |
| 8319 | test "$with_gnu_ld" != yes && break ;; |
| 8320 | esac |
| 8321 | fi |
| 8322 | done |
| 8323 | IFS="$ac_save_ifs" |
| 8324 | else |
| 8325 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8326 | fi |
| 8327 | fi |
| 8328 | |
| 8329 | LD="$acl_cv_path_LD" |
| 8330 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8331 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8332 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8333 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8334 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8335 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | fi |
| 8337 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8338 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8339 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8340 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8341 | 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] | 8342 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8344 | else |
| 8345 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8346 | case `$LD -v 2>&1 </dev/null` in |
| 8347 | *GNU* | *'with BFD'*) |
| 8348 | acl_cv_prog_gnu_ld=yes ;; |
| 8349 | *) |
| 8350 | acl_cv_prog_gnu_ld=no ;; |
| 8351 | esac |
| 8352 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8353 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8354 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8356 | |
| 8357 | |
| 8358 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8359 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8360 | 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] | 8361 | if test "${acl_cv_rpath+set}" = set; then |
| 8362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8363 | else |
| 8364 | |
| 8365 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8366 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8367 | . ./conftest.sh |
| 8368 | rm -f ./conftest.sh |
| 8369 | acl_cv_rpath=done |
| 8370 | |
| 8371 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8372 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8373 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8374 | wl="$acl_cv_wl" |
| 8375 | libext="$acl_cv_libext" |
| 8376 | shlibext="$acl_cv_shlibext" |
| 8377 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8378 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8379 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8380 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8381 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8382 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8383 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8384 | else |
| 8385 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8386 | fi |
| 8387 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8395 | use_additional=yes |
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 | acl_save_prefix="$prefix" |
| 8398 | prefix="$acl_final_prefix" |
| 8399 | acl_save_exec_prefix="$exec_prefix" |
| 8400 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8401 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8402 | eval additional_includedir=\"$includedir\" |
| 8403 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8404 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8405 | exec_prefix="$acl_save_exec_prefix" |
| 8406 | prefix="$acl_save_prefix" |
| 8407 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8408 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8409 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8410 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8411 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8412 | if test "X$withval" = "Xno"; then |
| 8413 | use_additional=no |
| 8414 | else |
| 8415 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8416 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8417 | acl_save_prefix="$prefix" |
| 8418 | prefix="$acl_final_prefix" |
| 8419 | acl_save_exec_prefix="$exec_prefix" |
| 8420 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8421 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8422 | eval additional_includedir=\"$includedir\" |
| 8423 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8424 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8425 | exec_prefix="$acl_save_exec_prefix" |
| 8426 | prefix="$acl_save_prefix" |
| 8427 | |
| 8428 | else |
| 8429 | additional_includedir="$withval/include" |
| 8430 | additional_libdir="$withval/lib" |
| 8431 | fi |
| 8432 | fi |
| 8433 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8434 | fi |
| 8435 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8436 | LIBICONV= |
| 8437 | LTLIBICONV= |
| 8438 | INCICONV= |
| 8439 | rpathdirs= |
| 8440 | ltrpathdirs= |
| 8441 | names_already_handled= |
| 8442 | names_next_round='iconv ' |
| 8443 | while test -n "$names_next_round"; do |
| 8444 | names_this_round="$names_next_round" |
| 8445 | names_next_round= |
| 8446 | for name in $names_this_round; do |
| 8447 | already_handled= |
| 8448 | for n in $names_already_handled; do |
| 8449 | if test "$n" = "$name"; then |
| 8450 | already_handled=yes |
| 8451 | break |
| 8452 | fi |
| 8453 | done |
| 8454 | if test -z "$already_handled"; then |
| 8455 | names_already_handled="$names_already_handled $name" |
| 8456 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8457 | eval value=\"\$HAVE_LIB$uppername\" |
| 8458 | if test -n "$value"; then |
| 8459 | if test "$value" = yes; then |
| 8460 | eval value=\"\$LIB$uppername\" |
| 8461 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8462 | eval value=\"\$LTLIB$uppername\" |
| 8463 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8464 | else |
| 8465 | : |
| 8466 | fi |
| 8467 | else |
| 8468 | found_dir= |
| 8469 | found_la= |
| 8470 | found_so= |
| 8471 | found_a= |
| 8472 | if test $use_additional = yes; then |
| 8473 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8474 | found_dir="$additional_libdir" |
| 8475 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8476 | if test -f "$additional_libdir/lib$name.la"; then |
| 8477 | found_la="$additional_libdir/lib$name.la" |
| 8478 | fi |
| 8479 | else |
| 8480 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8481 | found_dir="$additional_libdir" |
| 8482 | found_a="$additional_libdir/lib$name.$libext" |
| 8483 | if test -f "$additional_libdir/lib$name.la"; then |
| 8484 | found_la="$additional_libdir/lib$name.la" |
| 8485 | fi |
| 8486 | fi |
| 8487 | fi |
| 8488 | fi |
| 8489 | if test "X$found_dir" = "X"; then |
| 8490 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8492 | acl_save_prefix="$prefix" |
| 8493 | prefix="$acl_final_prefix" |
| 8494 | acl_save_exec_prefix="$exec_prefix" |
| 8495 | exec_prefix="$acl_final_exec_prefix" |
| 8496 | eval x=\"$x\" |
| 8497 | exec_prefix="$acl_save_exec_prefix" |
| 8498 | prefix="$acl_save_prefix" |
| 8499 | |
| 8500 | case "$x" in |
| 8501 | -L*) |
| 8502 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8503 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8504 | found_dir="$dir" |
| 8505 | found_so="$dir/lib$name.$shlibext" |
| 8506 | if test -f "$dir/lib$name.la"; then |
| 8507 | found_la="$dir/lib$name.la" |
| 8508 | fi |
| 8509 | else |
| 8510 | if test -f "$dir/lib$name.$libext"; then |
| 8511 | found_dir="$dir" |
| 8512 | found_a="$dir/lib$name.$libext" |
| 8513 | if test -f "$dir/lib$name.la"; then |
| 8514 | found_la="$dir/lib$name.la" |
| 8515 | fi |
| 8516 | fi |
| 8517 | fi |
| 8518 | ;; |
| 8519 | esac |
| 8520 | if test "X$found_dir" != "X"; then |
| 8521 | break |
| 8522 | fi |
| 8523 | done |
| 8524 | fi |
| 8525 | if test "X$found_dir" != "X"; then |
| 8526 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8527 | if test "X$found_so" != "X"; then |
| 8528 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8529 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8530 | else |
| 8531 | haveit= |
| 8532 | for x in $ltrpathdirs; do |
| 8533 | if test "X$x" = "X$found_dir"; then |
| 8534 | haveit=yes |
| 8535 | break |
| 8536 | fi |
| 8537 | done |
| 8538 | if test -z "$haveit"; then |
| 8539 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8540 | fi |
| 8541 | if test "$hardcode_direct" = yes; then |
| 8542 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8543 | else |
| 8544 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8545 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8546 | haveit= |
| 8547 | for x in $rpathdirs; do |
| 8548 | if test "X$x" = "X$found_dir"; then |
| 8549 | haveit=yes |
| 8550 | break |
| 8551 | fi |
| 8552 | done |
| 8553 | if test -z "$haveit"; then |
| 8554 | rpathdirs="$rpathdirs $found_dir" |
| 8555 | fi |
| 8556 | else |
| 8557 | haveit= |
| 8558 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8559 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8560 | acl_save_prefix="$prefix" |
| 8561 | prefix="$acl_final_prefix" |
| 8562 | acl_save_exec_prefix="$exec_prefix" |
| 8563 | exec_prefix="$acl_final_exec_prefix" |
| 8564 | eval x=\"$x\" |
| 8565 | exec_prefix="$acl_save_exec_prefix" |
| 8566 | prefix="$acl_save_prefix" |
| 8567 | |
| 8568 | if test "X$x" = "X-L$found_dir"; then |
| 8569 | haveit=yes |
| 8570 | break |
| 8571 | fi |
| 8572 | done |
| 8573 | if test -z "$haveit"; then |
| 8574 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8575 | fi |
| 8576 | if test "$hardcode_minus_L" != no; then |
| 8577 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8578 | else |
| 8579 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8580 | fi |
| 8581 | fi |
| 8582 | fi |
| 8583 | fi |
| 8584 | else |
| 8585 | if test "X$found_a" != "X"; then |
| 8586 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8587 | else |
| 8588 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8589 | fi |
| 8590 | fi |
| 8591 | additional_includedir= |
| 8592 | case "$found_dir" in |
| 8593 | */lib | */lib/) |
| 8594 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8595 | additional_includedir="$basedir/include" |
| 8596 | ;; |
| 8597 | esac |
| 8598 | if test "X$additional_includedir" != "X"; then |
| 8599 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8600 | haveit= |
| 8601 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8602 | if test -n "$GCC"; then |
| 8603 | case $host_os in |
| 8604 | linux*) haveit=yes;; |
| 8605 | esac |
| 8606 | fi |
| 8607 | fi |
| 8608 | if test -z "$haveit"; then |
| 8609 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8610 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8611 | acl_save_prefix="$prefix" |
| 8612 | prefix="$acl_final_prefix" |
| 8613 | acl_save_exec_prefix="$exec_prefix" |
| 8614 | exec_prefix="$acl_final_exec_prefix" |
| 8615 | eval x=\"$x\" |
| 8616 | exec_prefix="$acl_save_exec_prefix" |
| 8617 | prefix="$acl_save_prefix" |
| 8618 | |
| 8619 | if test "X$x" = "X-I$additional_includedir"; then |
| 8620 | haveit=yes |
| 8621 | break |
| 8622 | fi |
| 8623 | done |
| 8624 | if test -z "$haveit"; then |
| 8625 | if test -d "$additional_includedir"; then |
| 8626 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8627 | fi |
| 8628 | fi |
| 8629 | fi |
| 8630 | fi |
| 8631 | fi |
| 8632 | if test -n "$found_la"; then |
| 8633 | save_libdir="$libdir" |
| 8634 | case "$found_la" in |
| 8635 | */* | *\\*) . "$found_la" ;; |
| 8636 | *) . "./$found_la" ;; |
| 8637 | esac |
| 8638 | libdir="$save_libdir" |
| 8639 | for dep in $dependency_libs; do |
| 8640 | case "$dep" in |
| 8641 | -L*) |
| 8642 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8643 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8644 | haveit= |
| 8645 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8646 | if test -n "$GCC"; then |
| 8647 | case $host_os in |
| 8648 | linux*) haveit=yes;; |
| 8649 | esac |
| 8650 | fi |
| 8651 | fi |
| 8652 | if test -z "$haveit"; then |
| 8653 | haveit= |
| 8654 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8655 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8656 | acl_save_prefix="$prefix" |
| 8657 | prefix="$acl_final_prefix" |
| 8658 | acl_save_exec_prefix="$exec_prefix" |
| 8659 | exec_prefix="$acl_final_exec_prefix" |
| 8660 | eval x=\"$x\" |
| 8661 | exec_prefix="$acl_save_exec_prefix" |
| 8662 | prefix="$acl_save_prefix" |
| 8663 | |
| 8664 | if test "X$x" = "X-L$additional_libdir"; then |
| 8665 | haveit=yes |
| 8666 | break |
| 8667 | fi |
| 8668 | done |
| 8669 | if test -z "$haveit"; then |
| 8670 | if test -d "$additional_libdir"; then |
| 8671 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8672 | fi |
| 8673 | fi |
| 8674 | haveit= |
| 8675 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8676 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8677 | acl_save_prefix="$prefix" |
| 8678 | prefix="$acl_final_prefix" |
| 8679 | acl_save_exec_prefix="$exec_prefix" |
| 8680 | exec_prefix="$acl_final_exec_prefix" |
| 8681 | eval x=\"$x\" |
| 8682 | exec_prefix="$acl_save_exec_prefix" |
| 8683 | prefix="$acl_save_prefix" |
| 8684 | |
| 8685 | if test "X$x" = "X-L$additional_libdir"; then |
| 8686 | haveit=yes |
| 8687 | break |
| 8688 | fi |
| 8689 | done |
| 8690 | if test -z "$haveit"; then |
| 8691 | if test -d "$additional_libdir"; then |
| 8692 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8693 | fi |
| 8694 | fi |
| 8695 | fi |
| 8696 | fi |
| 8697 | ;; |
| 8698 | -R*) |
| 8699 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8700 | if test "$enable_rpath" != no; then |
| 8701 | haveit= |
| 8702 | for x in $rpathdirs; do |
| 8703 | if test "X$x" = "X$dir"; then |
| 8704 | haveit=yes |
| 8705 | break |
| 8706 | fi |
| 8707 | done |
| 8708 | if test -z "$haveit"; then |
| 8709 | rpathdirs="$rpathdirs $dir" |
| 8710 | fi |
| 8711 | haveit= |
| 8712 | for x in $ltrpathdirs; do |
| 8713 | if test "X$x" = "X$dir"; then |
| 8714 | haveit=yes |
| 8715 | break |
| 8716 | fi |
| 8717 | done |
| 8718 | if test -z "$haveit"; then |
| 8719 | ltrpathdirs="$ltrpathdirs $dir" |
| 8720 | fi |
| 8721 | fi |
| 8722 | ;; |
| 8723 | -l*) |
| 8724 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8725 | ;; |
| 8726 | *.la) |
| 8727 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8728 | ;; |
| 8729 | *) |
| 8730 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8731 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8732 | ;; |
| 8733 | esac |
| 8734 | done |
| 8735 | fi |
| 8736 | else |
| 8737 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8738 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8739 | fi |
| 8740 | fi |
| 8741 | fi |
| 8742 | done |
| 8743 | done |
| 8744 | if test "X$rpathdirs" != "X"; then |
| 8745 | if test -n "$hardcode_libdir_separator"; then |
| 8746 | alldirs= |
| 8747 | for found_dir in $rpathdirs; do |
| 8748 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8749 | done |
| 8750 | acl_save_libdir="$libdir" |
| 8751 | libdir="$alldirs" |
| 8752 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8753 | libdir="$acl_save_libdir" |
| 8754 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8755 | else |
| 8756 | for found_dir in $rpathdirs; do |
| 8757 | acl_save_libdir="$libdir" |
| 8758 | libdir="$found_dir" |
| 8759 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8760 | libdir="$acl_save_libdir" |
| 8761 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8762 | done |
| 8763 | fi |
| 8764 | fi |
| 8765 | if test "X$ltrpathdirs" != "X"; then |
| 8766 | for found_dir in $ltrpathdirs; do |
| 8767 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8768 | done |
| 8769 | fi |
| 8770 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8771 | |
| 8772 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8773 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8774 | |
| 8775 | |
| 8776 | |
| 8777 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8778 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8779 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8780 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8782 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8783 | cat >conftest.$ac_ext <<_ACEOF |
| 8784 | /* confdefs.h. */ |
| 8785 | _ACEOF |
| 8786 | cat confdefs.h >>conftest.$ac_ext |
| 8787 | cat >>conftest.$ac_ext <<_ACEOF |
| 8788 | /* end confdefs.h. */ |
| 8789 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8790 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8791 | int |
| 8792 | main () |
| 8793 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8794 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8795 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8797 | return 0; |
| 8798 | ; |
| 8799 | return 0; |
| 8800 | } |
| 8801 | _ACEOF |
| 8802 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8803 | if { (ac_try="$ac_compile" |
| 8804 | case "(($ac_try" in |
| 8805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8806 | *) ac_try_echo=$ac_try;; |
| 8807 | esac |
| 8808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8809 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8810 | ac_status=$? |
| 8811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8812 | rm -f conftest.er1 |
| 8813 | cat conftest.err >&5 |
| 8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8815 | (exit $ac_status); } && { |
| 8816 | test -z "$ac_c_werror_flag" || |
| 8817 | test ! -s conftest.err |
| 8818 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | ac_cv_type_ptrdiff_t=yes |
| 8820 | else |
| 8821 | echo "$as_me: failed program was:" >&5 |
| 8822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8824 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8825 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8826 | |
| 8827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8828 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8829 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8830 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8831 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8832 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8833 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8834 | |
| 8835 | cat >>confdefs.h <<\_ACEOF |
| 8836 | #define ptrdiff_t long |
| 8837 | _ACEOF |
| 8838 | |
| 8839 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8840 | fi |
| 8841 | |
| 8842 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8843 | |
| 8844 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8845 | |
| 8846 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8847 | |
| 8848 | |
| 8849 | |
| 8850 | |
| 8851 | |
| 8852 | 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] | 8853 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8854 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8855 | 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] | 8856 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8857 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8859 | 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] | 8860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8862 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8864 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8865 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8866 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8867 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8869 | cat >conftest.$ac_ext <<_ACEOF |
| 8870 | /* confdefs.h. */ |
| 8871 | _ACEOF |
| 8872 | cat confdefs.h >>conftest.$ac_ext |
| 8873 | cat >>conftest.$ac_ext <<_ACEOF |
| 8874 | /* end confdefs.h. */ |
| 8875 | $ac_includes_default |
| 8876 | #include <$ac_header> |
| 8877 | _ACEOF |
| 8878 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8879 | if { (ac_try="$ac_compile" |
| 8880 | case "(($ac_try" in |
| 8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8882 | *) ac_try_echo=$ac_try;; |
| 8883 | esac |
| 8884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8885 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8886 | ac_status=$? |
| 8887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8888 | rm -f conftest.er1 |
| 8889 | cat conftest.err >&5 |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8891 | (exit $ac_status); } && { |
| 8892 | test -z "$ac_c_werror_flag" || |
| 8893 | test ! -s conftest.err |
| 8894 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8895 | ac_header_compiler=yes |
| 8896 | else |
| 8897 | echo "$as_me: failed program was:" >&5 |
| 8898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8899 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8900 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8901 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8902 | |
| 8903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8904 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8905 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8906 | |
| 8907 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8908 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8909 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8910 | cat >conftest.$ac_ext <<_ACEOF |
| 8911 | /* confdefs.h. */ |
| 8912 | _ACEOF |
| 8913 | cat confdefs.h >>conftest.$ac_ext |
| 8914 | cat >>conftest.$ac_ext <<_ACEOF |
| 8915 | /* end confdefs.h. */ |
| 8916 | #include <$ac_header> |
| 8917 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8918 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8919 | case "(($ac_try" in |
| 8920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8921 | *) ac_try_echo=$ac_try;; |
| 8922 | esac |
| 8923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8925 | ac_status=$? |
| 8926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8927 | rm -f conftest.er1 |
| 8928 | cat conftest.err >&5 |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8930 | (exit $ac_status); } >/dev/null && { |
| 8931 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8932 | test ! -s conftest.err |
| 8933 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8934 | ac_header_preproc=yes |
| 8935 | else |
| 8936 | echo "$as_me: failed program was:" >&5 |
| 8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8938 | |
| 8939 | ac_header_preproc=no |
| 8940 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8942 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8943 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8944 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8945 | |
| 8946 | # So? What about this header? |
| 8947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8948 | yes:no: ) |
| 8949 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8950 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8951 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8952 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8953 | ac_header_preproc=yes |
| 8954 | ;; |
| 8955 | no:yes:* ) |
| 8956 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8957 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8958 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8959 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8960 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8961 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8963 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8965 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8967 | 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] | 8968 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8969 | ;; |
| 8970 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8971 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8973 | 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] | 8974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8975 | else |
| 8976 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8978 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8979 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8980 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8981 | |
| 8982 | fi |
| 8983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8984 | cat >>confdefs.h <<_ACEOF |
| 8985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8986 | _ACEOF |
| 8987 | |
| 8988 | fi |
| 8989 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8990 | done |
| 8991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8992 | |
| 8993 | |
| 8994 | |
| 8995 | |
| 8996 | |
| 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | |
| 9007 | |
| 9008 | |
| 9009 | |
| 9010 | |
| 9011 | |
| 9012 | |
| 9013 | |
| 9014 | |
| 9015 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9016 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9017 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9018 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9019 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9020 | 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] | 9021 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9023 | 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] | 9024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9025 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9026 | cat >conftest.$ac_ext <<_ACEOF |
| 9027 | /* confdefs.h. */ |
| 9028 | _ACEOF |
| 9029 | cat confdefs.h >>conftest.$ac_ext |
| 9030 | cat >>conftest.$ac_ext <<_ACEOF |
| 9031 | /* end confdefs.h. */ |
| 9032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9034 | #define $ac_func innocuous_$ac_func |
| 9035 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9036 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9037 | which can conflict with char $ac_func (); below. |
| 9038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9039 | <limits.h> exists even on freestanding compilers. */ |
| 9040 | |
| 9041 | #ifdef __STDC__ |
| 9042 | # include <limits.h> |
| 9043 | #else |
| 9044 | # include <assert.h> |
| 9045 | #endif |
| 9046 | |
| 9047 | #undef $ac_func |
| 9048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9049 | /* Override any GCC internal prototype to avoid an error. |
| 9050 | Use char because int might match the return type of a GCC |
| 9051 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9052 | #ifdef __cplusplus |
| 9053 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9054 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9056 | /* The GNU C library defines this for functions which it implements |
| 9057 | to always fail with ENOSYS. Some functions are actually named |
| 9058 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9059 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9060 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9061 | #endif |
| 9062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9063 | int |
| 9064 | main () |
| 9065 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9066 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9067 | ; |
| 9068 | return 0; |
| 9069 | } |
| 9070 | _ACEOF |
| 9071 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9072 | if { (ac_try="$ac_link" |
| 9073 | case "(($ac_try" in |
| 9074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9075 | *) ac_try_echo=$ac_try;; |
| 9076 | esac |
| 9077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9078 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9079 | ac_status=$? |
| 9080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9081 | rm -f conftest.er1 |
| 9082 | cat conftest.err >&5 |
| 9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9084 | (exit $ac_status); } && { |
| 9085 | test -z "$ac_c_werror_flag" || |
| 9086 | test ! -s conftest.err |
| 9087 | } && test -s conftest$ac_exeext && |
| 9088 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9089 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9090 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | echo "$as_me: failed program was:" >&5 |
| 9092 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9093 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9094 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9096 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9097 | 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] | 9098 | conftest$ac_exeext conftest.$ac_ext |
| 9099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9100 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9102 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9103 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9104 | cat >>confdefs.h <<_ACEOF |
| 9105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9106 | _ACEOF |
| 9107 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9108 | fi |
| 9109 | done |
| 9110 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9111 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9112 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9113 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9114 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9115 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9117 | else |
| 9118 | cat >conftest.$ac_ext <<_ACEOF |
| 9119 | /* confdefs.h. */ |
| 9120 | _ACEOF |
| 9121 | cat confdefs.h >>conftest.$ac_ext |
| 9122 | cat >>conftest.$ac_ext <<_ACEOF |
| 9123 | /* end confdefs.h. */ |
| 9124 | #include <stdio.h> |
| 9125 | int |
| 9126 | main () |
| 9127 | { |
| 9128 | |
| 9129 | #ifndef _snprintf |
| 9130 | char *p = (char *) _snprintf; |
| 9131 | #endif |
| 9132 | |
| 9133 | ; |
| 9134 | return 0; |
| 9135 | } |
| 9136 | _ACEOF |
| 9137 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9138 | if { (ac_try="$ac_compile" |
| 9139 | case "(($ac_try" in |
| 9140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9141 | *) ac_try_echo=$ac_try;; |
| 9142 | esac |
| 9143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9144 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9145 | ac_status=$? |
| 9146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9147 | rm -f conftest.er1 |
| 9148 | cat conftest.err >&5 |
| 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9150 | (exit $ac_status); } && { |
| 9151 | test -z "$ac_c_werror_flag" || |
| 9152 | test ! -s conftest.err |
| 9153 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9154 | ac_cv_have_decl__snprintf=yes |
| 9155 | else |
| 9156 | echo "$as_me: failed program was:" >&5 |
| 9157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9159 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9160 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9161 | |
| 9162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9164 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9165 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9166 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9167 | gt_value=1 |
| 9168 | else |
| 9169 | gt_value=0 |
| 9170 | fi |
| 9171 | |
| 9172 | cat >>confdefs.h <<_ACEOF |
| 9173 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9174 | _ACEOF |
| 9175 | |
| 9176 | |
| 9177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9178 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9179 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9180 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9182 | else |
| 9183 | cat >conftest.$ac_ext <<_ACEOF |
| 9184 | /* confdefs.h. */ |
| 9185 | _ACEOF |
| 9186 | cat confdefs.h >>conftest.$ac_ext |
| 9187 | cat >>conftest.$ac_ext <<_ACEOF |
| 9188 | /* end confdefs.h. */ |
| 9189 | #include <stdio.h> |
| 9190 | int |
| 9191 | main () |
| 9192 | { |
| 9193 | |
| 9194 | #ifndef _snwprintf |
| 9195 | char *p = (char *) _snwprintf; |
| 9196 | #endif |
| 9197 | |
| 9198 | ; |
| 9199 | return 0; |
| 9200 | } |
| 9201 | _ACEOF |
| 9202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9203 | if { (ac_try="$ac_compile" |
| 9204 | case "(($ac_try" in |
| 9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9206 | *) ac_try_echo=$ac_try;; |
| 9207 | esac |
| 9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9210 | ac_status=$? |
| 9211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9212 | rm -f conftest.er1 |
| 9213 | cat conftest.err >&5 |
| 9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9215 | (exit $ac_status); } && { |
| 9216 | test -z "$ac_c_werror_flag" || |
| 9217 | test ! -s conftest.err |
| 9218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9219 | ac_cv_have_decl__snwprintf=yes |
| 9220 | else |
| 9221 | echo "$as_me: failed program was:" >&5 |
| 9222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9224 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9226 | |
| 9227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9229 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9230 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9231 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9232 | gt_value=1 |
| 9233 | else |
| 9234 | gt_value=0 |
| 9235 | fi |
| 9236 | |
| 9237 | cat >>confdefs.h <<_ACEOF |
| 9238 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9239 | _ACEOF |
| 9240 | |
| 9241 | |
| 9242 | |
| 9243 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9244 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9245 | 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] | 9246 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9248 | else |
| 9249 | cat >conftest.$ac_ext <<_ACEOF |
| 9250 | /* confdefs.h. */ |
| 9251 | _ACEOF |
| 9252 | cat confdefs.h >>conftest.$ac_ext |
| 9253 | cat >>conftest.$ac_ext <<_ACEOF |
| 9254 | /* end confdefs.h. */ |
| 9255 | #include <stdio.h> |
| 9256 | int |
| 9257 | main () |
| 9258 | { |
| 9259 | |
| 9260 | #ifndef feof_unlocked |
| 9261 | char *p = (char *) feof_unlocked; |
| 9262 | #endif |
| 9263 | |
| 9264 | ; |
| 9265 | return 0; |
| 9266 | } |
| 9267 | _ACEOF |
| 9268 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9269 | if { (ac_try="$ac_compile" |
| 9270 | case "(($ac_try" in |
| 9271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9272 | *) ac_try_echo=$ac_try;; |
| 9273 | esac |
| 9274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9275 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9276 | ac_status=$? |
| 9277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9278 | rm -f conftest.er1 |
| 9279 | cat conftest.err >&5 |
| 9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9281 | (exit $ac_status); } && { |
| 9282 | test -z "$ac_c_werror_flag" || |
| 9283 | test ! -s conftest.err |
| 9284 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9285 | ac_cv_have_decl_feof_unlocked=yes |
| 9286 | else |
| 9287 | echo "$as_me: failed program was:" >&5 |
| 9288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9289 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9290 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9291 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9292 | |
| 9293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9294 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9295 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9296 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9297 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9298 | gt_value=1 |
| 9299 | else |
| 9300 | gt_value=0 |
| 9301 | fi |
| 9302 | |
| 9303 | cat >>confdefs.h <<_ACEOF |
| 9304 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9305 | _ACEOF |
| 9306 | |
| 9307 | |
| 9308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9309 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9310 | 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] | 9311 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9313 | else |
| 9314 | cat >conftest.$ac_ext <<_ACEOF |
| 9315 | /* confdefs.h. */ |
| 9316 | _ACEOF |
| 9317 | cat confdefs.h >>conftest.$ac_ext |
| 9318 | cat >>conftest.$ac_ext <<_ACEOF |
| 9319 | /* end confdefs.h. */ |
| 9320 | #include <stdio.h> |
| 9321 | int |
| 9322 | main () |
| 9323 | { |
| 9324 | |
| 9325 | #ifndef fgets_unlocked |
| 9326 | char *p = (char *) fgets_unlocked; |
| 9327 | #endif |
| 9328 | |
| 9329 | ; |
| 9330 | return 0; |
| 9331 | } |
| 9332 | _ACEOF |
| 9333 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9334 | if { (ac_try="$ac_compile" |
| 9335 | case "(($ac_try" in |
| 9336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9337 | *) ac_try_echo=$ac_try;; |
| 9338 | esac |
| 9339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9340 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9341 | ac_status=$? |
| 9342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9343 | rm -f conftest.er1 |
| 9344 | cat conftest.err >&5 |
| 9345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9346 | (exit $ac_status); } && { |
| 9347 | test -z "$ac_c_werror_flag" || |
| 9348 | test ! -s conftest.err |
| 9349 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9350 | ac_cv_have_decl_fgets_unlocked=yes |
| 9351 | else |
| 9352 | echo "$as_me: failed program was:" >&5 |
| 9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9354 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9355 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9356 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9357 | |
| 9358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9359 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9360 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9361 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9362 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9363 | gt_value=1 |
| 9364 | else |
| 9365 | gt_value=0 |
| 9366 | fi |
| 9367 | |
| 9368 | cat >>confdefs.h <<_ACEOF |
| 9369 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9370 | _ACEOF |
| 9371 | |
| 9372 | |
| 9373 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9374 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9375 | 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] | 9376 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9378 | else |
| 9379 | cat >conftest.$ac_ext <<_ACEOF |
| 9380 | /* confdefs.h. */ |
| 9381 | _ACEOF |
| 9382 | cat confdefs.h >>conftest.$ac_ext |
| 9383 | cat >>conftest.$ac_ext <<_ACEOF |
| 9384 | /* end confdefs.h. */ |
| 9385 | #include <stdio.h> |
| 9386 | int |
| 9387 | main () |
| 9388 | { |
| 9389 | |
| 9390 | #ifndef getc_unlocked |
| 9391 | char *p = (char *) getc_unlocked; |
| 9392 | #endif |
| 9393 | |
| 9394 | ; |
| 9395 | return 0; |
| 9396 | } |
| 9397 | _ACEOF |
| 9398 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9399 | if { (ac_try="$ac_compile" |
| 9400 | case "(($ac_try" in |
| 9401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9402 | *) ac_try_echo=$ac_try;; |
| 9403 | esac |
| 9404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9405 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9406 | ac_status=$? |
| 9407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9408 | rm -f conftest.er1 |
| 9409 | cat conftest.err >&5 |
| 9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9411 | (exit $ac_status); } && { |
| 9412 | test -z "$ac_c_werror_flag" || |
| 9413 | test ! -s conftest.err |
| 9414 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9415 | ac_cv_have_decl_getc_unlocked=yes |
| 9416 | else |
| 9417 | echo "$as_me: failed program was:" >&5 |
| 9418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9420 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9421 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9422 | |
| 9423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9425 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9426 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9427 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9428 | gt_value=1 |
| 9429 | else |
| 9430 | gt_value=0 |
| 9431 | fi |
| 9432 | |
| 9433 | cat >>confdefs.h <<_ACEOF |
| 9434 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9435 | _ACEOF |
| 9436 | |
| 9437 | |
| 9438 | |
| 9439 | case $gt_cv_func_printf_posix in |
| 9440 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9441 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9442 | esac |
| 9443 | |
| 9444 | if test "$ac_cv_func_asprintf" = yes; then |
| 9445 | HAVE_ASPRINTF=1 |
| 9446 | else |
| 9447 | HAVE_ASPRINTF=0 |
| 9448 | fi |
| 9449 | |
| 9450 | if test "$ac_cv_func_snprintf" = yes; then |
| 9451 | HAVE_SNPRINTF=1 |
| 9452 | else |
| 9453 | HAVE_SNPRINTF=0 |
| 9454 | fi |
| 9455 | |
| 9456 | if test "$ac_cv_func_wprintf" = yes; then |
| 9457 | HAVE_WPRINTF=1 |
| 9458 | else |
| 9459 | HAVE_WPRINTF=0 |
| 9460 | fi |
| 9461 | |
| 9462 | |
| 9463 | |
| 9464 | |
| 9465 | |
| 9466 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9467 | |
| 9468 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9469 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9470 | for element in $INCICONV; do |
| 9471 | haveit= |
| 9472 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9473 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9474 | acl_save_prefix="$prefix" |
| 9475 | prefix="$acl_final_prefix" |
| 9476 | acl_save_exec_prefix="$exec_prefix" |
| 9477 | exec_prefix="$acl_final_exec_prefix" |
| 9478 | eval x=\"$x\" |
| 9479 | exec_prefix="$acl_save_exec_prefix" |
| 9480 | prefix="$acl_save_prefix" |
| 9481 | |
| 9482 | if test "X$x" = "X$element"; then |
| 9483 | haveit=yes |
| 9484 | break |
| 9485 | fi |
| 9486 | done |
| 9487 | if test -z "$haveit"; then |
| 9488 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9489 | fi |
| 9490 | done |
| 9491 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9492 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9493 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9494 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9495 | if test "${am_cv_func_iconv+set}" = set; then |
| 9496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9497 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9498 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9499 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9500 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9501 | cat >conftest.$ac_ext <<_ACEOF |
| 9502 | /* confdefs.h. */ |
| 9503 | _ACEOF |
| 9504 | cat confdefs.h >>conftest.$ac_ext |
| 9505 | cat >>conftest.$ac_ext <<_ACEOF |
| 9506 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9507 | #include <stdlib.h> |
| 9508 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9509 | int |
| 9510 | main () |
| 9511 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9512 | iconv_t cd = iconv_open("",""); |
| 9513 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9514 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9515 | ; |
| 9516 | return 0; |
| 9517 | } |
| 9518 | _ACEOF |
| 9519 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9520 | if { (ac_try="$ac_link" |
| 9521 | case "(($ac_try" in |
| 9522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9523 | *) ac_try_echo=$ac_try;; |
| 9524 | esac |
| 9525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9526 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9527 | ac_status=$? |
| 9528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9529 | rm -f conftest.er1 |
| 9530 | cat conftest.err >&5 |
| 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9532 | (exit $ac_status); } && { |
| 9533 | test -z "$ac_c_werror_flag" || |
| 9534 | test ! -s conftest.err |
| 9535 | } && test -s conftest$ac_exeext && |
| 9536 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9537 | am_cv_func_iconv=yes |
| 9538 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9539 | echo "$as_me: failed program was:" >&5 |
| 9540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9542 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9544 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9545 | 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] | 9546 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9547 | if test "$am_cv_func_iconv" != yes; then |
| 9548 | am_save_LIBS="$LIBS" |
| 9549 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9550 | cat >conftest.$ac_ext <<_ACEOF |
| 9551 | /* confdefs.h. */ |
| 9552 | _ACEOF |
| 9553 | cat confdefs.h >>conftest.$ac_ext |
| 9554 | cat >>conftest.$ac_ext <<_ACEOF |
| 9555 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9556 | #include <stdlib.h> |
| 9557 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9558 | int |
| 9559 | main () |
| 9560 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9561 | iconv_t cd = iconv_open("",""); |
| 9562 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9563 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9564 | ; |
| 9565 | return 0; |
| 9566 | } |
| 9567 | _ACEOF |
| 9568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9569 | if { (ac_try="$ac_link" |
| 9570 | case "(($ac_try" in |
| 9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9572 | *) ac_try_echo=$ac_try;; |
| 9573 | esac |
| 9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9575 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9576 | ac_status=$? |
| 9577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9578 | rm -f conftest.er1 |
| 9579 | cat conftest.err >&5 |
| 9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9581 | (exit $ac_status); } && { |
| 9582 | test -z "$ac_c_werror_flag" || |
| 9583 | test ! -s conftest.err |
| 9584 | } && test -s conftest$ac_exeext && |
| 9585 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9586 | am_cv_lib_iconv=yes |
| 9587 | am_cv_func_iconv=yes |
| 9588 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9589 | echo "$as_me: failed program was:" >&5 |
| 9590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9591 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9592 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9593 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9594 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9595 | 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] | 9596 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9597 | LIBS="$am_save_LIBS" |
| 9598 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9601 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9602 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9603 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | |
| 9605 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9606 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9607 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9608 | |
| 9609 | fi |
| 9610 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9611 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9612 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9613 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9614 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9615 | else |
| 9616 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9617 | LIBICONV= |
| 9618 | LTLIBICONV= |
| 9619 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9620 | |
| 9621 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9622 | |
| 9623 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9624 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9625 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9626 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9628 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9629 | |
| 9630 | cat >conftest.$ac_ext <<_ACEOF |
| 9631 | /* confdefs.h. */ |
| 9632 | _ACEOF |
| 9633 | cat confdefs.h >>conftest.$ac_ext |
| 9634 | cat >>conftest.$ac_ext <<_ACEOF |
| 9635 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9636 | |
| 9637 | #include <stdlib.h> |
| 9638 | #include <iconv.h> |
| 9639 | extern |
| 9640 | #ifdef __cplusplus |
| 9641 | "C" |
| 9642 | #endif |
| 9643 | #if defined(__STDC__) || defined(__cplusplus) |
| 9644 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9645 | #else |
| 9646 | size_t iconv(); |
| 9647 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9648 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9649 | int |
| 9650 | main () |
| 9651 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9652 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
| 9656 | _ACEOF |
| 9657 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9658 | if { (ac_try="$ac_compile" |
| 9659 | case "(($ac_try" in |
| 9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9661 | *) ac_try_echo=$ac_try;; |
| 9662 | esac |
| 9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9664 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9665 | ac_status=$? |
| 9666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9667 | rm -f conftest.er1 |
| 9668 | cat conftest.err >&5 |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9670 | (exit $ac_status); } && { |
| 9671 | test -z "$ac_c_werror_flag" || |
| 9672 | test ! -s conftest.err |
| 9673 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9674 | am_cv_proto_iconv_arg1="" |
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 | echo "$as_me: failed program was:" >&5 |
| 9677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9679 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9680 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9681 | |
| 9682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9683 | 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] | 9684 | fi |
| 9685 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9686 | 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] | 9687 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9688 | }$am_cv_proto_iconv" >&5 |
| 9689 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9690 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9691 | |
| 9692 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9693 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9695 | |
| 9696 | fi |
| 9697 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9698 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9699 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9700 | 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] | 9701 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9703 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9704 | cat >conftest.$ac_ext <<_ACEOF |
| 9705 | /* confdefs.h. */ |
| 9706 | _ACEOF |
| 9707 | cat confdefs.h >>conftest.$ac_ext |
| 9708 | cat >>conftest.$ac_ext <<_ACEOF |
| 9709 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9710 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9711 | int |
| 9712 | main () |
| 9713 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9714 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9715 | ; |
| 9716 | return 0; |
| 9717 | } |
| 9718 | _ACEOF |
| 9719 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9720 | if { (ac_try="$ac_link" |
| 9721 | case "(($ac_try" in |
| 9722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9723 | *) ac_try_echo=$ac_try;; |
| 9724 | esac |
| 9725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9726 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9727 | ac_status=$? |
| 9728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9729 | rm -f conftest.er1 |
| 9730 | cat conftest.err >&5 |
| 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9732 | (exit $ac_status); } && { |
| 9733 | test -z "$ac_c_werror_flag" || |
| 9734 | test ! -s conftest.err |
| 9735 | } && test -s conftest$ac_exeext && |
| 9736 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9737 | am_cv_langinfo_codeset=yes |
| 9738 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9739 | echo "$as_me: failed program was:" >&5 |
| 9740 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9742 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9743 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9744 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9745 | 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] | 9746 | conftest$ac_exeext conftest.$ac_ext |
| 9747 | |
| 9748 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9749 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9750 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9751 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9752 | |
| 9753 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9754 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9756 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9757 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9758 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9759 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9760 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9761 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9762 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9763 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9765 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9766 | cat >conftest.$ac_ext <<_ACEOF |
| 9767 | /* confdefs.h. */ |
| 9768 | _ACEOF |
| 9769 | cat confdefs.h >>conftest.$ac_ext |
| 9770 | cat >>conftest.$ac_ext <<_ACEOF |
| 9771 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9772 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | int |
| 9774 | main () |
| 9775 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9776 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9777 | ; |
| 9778 | return 0; |
| 9779 | } |
| 9780 | _ACEOF |
| 9781 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9782 | if { (ac_try="$ac_link" |
| 9783 | case "(($ac_try" in |
| 9784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9785 | *) ac_try_echo=$ac_try;; |
| 9786 | esac |
| 9787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9788 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9789 | ac_status=$? |
| 9790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9791 | rm -f conftest.er1 |
| 9792 | cat conftest.err >&5 |
| 9793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9794 | (exit $ac_status); } && { |
| 9795 | test -z "$ac_c_werror_flag" || |
| 9796 | test ! -s conftest.err |
| 9797 | } && test -s conftest$ac_exeext && |
| 9798 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9799 | am_cv_val_LC_MESSAGES=yes |
| 9800 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9801 | echo "$as_me: failed program was:" >&5 |
| 9802 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9804 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9805 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9806 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9807 | 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] | 9808 | conftest$ac_exeext conftest.$ac_ext |
| 9809 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9810 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9811 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9812 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9813 | |
| 9814 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9815 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9816 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9817 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9818 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9819 | |
| 9820 | fi |
| 9821 | |
| 9822 | for ac_prog in bison |
| 9823 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9824 | # 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] | 9825 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9828 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9830 | else |
| 9831 | if test -n "$INTLBISON"; then |
| 9832 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9833 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9835 | for as_dir in $PATH |
| 9836 | do |
| 9837 | IFS=$as_save_IFS |
| 9838 | test -z "$as_dir" && as_dir=. |
| 9839 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9840 | 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] | 9841 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9843 | break 2 |
| 9844 | fi |
| 9845 | done |
| 9846 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9847 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9849 | fi |
| 9850 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9851 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9852 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9853 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9854 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9855 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9856 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9857 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9858 | fi |
| 9859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9860 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9861 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9862 | done |
| 9863 | |
| 9864 | if test -z "$INTLBISON"; then |
| 9865 | ac_verc_fail=yes |
| 9866 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9867 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9868 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9869 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9870 | case $ac_prog_version in |
| 9871 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9872 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9873 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9874 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9875 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9876 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9877 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9878 | fi |
| 9879 | if test $ac_verc_fail = yes; then |
| 9880 | INTLBISON=: |
| 9881 | fi |
| 9882 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9883 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9884 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9885 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9886 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9888 | |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | |
| 9896 | |
| 9897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9898 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9899 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 9900 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9901 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9902 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9903 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9904 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9905 | fi |
| 9906 | |
| 9907 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9908 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9909 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9911 | |
| 9912 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9913 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9914 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9915 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9916 | LIBINTL= |
| 9917 | LTLIBINTL= |
| 9918 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9919 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9920 | if test "$USE_NLS" = "yes"; then |
| 9921 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9922 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9923 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9924 | 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] | 9925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9926 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9927 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9928 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9929 | else |
| 9930 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9931 | fi |
| 9932 | |
| 9933 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9934 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9935 | |
| 9936 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9937 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9939 | |
| 9940 | |
| 9941 | |
| 9942 | |
| 9943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9945 | 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] | 9946 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9948 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9949 | cat >conftest.$ac_ext <<_ACEOF |
| 9950 | /* confdefs.h. */ |
| 9951 | _ACEOF |
| 9952 | cat confdefs.h >>conftest.$ac_ext |
| 9953 | cat >>conftest.$ac_ext <<_ACEOF |
| 9954 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9955 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9956 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9957 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | int |
| 9959 | main () |
| 9960 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9961 | bindtextdomain ("", ""); |
| 9962 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9963 | ; |
| 9964 | return 0; |
| 9965 | } |
| 9966 | _ACEOF |
| 9967 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9968 | if { (ac_try="$ac_link" |
| 9969 | case "(($ac_try" in |
| 9970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9971 | *) ac_try_echo=$ac_try;; |
| 9972 | esac |
| 9973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9974 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | ac_status=$? |
| 9976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9977 | rm -f conftest.er1 |
| 9978 | cat conftest.err >&5 |
| 9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9980 | (exit $ac_status); } && { |
| 9981 | test -z "$ac_c_werror_flag" || |
| 9982 | test ! -s conftest.err |
| 9983 | } && test -s conftest$ac_exeext && |
| 9984 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9985 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9986 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9987 | echo "$as_me: failed program was:" >&5 |
| 9988 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9990 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9992 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9993 | 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] | 9994 | conftest$ac_exeext conftest.$ac_ext |
| 9995 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9997 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9998 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9999 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10000 | |
| 10001 | |
| 10002 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10003 | use_additional=yes |
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 | acl_save_prefix="$prefix" |
| 10006 | prefix="$acl_final_prefix" |
| 10007 | acl_save_exec_prefix="$exec_prefix" |
| 10008 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10009 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10010 | eval additional_includedir=\"$includedir\" |
| 10011 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10012 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10013 | exec_prefix="$acl_save_exec_prefix" |
| 10014 | prefix="$acl_save_prefix" |
| 10015 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10017 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10018 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10019 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10020 | if test "X$withval" = "Xno"; then |
| 10021 | use_additional=no |
| 10022 | else |
| 10023 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10025 | acl_save_prefix="$prefix" |
| 10026 | prefix="$acl_final_prefix" |
| 10027 | acl_save_exec_prefix="$exec_prefix" |
| 10028 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10029 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10030 | eval additional_includedir=\"$includedir\" |
| 10031 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10033 | exec_prefix="$acl_save_exec_prefix" |
| 10034 | prefix="$acl_save_prefix" |
| 10035 | |
| 10036 | else |
| 10037 | additional_includedir="$withval/include" |
| 10038 | additional_libdir="$withval/lib" |
| 10039 | fi |
| 10040 | fi |
| 10041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10042 | fi |
| 10043 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10044 | LIBINTL= |
| 10045 | LTLIBINTL= |
| 10046 | INCINTL= |
| 10047 | rpathdirs= |
| 10048 | ltrpathdirs= |
| 10049 | names_already_handled= |
| 10050 | names_next_round='intl ' |
| 10051 | while test -n "$names_next_round"; do |
| 10052 | names_this_round="$names_next_round" |
| 10053 | names_next_round= |
| 10054 | for name in $names_this_round; do |
| 10055 | already_handled= |
| 10056 | for n in $names_already_handled; do |
| 10057 | if test "$n" = "$name"; then |
| 10058 | already_handled=yes |
| 10059 | break |
| 10060 | fi |
| 10061 | done |
| 10062 | if test -z "$already_handled"; then |
| 10063 | names_already_handled="$names_already_handled $name" |
| 10064 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10065 | eval value=\"\$HAVE_LIB$uppername\" |
| 10066 | if test -n "$value"; then |
| 10067 | if test "$value" = yes; then |
| 10068 | eval value=\"\$LIB$uppername\" |
| 10069 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10070 | eval value=\"\$LTLIB$uppername\" |
| 10071 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10072 | else |
| 10073 | : |
| 10074 | fi |
| 10075 | else |
| 10076 | found_dir= |
| 10077 | found_la= |
| 10078 | found_so= |
| 10079 | found_a= |
| 10080 | if test $use_additional = yes; then |
| 10081 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10082 | found_dir="$additional_libdir" |
| 10083 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10084 | if test -f "$additional_libdir/lib$name.la"; then |
| 10085 | found_la="$additional_libdir/lib$name.la" |
| 10086 | fi |
| 10087 | else |
| 10088 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10089 | found_dir="$additional_libdir" |
| 10090 | found_a="$additional_libdir/lib$name.$libext" |
| 10091 | if test -f "$additional_libdir/lib$name.la"; then |
| 10092 | found_la="$additional_libdir/lib$name.la" |
| 10093 | fi |
| 10094 | fi |
| 10095 | fi |
| 10096 | fi |
| 10097 | if test "X$found_dir" = "X"; then |
| 10098 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10099 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10100 | acl_save_prefix="$prefix" |
| 10101 | prefix="$acl_final_prefix" |
| 10102 | acl_save_exec_prefix="$exec_prefix" |
| 10103 | exec_prefix="$acl_final_exec_prefix" |
| 10104 | eval x=\"$x\" |
| 10105 | exec_prefix="$acl_save_exec_prefix" |
| 10106 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10107 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10108 | case "$x" in |
| 10109 | -L*) |
| 10110 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10111 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10112 | found_dir="$dir" |
| 10113 | found_so="$dir/lib$name.$shlibext" |
| 10114 | if test -f "$dir/lib$name.la"; then |
| 10115 | found_la="$dir/lib$name.la" |
| 10116 | fi |
| 10117 | else |
| 10118 | if test -f "$dir/lib$name.$libext"; then |
| 10119 | found_dir="$dir" |
| 10120 | found_a="$dir/lib$name.$libext" |
| 10121 | if test -f "$dir/lib$name.la"; then |
| 10122 | found_la="$dir/lib$name.la" |
| 10123 | fi |
| 10124 | fi |
| 10125 | fi |
| 10126 | ;; |
| 10127 | esac |
| 10128 | if test "X$found_dir" != "X"; then |
| 10129 | break |
| 10130 | fi |
| 10131 | done |
| 10132 | fi |
| 10133 | if test "X$found_dir" != "X"; then |
| 10134 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10135 | if test "X$found_so" != "X"; then |
| 10136 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10137 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10138 | else |
| 10139 | haveit= |
| 10140 | for x in $ltrpathdirs; do |
| 10141 | if test "X$x" = "X$found_dir"; then |
| 10142 | haveit=yes |
| 10143 | break |
| 10144 | fi |
| 10145 | done |
| 10146 | if test -z "$haveit"; then |
| 10147 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10148 | fi |
| 10149 | if test "$hardcode_direct" = yes; then |
| 10150 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10151 | else |
| 10152 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10153 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10154 | haveit= |
| 10155 | for x in $rpathdirs; do |
| 10156 | if test "X$x" = "X$found_dir"; then |
| 10157 | haveit=yes |
| 10158 | break |
| 10159 | fi |
| 10160 | done |
| 10161 | if test -z "$haveit"; then |
| 10162 | rpathdirs="$rpathdirs $found_dir" |
| 10163 | fi |
| 10164 | else |
| 10165 | haveit= |
| 10166 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10167 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10168 | acl_save_prefix="$prefix" |
| 10169 | prefix="$acl_final_prefix" |
| 10170 | acl_save_exec_prefix="$exec_prefix" |
| 10171 | exec_prefix="$acl_final_exec_prefix" |
| 10172 | eval x=\"$x\" |
| 10173 | exec_prefix="$acl_save_exec_prefix" |
| 10174 | prefix="$acl_save_prefix" |
| 10175 | |
| 10176 | if test "X$x" = "X-L$found_dir"; then |
| 10177 | haveit=yes |
| 10178 | break |
| 10179 | fi |
| 10180 | done |
| 10181 | if test -z "$haveit"; then |
| 10182 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10183 | fi |
| 10184 | if test "$hardcode_minus_L" != no; then |
| 10185 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10186 | else |
| 10187 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10188 | fi |
| 10189 | fi |
| 10190 | fi |
| 10191 | fi |
| 10192 | else |
| 10193 | if test "X$found_a" != "X"; then |
| 10194 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10195 | else |
| 10196 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10197 | fi |
| 10198 | fi |
| 10199 | additional_includedir= |
| 10200 | case "$found_dir" in |
| 10201 | */lib | */lib/) |
| 10202 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10203 | additional_includedir="$basedir/include" |
| 10204 | ;; |
| 10205 | esac |
| 10206 | if test "X$additional_includedir" != "X"; then |
| 10207 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10208 | haveit= |
| 10209 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10210 | if test -n "$GCC"; then |
| 10211 | case $host_os in |
| 10212 | linux*) haveit=yes;; |
| 10213 | esac |
| 10214 | fi |
| 10215 | fi |
| 10216 | if test -z "$haveit"; then |
| 10217 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10219 | acl_save_prefix="$prefix" |
| 10220 | prefix="$acl_final_prefix" |
| 10221 | acl_save_exec_prefix="$exec_prefix" |
| 10222 | exec_prefix="$acl_final_exec_prefix" |
| 10223 | eval x=\"$x\" |
| 10224 | exec_prefix="$acl_save_exec_prefix" |
| 10225 | prefix="$acl_save_prefix" |
| 10226 | |
| 10227 | if test "X$x" = "X-I$additional_includedir"; then |
| 10228 | haveit=yes |
| 10229 | break |
| 10230 | fi |
| 10231 | done |
| 10232 | if test -z "$haveit"; then |
| 10233 | if test -d "$additional_includedir"; then |
| 10234 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10235 | fi |
| 10236 | fi |
| 10237 | fi |
| 10238 | fi |
| 10239 | fi |
| 10240 | if test -n "$found_la"; then |
| 10241 | save_libdir="$libdir" |
| 10242 | case "$found_la" in |
| 10243 | */* | *\\*) . "$found_la" ;; |
| 10244 | *) . "./$found_la" ;; |
| 10245 | esac |
| 10246 | libdir="$save_libdir" |
| 10247 | for dep in $dependency_libs; do |
| 10248 | case "$dep" in |
| 10249 | -L*) |
| 10250 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10251 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10252 | haveit= |
| 10253 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10254 | if test -n "$GCC"; then |
| 10255 | case $host_os in |
| 10256 | linux*) haveit=yes;; |
| 10257 | esac |
| 10258 | fi |
| 10259 | fi |
| 10260 | if test -z "$haveit"; then |
| 10261 | haveit= |
| 10262 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10263 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10264 | acl_save_prefix="$prefix" |
| 10265 | prefix="$acl_final_prefix" |
| 10266 | acl_save_exec_prefix="$exec_prefix" |
| 10267 | exec_prefix="$acl_final_exec_prefix" |
| 10268 | eval x=\"$x\" |
| 10269 | exec_prefix="$acl_save_exec_prefix" |
| 10270 | prefix="$acl_save_prefix" |
| 10271 | |
| 10272 | if test "X$x" = "X-L$additional_libdir"; then |
| 10273 | haveit=yes |
| 10274 | break |
| 10275 | fi |
| 10276 | done |
| 10277 | if test -z "$haveit"; then |
| 10278 | if test -d "$additional_libdir"; then |
| 10279 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10280 | fi |
| 10281 | fi |
| 10282 | haveit= |
| 10283 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10284 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10285 | acl_save_prefix="$prefix" |
| 10286 | prefix="$acl_final_prefix" |
| 10287 | acl_save_exec_prefix="$exec_prefix" |
| 10288 | exec_prefix="$acl_final_exec_prefix" |
| 10289 | eval x=\"$x\" |
| 10290 | exec_prefix="$acl_save_exec_prefix" |
| 10291 | prefix="$acl_save_prefix" |
| 10292 | |
| 10293 | if test "X$x" = "X-L$additional_libdir"; then |
| 10294 | haveit=yes |
| 10295 | break |
| 10296 | fi |
| 10297 | done |
| 10298 | if test -z "$haveit"; then |
| 10299 | if test -d "$additional_libdir"; then |
| 10300 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10301 | fi |
| 10302 | fi |
| 10303 | fi |
| 10304 | fi |
| 10305 | ;; |
| 10306 | -R*) |
| 10307 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10308 | if test "$enable_rpath" != no; then |
| 10309 | haveit= |
| 10310 | for x in $rpathdirs; do |
| 10311 | if test "X$x" = "X$dir"; then |
| 10312 | haveit=yes |
| 10313 | break |
| 10314 | fi |
| 10315 | done |
| 10316 | if test -z "$haveit"; then |
| 10317 | rpathdirs="$rpathdirs $dir" |
| 10318 | fi |
| 10319 | haveit= |
| 10320 | for x in $ltrpathdirs; do |
| 10321 | if test "X$x" = "X$dir"; then |
| 10322 | haveit=yes |
| 10323 | break |
| 10324 | fi |
| 10325 | done |
| 10326 | if test -z "$haveit"; then |
| 10327 | ltrpathdirs="$ltrpathdirs $dir" |
| 10328 | fi |
| 10329 | fi |
| 10330 | ;; |
| 10331 | -l*) |
| 10332 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10333 | ;; |
| 10334 | *.la) |
| 10335 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10336 | ;; |
| 10337 | *) |
| 10338 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10339 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10340 | ;; |
| 10341 | esac |
| 10342 | done |
| 10343 | fi |
| 10344 | else |
| 10345 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10346 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10347 | fi |
| 10348 | fi |
| 10349 | fi |
| 10350 | done |
| 10351 | done |
| 10352 | if test "X$rpathdirs" != "X"; then |
| 10353 | if test -n "$hardcode_libdir_separator"; then |
| 10354 | alldirs= |
| 10355 | for found_dir in $rpathdirs; do |
| 10356 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10357 | done |
| 10358 | acl_save_libdir="$libdir" |
| 10359 | libdir="$alldirs" |
| 10360 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10361 | libdir="$acl_save_libdir" |
| 10362 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10363 | else |
| 10364 | for found_dir in $rpathdirs; do |
| 10365 | acl_save_libdir="$libdir" |
| 10366 | libdir="$found_dir" |
| 10367 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10368 | libdir="$acl_save_libdir" |
| 10369 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10370 | done |
| 10371 | fi |
| 10372 | fi |
| 10373 | if test "X$ltrpathdirs" != "X"; then |
| 10374 | for found_dir in $ltrpathdirs; do |
| 10375 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10376 | done |
| 10377 | fi |
| 10378 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10379 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10380 | 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] | 10381 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10383 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10384 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10385 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10386 | gt_save_LIBS="$LIBS" |
| 10387 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10388 | cat >conftest.$ac_ext <<_ACEOF |
| 10389 | /* confdefs.h. */ |
| 10390 | _ACEOF |
| 10391 | cat confdefs.h >>conftest.$ac_ext |
| 10392 | cat >>conftest.$ac_ext <<_ACEOF |
| 10393 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10394 | #include <libintl.h> |
| 10395 | extern int _nl_msg_cat_cntr; |
| 10396 | extern |
| 10397 | #ifdef __cplusplus |
| 10398 | "C" |
| 10399 | #endif |
| 10400 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10401 | int |
| 10402 | main () |
| 10403 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10404 | bindtextdomain ("", ""); |
| 10405 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10406 | ; |
| 10407 | return 0; |
| 10408 | } |
| 10409 | _ACEOF |
| 10410 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10411 | if { (ac_try="$ac_link" |
| 10412 | case "(($ac_try" in |
| 10413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10414 | *) ac_try_echo=$ac_try;; |
| 10415 | esac |
| 10416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10417 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10418 | ac_status=$? |
| 10419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10420 | rm -f conftest.er1 |
| 10421 | cat conftest.err >&5 |
| 10422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10423 | (exit $ac_status); } && { |
| 10424 | test -z "$ac_c_werror_flag" || |
| 10425 | test ! -s conftest.err |
| 10426 | } && test -s conftest$ac_exeext && |
| 10427 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10428 | gt_cv_func_gnugettext1_libintl=yes |
| 10429 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | echo "$as_me: failed program was:" >&5 |
| 10431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10432 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10433 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10434 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10435 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10436 | 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] | 10437 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10438 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10439 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10440 | cat >conftest.$ac_ext <<_ACEOF |
| 10441 | /* confdefs.h. */ |
| 10442 | _ACEOF |
| 10443 | cat confdefs.h >>conftest.$ac_ext |
| 10444 | cat >>conftest.$ac_ext <<_ACEOF |
| 10445 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10446 | #include <libintl.h> |
| 10447 | extern int _nl_msg_cat_cntr; |
| 10448 | extern |
| 10449 | #ifdef __cplusplus |
| 10450 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10451 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10452 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10453 | int |
| 10454 | main () |
| 10455 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10456 | bindtextdomain ("", ""); |
| 10457 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10458 | ; |
| 10459 | return 0; |
| 10460 | } |
| 10461 | _ACEOF |
| 10462 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10463 | if { (ac_try="$ac_link" |
| 10464 | case "(($ac_try" in |
| 10465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10466 | *) ac_try_echo=$ac_try;; |
| 10467 | esac |
| 10468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10469 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10470 | ac_status=$? |
| 10471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10472 | rm -f conftest.er1 |
| 10473 | cat conftest.err >&5 |
| 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10475 | (exit $ac_status); } && { |
| 10476 | test -z "$ac_c_werror_flag" || |
| 10477 | test ! -s conftest.err |
| 10478 | } && test -s conftest$ac_exeext && |
| 10479 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10480 | LIBINTL="$LIBINTL $LIBICONV" |
| 10481 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10482 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10483 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10484 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10485 | echo "$as_me: failed program was:" >&5 |
| 10486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10487 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10488 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10489 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10490 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10491 | 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] | 10492 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10493 | fi |
| 10494 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10495 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10496 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10497 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10498 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10499 | fi |
| 10500 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10501 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10502 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10503 | && test "$PACKAGE" != gettext-runtime \ |
| 10504 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10505 | gt_use_preinstalled_gnugettext=yes |
| 10506 | else |
| 10507 | LIBINTL= |
| 10508 | LTLIBINTL= |
| 10509 | INCINTL= |
| 10510 | fi |
| 10511 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10512 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10513 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10514 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10515 | fi |
| 10516 | fi |
| 10517 | |
| 10518 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10519 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10520 | USE_INCLUDED_LIBINTL=yes |
| 10521 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10522 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10523 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10524 | fi |
| 10525 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10526 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10527 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10528 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10529 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10530 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10531 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10532 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10533 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10534 | |
| 10535 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10536 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10537 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10538 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10539 | else |
| 10540 | USE_NLS=no |
| 10541 | fi |
| 10542 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10544 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10545 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10546 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10547 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10548 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10549 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10550 | 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] | 10551 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10552 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10553 | gt_source="external libintl" |
| 10554 | else |
| 10555 | gt_source="libc" |
| 10556 | fi |
| 10557 | else |
| 10558 | gt_source="included intl directory" |
| 10559 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10560 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10561 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10562 | fi |
| 10563 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10564 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10566 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10567 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10568 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10569 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10570 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10571 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10572 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10573 | for element in $INCINTL; do |
| 10574 | haveit= |
| 10575 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10576 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10577 | acl_save_prefix="$prefix" |
| 10578 | prefix="$acl_final_prefix" |
| 10579 | acl_save_exec_prefix="$exec_prefix" |
| 10580 | exec_prefix="$acl_final_exec_prefix" |
| 10581 | eval x=\"$x\" |
| 10582 | exec_prefix="$acl_save_exec_prefix" |
| 10583 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10584 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10585 | if test "X$x" = "X$element"; then |
| 10586 | haveit=yes |
| 10587 | break |
| 10588 | fi |
| 10589 | done |
| 10590 | if test -z "$haveit"; then |
| 10591 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10592 | fi |
| 10593 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10594 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10595 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10596 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10597 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10598 | cat >>confdefs.h <<\_ACEOF |
| 10599 | #define HAVE_GETTEXT 1 |
| 10600 | _ACEOF |
| 10601 | |
| 10602 | |
| 10603 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10604 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10605 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10606 | |
| 10607 | fi |
| 10608 | |
| 10609 | POSUB=po |
| 10610 | fi |
| 10611 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10612 | |
| 10613 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10614 | BUILD_INCLUDED_LIBINTL=yes |
| 10615 | fi |
| 10616 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10617 | |
| 10618 | |
| 10619 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10620 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10621 | nls_cv_header_intl= |
| 10622 | nls_cv_header_libgt= |
| 10623 | |
| 10624 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10625 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10626 | |
| 10627 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10628 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10629 | |
| 10630 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10631 | |
| 10632 | |
| 10633 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10634 | INTLOBJS="\$(GETTOBJS)" |
| 10635 | fi |
| 10636 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10637 | |
| 10638 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10639 | |
| 10640 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10641 | |
| 10642 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10643 | |
| 10644 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10645 | |
| 10646 | |
| 10647 | |
| 10648 | |
| 10649 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10650 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10651 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10652 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10653 | 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] | 10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10655 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10657 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10658 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10659 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10660 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10661 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10662 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10663 | *@@@%%%=?*=@@@%%%*) |
| 10664 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10665 | *) |
| 10666 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10667 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10668 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10669 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10670 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10671 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10672 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10673 | SET_MAKE= |
| 10674 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10676 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10677 | SET_MAKE="MAKE=${MAKE-make}" |
| 10678 | fi |
| 10679 | |
| 10680 | # Extract the first word of "ln", so it can be a program name with args. |
| 10681 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10682 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10684 | if test "${ac_cv_path_LN+set}" = set; then |
| 10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10687 | case $LN in |
| 10688 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10689 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10690 | ;; |
| 10691 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10693 | for as_dir in $PATH |
| 10694 | do |
| 10695 | IFS=$as_save_IFS |
| 10696 | test -z "$as_dir" && as_dir=. |
| 10697 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10698 | 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] | 10699 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10701 | break 2 |
| 10702 | fi |
| 10703 | done |
| 10704 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10705 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10706 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10707 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10708 | ;; |
| 10709 | esac |
| 10710 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10712 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10713 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10714 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10715 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10716 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10717 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10718 | fi |
| 10719 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10720 | |
| 10721 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10722 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10723 | LN_S=$as_ln_s |
| 10724 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10725 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10726 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10727 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10728 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10729 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10730 | fi |
| 10731 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10732 | # Extract the first word of "mv", so it can be a program name with args. |
| 10733 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10736 | if test "${ac_cv_path_MV+set}" = set; then |
| 10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10738 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10739 | case $MV in |
| 10740 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10741 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10742 | ;; |
| 10743 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10745 | for as_dir in $PATH |
| 10746 | do |
| 10747 | IFS=$as_save_IFS |
| 10748 | test -z "$as_dir" && as_dir=. |
| 10749 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10750 | 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] | 10751 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10753 | break 2 |
| 10754 | fi |
| 10755 | done |
| 10756 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10757 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10758 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10759 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10760 | ;; |
| 10761 | esac |
| 10762 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10764 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10765 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10766 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10767 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10768 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10769 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10770 | fi |
| 10771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10772 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10773 | # Extract the first word of "cp", so it can be a program name with args. |
| 10774 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10775 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10777 | if test "${ac_cv_path_CP+set}" = set; then |
| 10778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10779 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10780 | case $CP in |
| 10781 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10782 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10783 | ;; |
| 10784 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10786 | for as_dir in $PATH |
| 10787 | do |
| 10788 | IFS=$as_save_IFS |
| 10789 | test -z "$as_dir" && as_dir=. |
| 10790 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10791 | 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] | 10792 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10794 | break 2 |
| 10795 | fi |
| 10796 | done |
| 10797 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10798 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10799 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10800 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10801 | ;; |
| 10802 | esac |
| 10803 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10804 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10805 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10806 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10807 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10808 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10809 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10810 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10811 | fi |
| 10812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10813 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10814 | # Extract the first word of "rm", so it can be a program name with args. |
| 10815 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10816 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10818 | if test "${ac_cv_path_RM+set}" = set; then |
| 10819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10820 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10821 | case $RM in |
| 10822 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10823 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10824 | ;; |
| 10825 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10827 | for as_dir in $PATH |
| 10828 | do |
| 10829 | IFS=$as_save_IFS |
| 10830 | test -z "$as_dir" && as_dir=. |
| 10831 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10832 | 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] | 10833 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10835 | break 2 |
| 10836 | fi |
| 10837 | done |
| 10838 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10839 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10840 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10841 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10842 | ;; |
| 10843 | esac |
| 10844 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10845 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10846 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10847 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 10848 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10849 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10850 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10851 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10852 | fi |
| 10853 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10854 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10855 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10856 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10857 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10859 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10861 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10862 | case $CHMOD in |
| 10863 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10864 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10865 | ;; |
| 10866 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10868 | for as_dir in $PATH |
| 10869 | do |
| 10870 | IFS=$as_save_IFS |
| 10871 | test -z "$as_dir" && as_dir=. |
| 10872 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10873 | 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] | 10874 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10876 | break 2 |
| 10877 | fi |
| 10878 | done |
| 10879 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10880 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10881 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10882 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10883 | ;; |
| 10884 | esac |
| 10885 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10886 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10887 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10888 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10889 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10890 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10891 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10892 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10893 | fi |
| 10894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10895 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10896 | for ac_prog in gawk mawk nawk awk |
| 10897 | do |
| 10898 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10899 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10902 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10904 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10905 | if test -n "$AWK"; then |
| 10906 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10907 | else |
| 10908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10909 | for as_dir in $PATH |
| 10910 | do |
| 10911 | IFS=$as_save_IFS |
| 10912 | test -z "$as_dir" && as_dir=. |
| 10913 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10914 | 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] | 10915 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10917 | break 2 |
| 10918 | fi |
| 10919 | done |
| 10920 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10921 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10922 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10923 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10924 | fi |
| 10925 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10926 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10927 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10928 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10929 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10931 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10932 | fi |
| 10933 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10934 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10935 | test -n "$AWK" && break |
| 10936 | done |
| 10937 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10938 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 10939 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 10940 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10942 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10943 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10944 | then ac_cv_path_EGREP="$GREP -E" |
| 10945 | else |
| 10946 | # Extract the first word of "egrep" to use in msg output |
| 10947 | if test -z "$EGREP"; then |
| 10948 | set dummy egrep; ac_prog_name=$2 |
| 10949 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 10950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10951 | else |
| 10952 | ac_path_EGREP_found=false |
| 10953 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10955 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10956 | do |
| 10957 | IFS=$as_save_IFS |
| 10958 | test -z "$as_dir" && as_dir=. |
| 10959 | for ac_prog in egrep; do |
| 10960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10961 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10962 | { 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] | 10963 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 10964 | # Check for GNU $ac_path_EGREP |
| 10965 | case `"$ac_path_EGREP" --version 2>&1` in |
| 10966 | *GNU*) |
| 10967 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10968 | *) |
| 10969 | ac_count=0 |
| 10970 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 10971 | while : |
| 10972 | do |
| 10973 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10974 | mv "conftest.tmp" "conftest.in" |
| 10975 | cp "conftest.in" "conftest.nl" |
| 10976 | echo 'EGREP' >> "conftest.nl" |
| 10977 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10978 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10979 | ac_count=`expr $ac_count + 1` |
| 10980 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10981 | # Best one so far, save it but keep looking for a better one |
| 10982 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 10983 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10984 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10985 | # 10*(2^10) chars as input seems more than enough |
| 10986 | test $ac_count -gt 10 && break |
| 10987 | done |
| 10988 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10989 | esac |
| 10990 | |
| 10991 | |
| 10992 | $ac_path_EGREP_found && break 3 |
| 10993 | done |
| 10994 | done |
| 10995 | |
| 10996 | done |
| 10997 | IFS=$as_save_IFS |
| 10998 | |
| 10999 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11000 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11001 | |
| 11002 | EGREP="$ac_cv_path_EGREP" |
| 11003 | if test -z "$EGREP"; then |
| 11004 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11005 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11006 | { (exit 1); exit 1; }; } |
| 11007 | fi |
| 11008 | |
| 11009 | else |
| 11010 | ac_cv_path_EGREP=$EGREP |
| 11011 | fi |
| 11012 | |
| 11013 | |
| 11014 | fi |
| 11015 | fi |
| 11016 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11017 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11018 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11019 | |
| 11020 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11021 | # Extract the first word of "sed", so it can be a program name with args. |
| 11022 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11025 | if test "${ac_cv_path_SED+set}" = set; then |
| 11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11027 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11028 | case $SED in |
| 11029 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11030 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11031 | ;; |
| 11032 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11034 | for as_dir in $PATH |
| 11035 | do |
| 11036 | IFS=$as_save_IFS |
| 11037 | test -z "$as_dir" && as_dir=. |
| 11038 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11039 | 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] | 11040 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11042 | break 2 |
| 11043 | fi |
| 11044 | done |
| 11045 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11046 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11047 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11048 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11049 | ;; |
| 11050 | esac |
| 11051 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11052 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11053 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11054 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11055 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11056 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11057 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11058 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11059 | fi |
| 11060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11061 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11062 | # Extract the first word of "perl", so it can be a program name with args. |
| 11063 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11066 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11068 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11069 | case $PERL in |
| 11070 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11071 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11072 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11073 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11075 | for as_dir in $PATH |
| 11076 | do |
| 11077 | IFS=$as_save_IFS |
| 11078 | test -z "$as_dir" && as_dir=. |
| 11079 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11080 | 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] | 11081 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11083 | break 2 |
| 11084 | fi |
| 11085 | done |
| 11086 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11087 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11088 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11089 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11090 | ;; |
| 11091 | esac |
| 11092 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11093 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11094 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11095 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11096 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11097 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11099 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11100 | fi |
| 11101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11102 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11103 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11104 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11107 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11109 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11110 | case $LDCONFIG in |
| 11111 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11112 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11113 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11114 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11116 | for as_dir in $PATH |
| 11117 | do |
| 11118 | IFS=$as_save_IFS |
| 11119 | test -z "$as_dir" && as_dir=. |
| 11120 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11121 | 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] | 11122 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11124 | break 2 |
| 11125 | fi |
| 11126 | done |
| 11127 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11128 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11129 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11130 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11131 | ;; |
| 11132 | esac |
| 11133 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11134 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11135 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11136 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11137 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11138 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11139 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11140 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11141 | fi |
| 11142 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11143 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11144 | if test -n "$ac_tool_prefix"; then |
| 11145 | # 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] | 11146 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11149 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11151 | else |
| 11152 | if test -n "$AR"; then |
| 11153 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11154 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11156 | for as_dir in $PATH |
| 11157 | do |
| 11158 | IFS=$as_save_IFS |
| 11159 | test -z "$as_dir" && as_dir=. |
| 11160 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11161 | 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] | 11162 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11164 | break 2 |
| 11165 | fi |
| 11166 | done |
| 11167 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11168 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11169 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11170 | fi |
| 11171 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11172 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11173 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11174 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11175 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11176 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11177 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11178 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11179 | fi |
| 11180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11182 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11183 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11184 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11185 | # Extract the first word of "ar", so it can be a program name with args. |
| 11186 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11189 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11191 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11192 | if test -n "$ac_ct_AR"; then |
| 11193 | 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] | 11194 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11196 | for as_dir in $PATH |
| 11197 | do |
| 11198 | IFS=$as_save_IFS |
| 11199 | test -z "$as_dir" && as_dir=. |
| 11200 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11201 | 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] | 11202 | ac_cv_prog_ac_ct_AR="ar" |
| 11203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11204 | break 2 |
| 11205 | fi |
| 11206 | done |
| 11207 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11208 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11209 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11210 | fi |
| 11211 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11212 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11213 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11214 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11215 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11216 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11217 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11218 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11219 | fi |
| 11220 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11221 | if test "x$ac_ct_AR" = x; then |
| 11222 | AR="ar" |
| 11223 | else |
| 11224 | case $cross_compiling:$ac_tool_warned in |
| 11225 | yes:) |
| 11226 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11227 | whose name does not start with the host triplet. If you think this |
| 11228 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11229 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11230 | whose name does not start with the host triplet. If you think this |
| 11231 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11232 | ac_tool_warned=yes ;; |
| 11233 | esac |
| 11234 | AR=$ac_ct_AR |
| 11235 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11236 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11238 | fi |
| 11239 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11240 | if test -n "$ac_tool_prefix"; then |
| 11241 | # 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] | 11242 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11245 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11247 | else |
| 11248 | if test -n "$RANLIB"; then |
| 11249 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11250 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11252 | for as_dir in $PATH |
| 11253 | do |
| 11254 | IFS=$as_save_IFS |
| 11255 | test -z "$as_dir" && as_dir=. |
| 11256 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11257 | 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] | 11258 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11260 | break 2 |
| 11261 | fi |
| 11262 | done |
| 11263 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11264 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11265 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11266 | fi |
| 11267 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11268 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11269 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11270 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11271 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11272 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11274 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11275 | fi |
| 11276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11277 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11278 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11279 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11280 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11281 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11282 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11285 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11287 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11288 | if test -n "$ac_ct_RANLIB"; then |
| 11289 | 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] | 11290 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11292 | for as_dir in $PATH |
| 11293 | do |
| 11294 | IFS=$as_save_IFS |
| 11295 | test -z "$as_dir" && as_dir=. |
| 11296 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11297 | 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] | 11298 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11300 | break 2 |
| 11301 | fi |
| 11302 | done |
| 11303 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11304 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11306 | fi |
| 11307 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11309 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11310 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11311 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11312 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11313 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11314 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | fi |
| 11316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11317 | if test "x$ac_ct_RANLIB" = x; then |
| 11318 | RANLIB=":" |
| 11319 | else |
| 11320 | case $cross_compiling:$ac_tool_warned in |
| 11321 | yes:) |
| 11322 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11323 | whose name does not start with the host triplet. If you think this |
| 11324 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11325 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11326 | whose name does not start with the host triplet. If you think this |
| 11327 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11328 | ac_tool_warned=yes ;; |
| 11329 | esac |
| 11330 | RANLIB=$ac_ct_RANLIB |
| 11331 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11332 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11333 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11334 | fi |
| 11335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11336 | if test -n "$ac_tool_prefix"; then |
| 11337 | # 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] | 11338 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11341 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11343 | else |
| 11344 | if test -n "$STRIP"; then |
| 11345 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11346 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11348 | for as_dir in $PATH |
| 11349 | do |
| 11350 | IFS=$as_save_IFS |
| 11351 | test -z "$as_dir" && as_dir=. |
| 11352 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11353 | 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] | 11354 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11356 | break 2 |
| 11357 | fi |
| 11358 | done |
| 11359 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11360 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11361 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11362 | fi |
| 11363 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11364 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11365 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11366 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11367 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11368 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11370 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11371 | fi |
| 11372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11373 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11374 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11375 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11377 | # Extract the first word of "strip", so it can be a program name with args. |
| 11378 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11381 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11383 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11384 | if test -n "$ac_ct_STRIP"; then |
| 11385 | 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] | 11386 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11388 | for as_dir in $PATH |
| 11389 | do |
| 11390 | IFS=$as_save_IFS |
| 11391 | test -z "$as_dir" && as_dir=. |
| 11392 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11393 | 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] | 11394 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11396 | break 2 |
| 11397 | fi |
| 11398 | done |
| 11399 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11400 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11401 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11402 | fi |
| 11403 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11405 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11406 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11407 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11408 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11410 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11411 | fi |
| 11412 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11413 | if test "x$ac_ct_STRIP" = x; then |
| 11414 | STRIP=":" |
| 11415 | else |
| 11416 | case $cross_compiling:$ac_tool_warned in |
| 11417 | yes:) |
| 11418 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11419 | whose name does not start with the host triplet. If you think this |
| 11420 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11421 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11422 | whose name does not start with the host triplet. If you think this |
| 11423 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11424 | ac_tool_warned=yes ;; |
| 11425 | esac |
| 11426 | STRIP=$ac_ct_STRIP |
| 11427 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11428 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11429 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11430 | fi |
| 11431 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11432 | # Find a good install program. We prefer a C program (faster), |
| 11433 | # so one script is as good as another. But avoid the broken or |
| 11434 | # incompatible versions: |
| 11435 | # SysV /etc/install, /usr/sbin/install |
| 11436 | # SunOS /usr/etc/install |
| 11437 | # IRIX /sbin/install |
| 11438 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11439 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11440 | # 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] | 11441 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11442 | # 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] | 11443 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11444 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11445 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11446 | 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] | 11447 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11448 | if test "${ac_cv_path_install+set}" = set; then |
| 11449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11450 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11452 | for as_dir in $PATH |
| 11453 | do |
| 11454 | IFS=$as_save_IFS |
| 11455 | test -z "$as_dir" && as_dir=. |
| 11456 | # Account for people who put trailing slashes in PATH elements. |
| 11457 | case $as_dir/ in |
| 11458 | ./ | .// | /cC/* | \ |
| 11459 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11460 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11461 | /usr/ucb/* ) ;; |
| 11462 | *) |
| 11463 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11464 | # Don't use installbsd from OSF since it installs stuff as root |
| 11465 | # by default. |
| 11466 | for ac_prog in ginstall scoinst install; do |
| 11467 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11468 | 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] | 11469 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | 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] | 11471 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11472 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11473 | elif test $ac_prog = install && |
| 11474 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11475 | # program-specific install script used by HP pwplus--don't use. |
| 11476 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11477 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11478 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11479 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11480 | fi |
| 11481 | fi |
| 11482 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | done |
| 11484 | ;; |
| 11485 | esac |
| 11486 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11487 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11488 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11489 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11490 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11491 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11492 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11493 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11494 | # As a last resort, use the slow shell script. Don't cache a |
| 11495 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11496 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11497 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11498 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11499 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11500 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11501 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11502 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11503 | |
| 11504 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11505 | # It thinks the first close brace ends the variable substitution. |
| 11506 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11509 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11511 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11512 | # See if we need a separate native compiler. |
| 11513 | if test $cross_compiling = no; then |
| 11514 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11515 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11516 | else |
| 11517 | for ac_prog in gcc cc |
| 11518 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11519 | # 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] | 11520 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11521 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11525 | else |
| 11526 | if test -n "$BUILD_CC"; then |
| 11527 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11530 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11531 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11532 | IFS=$as_save_IFS |
| 11533 | test -z "$as_dir" && as_dir=. |
| 11534 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11535 | 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] | 11536 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11538 | break 2 |
| 11539 | fi |
| 11540 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11541 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11542 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11544 | fi |
| 11545 | fi |
| 11546 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11547 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11548 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11549 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11550 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11552 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11553 | fi |
| 11554 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11555 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11556 | test -n "$BUILD_CC" && break |
| 11557 | done |
| 11558 | |
| 11559 | fi |
| 11560 | |
| 11561 | |
| 11562 | |
| 11563 | |
| 11564 | |
| 11565 | |
| 11566 | |
| 11567 | |
| 11568 | |
| 11569 | |
| 11570 | |
| 11571 | |
| 11572 | |
| 11573 | |
| 11574 | |
| 11575 | |
| 11576 | |
| 11577 | |
| 11578 | |
| 11579 | |
| 11580 | |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | |
| 11585 | |
| 11586 | |
| 11587 | |
| 11588 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11589 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11590 | |
| 11591 | |
| 11592 | 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] | 11593 | do |
| 11594 | 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] | 11595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11596 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11598 | 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] | 11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11603 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11604 | else |
| 11605 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11606 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11608 | cat >conftest.$ac_ext <<_ACEOF |
| 11609 | /* confdefs.h. */ |
| 11610 | _ACEOF |
| 11611 | cat confdefs.h >>conftest.$ac_ext |
| 11612 | cat >>conftest.$ac_ext <<_ACEOF |
| 11613 | /* end confdefs.h. */ |
| 11614 | $ac_includes_default |
| 11615 | #include <$ac_header> |
| 11616 | _ACEOF |
| 11617 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11618 | if { (ac_try="$ac_compile" |
| 11619 | case "(($ac_try" in |
| 11620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11621 | *) ac_try_echo=$ac_try;; |
| 11622 | esac |
| 11623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11624 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11625 | ac_status=$? |
| 11626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11627 | rm -f conftest.er1 |
| 11628 | cat conftest.err >&5 |
| 11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11630 | (exit $ac_status); } && { |
| 11631 | test -z "$ac_c_werror_flag" || |
| 11632 | test ! -s conftest.err |
| 11633 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11634 | ac_header_compiler=yes |
| 11635 | else |
| 11636 | echo "$as_me: failed program was:" >&5 |
| 11637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11638 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11639 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11641 | |
| 11642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11643 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11644 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11645 | |
| 11646 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11647 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11648 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11649 | cat >conftest.$ac_ext <<_ACEOF |
| 11650 | /* confdefs.h. */ |
| 11651 | _ACEOF |
| 11652 | cat confdefs.h >>conftest.$ac_ext |
| 11653 | cat >>conftest.$ac_ext <<_ACEOF |
| 11654 | /* end confdefs.h. */ |
| 11655 | #include <$ac_header> |
| 11656 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11658 | case "(($ac_try" in |
| 11659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11660 | *) ac_try_echo=$ac_try;; |
| 11661 | esac |
| 11662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11664 | ac_status=$? |
| 11665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11666 | rm -f conftest.er1 |
| 11667 | cat conftest.err >&5 |
| 11668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11669 | (exit $ac_status); } >/dev/null && { |
| 11670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11671 | test ! -s conftest.err |
| 11672 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11673 | ac_header_preproc=yes |
| 11674 | else |
| 11675 | echo "$as_me: failed program was:" >&5 |
| 11676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11677 | |
| 11678 | ac_header_preproc=no |
| 11679 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11680 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11681 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11682 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11683 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11684 | |
| 11685 | # So? What about this header? |
| 11686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11687 | yes:no: ) |
| 11688 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11689 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11690 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11691 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11692 | ac_header_preproc=yes |
| 11693 | ;; |
| 11694 | no:yes:* ) |
| 11695 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11696 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11697 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11698 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11699 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11700 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11701 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11702 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11704 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11705 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11706 | 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] | 11707 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11708 | ;; |
| 11709 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11710 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11712 | 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] | 11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11714 | else |
| 11715 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11716 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11717 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11719 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11720 | |
| 11721 | fi |
| 11722 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11723 | cat >>confdefs.h <<_ACEOF |
| 11724 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11725 | _ACEOF |
| 11726 | |
| 11727 | fi |
| 11728 | |
| 11729 | done |
| 11730 | |
| 11731 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11732 | |
| 11733 | for ac_header in sys/disk.h sys/mount.h |
| 11734 | do |
| 11735 | 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] | 11736 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11738 | 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] | 11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11740 | else |
| 11741 | cat >conftest.$ac_ext <<_ACEOF |
| 11742 | /* confdefs.h. */ |
| 11743 | _ACEOF |
| 11744 | cat confdefs.h >>conftest.$ac_ext |
| 11745 | cat >>conftest.$ac_ext <<_ACEOF |
| 11746 | /* end confdefs.h. */ |
| 11747 | |
| 11748 | #if HAVE_SYS_QUEUE_H |
| 11749 | #include <sys/queue.h> |
| 11750 | #endif |
| 11751 | |
| 11752 | |
| 11753 | #include <$ac_header> |
| 11754 | _ACEOF |
| 11755 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11756 | if { (ac_try="$ac_compile" |
| 11757 | case "(($ac_try" in |
| 11758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11759 | *) ac_try_echo=$ac_try;; |
| 11760 | esac |
| 11761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11762 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11763 | ac_status=$? |
| 11764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11765 | rm -f conftest.er1 |
| 11766 | cat conftest.err >&5 |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11768 | (exit $ac_status); } && { |
| 11769 | test -z "$ac_c_werror_flag" || |
| 11770 | test ! -s conftest.err |
| 11771 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11772 | eval "$as_ac_Header=yes" |
| 11773 | else |
| 11774 | echo "$as_me: failed program was:" >&5 |
| 11775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11777 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11778 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11779 | |
| 11780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11781 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11782 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11783 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11784 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11786 | cat >>confdefs.h <<_ACEOF |
| 11787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11788 | _ACEOF |
| 11789 | |
| 11790 | fi |
| 11791 | |
| 11792 | done |
| 11793 | |
| 11794 | |
| 11795 | for ac_header in net/if.h |
| 11796 | do |
| 11797 | 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] | 11798 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11800 | 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] | 11801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11802 | else |
| 11803 | cat >conftest.$ac_ext <<_ACEOF |
| 11804 | /* confdefs.h. */ |
| 11805 | _ACEOF |
| 11806 | cat confdefs.h >>conftest.$ac_ext |
| 11807 | cat >>conftest.$ac_ext <<_ACEOF |
| 11808 | /* end confdefs.h. */ |
| 11809 | |
| 11810 | #if HAVE_SYS_TYPES_H |
| 11811 | #include <sys/types.h> |
| 11812 | #endif |
| 11813 | #if HAVE_SYS_SOCKET |
| 11814 | #include <sys/socket.h> |
| 11815 | #endif |
| 11816 | |
| 11817 | |
| 11818 | #include <$ac_header> |
| 11819 | _ACEOF |
| 11820 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11821 | if { (ac_try="$ac_compile" |
| 11822 | case "(($ac_try" in |
| 11823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11824 | *) ac_try_echo=$ac_try;; |
| 11825 | esac |
| 11826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11827 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11828 | ac_status=$? |
| 11829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11830 | rm -f conftest.er1 |
| 11831 | cat conftest.err >&5 |
| 11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11833 | (exit $ac_status); } && { |
| 11834 | test -z "$ac_c_werror_flag" || |
| 11835 | test ! -s conftest.err |
| 11836 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11837 | eval "$as_ac_Header=yes" |
| 11838 | else |
| 11839 | echo "$as_me: failed program was:" >&5 |
| 11840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11842 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11844 | |
| 11845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11846 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11847 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11848 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11849 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11851 | cat >>confdefs.h <<_ACEOF |
| 11852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11853 | _ACEOF |
| 11854 | |
| 11855 | fi |
| 11856 | |
| 11857 | done |
| 11858 | |
| 11859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11860 | for ac_func in vprintf |
| 11861 | do |
| 11862 | 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] | 11863 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11864 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11865 | 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] | 11866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11867 | else |
| 11868 | cat >conftest.$ac_ext <<_ACEOF |
| 11869 | /* confdefs.h. */ |
| 11870 | _ACEOF |
| 11871 | cat confdefs.h >>conftest.$ac_ext |
| 11872 | cat >>conftest.$ac_ext <<_ACEOF |
| 11873 | /* end confdefs.h. */ |
| 11874 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11876 | #define $ac_func innocuous_$ac_func |
| 11877 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11878 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11879 | which can conflict with char $ac_func (); below. |
| 11880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11881 | <limits.h> exists even on freestanding compilers. */ |
| 11882 | |
| 11883 | #ifdef __STDC__ |
| 11884 | # include <limits.h> |
| 11885 | #else |
| 11886 | # include <assert.h> |
| 11887 | #endif |
| 11888 | |
| 11889 | #undef $ac_func |
| 11890 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11891 | /* Override any GCC internal prototype to avoid an error. |
| 11892 | Use char because int might match the return type of a GCC |
| 11893 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11894 | #ifdef __cplusplus |
| 11895 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11897 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11898 | /* The GNU C library defines this for functions which it implements |
| 11899 | to always fail with ENOSYS. Some functions are actually named |
| 11900 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11901 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11902 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11903 | #endif |
| 11904 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11905 | int |
| 11906 | main () |
| 11907 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11908 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11909 | ; |
| 11910 | return 0; |
| 11911 | } |
| 11912 | _ACEOF |
| 11913 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11914 | if { (ac_try="$ac_link" |
| 11915 | case "(($ac_try" in |
| 11916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11917 | *) ac_try_echo=$ac_try;; |
| 11918 | esac |
| 11919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11920 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11921 | ac_status=$? |
| 11922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11923 | rm -f conftest.er1 |
| 11924 | cat conftest.err >&5 |
| 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11926 | (exit $ac_status); } && { |
| 11927 | test -z "$ac_c_werror_flag" || |
| 11928 | test ! -s conftest.err |
| 11929 | } && test -s conftest$ac_exeext && |
| 11930 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11931 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11932 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11933 | echo "$as_me: failed program was:" >&5 |
| 11934 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11936 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11937 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11938 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11939 | 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] | 11940 | conftest$ac_exeext conftest.$ac_ext |
| 11941 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11942 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11943 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11944 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11945 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11946 | cat >>confdefs.h <<_ACEOF |
| 11947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11948 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11950 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 11951 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11952 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 11953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11954 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | cat >conftest.$ac_ext <<_ACEOF |
| 11956 | /* confdefs.h. */ |
| 11957 | _ACEOF |
| 11958 | cat confdefs.h >>conftest.$ac_ext |
| 11959 | cat >>conftest.$ac_ext <<_ACEOF |
| 11960 | /* end confdefs.h. */ |
| 11961 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 11962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11963 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11964 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11965 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11966 | which can conflict with char _doprnt (); below. |
| 11967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11968 | <limits.h> exists even on freestanding compilers. */ |
| 11969 | |
| 11970 | #ifdef __STDC__ |
| 11971 | # include <limits.h> |
| 11972 | #else |
| 11973 | # include <assert.h> |
| 11974 | #endif |
| 11975 | |
| 11976 | #undef _doprnt |
| 11977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11978 | /* Override any GCC internal prototype to avoid an error. |
| 11979 | Use char because int might match the return type of a GCC |
| 11980 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | #ifdef __cplusplus |
| 11982 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11983 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11984 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11985 | /* The GNU C library defines this for functions which it implements |
| 11986 | to always fail with ENOSYS. Some functions are actually named |
| 11987 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11988 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11989 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11990 | #endif |
| 11991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | int |
| 11993 | main () |
| 11994 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | ; |
| 11997 | return 0; |
| 11998 | } |
| 11999 | _ACEOF |
| 12000 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12001 | if { (ac_try="$ac_link" |
| 12002 | case "(($ac_try" in |
| 12003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12004 | *) ac_try_echo=$ac_try;; |
| 12005 | esac |
| 12006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12007 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12008 | ac_status=$? |
| 12009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12010 | rm -f conftest.er1 |
| 12011 | cat conftest.err >&5 |
| 12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12013 | (exit $ac_status); } && { |
| 12014 | test -z "$ac_c_werror_flag" || |
| 12015 | test ! -s conftest.err |
| 12016 | } && test -s conftest$ac_exeext && |
| 12017 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | echo "$as_me: failed program was:" >&5 |
| 12021 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12023 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12025 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12026 | 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] | 12027 | conftest$ac_exeext conftest.$ac_ext |
| 12028 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12029 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12030 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12031 | if test $ac_cv_func__doprnt = yes; then |
| 12032 | |
| 12033 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12034 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12035 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12036 | |
| 12037 | fi |
| 12038 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12039 | fi |
| 12040 | done |
| 12041 | |
| 12042 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12043 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12044 | 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] | 12045 | 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] | 12046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12047 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12048 | cat >conftest.$ac_ext <<_ACEOF |
| 12049 | /* confdefs.h. */ |
| 12050 | _ACEOF |
| 12051 | cat confdefs.h >>conftest.$ac_ext |
| 12052 | cat >>conftest.$ac_ext <<_ACEOF |
| 12053 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12054 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12055 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12056 | int |
| 12057 | main () |
| 12058 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12059 | static struct dirent ac_aggr; |
| 12060 | if (ac_aggr.d_reclen) |
| 12061 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12062 | ; |
| 12063 | return 0; |
| 12064 | } |
| 12065 | _ACEOF |
| 12066 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12067 | if { (ac_try="$ac_compile" |
| 12068 | case "(($ac_try" in |
| 12069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12070 | *) ac_try_echo=$ac_try;; |
| 12071 | esac |
| 12072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12073 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12074 | ac_status=$? |
| 12075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12076 | rm -f conftest.er1 |
| 12077 | cat conftest.err >&5 |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12079 | (exit $ac_status); } && { |
| 12080 | test -z "$ac_c_werror_flag" || |
| 12081 | test ! -s conftest.err |
| 12082 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12083 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | echo "$as_me: failed program was:" >&5 |
| 12086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12088 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12089 | /* confdefs.h. */ |
| 12090 | _ACEOF |
| 12091 | cat confdefs.h >>conftest.$ac_ext |
| 12092 | cat >>conftest.$ac_ext <<_ACEOF |
| 12093 | /* end confdefs.h. */ |
| 12094 | #include <dirent.h> |
| 12095 | |
| 12096 | int |
| 12097 | main () |
| 12098 | { |
| 12099 | static struct dirent ac_aggr; |
| 12100 | if (sizeof ac_aggr.d_reclen) |
| 12101 | return 0; |
| 12102 | ; |
| 12103 | return 0; |
| 12104 | } |
| 12105 | _ACEOF |
| 12106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | if { (ac_try="$ac_compile" |
| 12108 | case "(($ac_try" in |
| 12109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12110 | *) ac_try_echo=$ac_try;; |
| 12111 | esac |
| 12112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12113 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12114 | ac_status=$? |
| 12115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12116 | rm -f conftest.er1 |
| 12117 | cat conftest.err >&5 |
| 12118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12119 | (exit $ac_status); } && { |
| 12120 | test -z "$ac_c_werror_flag" || |
| 12121 | test ! -s conftest.err |
| 12122 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12123 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12124 | else |
| 12125 | echo "$as_me: failed program was:" >&5 |
| 12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12130 | |
| 12131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12132 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12133 | |
| 12134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12135 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12136 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12137 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12138 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12139 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12140 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12141 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12142 | |
| 12143 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12145 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12146 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12147 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12149 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12150 | cat >conftest.$ac_ext <<_ACEOF |
| 12151 | /* confdefs.h. */ |
| 12152 | _ACEOF |
| 12153 | cat confdefs.h >>conftest.$ac_ext |
| 12154 | cat >>conftest.$ac_ext <<_ACEOF |
| 12155 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12156 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12158 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12159 | int |
| 12160 | main () |
| 12161 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12162 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12163 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12164 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12165 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12166 | ; |
| 12167 | return 0; |
| 12168 | } |
| 12169 | _ACEOF |
| 12170 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12171 | if { (ac_try="$ac_compile" |
| 12172 | case "(($ac_try" in |
| 12173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12174 | *) ac_try_echo=$ac_try;; |
| 12175 | esac |
| 12176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12177 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12178 | ac_status=$? |
| 12179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12180 | rm -f conftest.er1 |
| 12181 | cat conftest.err >&5 |
| 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12183 | (exit $ac_status); } && { |
| 12184 | test -z "$ac_c_werror_flag" || |
| 12185 | test ! -s conftest.err |
| 12186 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12187 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12188 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12189 | echo "$as_me: failed program was:" >&5 |
| 12190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12191 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12192 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12193 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | |
| 12195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12196 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12197 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12198 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12199 | if test $ac_cv_type_ssize_t = yes; then |
| 12200 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12201 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12202 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12203 | |
| 12204 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12205 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12207 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12208 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12210 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12211 | cat >conftest.$ac_ext <<_ACEOF |
| 12212 | /* confdefs.h. */ |
| 12213 | _ACEOF |
| 12214 | cat confdefs.h >>conftest.$ac_ext |
| 12215 | cat >>conftest.$ac_ext <<_ACEOF |
| 12216 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12217 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12218 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12219 | int |
| 12220 | main () |
| 12221 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12222 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12223 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12224 | #endif |
| 12225 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12226 | ; |
| 12227 | return 0; |
| 12228 | } |
| 12229 | _ACEOF |
| 12230 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12231 | if { (ac_try="$ac_compile" |
| 12232 | case "(($ac_try" in |
| 12233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12234 | *) ac_try_echo=$ac_try;; |
| 12235 | esac |
| 12236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12237 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12238 | ac_status=$? |
| 12239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12240 | rm -f conftest.er1 |
| 12241 | cat conftest.err >&5 |
| 12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12243 | (exit $ac_status); } && { |
| 12244 | test -z "$ac_c_werror_flag" || |
| 12245 | test ! -s conftest.err |
| 12246 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12247 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12248 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | echo "$as_me: failed program was:" >&5 |
| 12250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12252 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12253 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12254 | |
| 12255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12257 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12258 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12259 | if test $ac_cv_have_decl_llseek = yes; then |
| 12260 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12261 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12262 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12263 | |
| 12264 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12266 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12267 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12268 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12270 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12271 | cat >conftest.$ac_ext <<_ACEOF |
| 12272 | /* confdefs.h. */ |
| 12273 | _ACEOF |
| 12274 | cat confdefs.h >>conftest.$ac_ext |
| 12275 | cat >>conftest.$ac_ext <<_ACEOF |
| 12276 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12277 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12278 | #define _LARGEFILE64_SOURCE |
| 12279 | #include <unistd.h> |
| 12280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12281 | int |
| 12282 | main () |
| 12283 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12284 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12285 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12286 | #endif |
| 12287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12288 | ; |
| 12289 | return 0; |
| 12290 | } |
| 12291 | _ACEOF |
| 12292 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12293 | if { (ac_try="$ac_compile" |
| 12294 | case "(($ac_try" in |
| 12295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12296 | *) ac_try_echo=$ac_try;; |
| 12297 | esac |
| 12298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12299 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12300 | ac_status=$? |
| 12301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12302 | rm -f conftest.er1 |
| 12303 | cat conftest.err >&5 |
| 12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12305 | (exit $ac_status); } && { |
| 12306 | test -z "$ac_c_werror_flag" || |
| 12307 | test ! -s conftest.err |
| 12308 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12309 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12310 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12311 | echo "$as_me: failed program was:" >&5 |
| 12312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12313 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12314 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12315 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12316 | |
| 12317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12318 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12319 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12320 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12321 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12322 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12323 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12324 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12325 | |
| 12326 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12327 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12328 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12329 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12330 | ac_cv_sizeof_short=2 |
| 12331 | ac_cv_sizeof_int=4 |
| 12332 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12333 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12334 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 12335 | 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] | 12336 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12337 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12338 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12339 | if test "${ac_cv_type_short+set}" = set; then |
| 12340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12341 | else |
| 12342 | cat >conftest.$ac_ext <<_ACEOF |
| 12343 | /* confdefs.h. */ |
| 12344 | _ACEOF |
| 12345 | cat confdefs.h >>conftest.$ac_ext |
| 12346 | cat >>conftest.$ac_ext <<_ACEOF |
| 12347 | /* end confdefs.h. */ |
| 12348 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12349 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12350 | int |
| 12351 | main () |
| 12352 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12353 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12354 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12355 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12356 | return 0; |
| 12357 | ; |
| 12358 | return 0; |
| 12359 | } |
| 12360 | _ACEOF |
| 12361 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12362 | if { (ac_try="$ac_compile" |
| 12363 | case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
| 12367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12368 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12369 | ac_status=$? |
| 12370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12371 | rm -f conftest.er1 |
| 12372 | cat conftest.err >&5 |
| 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12374 | (exit $ac_status); } && { |
| 12375 | test -z "$ac_c_werror_flag" || |
| 12376 | test ! -s conftest.err |
| 12377 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12378 | ac_cv_type_short=yes |
| 12379 | else |
| 12380 | echo "$as_me: failed program was:" >&5 |
| 12381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12383 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12384 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12387 | fi |
| 12388 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12389 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12390 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12391 | # The cast to long int works around a bug in the HP C Compiler |
| 12392 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12393 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12394 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12395 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12396 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12397 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | if test "$cross_compiling" = yes; then |
| 12401 | # Depending upon the size, compute the lo and hi bounds. |
| 12402 | cat >conftest.$ac_ext <<_ACEOF |
| 12403 | /* confdefs.h. */ |
| 12404 | _ACEOF |
| 12405 | cat confdefs.h >>conftest.$ac_ext |
| 12406 | cat >>conftest.$ac_ext <<_ACEOF |
| 12407 | /* end confdefs.h. */ |
| 12408 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12409 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12410 | int |
| 12411 | main () |
| 12412 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12413 | 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] | 12414 | test_array [0] = 0 |
| 12415 | |
| 12416 | ; |
| 12417 | return 0; |
| 12418 | } |
| 12419 | _ACEOF |
| 12420 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12421 | if { (ac_try="$ac_compile" |
| 12422 | case "(($ac_try" in |
| 12423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12424 | *) ac_try_echo=$ac_try;; |
| 12425 | esac |
| 12426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12427 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12428 | ac_status=$? |
| 12429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12430 | rm -f conftest.er1 |
| 12431 | cat conftest.err >&5 |
| 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12433 | (exit $ac_status); } && { |
| 12434 | test -z "$ac_c_werror_flag" || |
| 12435 | test ! -s conftest.err |
| 12436 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | ac_lo=0 ac_mid=0 |
| 12438 | while :; do |
| 12439 | cat >conftest.$ac_ext <<_ACEOF |
| 12440 | /* confdefs.h. */ |
| 12441 | _ACEOF |
| 12442 | cat confdefs.h >>conftest.$ac_ext |
| 12443 | cat >>conftest.$ac_ext <<_ACEOF |
| 12444 | /* end confdefs.h. */ |
| 12445 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12446 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12447 | int |
| 12448 | main () |
| 12449 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12450 | 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] | 12451 | test_array [0] = 0 |
| 12452 | |
| 12453 | ; |
| 12454 | return 0; |
| 12455 | } |
| 12456 | _ACEOF |
| 12457 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12458 | if { (ac_try="$ac_compile" |
| 12459 | case "(($ac_try" in |
| 12460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12461 | *) ac_try_echo=$ac_try;; |
| 12462 | esac |
| 12463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12464 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12465 | ac_status=$? |
| 12466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12467 | rm -f conftest.er1 |
| 12468 | cat conftest.err >&5 |
| 12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12470 | (exit $ac_status); } && { |
| 12471 | test -z "$ac_c_werror_flag" || |
| 12472 | test ! -s conftest.err |
| 12473 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12474 | ac_hi=$ac_mid; break |
| 12475 | else |
| 12476 | echo "$as_me: failed program was:" >&5 |
| 12477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12479 | ac_lo=`expr $ac_mid + 1` |
| 12480 | if test $ac_lo -le $ac_mid; then |
| 12481 | ac_lo= ac_hi= |
| 12482 | break |
| 12483 | fi |
| 12484 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12486 | |
| 12487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12488 | done |
| 12489 | else |
| 12490 | echo "$as_me: failed program was:" >&5 |
| 12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12492 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12493 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12494 | /* confdefs.h. */ |
| 12495 | _ACEOF |
| 12496 | cat confdefs.h >>conftest.$ac_ext |
| 12497 | cat >>conftest.$ac_ext <<_ACEOF |
| 12498 | /* end confdefs.h. */ |
| 12499 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12500 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12501 | int |
| 12502 | main () |
| 12503 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12504 | 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] | 12505 | test_array [0] = 0 |
| 12506 | |
| 12507 | ; |
| 12508 | return 0; |
| 12509 | } |
| 12510 | _ACEOF |
| 12511 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12512 | if { (ac_try="$ac_compile" |
| 12513 | case "(($ac_try" in |
| 12514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12515 | *) ac_try_echo=$ac_try;; |
| 12516 | esac |
| 12517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12518 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | ac_status=$? |
| 12520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12521 | rm -f conftest.er1 |
| 12522 | cat conftest.err >&5 |
| 12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12524 | (exit $ac_status); } && { |
| 12525 | test -z "$ac_c_werror_flag" || |
| 12526 | test ! -s conftest.err |
| 12527 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12528 | ac_hi=-1 ac_mid=-1 |
| 12529 | while :; do |
| 12530 | cat >conftest.$ac_ext <<_ACEOF |
| 12531 | /* confdefs.h. */ |
| 12532 | _ACEOF |
| 12533 | cat confdefs.h >>conftest.$ac_ext |
| 12534 | cat >>conftest.$ac_ext <<_ACEOF |
| 12535 | /* end confdefs.h. */ |
| 12536 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12537 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12538 | int |
| 12539 | main () |
| 12540 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12541 | 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] | 12542 | test_array [0] = 0 |
| 12543 | |
| 12544 | ; |
| 12545 | return 0; |
| 12546 | } |
| 12547 | _ACEOF |
| 12548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12549 | if { (ac_try="$ac_compile" |
| 12550 | case "(($ac_try" in |
| 12551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12552 | *) ac_try_echo=$ac_try;; |
| 12553 | esac |
| 12554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12555 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12556 | ac_status=$? |
| 12557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12558 | rm -f conftest.er1 |
| 12559 | cat conftest.err >&5 |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12561 | (exit $ac_status); } && { |
| 12562 | test -z "$ac_c_werror_flag" || |
| 12563 | test ! -s conftest.err |
| 12564 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12565 | ac_lo=$ac_mid; break |
| 12566 | else |
| 12567 | echo "$as_me: failed program was:" >&5 |
| 12568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12570 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12571 | if test $ac_mid -le $ac_hi; then |
| 12572 | ac_lo= ac_hi= |
| 12573 | break |
| 12574 | fi |
| 12575 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12577 | |
| 12578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12579 | done |
| 12580 | else |
| 12581 | echo "$as_me: failed program was:" >&5 |
| 12582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12584 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12586 | |
| 12587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12589 | |
| 12590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12591 | # Binary search between lo and hi bounds. |
| 12592 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12593 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12594 | cat >conftest.$ac_ext <<_ACEOF |
| 12595 | /* confdefs.h. */ |
| 12596 | _ACEOF |
| 12597 | cat confdefs.h >>conftest.$ac_ext |
| 12598 | cat >>conftest.$ac_ext <<_ACEOF |
| 12599 | /* end confdefs.h. */ |
| 12600 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12601 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12602 | int |
| 12603 | main () |
| 12604 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12605 | 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] | 12606 | test_array [0] = 0 |
| 12607 | |
| 12608 | ; |
| 12609 | return 0; |
| 12610 | } |
| 12611 | _ACEOF |
| 12612 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12613 | if { (ac_try="$ac_compile" |
| 12614 | case "(($ac_try" in |
| 12615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12616 | *) ac_try_echo=$ac_try;; |
| 12617 | esac |
| 12618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12619 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12620 | ac_status=$? |
| 12621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12622 | rm -f conftest.er1 |
| 12623 | cat conftest.err >&5 |
| 12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12625 | (exit $ac_status); } && { |
| 12626 | test -z "$ac_c_werror_flag" || |
| 12627 | test ! -s conftest.err |
| 12628 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12629 | ac_hi=$ac_mid |
| 12630 | else |
| 12631 | echo "$as_me: failed program was:" >&5 |
| 12632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12633 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12634 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12636 | |
| 12637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12638 | done |
| 12639 | case $ac_lo in |
| 12640 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12641 | '') if test "$ac_cv_type_short" = yes; then |
| 12642 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12643 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12644 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12645 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12646 | { (exit 77); exit 77; }; } |
| 12647 | else |
| 12648 | ac_cv_sizeof_short=0 |
| 12649 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12651 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12652 | cat >conftest.$ac_ext <<_ACEOF |
| 12653 | /* confdefs.h. */ |
| 12654 | _ACEOF |
| 12655 | cat confdefs.h >>conftest.$ac_ext |
| 12656 | cat >>conftest.$ac_ext <<_ACEOF |
| 12657 | /* end confdefs.h. */ |
| 12658 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12659 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12660 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12661 | 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] | 12662 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12663 | #include <stdlib.h> |
| 12664 | int |
| 12665 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12666 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12667 | |
| 12668 | FILE *f = fopen ("conftest.val", "w"); |
| 12669 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12670 | return 1; |
| 12671 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12672 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12673 | long int i = longval (); |
| 12674 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12675 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12676 | fprintf (f, "%ld\n", i); |
| 12677 | } |
| 12678 | else |
| 12679 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12680 | unsigned long int i = ulongval (); |
| 12681 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12682 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12683 | fprintf (f, "%lu\n", i); |
| 12684 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12685 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12686 | |
| 12687 | ; |
| 12688 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12689 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | _ACEOF |
| 12691 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12692 | if { (ac_try="$ac_link" |
| 12693 | case "(($ac_try" in |
| 12694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12695 | *) ac_try_echo=$ac_try;; |
| 12696 | esac |
| 12697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12698 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12699 | ac_status=$? |
| 12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12702 | { (case "(($ac_try" in |
| 12703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12704 | *) ac_try_echo=$ac_try;; |
| 12705 | esac |
| 12706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12707 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12708 | ac_status=$? |
| 12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12710 | (exit $ac_status); }; }; then |
| 12711 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12712 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12713 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12714 | echo "$as_me: failed program was:" >&5 |
| 12715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12716 | |
| 12717 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12718 | if test "$ac_cv_type_short" = yes; then |
| 12719 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12720 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12721 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12722 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12723 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12724 | else |
| 12725 | ac_cv_sizeof_short=0 |
| 12726 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12727 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12728 | 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] | 12729 | fi |
| 12730 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12731 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12732 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12733 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12734 | |
| 12735 | |
| 12736 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12737 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12738 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12739 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12740 | |
| 12741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12742 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12743 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12744 | if test "${ac_cv_type_int+set}" = set; then |
| 12745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12746 | else |
| 12747 | cat >conftest.$ac_ext <<_ACEOF |
| 12748 | /* confdefs.h. */ |
| 12749 | _ACEOF |
| 12750 | cat confdefs.h >>conftest.$ac_ext |
| 12751 | cat >>conftest.$ac_ext <<_ACEOF |
| 12752 | /* end confdefs.h. */ |
| 12753 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12754 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12755 | int |
| 12756 | main () |
| 12757 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12758 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12759 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12760 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12761 | return 0; |
| 12762 | ; |
| 12763 | return 0; |
| 12764 | } |
| 12765 | _ACEOF |
| 12766 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12767 | if { (ac_try="$ac_compile" |
| 12768 | case "(($ac_try" in |
| 12769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12770 | *) ac_try_echo=$ac_try;; |
| 12771 | esac |
| 12772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12773 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12774 | ac_status=$? |
| 12775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12776 | rm -f conftest.er1 |
| 12777 | cat conftest.err >&5 |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12779 | (exit $ac_status); } && { |
| 12780 | test -z "$ac_c_werror_flag" || |
| 12781 | test ! -s conftest.err |
| 12782 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12783 | ac_cv_type_int=yes |
| 12784 | else |
| 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12787 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12788 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12789 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12792 | fi |
| 12793 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12794 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12795 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12796 | # The cast to long int works around a bug in the HP C Compiler |
| 12797 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12798 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12799 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12800 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12801 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12802 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12804 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | if test "$cross_compiling" = yes; then |
| 12806 | # Depending upon the size, compute the lo and hi bounds. |
| 12807 | cat >conftest.$ac_ext <<_ACEOF |
| 12808 | /* confdefs.h. */ |
| 12809 | _ACEOF |
| 12810 | cat confdefs.h >>conftest.$ac_ext |
| 12811 | cat >>conftest.$ac_ext <<_ACEOF |
| 12812 | /* end confdefs.h. */ |
| 12813 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12814 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12815 | int |
| 12816 | main () |
| 12817 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12818 | 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] | 12819 | test_array [0] = 0 |
| 12820 | |
| 12821 | ; |
| 12822 | return 0; |
| 12823 | } |
| 12824 | _ACEOF |
| 12825 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12826 | if { (ac_try="$ac_compile" |
| 12827 | case "(($ac_try" in |
| 12828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12829 | *) ac_try_echo=$ac_try;; |
| 12830 | esac |
| 12831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12832 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12833 | ac_status=$? |
| 12834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12835 | rm -f conftest.er1 |
| 12836 | cat conftest.err >&5 |
| 12837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12838 | (exit $ac_status); } && { |
| 12839 | test -z "$ac_c_werror_flag" || |
| 12840 | test ! -s conftest.err |
| 12841 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12842 | ac_lo=0 ac_mid=0 |
| 12843 | while :; do |
| 12844 | cat >conftest.$ac_ext <<_ACEOF |
| 12845 | /* confdefs.h. */ |
| 12846 | _ACEOF |
| 12847 | cat confdefs.h >>conftest.$ac_ext |
| 12848 | cat >>conftest.$ac_ext <<_ACEOF |
| 12849 | /* end confdefs.h. */ |
| 12850 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12851 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12852 | int |
| 12853 | main () |
| 12854 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12855 | 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] | 12856 | test_array [0] = 0 |
| 12857 | |
| 12858 | ; |
| 12859 | return 0; |
| 12860 | } |
| 12861 | _ACEOF |
| 12862 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12863 | if { (ac_try="$ac_compile" |
| 12864 | case "(($ac_try" in |
| 12865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12866 | *) ac_try_echo=$ac_try;; |
| 12867 | esac |
| 12868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12869 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12870 | ac_status=$? |
| 12871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12872 | rm -f conftest.er1 |
| 12873 | cat conftest.err >&5 |
| 12874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12875 | (exit $ac_status); } && { |
| 12876 | test -z "$ac_c_werror_flag" || |
| 12877 | test ! -s conftest.err |
| 12878 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12879 | ac_hi=$ac_mid; break |
| 12880 | else |
| 12881 | echo "$as_me: failed program was:" >&5 |
| 12882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12884 | ac_lo=`expr $ac_mid + 1` |
| 12885 | if test $ac_lo -le $ac_mid; then |
| 12886 | ac_lo= ac_hi= |
| 12887 | break |
| 12888 | fi |
| 12889 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12890 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12891 | |
| 12892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12893 | done |
| 12894 | else |
| 12895 | echo "$as_me: failed program was:" >&5 |
| 12896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12898 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12899 | /* confdefs.h. */ |
| 12900 | _ACEOF |
| 12901 | cat confdefs.h >>conftest.$ac_ext |
| 12902 | cat >>conftest.$ac_ext <<_ACEOF |
| 12903 | /* end confdefs.h. */ |
| 12904 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12905 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | int |
| 12907 | main () |
| 12908 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12909 | 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] | 12910 | test_array [0] = 0 |
| 12911 | |
| 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12917 | if { (ac_try="$ac_compile" |
| 12918 | case "(($ac_try" in |
| 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12920 | *) ac_try_echo=$ac_try;; |
| 12921 | esac |
| 12922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12923 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12924 | ac_status=$? |
| 12925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12926 | rm -f conftest.er1 |
| 12927 | cat conftest.err >&5 |
| 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12929 | (exit $ac_status); } && { |
| 12930 | test -z "$ac_c_werror_flag" || |
| 12931 | test ! -s conftest.err |
| 12932 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12933 | ac_hi=-1 ac_mid=-1 |
| 12934 | while :; do |
| 12935 | cat >conftest.$ac_ext <<_ACEOF |
| 12936 | /* confdefs.h. */ |
| 12937 | _ACEOF |
| 12938 | cat confdefs.h >>conftest.$ac_ext |
| 12939 | cat >>conftest.$ac_ext <<_ACEOF |
| 12940 | /* end confdefs.h. */ |
| 12941 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12942 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | int |
| 12944 | main () |
| 12945 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12946 | 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] | 12947 | test_array [0] = 0 |
| 12948 | |
| 12949 | ; |
| 12950 | return 0; |
| 12951 | } |
| 12952 | _ACEOF |
| 12953 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12954 | if { (ac_try="$ac_compile" |
| 12955 | case "(($ac_try" in |
| 12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12957 | *) ac_try_echo=$ac_try;; |
| 12958 | esac |
| 12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12960 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12961 | ac_status=$? |
| 12962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12963 | rm -f conftest.er1 |
| 12964 | cat conftest.err >&5 |
| 12965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12966 | (exit $ac_status); } && { |
| 12967 | test -z "$ac_c_werror_flag" || |
| 12968 | test ! -s conftest.err |
| 12969 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12970 | ac_lo=$ac_mid; break |
| 12971 | else |
| 12972 | echo "$as_me: failed program was:" >&5 |
| 12973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12975 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12976 | if test $ac_mid -le $ac_hi; then |
| 12977 | ac_lo= ac_hi= |
| 12978 | break |
| 12979 | fi |
| 12980 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12981 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12982 | |
| 12983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12984 | done |
| 12985 | else |
| 12986 | echo "$as_me: failed program was:" >&5 |
| 12987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12989 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12990 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12991 | |
| 12992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12994 | |
| 12995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12996 | # Binary search between lo and hi bounds. |
| 12997 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12998 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12999 | cat >conftest.$ac_ext <<_ACEOF |
| 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
| 13004 | /* end confdefs.h. */ |
| 13005 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13006 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13007 | int |
| 13008 | main () |
| 13009 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13010 | 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] | 13011 | test_array [0] = 0 |
| 13012 | |
| 13013 | ; |
| 13014 | return 0; |
| 13015 | } |
| 13016 | _ACEOF |
| 13017 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13018 | if { (ac_try="$ac_compile" |
| 13019 | case "(($ac_try" in |
| 13020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13021 | *) ac_try_echo=$ac_try;; |
| 13022 | esac |
| 13023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13024 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13025 | ac_status=$? |
| 13026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13027 | rm -f conftest.er1 |
| 13028 | cat conftest.err >&5 |
| 13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13030 | (exit $ac_status); } && { |
| 13031 | test -z "$ac_c_werror_flag" || |
| 13032 | test ! -s conftest.err |
| 13033 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13034 | ac_hi=$ac_mid |
| 13035 | else |
| 13036 | echo "$as_me: failed program was:" >&5 |
| 13037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13039 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13040 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13041 | |
| 13042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13043 | done |
| 13044 | case $ac_lo in |
| 13045 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13046 | '') if test "$ac_cv_type_int" = yes; then |
| 13047 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13048 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13049 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13050 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13051 | { (exit 77); exit 77; }; } |
| 13052 | else |
| 13053 | ac_cv_sizeof_int=0 |
| 13054 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13055 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13056 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13057 | cat >conftest.$ac_ext <<_ACEOF |
| 13058 | /* confdefs.h. */ |
| 13059 | _ACEOF |
| 13060 | cat confdefs.h >>conftest.$ac_ext |
| 13061 | cat >>conftest.$ac_ext <<_ACEOF |
| 13062 | /* end confdefs.h. */ |
| 13063 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13064 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13065 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13066 | 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] | 13067 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13068 | #include <stdlib.h> |
| 13069 | int |
| 13070 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13071 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13072 | |
| 13073 | FILE *f = fopen ("conftest.val", "w"); |
| 13074 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13075 | return 1; |
| 13076 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13077 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13078 | long int i = longval (); |
| 13079 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13080 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13081 | fprintf (f, "%ld\n", i); |
| 13082 | } |
| 13083 | else |
| 13084 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13085 | unsigned long int i = ulongval (); |
| 13086 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13087 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13088 | fprintf (f, "%lu\n", i); |
| 13089 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13090 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13091 | |
| 13092 | ; |
| 13093 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13094 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13095 | _ACEOF |
| 13096 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13097 | if { (ac_try="$ac_link" |
| 13098 | case "(($ac_try" in |
| 13099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13100 | *) ac_try_echo=$ac_try;; |
| 13101 | esac |
| 13102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13103 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13104 | ac_status=$? |
| 13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13107 | { (case "(($ac_try" in |
| 13108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13109 | *) ac_try_echo=$ac_try;; |
| 13110 | esac |
| 13111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13112 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13113 | ac_status=$? |
| 13114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13115 | (exit $ac_status); }; }; then |
| 13116 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13117 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13119 | echo "$as_me: failed program was:" >&5 |
| 13120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13121 | |
| 13122 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13123 | if test "$ac_cv_type_int" = yes; then |
| 13124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13125 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13126 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13127 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13128 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13129 | else |
| 13130 | ac_cv_sizeof_int=0 |
| 13131 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13132 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13133 | 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] | 13134 | fi |
| 13135 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13136 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13137 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13138 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13139 | |
| 13140 | |
| 13141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13142 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13143 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13144 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13145 | |
| 13146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13147 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13148 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13149 | if test "${ac_cv_type_long+set}" = set; then |
| 13150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13151 | else |
| 13152 | cat >conftest.$ac_ext <<_ACEOF |
| 13153 | /* confdefs.h. */ |
| 13154 | _ACEOF |
| 13155 | cat confdefs.h >>conftest.$ac_ext |
| 13156 | cat >>conftest.$ac_ext <<_ACEOF |
| 13157 | /* end confdefs.h. */ |
| 13158 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13159 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13160 | int |
| 13161 | main () |
| 13162 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13163 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13164 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13165 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13166 | return 0; |
| 13167 | ; |
| 13168 | return 0; |
| 13169 | } |
| 13170 | _ACEOF |
| 13171 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13172 | if { (ac_try="$ac_compile" |
| 13173 | case "(($ac_try" in |
| 13174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13175 | *) ac_try_echo=$ac_try;; |
| 13176 | esac |
| 13177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13178 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13179 | ac_status=$? |
| 13180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13181 | rm -f conftest.er1 |
| 13182 | cat conftest.err >&5 |
| 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13184 | (exit $ac_status); } && { |
| 13185 | test -z "$ac_c_werror_flag" || |
| 13186 | test ! -s conftest.err |
| 13187 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13188 | ac_cv_type_long=yes |
| 13189 | else |
| 13190 | echo "$as_me: failed program was:" >&5 |
| 13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13193 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13194 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13197 | fi |
| 13198 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13199 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13200 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13201 | # The cast to long int works around a bug in the HP C Compiler |
| 13202 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13203 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13204 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13205 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13206 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13207 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13209 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13210 | if test "$cross_compiling" = yes; then |
| 13211 | # Depending upon the size, compute the lo and hi bounds. |
| 13212 | cat >conftest.$ac_ext <<_ACEOF |
| 13213 | /* confdefs.h. */ |
| 13214 | _ACEOF |
| 13215 | cat confdefs.h >>conftest.$ac_ext |
| 13216 | cat >>conftest.$ac_ext <<_ACEOF |
| 13217 | /* end confdefs.h. */ |
| 13218 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13219 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13220 | int |
| 13221 | main () |
| 13222 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13223 | 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] | 13224 | test_array [0] = 0 |
| 13225 | |
| 13226 | ; |
| 13227 | return 0; |
| 13228 | } |
| 13229 | _ACEOF |
| 13230 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13231 | if { (ac_try="$ac_compile" |
| 13232 | case "(($ac_try" in |
| 13233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13234 | *) ac_try_echo=$ac_try;; |
| 13235 | esac |
| 13236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13237 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13238 | ac_status=$? |
| 13239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13240 | rm -f conftest.er1 |
| 13241 | cat conftest.err >&5 |
| 13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13243 | (exit $ac_status); } && { |
| 13244 | test -z "$ac_c_werror_flag" || |
| 13245 | test ! -s conftest.err |
| 13246 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13247 | ac_lo=0 ac_mid=0 |
| 13248 | while :; do |
| 13249 | cat >conftest.$ac_ext <<_ACEOF |
| 13250 | /* confdefs.h. */ |
| 13251 | _ACEOF |
| 13252 | cat confdefs.h >>conftest.$ac_ext |
| 13253 | cat >>conftest.$ac_ext <<_ACEOF |
| 13254 | /* end confdefs.h. */ |
| 13255 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13256 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13257 | int |
| 13258 | main () |
| 13259 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13260 | 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] | 13261 | test_array [0] = 0 |
| 13262 | |
| 13263 | ; |
| 13264 | return 0; |
| 13265 | } |
| 13266 | _ACEOF |
| 13267 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13268 | if { (ac_try="$ac_compile" |
| 13269 | case "(($ac_try" in |
| 13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13271 | *) ac_try_echo=$ac_try;; |
| 13272 | esac |
| 13273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13274 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13275 | ac_status=$? |
| 13276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13277 | rm -f conftest.er1 |
| 13278 | cat conftest.err >&5 |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13280 | (exit $ac_status); } && { |
| 13281 | test -z "$ac_c_werror_flag" || |
| 13282 | test ! -s conftest.err |
| 13283 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13284 | ac_hi=$ac_mid; break |
| 13285 | else |
| 13286 | echo "$as_me: failed program was:" >&5 |
| 13287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13289 | ac_lo=`expr $ac_mid + 1` |
| 13290 | if test $ac_lo -le $ac_mid; then |
| 13291 | ac_lo= ac_hi= |
| 13292 | break |
| 13293 | fi |
| 13294 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13295 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13296 | |
| 13297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13298 | done |
| 13299 | else |
| 13300 | echo "$as_me: failed program was:" >&5 |
| 13301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13302 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13303 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13304 | /* confdefs.h. */ |
| 13305 | _ACEOF |
| 13306 | cat confdefs.h >>conftest.$ac_ext |
| 13307 | cat >>conftest.$ac_ext <<_ACEOF |
| 13308 | /* end confdefs.h. */ |
| 13309 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13310 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13311 | int |
| 13312 | main () |
| 13313 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13314 | 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] | 13315 | test_array [0] = 0 |
| 13316 | |
| 13317 | ; |
| 13318 | return 0; |
| 13319 | } |
| 13320 | _ACEOF |
| 13321 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13322 | if { (ac_try="$ac_compile" |
| 13323 | case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | ac_status=$? |
| 13330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13331 | rm -f conftest.er1 |
| 13332 | cat conftest.err >&5 |
| 13333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13334 | (exit $ac_status); } && { |
| 13335 | test -z "$ac_c_werror_flag" || |
| 13336 | test ! -s conftest.err |
| 13337 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13338 | ac_hi=-1 ac_mid=-1 |
| 13339 | while :; do |
| 13340 | cat >conftest.$ac_ext <<_ACEOF |
| 13341 | /* confdefs.h. */ |
| 13342 | _ACEOF |
| 13343 | cat confdefs.h >>conftest.$ac_ext |
| 13344 | cat >>conftest.$ac_ext <<_ACEOF |
| 13345 | /* end confdefs.h. */ |
| 13346 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13347 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13348 | int |
| 13349 | main () |
| 13350 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13351 | 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] | 13352 | test_array [0] = 0 |
| 13353 | |
| 13354 | ; |
| 13355 | return 0; |
| 13356 | } |
| 13357 | _ACEOF |
| 13358 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13359 | if { (ac_try="$ac_compile" |
| 13360 | case "(($ac_try" in |
| 13361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13362 | *) ac_try_echo=$ac_try;; |
| 13363 | esac |
| 13364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13365 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13366 | ac_status=$? |
| 13367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13368 | rm -f conftest.er1 |
| 13369 | cat conftest.err >&5 |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13371 | (exit $ac_status); } && { |
| 13372 | test -z "$ac_c_werror_flag" || |
| 13373 | test ! -s conftest.err |
| 13374 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13375 | ac_lo=$ac_mid; break |
| 13376 | else |
| 13377 | echo "$as_me: failed program was:" >&5 |
| 13378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13380 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13381 | if test $ac_mid -le $ac_hi; then |
| 13382 | ac_lo= ac_hi= |
| 13383 | break |
| 13384 | fi |
| 13385 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13386 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13387 | |
| 13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13389 | done |
| 13390 | else |
| 13391 | echo "$as_me: failed program was:" >&5 |
| 13392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13394 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13396 | |
| 13397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13398 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13399 | |
| 13400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13401 | # Binary search between lo and hi bounds. |
| 13402 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13404 | cat >conftest.$ac_ext <<_ACEOF |
| 13405 | /* confdefs.h. */ |
| 13406 | _ACEOF |
| 13407 | cat confdefs.h >>conftest.$ac_ext |
| 13408 | cat >>conftest.$ac_ext <<_ACEOF |
| 13409 | /* end confdefs.h. */ |
| 13410 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13411 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13412 | int |
| 13413 | main () |
| 13414 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13415 | 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] | 13416 | test_array [0] = 0 |
| 13417 | |
| 13418 | ; |
| 13419 | return 0; |
| 13420 | } |
| 13421 | _ACEOF |
| 13422 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13423 | if { (ac_try="$ac_compile" |
| 13424 | case "(($ac_try" in |
| 13425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13426 | *) ac_try_echo=$ac_try;; |
| 13427 | esac |
| 13428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13429 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13430 | ac_status=$? |
| 13431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13432 | rm -f conftest.er1 |
| 13433 | cat conftest.err >&5 |
| 13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13435 | (exit $ac_status); } && { |
| 13436 | test -z "$ac_c_werror_flag" || |
| 13437 | test ! -s conftest.err |
| 13438 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13439 | ac_hi=$ac_mid |
| 13440 | else |
| 13441 | echo "$as_me: failed program was:" >&5 |
| 13442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13443 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13444 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13446 | |
| 13447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13448 | done |
| 13449 | case $ac_lo in |
| 13450 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13451 | '') if test "$ac_cv_type_long" = yes; then |
| 13452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13453 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13454 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13455 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13456 | { (exit 77); exit 77; }; } |
| 13457 | else |
| 13458 | ac_cv_sizeof_long=0 |
| 13459 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13460 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13461 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13462 | cat >conftest.$ac_ext <<_ACEOF |
| 13463 | /* confdefs.h. */ |
| 13464 | _ACEOF |
| 13465 | cat confdefs.h >>conftest.$ac_ext |
| 13466 | cat >>conftest.$ac_ext <<_ACEOF |
| 13467 | /* end confdefs.h. */ |
| 13468 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13469 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13470 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13471 | 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] | 13472 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13473 | #include <stdlib.h> |
| 13474 | int |
| 13475 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13476 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13477 | |
| 13478 | FILE *f = fopen ("conftest.val", "w"); |
| 13479 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13480 | return 1; |
| 13481 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13482 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13483 | long int i = longval (); |
| 13484 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13485 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13486 | fprintf (f, "%ld\n", i); |
| 13487 | } |
| 13488 | else |
| 13489 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13490 | unsigned long int i = ulongval (); |
| 13491 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13492 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13493 | fprintf (f, "%lu\n", i); |
| 13494 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13495 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13496 | |
| 13497 | ; |
| 13498 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13499 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13500 | _ACEOF |
| 13501 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13502 | if { (ac_try="$ac_link" |
| 13503 | case "(($ac_try" in |
| 13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13505 | *) ac_try_echo=$ac_try;; |
| 13506 | esac |
| 13507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13508 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13509 | ac_status=$? |
| 13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13512 | { (case "(($ac_try" in |
| 13513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13514 | *) ac_try_echo=$ac_try;; |
| 13515 | esac |
| 13516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13517 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13518 | ac_status=$? |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); }; }; then |
| 13521 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13522 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13523 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13524 | echo "$as_me: failed program was:" >&5 |
| 13525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13526 | |
| 13527 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13528 | if test "$ac_cv_type_long" = yes; then |
| 13529 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13530 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13531 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13532 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13533 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13534 | else |
| 13535 | ac_cv_sizeof_long=0 |
| 13536 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13538 | 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] | 13539 | fi |
| 13540 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13541 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13542 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13543 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13544 | |
| 13545 | |
| 13546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13547 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13548 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13549 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13550 | |
| 13551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13552 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13553 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13554 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13556 | else |
| 13557 | cat >conftest.$ac_ext <<_ACEOF |
| 13558 | /* confdefs.h. */ |
| 13559 | _ACEOF |
| 13560 | cat confdefs.h >>conftest.$ac_ext |
| 13561 | cat >>conftest.$ac_ext <<_ACEOF |
| 13562 | /* end confdefs.h. */ |
| 13563 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13564 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13565 | int |
| 13566 | main () |
| 13567 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13568 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13569 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13570 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13571 | return 0; |
| 13572 | ; |
| 13573 | return 0; |
| 13574 | } |
| 13575 | _ACEOF |
| 13576 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13577 | if { (ac_try="$ac_compile" |
| 13578 | case "(($ac_try" in |
| 13579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13580 | *) ac_try_echo=$ac_try;; |
| 13581 | esac |
| 13582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13583 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13584 | ac_status=$? |
| 13585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13586 | rm -f conftest.er1 |
| 13587 | cat conftest.err >&5 |
| 13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13589 | (exit $ac_status); } && { |
| 13590 | test -z "$ac_c_werror_flag" || |
| 13591 | test ! -s conftest.err |
| 13592 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13593 | ac_cv_type_long_long=yes |
| 13594 | else |
| 13595 | echo "$as_me: failed program was:" >&5 |
| 13596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13597 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13598 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13599 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13602 | fi |
| 13603 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13604 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13605 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13606 | # The cast to long int works around a bug in the HP C Compiler |
| 13607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13609 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13610 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13611 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13612 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13614 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | if test "$cross_compiling" = yes; then |
| 13616 | # Depending upon the size, compute the lo and hi bounds. |
| 13617 | cat >conftest.$ac_ext <<_ACEOF |
| 13618 | /* confdefs.h. */ |
| 13619 | _ACEOF |
| 13620 | cat confdefs.h >>conftest.$ac_ext |
| 13621 | cat >>conftest.$ac_ext <<_ACEOF |
| 13622 | /* end confdefs.h. */ |
| 13623 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13624 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13625 | int |
| 13626 | main () |
| 13627 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13628 | 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] | 13629 | test_array [0] = 0 |
| 13630 | |
| 13631 | ; |
| 13632 | return 0; |
| 13633 | } |
| 13634 | _ACEOF |
| 13635 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13636 | if { (ac_try="$ac_compile" |
| 13637 | case "(($ac_try" in |
| 13638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13639 | *) ac_try_echo=$ac_try;; |
| 13640 | esac |
| 13641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13642 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13643 | ac_status=$? |
| 13644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13645 | rm -f conftest.er1 |
| 13646 | cat conftest.err >&5 |
| 13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13648 | (exit $ac_status); } && { |
| 13649 | test -z "$ac_c_werror_flag" || |
| 13650 | test ! -s conftest.err |
| 13651 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13652 | ac_lo=0 ac_mid=0 |
| 13653 | while :; do |
| 13654 | cat >conftest.$ac_ext <<_ACEOF |
| 13655 | /* confdefs.h. */ |
| 13656 | _ACEOF |
| 13657 | cat confdefs.h >>conftest.$ac_ext |
| 13658 | cat >>conftest.$ac_ext <<_ACEOF |
| 13659 | /* end confdefs.h. */ |
| 13660 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13661 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13662 | int |
| 13663 | main () |
| 13664 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13665 | 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] | 13666 | test_array [0] = 0 |
| 13667 | |
| 13668 | ; |
| 13669 | return 0; |
| 13670 | } |
| 13671 | _ACEOF |
| 13672 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13673 | if { (ac_try="$ac_compile" |
| 13674 | case "(($ac_try" in |
| 13675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13676 | *) ac_try_echo=$ac_try;; |
| 13677 | esac |
| 13678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13679 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13680 | ac_status=$? |
| 13681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13682 | rm -f conftest.er1 |
| 13683 | cat conftest.err >&5 |
| 13684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13685 | (exit $ac_status); } && { |
| 13686 | test -z "$ac_c_werror_flag" || |
| 13687 | test ! -s conftest.err |
| 13688 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13689 | ac_hi=$ac_mid; break |
| 13690 | else |
| 13691 | echo "$as_me: failed program was:" >&5 |
| 13692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13694 | ac_lo=`expr $ac_mid + 1` |
| 13695 | if test $ac_lo -le $ac_mid; then |
| 13696 | ac_lo= ac_hi= |
| 13697 | break |
| 13698 | fi |
| 13699 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13700 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13701 | |
| 13702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13703 | done |
| 13704 | else |
| 13705 | echo "$as_me: failed program was:" >&5 |
| 13706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13707 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13708 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13709 | /* confdefs.h. */ |
| 13710 | _ACEOF |
| 13711 | cat confdefs.h >>conftest.$ac_ext |
| 13712 | cat >>conftest.$ac_ext <<_ACEOF |
| 13713 | /* end confdefs.h. */ |
| 13714 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13715 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13716 | int |
| 13717 | main () |
| 13718 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13719 | 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] | 13720 | test_array [0] = 0 |
| 13721 | |
| 13722 | ; |
| 13723 | return 0; |
| 13724 | } |
| 13725 | _ACEOF |
| 13726 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13727 | if { (ac_try="$ac_compile" |
| 13728 | case "(($ac_try" in |
| 13729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13730 | *) ac_try_echo=$ac_try;; |
| 13731 | esac |
| 13732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13733 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13734 | ac_status=$? |
| 13735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13736 | rm -f conftest.er1 |
| 13737 | cat conftest.err >&5 |
| 13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13739 | (exit $ac_status); } && { |
| 13740 | test -z "$ac_c_werror_flag" || |
| 13741 | test ! -s conftest.err |
| 13742 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13743 | ac_hi=-1 ac_mid=-1 |
| 13744 | while :; do |
| 13745 | cat >conftest.$ac_ext <<_ACEOF |
| 13746 | /* confdefs.h. */ |
| 13747 | _ACEOF |
| 13748 | cat confdefs.h >>conftest.$ac_ext |
| 13749 | cat >>conftest.$ac_ext <<_ACEOF |
| 13750 | /* end confdefs.h. */ |
| 13751 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13752 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13753 | int |
| 13754 | main () |
| 13755 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13756 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13757 | test_array [0] = 0 |
| 13758 | |
| 13759 | ; |
| 13760 | return 0; |
| 13761 | } |
| 13762 | _ACEOF |
| 13763 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13764 | if { (ac_try="$ac_compile" |
| 13765 | case "(($ac_try" in |
| 13766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13767 | *) ac_try_echo=$ac_try;; |
| 13768 | esac |
| 13769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13770 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13771 | ac_status=$? |
| 13772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13773 | rm -f conftest.er1 |
| 13774 | cat conftest.err >&5 |
| 13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13776 | (exit $ac_status); } && { |
| 13777 | test -z "$ac_c_werror_flag" || |
| 13778 | test ! -s conftest.err |
| 13779 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13780 | ac_lo=$ac_mid; break |
| 13781 | else |
| 13782 | echo "$as_me: failed program was:" >&5 |
| 13783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13786 | if test $ac_mid -le $ac_hi; then |
| 13787 | ac_lo= ac_hi= |
| 13788 | break |
| 13789 | fi |
| 13790 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13792 | |
| 13793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13794 | done |
| 13795 | else |
| 13796 | echo "$as_me: failed program was:" >&5 |
| 13797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13799 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13801 | |
| 13802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | |
| 13805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13806 | # Binary search between lo and hi bounds. |
| 13807 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13809 | cat >conftest.$ac_ext <<_ACEOF |
| 13810 | /* confdefs.h. */ |
| 13811 | _ACEOF |
| 13812 | cat confdefs.h >>conftest.$ac_ext |
| 13813 | cat >>conftest.$ac_ext <<_ACEOF |
| 13814 | /* end confdefs.h. */ |
| 13815 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13816 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13817 | int |
| 13818 | main () |
| 13819 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13820 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13821 | test_array [0] = 0 |
| 13822 | |
| 13823 | ; |
| 13824 | return 0; |
| 13825 | } |
| 13826 | _ACEOF |
| 13827 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13828 | if { (ac_try="$ac_compile" |
| 13829 | case "(($ac_try" in |
| 13830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13831 | *) ac_try_echo=$ac_try;; |
| 13832 | esac |
| 13833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13834 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13835 | ac_status=$? |
| 13836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13837 | rm -f conftest.er1 |
| 13838 | cat conftest.err >&5 |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13840 | (exit $ac_status); } && { |
| 13841 | test -z "$ac_c_werror_flag" || |
| 13842 | test ! -s conftest.err |
| 13843 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13844 | ac_hi=$ac_mid |
| 13845 | else |
| 13846 | echo "$as_me: failed program was:" >&5 |
| 13847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13849 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13850 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13851 | |
| 13852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13853 | done |
| 13854 | case $ac_lo in |
| 13855 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13856 | '') if test "$ac_cv_type_long_long" = yes; then |
| 13857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13858 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13859 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13860 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13861 | { (exit 77); exit 77; }; } |
| 13862 | else |
| 13863 | ac_cv_sizeof_long_long=0 |
| 13864 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13865 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13866 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13867 | cat >conftest.$ac_ext <<_ACEOF |
| 13868 | /* confdefs.h. */ |
| 13869 | _ACEOF |
| 13870 | cat confdefs.h >>conftest.$ac_ext |
| 13871 | cat >>conftest.$ac_ext <<_ACEOF |
| 13872 | /* end confdefs.h. */ |
| 13873 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13874 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13875 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13876 | 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] | 13877 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | #include <stdlib.h> |
| 13879 | int |
| 13880 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13881 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13882 | |
| 13883 | FILE *f = fopen ("conftest.val", "w"); |
| 13884 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13885 | return 1; |
| 13886 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13887 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13888 | long int i = longval (); |
| 13889 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13890 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13891 | fprintf (f, "%ld\n", i); |
| 13892 | } |
| 13893 | else |
| 13894 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13895 | unsigned long int i = ulongval (); |
| 13896 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13897 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13898 | fprintf (f, "%lu\n", i); |
| 13899 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13900 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13901 | |
| 13902 | ; |
| 13903 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13904 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13905 | _ACEOF |
| 13906 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13907 | if { (ac_try="$ac_link" |
| 13908 | case "(($ac_try" in |
| 13909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13910 | *) ac_try_echo=$ac_try;; |
| 13911 | esac |
| 13912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13913 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13914 | ac_status=$? |
| 13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13916 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13917 | { (case "(($ac_try" in |
| 13918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13919 | *) ac_try_echo=$ac_try;; |
| 13920 | esac |
| 13921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13922 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13923 | ac_status=$? |
| 13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13925 | (exit $ac_status); }; }; then |
| 13926 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13927 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13929 | echo "$as_me: failed program was:" >&5 |
| 13930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13931 | |
| 13932 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13933 | if test "$ac_cv_type_long_long" = yes; then |
| 13934 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13935 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13936 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13937 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13938 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13939 | else |
| 13940 | ac_cv_sizeof_long_long=0 |
| 13941 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13942 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13943 | 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] | 13944 | fi |
| 13945 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13946 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13947 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 13948 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13949 | |
| 13950 | |
| 13951 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13952 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13953 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13954 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13955 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13956 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13957 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 13958 | SIZEOF_INT=$ac_cv_sizeof_int |
| 13959 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13960 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 13961 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13962 | |
| 13963 | |
| 13964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13965 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 13966 | 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] | 13967 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 13968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13969 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13970 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 13971 | cat >conftest.$ac_ext <<_ACEOF |
| 13972 | /* confdefs.h. */ |
| 13973 | _ACEOF |
| 13974 | cat confdefs.h >>conftest.$ac_ext |
| 13975 | cat >>conftest.$ac_ext <<_ACEOF |
| 13976 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13977 | #include <sys/types.h> |
| 13978 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13979 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13980 | int |
| 13981 | main () |
| 13982 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13983 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 13984 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13985 | bogus endian macros |
| 13986 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13987 | |
| 13988 | ; |
| 13989 | return 0; |
| 13990 | } |
| 13991 | _ACEOF |
| 13992 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13993 | if { (ac_try="$ac_compile" |
| 13994 | case "(($ac_try" in |
| 13995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13996 | *) ac_try_echo=$ac_try;; |
| 13997 | esac |
| 13998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13999 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14000 | ac_status=$? |
| 14001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14002 | rm -f conftest.er1 |
| 14003 | cat conftest.err >&5 |
| 14004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14005 | (exit $ac_status); } && { |
| 14006 | test -z "$ac_c_werror_flag" || |
| 14007 | test ! -s conftest.err |
| 14008 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14009 | # 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] | 14010 | cat >conftest.$ac_ext <<_ACEOF |
| 14011 | /* confdefs.h. */ |
| 14012 | _ACEOF |
| 14013 | cat confdefs.h >>conftest.$ac_ext |
| 14014 | cat >>conftest.$ac_ext <<_ACEOF |
| 14015 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14016 | #include <sys/types.h> |
| 14017 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14018 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14019 | int |
| 14020 | main () |
| 14021 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14022 | #if BYTE_ORDER != BIG_ENDIAN |
| 14023 | not big endian |
| 14024 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14025 | |
| 14026 | ; |
| 14027 | return 0; |
| 14028 | } |
| 14029 | _ACEOF |
| 14030 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14031 | if { (ac_try="$ac_compile" |
| 14032 | case "(($ac_try" in |
| 14033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14034 | *) ac_try_echo=$ac_try;; |
| 14035 | esac |
| 14036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14037 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14038 | ac_status=$? |
| 14039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14040 | rm -f conftest.er1 |
| 14041 | cat conftest.err >&5 |
| 14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14043 | (exit $ac_status); } && { |
| 14044 | test -z "$ac_c_werror_flag" || |
| 14045 | test ! -s conftest.err |
| 14046 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14047 | ac_cv_c_bigendian=yes |
| 14048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14049 | echo "$as_me: failed program was:" >&5 |
| 14050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14052 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14053 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14054 | |
| 14055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14056 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14057 | echo "$as_me: failed program was:" >&5 |
| 14058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14060 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14061 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14062 | # try to guess the endianness by grepping values into an object file |
| 14063 | ac_cv_c_bigendian=unknown |
| 14064 | cat >conftest.$ac_ext <<_ACEOF |
| 14065 | /* confdefs.h. */ |
| 14066 | _ACEOF |
| 14067 | cat confdefs.h >>conftest.$ac_ext |
| 14068 | cat >>conftest.$ac_ext <<_ACEOF |
| 14069 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14070 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14071 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14072 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14073 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14074 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14075 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14076 | int |
| 14077 | main () |
| 14078 | { |
| 14079 | _ascii (); _ebcdic (); |
| 14080 | ; |
| 14081 | return 0; |
| 14082 | } |
| 14083 | _ACEOF |
| 14084 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14085 | if { (ac_try="$ac_compile" |
| 14086 | case "(($ac_try" in |
| 14087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14088 | *) ac_try_echo=$ac_try;; |
| 14089 | esac |
| 14090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14091 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | ac_status=$? |
| 14093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14094 | rm -f conftest.er1 |
| 14095 | cat conftest.err >&5 |
| 14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14097 | (exit $ac_status); } && { |
| 14098 | test -z "$ac_c_werror_flag" || |
| 14099 | test ! -s conftest.err |
| 14100 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14101 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14102 | ac_cv_c_bigendian=yes |
| 14103 | fi |
| 14104 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14105 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14106 | ac_cv_c_bigendian=no |
| 14107 | else |
| 14108 | # finding both strings is unlikely to happen, but who knows? |
| 14109 | ac_cv_c_bigendian=unknown |
| 14110 | fi |
| 14111 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14112 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14113 | echo "$as_me: failed program was:" >&5 |
| 14114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14116 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14117 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14118 | |
| 14119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14120 | else |
| 14121 | cat >conftest.$ac_ext <<_ACEOF |
| 14122 | /* confdefs.h. */ |
| 14123 | _ACEOF |
| 14124 | cat confdefs.h >>conftest.$ac_ext |
| 14125 | cat >>conftest.$ac_ext <<_ACEOF |
| 14126 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14127 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14128 | int |
| 14129 | main () |
| 14130 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14131 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14132 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14133 | union |
| 14134 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14135 | long int l; |
| 14136 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14137 | } u; |
| 14138 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14139 | return u.c[sizeof (long int) - 1] == 1; |
| 14140 | |
| 14141 | ; |
| 14142 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14143 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14144 | _ACEOF |
| 14145 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14146 | if { (ac_try="$ac_link" |
| 14147 | case "(($ac_try" in |
| 14148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14149 | *) ac_try_echo=$ac_try;; |
| 14150 | esac |
| 14151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14152 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | ac_status=$? |
| 14154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14156 | { (case "(($ac_try" in |
| 14157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14158 | *) ac_try_echo=$ac_try;; |
| 14159 | esac |
| 14160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14161 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14162 | ac_status=$? |
| 14163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14164 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14165 | ac_cv_c_bigendian=no |
| 14166 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14168 | echo "$as_me: failed program was:" >&5 |
| 14169 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14170 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14171 | ( exit $ac_status ) |
| 14172 | ac_cv_c_bigendian=yes |
| 14173 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14174 | 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] | 14175 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14176 | |
| 14177 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14179 | |
| 14180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14182 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14183 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14184 | case $ac_cv_c_bigendian in |
| 14185 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14186 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14187 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14188 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14189 | _ACEOF |
| 14190 | ;; |
| 14191 | no) |
| 14192 | ;; |
| 14193 | *) |
| 14194 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14195 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14196 | echo "$as_me: error: unknown endianness |
| 14197 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14198 | { (exit 1); exit 1; }; } ;; |
| 14199 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14200 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14201 | 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] | 14202 | ASM_TYPES_HEADER=./asm_types.h |
| 14203 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14204 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14205 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14206 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14207 | 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] | 14208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14209 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14211 | 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] | 14212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14213 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14214 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14215 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14216 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14218 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14219 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14221 | cat >conftest.$ac_ext <<_ACEOF |
| 14222 | /* confdefs.h. */ |
| 14223 | _ACEOF |
| 14224 | cat confdefs.h >>conftest.$ac_ext |
| 14225 | cat >>conftest.$ac_ext <<_ACEOF |
| 14226 | /* end confdefs.h. */ |
| 14227 | $ac_includes_default |
| 14228 | #include <$ac_header> |
| 14229 | _ACEOF |
| 14230 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14231 | if { (ac_try="$ac_compile" |
| 14232 | case "(($ac_try" in |
| 14233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14234 | *) ac_try_echo=$ac_try;; |
| 14235 | esac |
| 14236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14237 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14238 | ac_status=$? |
| 14239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14240 | rm -f conftest.er1 |
| 14241 | cat conftest.err >&5 |
| 14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14243 | (exit $ac_status); } && { |
| 14244 | test -z "$ac_c_werror_flag" || |
| 14245 | test ! -s conftest.err |
| 14246 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14247 | ac_header_compiler=yes |
| 14248 | else |
| 14249 | echo "$as_me: failed program was:" >&5 |
| 14250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14252 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14253 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14254 | |
| 14255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14256 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14257 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14258 | |
| 14259 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14260 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14261 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14262 | cat >conftest.$ac_ext <<_ACEOF |
| 14263 | /* confdefs.h. */ |
| 14264 | _ACEOF |
| 14265 | cat confdefs.h >>conftest.$ac_ext |
| 14266 | cat >>conftest.$ac_ext <<_ACEOF |
| 14267 | /* end confdefs.h. */ |
| 14268 | #include <$ac_header> |
| 14269 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14270 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14271 | case "(($ac_try" in |
| 14272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14273 | *) ac_try_echo=$ac_try;; |
| 14274 | esac |
| 14275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14276 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14277 | ac_status=$? |
| 14278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14279 | rm -f conftest.er1 |
| 14280 | cat conftest.err >&5 |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14282 | (exit $ac_status); } >/dev/null && { |
| 14283 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14284 | test ! -s conftest.err |
| 14285 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14286 | ac_header_preproc=yes |
| 14287 | else |
| 14288 | echo "$as_me: failed program was:" >&5 |
| 14289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14290 | |
| 14291 | ac_header_preproc=no |
| 14292 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14293 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14294 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14295 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14296 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14297 | |
| 14298 | # So? What about this header? |
| 14299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14300 | yes:no: ) |
| 14301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14305 | ac_header_preproc=yes |
| 14306 | ;; |
| 14307 | no:yes:* ) |
| 14308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14319 | 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] | 14320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14321 | ;; |
| 14322 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14323 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14324 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14325 | 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] | 14326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14327 | else |
| 14328 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14329 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14330 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14331 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14332 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14333 | |
| 14334 | fi |
| 14335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14336 | cat >>confdefs.h <<_ACEOF |
| 14337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14338 | _ACEOF |
| 14339 | |
| 14340 | fi |
| 14341 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14342 | done |
| 14343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14344 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14345 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14346 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14348 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14349 | cat >conftest.$ac_ext <<_ACEOF |
| 14350 | /* confdefs.h. */ |
| 14351 | _ACEOF |
| 14352 | cat confdefs.h >>conftest.$ac_ext |
| 14353 | cat >>conftest.$ac_ext <<_ACEOF |
| 14354 | /* end confdefs.h. */ |
| 14355 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14356 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14357 | int |
| 14358 | main () |
| 14359 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14360 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14361 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14362 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14363 | return 0; |
| 14364 | ; |
| 14365 | return 0; |
| 14366 | } |
| 14367 | _ACEOF |
| 14368 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | if { (ac_try="$ac_compile" |
| 14370 | case "(($ac_try" in |
| 14371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14372 | *) ac_try_echo=$ac_try;; |
| 14373 | esac |
| 14374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14375 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | ac_status=$? |
| 14377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14378 | rm -f conftest.er1 |
| 14379 | cat conftest.err >&5 |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14381 | (exit $ac_status); } && { |
| 14382 | test -z "$ac_c_werror_flag" || |
| 14383 | test ! -s conftest.err |
| 14384 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14385 | ac_cv_type_intptr_t=yes |
| 14386 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14387 | echo "$as_me: failed program was:" >&5 |
| 14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14389 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14391 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14392 | |
| 14393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14394 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14395 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14396 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14397 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14398 | |
| 14399 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14400 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14401 | _ACEOF |
| 14402 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | fi |
| 14405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14406 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14407 | 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] | 14408 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14410 | else |
| 14411 | cat >conftest.$ac_ext <<_ACEOF |
| 14412 | /* confdefs.h. */ |
| 14413 | _ACEOF |
| 14414 | cat confdefs.h >>conftest.$ac_ext |
| 14415 | cat >>conftest.$ac_ext <<_ACEOF |
| 14416 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14417 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | int |
| 14419 | main () |
| 14420 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14421 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | ; |
| 14423 | return 0; |
| 14424 | } |
| 14425 | _ACEOF |
| 14426 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14427 | if { (ac_try="$ac_compile" |
| 14428 | case "(($ac_try" in |
| 14429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14430 | *) ac_try_echo=$ac_try;; |
| 14431 | esac |
| 14432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14433 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14434 | ac_status=$? |
| 14435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14436 | rm -f conftest.er1 |
| 14437 | cat conftest.err >&5 |
| 14438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14439 | (exit $ac_status); } && { |
| 14440 | test -z "$ac_c_werror_flag" || |
| 14441 | test ! -s conftest.err |
| 14442 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14443 | e2fsprogs_cv_struct_st_flags=yes |
| 14444 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14445 | echo "$as_me: failed program was:" >&5 |
| 14446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14447 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14448 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14449 | fi |
| 14450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14452 | fi |
| 14453 | |
| 14454 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14455 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14456 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14457 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14458 | 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] | 14459 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14461 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14462 | cat >conftest.$ac_ext <<_ACEOF |
| 14463 | /* confdefs.h. */ |
| 14464 | _ACEOF |
| 14465 | cat confdefs.h >>conftest.$ac_ext |
| 14466 | cat >>conftest.$ac_ext <<_ACEOF |
| 14467 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14468 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14469 | int |
| 14470 | main () |
| 14471 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14472 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14473 | ; |
| 14474 | return 0; |
| 14475 | } |
| 14476 | _ACEOF |
| 14477 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14478 | if { (ac_try="$ac_compile" |
| 14479 | case "(($ac_try" in |
| 14480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14481 | *) ac_try_echo=$ac_try;; |
| 14482 | esac |
| 14483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14484 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14485 | ac_status=$? |
| 14486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14487 | rm -f conftest.er1 |
| 14488 | cat conftest.err >&5 |
| 14489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14490 | (exit $ac_status); } && { |
| 14491 | test -z "$ac_c_werror_flag" || |
| 14492 | test ! -s conftest.err |
| 14493 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14494 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14495 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14496 | echo "$as_me: failed program was:" >&5 |
| 14497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14498 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14499 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14500 | fi |
| 14501 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14503 | fi |
| 14504 | |
| 14505 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14506 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14507 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14508 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14509 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14510 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14511 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14512 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14514 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14515 | 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] | 14516 | 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] | 14517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14518 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14519 | cat >conftest.$ac_ext <<_ACEOF |
| 14520 | /* confdefs.h. */ |
| 14521 | _ACEOF |
| 14522 | cat confdefs.h >>conftest.$ac_ext |
| 14523 | cat >>conftest.$ac_ext <<_ACEOF |
| 14524 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14525 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14526 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14527 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14528 | int |
| 14529 | main () |
| 14530 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14531 | static struct sockaddr ac_aggr; |
| 14532 | if (ac_aggr.sa_len) |
| 14533 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14534 | ; |
| 14535 | return 0; |
| 14536 | } |
| 14537 | _ACEOF |
| 14538 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14539 | if { (ac_try="$ac_compile" |
| 14540 | case "(($ac_try" in |
| 14541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14542 | *) ac_try_echo=$ac_try;; |
| 14543 | esac |
| 14544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14545 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14546 | ac_status=$? |
| 14547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14548 | rm -f conftest.er1 |
| 14549 | cat conftest.err >&5 |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14551 | (exit $ac_status); } && { |
| 14552 | test -z "$ac_c_werror_flag" || |
| 14553 | test ! -s conftest.err |
| 14554 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14555 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14556 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | echo "$as_me: failed program was:" >&5 |
| 14558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14559 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14560 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14561 | /* confdefs.h. */ |
| 14562 | _ACEOF |
| 14563 | cat confdefs.h >>conftest.$ac_ext |
| 14564 | cat >>conftest.$ac_ext <<_ACEOF |
| 14565 | /* end confdefs.h. */ |
| 14566 | #include <sys/types.h> |
| 14567 | #include <sys/socket.h> |
| 14568 | |
| 14569 | int |
| 14570 | main () |
| 14571 | { |
| 14572 | static struct sockaddr ac_aggr; |
| 14573 | if (sizeof ac_aggr.sa_len) |
| 14574 | return 0; |
| 14575 | ; |
| 14576 | return 0; |
| 14577 | } |
| 14578 | _ACEOF |
| 14579 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14580 | if { (ac_try="$ac_compile" |
| 14581 | case "(($ac_try" in |
| 14582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14583 | *) ac_try_echo=$ac_try;; |
| 14584 | esac |
| 14585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14586 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14587 | ac_status=$? |
| 14588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14589 | rm -f conftest.er1 |
| 14590 | cat conftest.err >&5 |
| 14591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14592 | (exit $ac_status); } && { |
| 14593 | test -z "$ac_c_werror_flag" || |
| 14594 | test ! -s conftest.err |
| 14595 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14596 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14597 | else |
| 14598 | echo "$as_me: failed program was:" >&5 |
| 14599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14601 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14603 | |
| 14604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14606 | |
| 14607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14609 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14610 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14611 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14612 | |
| 14613 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14614 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14615 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14616 | |
| 14617 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14618 | |
| 14619 | |
| 14620 | |
| 14621 | |
| 14622 | |
| 14623 | |
| 14624 | |
| 14625 | |
| 14626 | |
| 14627 | |
| 14628 | |
| 14629 | |
| 14630 | |
| 14631 | |
| 14632 | |
| 14633 | |
| 14634 | |
| 14635 | |
| 14636 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14637 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14638 | |
| 14639 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14640 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14641 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14642 | |
| 14643 | |
| 14644 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14645 | |
| 14646 | |
| 14647 | 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] | 14648 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14649 | 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] | 14650 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14651 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14652 | 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] | 14653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14654 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14655 | cat >conftest.$ac_ext <<_ACEOF |
| 14656 | /* confdefs.h. */ |
| 14657 | _ACEOF |
| 14658 | cat confdefs.h >>conftest.$ac_ext |
| 14659 | cat >>conftest.$ac_ext <<_ACEOF |
| 14660 | /* end confdefs.h. */ |
| 14661 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14662 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14663 | #define $ac_func innocuous_$ac_func |
| 14664 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14665 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14666 | which can conflict with char $ac_func (); below. |
| 14667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14668 | <limits.h> exists even on freestanding compilers. */ |
| 14669 | |
| 14670 | #ifdef __STDC__ |
| 14671 | # include <limits.h> |
| 14672 | #else |
| 14673 | # include <assert.h> |
| 14674 | #endif |
| 14675 | |
| 14676 | #undef $ac_func |
| 14677 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14678 | /* Override any GCC internal prototype to avoid an error. |
| 14679 | Use char because int might match the return type of a GCC |
| 14680 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14681 | #ifdef __cplusplus |
| 14682 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14683 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14684 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14685 | /* The GNU C library defines this for functions which it implements |
| 14686 | to always fail with ENOSYS. Some functions are actually named |
| 14687 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14688 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14689 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14690 | #endif |
| 14691 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14692 | int |
| 14693 | main () |
| 14694 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14695 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14696 | ; |
| 14697 | return 0; |
| 14698 | } |
| 14699 | _ACEOF |
| 14700 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14701 | if { (ac_try="$ac_link" |
| 14702 | case "(($ac_try" in |
| 14703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14704 | *) ac_try_echo=$ac_try;; |
| 14705 | esac |
| 14706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14707 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14708 | ac_status=$? |
| 14709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14710 | rm -f conftest.er1 |
| 14711 | cat conftest.err >&5 |
| 14712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14713 | (exit $ac_status); } && { |
| 14714 | test -z "$ac_c_werror_flag" || |
| 14715 | test ! -s conftest.err |
| 14716 | } && test -s conftest$ac_exeext && |
| 14717 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14718 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14719 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14720 | echo "$as_me: failed program was:" >&5 |
| 14721 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14722 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14723 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14724 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14725 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14726 | 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] | 14727 | conftest$ac_exeext conftest.$ac_ext |
| 14728 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14729 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14731 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14732 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14733 | cat >>confdefs.h <<_ACEOF |
| 14734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14735 | _ACEOF |
| 14736 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14737 | fi |
| 14738 | done |
| 14739 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14740 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14741 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14742 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14743 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14745 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14746 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14747 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14748 | cat >conftest.$ac_ext <<_ACEOF |
| 14749 | /* confdefs.h. */ |
| 14750 | _ACEOF |
| 14751 | cat confdefs.h >>conftest.$ac_ext |
| 14752 | cat >>conftest.$ac_ext <<_ACEOF |
| 14753 | /* end confdefs.h. */ |
| 14754 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14755 | /* Override any GCC internal prototype to avoid an error. |
| 14756 | Use char because int might match the return type of a GCC |
| 14757 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14758 | #ifdef __cplusplus |
| 14759 | extern "C" |
| 14760 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14761 | char socket (); |
| 14762 | int |
| 14763 | main () |
| 14764 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14765 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14766 | ; |
| 14767 | return 0; |
| 14768 | } |
| 14769 | _ACEOF |
| 14770 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14771 | if { (ac_try="$ac_link" |
| 14772 | case "(($ac_try" in |
| 14773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14774 | *) ac_try_echo=$ac_try;; |
| 14775 | esac |
| 14776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14777 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14778 | ac_status=$? |
| 14779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14780 | rm -f conftest.er1 |
| 14781 | cat conftest.err >&5 |
| 14782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14783 | (exit $ac_status); } && { |
| 14784 | test -z "$ac_c_werror_flag" || |
| 14785 | test ! -s conftest.err |
| 14786 | } && test -s conftest$ac_exeext && |
| 14787 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14788 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14789 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14790 | echo "$as_me: failed program was:" >&5 |
| 14791 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14792 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14793 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14794 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14795 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14796 | 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] | 14797 | conftest$ac_exeext conftest.$ac_ext |
| 14798 | LIBS=$ac_check_lib_save_LIBS |
| 14799 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14800 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14801 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14802 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14803 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14804 | fi |
| 14805 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14806 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14807 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14808 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14809 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14810 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14812 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14813 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14814 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14815 | cat >conftest.$ac_ext <<_ACEOF |
| 14816 | /* confdefs.h. */ |
| 14817 | _ACEOF |
| 14818 | cat confdefs.h >>conftest.$ac_ext |
| 14819 | cat >>conftest.$ac_ext <<_ACEOF |
| 14820 | /* end confdefs.h. */ |
| 14821 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14822 | /* Override any GCC internal prototype to avoid an error. |
| 14823 | Use char because int might match the return type of a GCC |
| 14824 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14825 | #ifdef __cplusplus |
| 14826 | extern "C" |
| 14827 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14828 | char dlopen (); |
| 14829 | int |
| 14830 | main () |
| 14831 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14832 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14833 | ; |
| 14834 | return 0; |
| 14835 | } |
| 14836 | _ACEOF |
| 14837 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14838 | if { (ac_try="$ac_link" |
| 14839 | case "(($ac_try" in |
| 14840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14841 | *) ac_try_echo=$ac_try;; |
| 14842 | esac |
| 14843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14844 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14845 | ac_status=$? |
| 14846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14847 | rm -f conftest.er1 |
| 14848 | cat conftest.err >&5 |
| 14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14850 | (exit $ac_status); } && { |
| 14851 | test -z "$ac_c_werror_flag" || |
| 14852 | test ! -s conftest.err |
| 14853 | } && test -s conftest$ac_exeext && |
| 14854 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14855 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14856 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14857 | echo "$as_me: failed program was:" >&5 |
| 14858 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14860 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14862 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14863 | 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] | 14864 | conftest$ac_exeext conftest.$ac_ext |
| 14865 | LIBS=$ac_check_lib_save_LIBS |
| 14866 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14867 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14868 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14869 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14870 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14871 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14872 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14873 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14874 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14875 | fi |
| 14876 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14877 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14878 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 14879 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14880 | if test "${ac_cv_have_optreset+set}" = set; then |
| 14881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14882 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14883 | cat >conftest.$ac_ext <<_ACEOF |
| 14884 | /* confdefs.h. */ |
| 14885 | _ACEOF |
| 14886 | cat confdefs.h >>conftest.$ac_ext |
| 14887 | cat >>conftest.$ac_ext <<_ACEOF |
| 14888 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14889 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14890 | |
| 14891 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14893 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14894 | ac_cv_have_optreset=yes |
| 14895 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14896 | ac_cv_have_optreset=no |
| 14897 | fi |
| 14898 | rm -f conftest* |
| 14899 | |
| 14900 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14901 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 14902 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14903 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14904 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14905 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14906 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14907 | |
| 14908 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14909 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 14910 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14911 | if diff -u $0 $0 >& /dev/null ; then |
| 14912 | UNI_DIFF_OPTS=-u |
| 14913 | else |
| 14914 | UNI_DIFF_OPTS=-c |
| 14915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14916 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 14917 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14918 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14919 | case "$host_os" in |
| 14920 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14921 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14922 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14923 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14924 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14925 | ;; |
| 14926 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14927 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14928 | CYGWIN_CMT="#" |
| 14929 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14930 | case "$host_os" in |
| 14931 | linux*) |
| 14932 | LINUX_CMT= |
| 14933 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14934 | cygwin) |
| 14935 | CYGWIN_CMT= |
| 14936 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14937 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14938 | esac |
| 14939 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14940 | |
| 14941 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14942 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14943 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14944 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 14945 | root_prefix=""; |
| 14946 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14947 | fi |
| 14948 | ;; |
| 14949 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14950 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14951 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14952 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14953 | prefix="/usr"; |
| 14954 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 14955 | if test "$mandir" = '${prefix}/man' ; then |
| 14956 | echo "...and mandir defaults to /usr/share/man" |
| 14957 | mandir=/usr/share/man |
| 14958 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14959 | fi |
| 14960 | ;; |
| 14961 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14962 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 14963 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14964 | root_prefix="$ac_default_prefix" |
| 14965 | else |
| 14966 | root_prefix="$prefix" |
| 14967 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 14968 | root_bindir=$bindir |
| 14969 | root_sbindir=$sbindir |
| 14970 | root_libdir=$libdir |
| 14971 | root_sysconfdir=$sysconfdir |
| 14972 | else |
| 14973 | root_bindir='${root_prefix}/bin' |
| 14974 | root_sbindir='${root_prefix}/sbin' |
| 14975 | root_libdir='${root_prefix}/lib' |
| 14976 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14977 | fi |
| 14978 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14979 | |
| 14980 | |
| 14981 | |
| 14982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14983 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 14984 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14985 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 14986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14987 | else |
| 14988 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14989 | cat >conftest.$ac_ext <<_ACEOF |
| 14990 | /* confdefs.h. */ |
| 14991 | _ACEOF |
| 14992 | cat confdefs.h >>conftest.$ac_ext |
| 14993 | cat >>conftest.$ac_ext <<_ACEOF |
| 14994 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14995 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14996 | int |
| 14997 | main () |
| 14998 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14999 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15000 | ; |
| 15001 | return 0; |
| 15002 | } |
| 15003 | _ACEOF |
| 15004 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15005 | if { (ac_try="$ac_link" |
| 15006 | case "(($ac_try" in |
| 15007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15008 | *) ac_try_echo=$ac_try;; |
| 15009 | esac |
| 15010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15011 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15012 | ac_status=$? |
| 15013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15014 | rm -f conftest.er1 |
| 15015 | cat conftest.err >&5 |
| 15016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15017 | (exit $ac_status); } && { |
| 15018 | test -z "$ac_c_werror_flag" || |
| 15019 | test ! -s conftest.err |
| 15020 | } && test -s conftest$ac_exeext && |
| 15021 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15022 | ac_cv_e2fsprogs_use_static=yes |
| 15023 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15024 | echo "$as_me: failed program was:" >&5 |
| 15025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15026 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15027 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15028 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15029 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15030 | 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] | 15031 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15032 | LDFLAGS=$SAVE_LDFLAGS |
| 15033 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15034 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15035 | case "$host_os" in |
| 15036 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15037 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15038 | ;; |
| 15039 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15040 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15041 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15042 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15043 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15044 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15045 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15046 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15047 | case "$host_os" in |
| 15048 | darwin*) |
| 15049 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15050 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15051 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15052 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15053 | |
| 15054 | ;; |
| 15055 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15056 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15057 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15058 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15059 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15060 | if test "$cross_compiling" = yes ; then |
| 15061 | DO_TEST_SUITE= |
| 15062 | else |
| 15063 | DO_TEST_SUITE=check |
| 15064 | fi |
| 15065 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15066 | INTL_FLAGS= |
| 15067 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15068 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15069 | fi |
| 15070 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15071 | if test $cross_compiling = no; then |
| 15072 | BUILD_CFLAGS="$CFLAGS" |
| 15073 | BUILD_LDFLAGS="$LDFLAGS" |
| 15074 | else |
| 15075 | BUILD_CFLAGS= |
| 15076 | BUILD_LDFLAGS= |
| 15077 | fi |
| 15078 | |
| 15079 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15080 | test -d lib || mkdir lib |
| 15081 | test -d include || mkdir include |
| 15082 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15083 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15084 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15085 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15086 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15087 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15088 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15089 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15090 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15091 | 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] | 15092 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15093 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15094 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15095 | if test -d `dirname ${srcdir}/$i` ; then |
| 15096 | outlist="$outlist $i" |
| 15097 | fi |
| 15098 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15099 | ac_config_files="$ac_config_files $outlist" |
| 15100 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15101 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15102 | # This file is a shell script that caches the results of configure |
| 15103 | # 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] | 15104 | # scripts and configure runs, see configure's option --config-cache. |
| 15105 | # It is not useful on other systems. If it contains results you don't |
| 15106 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15107 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15108 | # config.status only pays attention to the cache file if you give it |
| 15109 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15110 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15111 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15112 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15113 | # following values. |
| 15114 | |
| 15115 | _ACEOF |
| 15116 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15117 | # The following way of writing the cache mishandles newlines in values, |
| 15118 | # 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] | 15119 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15120 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15121 | # 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] | 15122 | ( |
| 15123 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15124 | eval ac_val=\$$ac_var |
| 15125 | case $ac_val in #( |
| 15126 | *${as_nl}*) |
| 15127 | case $ac_var in #( |
| 15128 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15129 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15130 | esac |
| 15131 | case $ac_var in #( |
| 15132 | _ | IFS | as_nl) ;; #( |
| 15133 | *) $as_unset $ac_var ;; |
| 15134 | esac ;; |
| 15135 | esac |
| 15136 | done |
| 15137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15138 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15139 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15140 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15141 | # `set' does not quote correctly, so add quotes (double-quote |
| 15142 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15143 | sed -n \ |
| 15144 | "s/'/'\\\\''/g; |
| 15145 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15146 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15147 | *) |
| 15148 | # `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] | 15149 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15150 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15151 | esac | |
| 15152 | sort |
| 15153 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15154 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15155 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15156 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15157 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15158 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15159 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15160 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15161 | :end' >>confcache |
| 15162 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15163 | if test -w "$cache_file"; then |
| 15164 | test "x$cache_file" != "x/dev/null" && |
| 15165 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15166 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15167 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15168 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15169 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15170 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15171 | fi |
| 15172 | fi |
| 15173 | rm -f confcache |
| 15174 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15175 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15176 | # Let make expand exec_prefix. |
| 15177 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15178 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15179 | # Transform confdefs.h into DEFS. |
| 15180 | # Protect against shell expansion while executing Makefile rules. |
| 15181 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15182 | # |
| 15183 | # 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] | 15184 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15185 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15186 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15187 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15188 | :clear |
| 15189 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15190 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15191 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15192 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15193 | b any |
| 15194 | :quote |
| 15195 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15196 | s/\[/\\&/g |
| 15197 | s/\]/\\&/g |
| 15198 | s/\$/$$/g |
| 15199 | H |
| 15200 | :any |
| 15201 | ${ |
| 15202 | g |
| 15203 | s/^\n// |
| 15204 | s/\n/ /g |
| 15205 | p |
| 15206 | } |
| 15207 | ' |
| 15208 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15209 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15210 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15211 | ac_libobjs= |
| 15212 | ac_ltlibobjs= |
| 15213 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15214 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15215 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15216 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15217 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15218 | # will be set to the directory where LIBOBJS objects are built. |
| 15219 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15220 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15221 | done |
| 15222 | LIBOBJS=$ac_libobjs |
| 15223 | |
| 15224 | LTLIBOBJS=$ac_ltlibobjs |
| 15225 | |
| 15226 | |
| 15227 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15228 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15229 | ac_clean_files_save=$ac_clean_files |
| 15230 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15231 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15232 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15233 | cat >$CONFIG_STATUS <<_ACEOF |
| 15234 | #! $SHELL |
| 15235 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15236 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15237 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15238 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15239 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15240 | debug=false |
| 15241 | ac_cs_recheck=false |
| 15242 | ac_cs_silent=false |
| 15243 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15244 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15245 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15246 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15247 | ## --------------------- ## |
| 15248 | ## M4sh Initialization. ## |
| 15249 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15250 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15251 | # Be more Bourne compatible |
| 15252 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15253 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15254 | emulate sh |
| 15255 | NULLCMD=: |
| 15256 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15257 | # is contrary to our usage. Disable this feature. |
| 15258 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15259 | setopt NO_GLOB_SUBST |
| 15260 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15261 | case `(set -o) 2>/dev/null` in |
| 15262 | *posix*) set -o posix ;; |
| 15263 | esac |
| 15264 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15265 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15266 | |
| 15267 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15268 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15270 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15271 | # Avoid depending upon Character Ranges. |
| 15272 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15273 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15274 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15275 | as_cr_digits='0123456789' |
| 15276 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15277 | |
| 15278 | # The user is always right. |
| 15279 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15280 | echo "#! /bin/sh" >conf$$.sh |
| 15281 | echo "exit 0" >>conf$$.sh |
| 15282 | chmod +x conf$$.sh |
| 15283 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15284 | PATH_SEPARATOR=';' |
| 15285 | else |
| 15286 | PATH_SEPARATOR=: |
| 15287 | fi |
| 15288 | rm -f conf$$.sh |
| 15289 | fi |
| 15290 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15291 | # Support unset when possible. |
| 15292 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15293 | as_unset=unset |
| 15294 | else |
| 15295 | as_unset=false |
| 15296 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15297 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15298 | |
| 15299 | # IFS |
| 15300 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15301 | # there to prevent editors from complaining about space-tab. |
| 15302 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15303 | # splitting by setting IFS to empty value.) |
| 15304 | as_nl=' |
| 15305 | ' |
| 15306 | IFS=" "" $as_nl" |
| 15307 | |
| 15308 | # Find who we are. Look in the path if we contain no directory separator. |
| 15309 | case $0 in |
| 15310 | *[\\/]* ) as_myself=$0 ;; |
| 15311 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15312 | for as_dir in $PATH |
| 15313 | do |
| 15314 | IFS=$as_save_IFS |
| 15315 | test -z "$as_dir" && as_dir=. |
| 15316 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15317 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15318 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15319 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15320 | ;; |
| 15321 | esac |
| 15322 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15323 | # in which case we are not to be found in the path. |
| 15324 | if test "x$as_myself" = x; then |
| 15325 | as_myself=$0 |
| 15326 | fi |
| 15327 | if test ! -f "$as_myself"; then |
| 15328 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15329 | { (exit 1); exit 1; } |
| 15330 | fi |
| 15331 | |
| 15332 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15333 | for as_var in ENV MAIL MAILPATH |
| 15334 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15335 | done |
| 15336 | PS1='$ ' |
| 15337 | PS2='> ' |
| 15338 | PS4='+ ' |
| 15339 | |
| 15340 | # NLS nuisances. |
| 15341 | for as_var in \ |
| 15342 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15343 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15344 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15345 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15346 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15347 | eval $as_var=C; export $as_var |
| 15348 | else |
| 15349 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15350 | fi |
| 15351 | done |
| 15352 | |
| 15353 | # Required to use basename. |
| 15354 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15355 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15356 | as_expr=expr |
| 15357 | else |
| 15358 | as_expr=false |
| 15359 | fi |
| 15360 | |
| 15361 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15362 | as_basename=basename |
| 15363 | else |
| 15364 | as_basename=false |
| 15365 | fi |
| 15366 | |
| 15367 | |
| 15368 | # Name of the executable. |
| 15369 | as_me=`$as_basename -- "$0" || |
| 15370 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15371 | X"$0" : 'X\(//\)$' \| \ |
| 15372 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15373 | echo X/"$0" | |
| 15374 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15375 | s//\1/ |
| 15376 | q |
| 15377 | } |
| 15378 | /^X\/\(\/\/\)$/{ |
| 15379 | s//\1/ |
| 15380 | q |
| 15381 | } |
| 15382 | /^X\/\(\/\).*/{ |
| 15383 | s//\1/ |
| 15384 | q |
| 15385 | } |
| 15386 | s/.*/./; q'` |
| 15387 | |
| 15388 | # CDPATH. |
| 15389 | $as_unset CDPATH |
| 15390 | |
| 15391 | |
| 15392 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15393 | as_lineno_1=$LINENO |
| 15394 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15395 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15396 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15397 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15398 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15399 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15400 | # line-number line after each line using $LINENO; the second 'sed' |
| 15401 | # does the real work. The second script uses 'N' to pair each |
| 15402 | # line-number line with the line containing $LINENO, and appends |
| 15403 | # trailing '-' during substitution so that $LINENO is not a special |
| 15404 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15405 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15406 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15407 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15408 | sed -n ' |
| 15409 | p |
| 15410 | /[$]LINENO/= |
| 15411 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15412 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15413 | s/[$]LINENO.*/&-/ |
| 15414 | t lineno |
| 15415 | b |
| 15416 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15417 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15418 | :loop |
| 15419 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15420 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15421 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15422 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15423 | chmod +x "$as_me.lineno" || |
| 15424 | { 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] | 15425 | { (exit 1); exit 1; }; } |
| 15426 | |
| 15427 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15428 | # (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] | 15429 | # original and so on. Autoconf is especially sensitive to this). |
| 15430 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15431 | # Exit status is that of the last command. |
| 15432 | exit |
| 15433 | } |
| 15434 | |
| 15435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15437 | as_dirname=dirname |
| 15438 | else |
| 15439 | as_dirname=false |
| 15440 | fi |
| 15441 | |
| 15442 | ECHO_C= ECHO_N= ECHO_T= |
| 15443 | case `echo -n x` in |
| 15444 | -n*) |
| 15445 | case `echo 'x\c'` in |
| 15446 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15447 | *) ECHO_C='\c';; |
| 15448 | esac;; |
| 15449 | *) |
| 15450 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15451 | esac |
| 15452 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15453 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15455 | as_expr=expr |
| 15456 | else |
| 15457 | as_expr=false |
| 15458 | fi |
| 15459 | |
| 15460 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15461 | if test -d conf$$.dir; then |
| 15462 | rm -f conf$$.dir/conf$$.file |
| 15463 | else |
| 15464 | rm -f conf$$.dir |
| 15465 | mkdir conf$$.dir |
| 15466 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15467 | echo >conf$$.file |
| 15468 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15469 | as_ln_s='ln -s' |
| 15470 | # ... but there are two gotchas: |
| 15471 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15472 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15473 | # In both cases, we have to default to `cp -p'. |
| 15474 | 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] | 15475 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15476 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15477 | as_ln_s=ln |
| 15478 | else |
| 15479 | as_ln_s='cp -p' |
| 15480 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15481 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15482 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15483 | |
| 15484 | if mkdir -p . 2>/dev/null; then |
| 15485 | as_mkdir_p=: |
| 15486 | else |
| 15487 | test -d ./-p && rmdir ./-p |
| 15488 | as_mkdir_p=false |
| 15489 | fi |
| 15490 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15491 | if test -x / >/dev/null 2>&1; then |
| 15492 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15493 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15494 | if ls -dL / >/dev/null 2>&1; then |
| 15495 | as_ls_L_option=L |
| 15496 | else |
| 15497 | as_ls_L_option= |
| 15498 | fi |
| 15499 | as_test_x=' |
| 15500 | eval sh -c '\'' |
| 15501 | if test -d "$1"; then |
| 15502 | test -d "$1/."; |
| 15503 | else |
| 15504 | case $1 in |
| 15505 | -*)set "./$1";; |
| 15506 | esac; |
| 15507 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15508 | ???[sx]*):;;*)false;;esac;fi |
| 15509 | '\'' sh |
| 15510 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15511 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15512 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15513 | |
| 15514 | # Sed expression to map a string onto a valid CPP name. |
| 15515 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15516 | |
| 15517 | # Sed expression to map a string onto a valid variable name. |
| 15518 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15519 | |
| 15520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15521 | exec 6>&1 |
| 15522 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15523 | # 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] | 15524 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15525 | # values after options handling. |
| 15526 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15527 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15528 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15529 | |
| 15530 | CONFIG_FILES = $CONFIG_FILES |
| 15531 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15532 | CONFIG_LINKS = $CONFIG_LINKS |
| 15533 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15534 | $ $0 $@ |
| 15535 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15536 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15537 | " |
| 15538 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15539 | _ACEOF |
| 15540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15541 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15542 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15543 | config_files="$ac_config_files" |
| 15544 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15546 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15547 | |
| 15548 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15549 | ac_cs_usage="\ |
| 15550 | \`$as_me' instantiates files from templates according to the |
| 15551 | current configuration. |
| 15552 | |
| 15553 | Usage: $0 [OPTIONS] [FILE]... |
| 15554 | |
| 15555 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15556 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15557 | -q, --quiet do not print progress messages |
| 15558 | -d, --debug don't remove temporary files |
| 15559 | --recheck update $as_me by reconfiguring in the same conditions |
| 15560 | --file=FILE[:TEMPLATE] |
| 15561 | instantiate the configuration file FILE |
| 15562 | |
| 15563 | Configuration files: |
| 15564 | $config_files |
| 15565 | |
| 15566 | Configuration commands: |
| 15567 | $config_commands |
| 15568 | |
| 15569 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15570 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15571 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15572 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15573 | ac_cs_version="\\ |
| 15574 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15575 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15576 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15578 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15579 | This config.status script is free software; the Free Software Foundation |
| 15580 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15581 | |
| 15582 | ac_pwd='$ac_pwd' |
| 15583 | srcdir='$srcdir' |
| 15584 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15585 | _ACEOF |
| 15586 | |
| 15587 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15588 | # If no file are specified by the user, then we need to provide default |
| 15589 | # value. By we need to know if files were specified by the user. |
| 15590 | ac_need_defaults=: |
| 15591 | while test $# != 0 |
| 15592 | do |
| 15593 | case $1 in |
| 15594 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15595 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15596 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15597 | ac_shift=: |
| 15598 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15599 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15600 | ac_option=$1 |
| 15601 | ac_optarg=$2 |
| 15602 | ac_shift=shift |
| 15603 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15604 | esac |
| 15605 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15606 | case $ac_option in |
| 15607 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15608 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15609 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15610 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15611 | echo "$ac_cs_version"; exit ;; |
| 15612 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15613 | debug=: ;; |
| 15614 | --file | --fil | --fi | --f ) |
| 15615 | $ac_shift |
| 15616 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15617 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15618 | --he | --h | --help | --hel | -h ) |
| 15619 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15621 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15622 | ac_cs_silent=: ;; |
| 15623 | |
| 15624 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15625 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15626 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15627 | { (exit 1); exit 1; }; } ;; |
| 15628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15629 | *) ac_config_targets="$ac_config_targets $1" |
| 15630 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15631 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15632 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15633 | shift |
| 15634 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15636 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15638 | if $ac_cs_silent; then |
| 15639 | exec 6>/dev/null |
| 15640 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15641 | fi |
| 15642 | |
| 15643 | _ACEOF |
| 15644 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15645 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15646 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15647 | CONFIG_SHELL=$SHELL |
| 15648 | export CONFIG_SHELL |
| 15649 | 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] | 15650 | fi |
| 15651 | |
| 15652 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15653 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15654 | exec 5>>config.log |
| 15655 | { |
| 15656 | echo |
| 15657 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15658 | ## Running $as_me. ## |
| 15659 | _ASBOX |
| 15660 | echo "$ac_log" |
| 15661 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15662 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15663 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15664 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15665 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15666 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15667 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15668 | # 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] | 15669 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15670 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15671 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15672 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15673 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15674 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15675 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15676 | _ACEOF |
| 15677 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15678 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15679 | |
| 15680 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15681 | for ac_config_target in $ac_config_targets |
| 15682 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15683 | case $ac_config_target in |
| 15684 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15685 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15686 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15687 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15688 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15689 | { (exit 1); exit 1; }; };; |
| 15690 | esac |
| 15691 | done |
| 15692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15693 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15694 | # If the user did not use the arguments to specify the items to instantiate, |
| 15695 | # then the envvar interface is used. Set only those that are not. |
| 15696 | # We use the long form for the default assignment because of an extremely |
| 15697 | # bizarre bug on SunOS 4.1.3. |
| 15698 | if $ac_need_defaults; then |
| 15699 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15700 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15701 | fi |
| 15702 | |
| 15703 | # 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] | 15704 | # 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] | 15705 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15706 | # Hook for its removal unless debugging. |
| 15707 | # Note that there is a small window in which the directory will not be cleaned: |
| 15708 | # 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] | 15709 | $debug || |
| 15710 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15711 | tmp= |
| 15712 | trap 'exit_status=$? |
| 15713 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15714 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15715 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15716 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15717 | # Create a (secure) tmp directory for tmp files. |
| 15718 | |
| 15719 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15720 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15721 | test -n "$tmp" && test -d "$tmp" |
| 15722 | } || |
| 15723 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15724 | tmp=./conf$$-$RANDOM |
| 15725 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15726 | } || |
| 15727 | { |
| 15728 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15729 | { (exit 1); exit 1; } |
| 15730 | } |
| 15731 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15732 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15733 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15734 | # |
| 15735 | |
| 15736 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15737 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15738 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15739 | |
| 15740 | _ACEOF |
| 15741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15742 | # Create sed commands to just substitute file output variables. |
| 15743 | |
| 15744 | # Remaining file output variables are in a fragment that also has non-file |
| 15745 | # output varibles. |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | ac_delim='%!_!# ' |
| 15750 | for ac_last_try in false false false false false :; do |
| 15751 | cat >conf$$subs.sed <<_ACEOF |
| 15752 | SHELL!$SHELL$ac_delim |
| 15753 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15754 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15755 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15756 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15757 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15758 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15759 | exec_prefix!$exec_prefix$ac_delim |
| 15760 | prefix!$prefix$ac_delim |
| 15761 | program_transform_name!$program_transform_name$ac_delim |
| 15762 | bindir!$bindir$ac_delim |
| 15763 | sbindir!$sbindir$ac_delim |
| 15764 | libexecdir!$libexecdir$ac_delim |
| 15765 | datarootdir!$datarootdir$ac_delim |
| 15766 | datadir!$datadir$ac_delim |
| 15767 | sysconfdir!$sysconfdir$ac_delim |
| 15768 | sharedstatedir!$sharedstatedir$ac_delim |
| 15769 | localstatedir!$localstatedir$ac_delim |
| 15770 | includedir!$includedir$ac_delim |
| 15771 | oldincludedir!$oldincludedir$ac_delim |
| 15772 | docdir!$docdir$ac_delim |
| 15773 | infodir!$infodir$ac_delim |
| 15774 | htmldir!$htmldir$ac_delim |
| 15775 | dvidir!$dvidir$ac_delim |
| 15776 | pdfdir!$pdfdir$ac_delim |
| 15777 | psdir!$psdir$ac_delim |
| 15778 | libdir!$libdir$ac_delim |
| 15779 | localedir!$localedir$ac_delim |
| 15780 | mandir!$mandir$ac_delim |
| 15781 | DEFS!$DEFS$ac_delim |
| 15782 | ECHO_C!$ECHO_C$ac_delim |
| 15783 | ECHO_N!$ECHO_N$ac_delim |
| 15784 | ECHO_T!$ECHO_T$ac_delim |
| 15785 | LIBS!$LIBS$ac_delim |
| 15786 | build_alias!$build_alias$ac_delim |
| 15787 | host_alias!$host_alias$ac_delim |
| 15788 | target_alias!$target_alias$ac_delim |
| 15789 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15790 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15791 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15792 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15793 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15794 | build!$build$ac_delim |
| 15795 | build_cpu!$build_cpu$ac_delim |
| 15796 | build_vendor!$build_vendor$ac_delim |
| 15797 | build_os!$build_os$ac_delim |
| 15798 | host!$host$ac_delim |
| 15799 | host_cpu!$host_cpu$ac_delim |
| 15800 | host_vendor!$host_vendor$ac_delim |
| 15801 | host_os!$host_os$ac_delim |
| 15802 | CC!$CC$ac_delim |
| 15803 | CFLAGS!$CFLAGS$ac_delim |
| 15804 | LDFLAGS!$LDFLAGS$ac_delim |
| 15805 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15806 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15807 | EXEEXT!$EXEEXT$ac_delim |
| 15808 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15809 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15810 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15811 | GREP!$GREP$ac_delim |
| 15812 | EGREP!$EGREP$ac_delim |
| 15813 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 15814 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 15815 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 15816 | ELF_CMT!$ELF_CMT$ac_delim |
| 15817 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 15818 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 15819 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 15820 | LIB_EXT!$LIB_EXT$ac_delim |
| 15821 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 15822 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 15823 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 15824 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 15825 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 15826 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 15827 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15828 | _ACEOF |
| 15829 | |
| 15830 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 15831 | break |
| 15832 | elif $ac_last_try; then |
| 15833 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15834 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15835 | { (exit 1); exit 1; }; } |
| 15836 | else |
| 15837 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15838 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15839 | done |
| 15840 | |
| 15841 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15842 | if test -n "$ac_eof"; then |
| 15843 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15844 | ac_eof=`expr $ac_eof + 1` |
| 15845 | fi |
| 15846 | |
| 15847 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15848 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 15849 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15850 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 15851 | r $MCONFIG |
| 15852 | d |
| 15853 | } |
| 15854 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 15855 | r $MAKEFILE_ELF |
| 15856 | d |
| 15857 | } |
| 15858 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 15859 | r $MAKEFILE_BSDLIB |
| 15860 | d |
| 15861 | } |
| 15862 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 15863 | r $MAKEFILE_PROFILE |
| 15864 | d |
| 15865 | } |
| 15866 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 15867 | r $MAKEFILE_CHECKER |
| 15868 | d |
| 15869 | } |
| 15870 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 15871 | r $MAKEFILE_LIBRARY |
| 15872 | d |
| 15873 | } |
| 15874 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 15875 | r $ASM_TYPES_HEADER |
| 15876 | d |
| 15877 | } |
| 15878 | _ACEOF |
| 15879 | sed ' |
| 15880 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15881 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15882 | :n |
| 15883 | t n |
| 15884 | s/'"$ac_delim"'$/,g/; t |
| 15885 | s/$/\\/; p |
| 15886 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15887 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15888 | rm -f conf$$subs.sed |
| 15889 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15890 | CEOF$ac_eof |
| 15891 | _ACEOF |
| 15892 | |
| 15893 | |
| 15894 | ac_delim='%!_!# ' |
| 15895 | for ac_last_try in false false false false false :; do |
| 15896 | cat >conf$$subs.sed <<_ACEOF |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15897 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15898 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 15899 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 15900 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
| 15901 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 15902 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 15903 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 15904 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame^] | 15905 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15906 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 15907 | PACKAGE!$PACKAGE$ac_delim |
| 15908 | VERSION!$VERSION$ac_delim |
| 15909 | SET_MAKE!$SET_MAKE$ac_delim |
| 15910 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 15911 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 15912 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 15913 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 15914 | USE_NLS!$USE_NLS$ac_delim |
| 15915 | MSGFMT!$MSGFMT$ac_delim |
| 15916 | GMSGFMT!$GMSGFMT$ac_delim |
| 15917 | XGETTEXT!$XGETTEXT$ac_delim |
| 15918 | MSGMERGE!$MSGMERGE$ac_delim |
| 15919 | RANLIB!$RANLIB$ac_delim |
| 15920 | ALLOCA!$ALLOCA$ac_delim |
| 15921 | GLIBC21!$GLIBC21$ac_delim |
| 15922 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 15923 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 15924 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 15925 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 15926 | LIBICONV!$LIBICONV$ac_delim |
| 15927 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 15928 | INTLBISON!$INTLBISON$ac_delim |
| 15929 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 15930 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 15931 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 15932 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 15933 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 15934 | GENCAT!$GENCAT$ac_delim |
| 15935 | INTLOBJS!$INTLOBJS$ac_delim |
| 15936 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 15937 | INTLLIBS!$INTLLIBS$ac_delim |
| 15938 | LIBINTL!$LIBINTL$ac_delim |
| 15939 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 15940 | POSUB!$POSUB$ac_delim |
| 15941 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 15942 | LN!$LN$ac_delim |
| 15943 | LN_S!$LN_S$ac_delim |
| 15944 | MV!$MV$ac_delim |
| 15945 | CP!$CP$ac_delim |
| 15946 | RM!$RM$ac_delim |
| 15947 | CHMOD!$CHMOD$ac_delim |
| 15948 | AWK!$AWK$ac_delim |
| 15949 | SED!$SED$ac_delim |
| 15950 | PERL!$PERL$ac_delim |
| 15951 | LDCONFIG!$LDCONFIG$ac_delim |
| 15952 | AR!$AR$ac_delim |
| 15953 | STRIP!$STRIP$ac_delim |
| 15954 | BUILD_CC!$BUILD_CC$ac_delim |
| 15955 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 15956 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 15957 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 15958 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 15959 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 15960 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 15961 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 15962 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 15963 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 15964 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 15965 | root_prefix!$root_prefix$ac_delim |
| 15966 | root_bindir!$root_bindir$ac_delim |
| 15967 | root_sbindir!$root_sbindir$ac_delim |
| 15968 | root_libdir!$root_libdir$ac_delim |
| 15969 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 15970 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 15971 | SS_DIR!$SS_DIR$ac_delim |
| 15972 | ET_DIR!$ET_DIR$ac_delim |
| 15973 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 15974 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 15975 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 15976 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 15977 | LIBOBJS!$LIBOBJS$ac_delim |
| 15978 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 15979 | _ACEOF |
| 15980 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame^] | 15981 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15982 | break |
| 15983 | elif $ac_last_try; then |
| 15984 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15985 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15986 | { (exit 1); exit 1; }; } |
| 15987 | else |
| 15988 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15989 | fi |
| 15990 | done |
| 15991 | |
| 15992 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15993 | if test -n "$ac_eof"; then |
| 15994 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15995 | ac_eof=`expr $ac_eof + 1` |
| 15996 | fi |
| 15997 | |
| 15998 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15999 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16000 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16001 | _ACEOF |
| 16002 | sed ' |
| 16003 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16004 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16005 | :n |
| 16006 | t n |
| 16007 | s/'"$ac_delim"'$/,g/; t |
| 16008 | s/$/\\/; p |
| 16009 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16010 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16011 | rm -f conf$$subs.sed |
| 16012 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16013 | :end |
| 16014 | s/|#_!!_#|//g |
| 16015 | CEOF$ac_eof |
| 16016 | _ACEOF |
| 16017 | |
| 16018 | |
| 16019 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16020 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16021 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16022 | # (actually we leave an empty line to preserve line numbers). |
| 16023 | if test "x$srcdir" = x.; then |
| 16024 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16025 | s/:*\$(srcdir):*/:/ |
| 16026 | s/:*\${srcdir}:*/:/ |
| 16027 | s/:*@srcdir@:*/:/ |
| 16028 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16029 | s/:*$// |
| 16030 | s/^[^=]*=[ ]*$// |
| 16031 | }' |
| 16032 | fi |
| 16033 | |
| 16034 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16035 | fi # test -n "$CONFIG_FILES" |
| 16036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16037 | |
| 16038 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16039 | do |
| 16040 | case $ac_tag in |
| 16041 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16042 | esac |
| 16043 | case $ac_mode$ac_tag in |
| 16044 | :[FHL]*:*);; |
| 16045 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16046 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16047 | { (exit 1); exit 1; }; };; |
| 16048 | :[FH]-) ac_tag=-:-;; |
| 16049 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16050 | esac |
| 16051 | ac_save_IFS=$IFS |
| 16052 | IFS=: |
| 16053 | set x $ac_tag |
| 16054 | IFS=$ac_save_IFS |
| 16055 | shift |
| 16056 | ac_file=$1 |
| 16057 | shift |
| 16058 | |
| 16059 | case $ac_mode in |
| 16060 | :L) ac_source=$1;; |
| 16061 | :[FH]) |
| 16062 | ac_file_inputs= |
| 16063 | for ac_f |
| 16064 | do |
| 16065 | case $ac_f in |
| 16066 | -) ac_f="$tmp/stdin";; |
| 16067 | *) # Look for the file first in the build tree, then in the source tree |
| 16068 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16069 | # because $ac_f cannot contain `:'. |
| 16070 | test -f "$ac_f" || |
| 16071 | case $ac_f in |
| 16072 | [\\/$]*) false;; |
| 16073 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16074 | esac || |
| 16075 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16076 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16077 | { (exit 1); exit 1; }; };; |
| 16078 | esac |
| 16079 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16080 | done |
| 16081 | |
| 16082 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16083 | # use $as_me), people would be surprised to read: |
| 16084 | # /* config.h. Generated by config.status. */ |
| 16085 | configure_input="Generated from "`IFS=: |
| 16086 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16087 | if test x"$ac_file" != x-; then |
| 16088 | configure_input="$ac_file. $configure_input" |
| 16089 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16090 | echo "$as_me: creating $ac_file" >&6;} |
| 16091 | fi |
| 16092 | |
| 16093 | case $ac_tag in |
| 16094 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16095 | esac |
| 16096 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16097 | esac |
| 16098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16099 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16100 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16101 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16102 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16103 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16104 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16106 | s//\1/ |
| 16107 | q |
| 16108 | } |
| 16109 | /^X\(\/\/\)[^/].*/{ |
| 16110 | s//\1/ |
| 16111 | q |
| 16112 | } |
| 16113 | /^X\(\/\/\)$/{ |
| 16114 | s//\1/ |
| 16115 | q |
| 16116 | } |
| 16117 | /^X\(\/\).*/{ |
| 16118 | s//\1/ |
| 16119 | q |
| 16120 | } |
| 16121 | s/.*/./; q'` |
| 16122 | { as_dir="$ac_dir" |
| 16123 | case $as_dir in #( |
| 16124 | -*) as_dir=./$as_dir;; |
| 16125 | esac |
| 16126 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16127 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16128 | while :; do |
| 16129 | case $as_dir in #( |
| 16130 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16131 | *) as_qdir=$as_dir;; |
| 16132 | esac |
| 16133 | as_dirs="'$as_qdir' $as_dirs" |
| 16134 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16135 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16136 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16137 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16138 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16139 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16140 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16141 | s//\1/ |
| 16142 | q |
| 16143 | } |
| 16144 | /^X\(\/\/\)[^/].*/{ |
| 16145 | s//\1/ |
| 16146 | q |
| 16147 | } |
| 16148 | /^X\(\/\/\)$/{ |
| 16149 | s//\1/ |
| 16150 | q |
| 16151 | } |
| 16152 | /^X\(\/\).*/{ |
| 16153 | s//\1/ |
| 16154 | q |
| 16155 | } |
| 16156 | s/.*/./; q'` |
| 16157 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16158 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16159 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16160 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16161 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16162 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16163 | ac_builddir=. |
| 16164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16165 | case "$ac_dir" in |
| 16166 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16167 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16168 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16169 | # A ".." for each directory in $ac_dir_suffix. |
| 16170 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16171 | case $ac_top_builddir_sub in |
| 16172 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16173 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16174 | esac ;; |
| 16175 | esac |
| 16176 | ac_abs_top_builddir=$ac_pwd |
| 16177 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16178 | # for backward compatibility: |
| 16179 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16180 | |
| 16181 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16182 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16183 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16184 | ac_top_srcdir=$ac_top_builddir_sub |
| 16185 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16186 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16187 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16188 | ac_top_srcdir=$srcdir |
| 16189 | ac_abs_top_srcdir=$srcdir ;; |
| 16190 | *) # Relative name. |
| 16191 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16192 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16193 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16194 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16195 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16197 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16198 | case $ac_mode in |
| 16199 | :F) |
| 16200 | # |
| 16201 | # CONFIG_FILE |
| 16202 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16203 | |
| 16204 | case $INSTALL in |
| 16205 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16206 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16207 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16208 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16209 | |
| 16210 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16211 | # If the template does not know about datarootdir, expand it. |
| 16212 | # FIXME: This hack should be removed a few years after 2.60. |
| 16213 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16214 | |
| 16215 | case `sed -n '/datarootdir/ { |
| 16216 | p |
| 16217 | q |
| 16218 | } |
| 16219 | /@datadir@/p |
| 16220 | /@docdir@/p |
| 16221 | /@infodir@/p |
| 16222 | /@localedir@/p |
| 16223 | /@mandir@/p |
| 16224 | ' $ac_file_inputs` in |
| 16225 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16226 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16227 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16228 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16229 | _ACEOF |
| 16230 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16231 | ac_datarootdir_hack=' |
| 16232 | s&@datadir@&$datadir&g |
| 16233 | s&@docdir@&$docdir&g |
| 16234 | s&@infodir@&$infodir&g |
| 16235 | s&@localedir@&$localedir&g |
| 16236 | s&@mandir@&$mandir&g |
| 16237 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16238 | esac |
| 16239 | _ACEOF |
| 16240 | |
| 16241 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16242 | # Shell code in configure.ac might set extrasub. |
| 16243 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16244 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16245 | sed "$ac_vpsub |
| 16246 | $extrasub |
| 16247 | _ACEOF |
| 16248 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16249 | :t |
| 16250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16251 | s&@configure_input@&$configure_input&;t t |
| 16252 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16253 | s&@srcdir@&$ac_srcdir&;t t |
| 16254 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16255 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16256 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16257 | s&@builddir@&$ac_builddir&;t t |
| 16258 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16259 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16260 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16261 | $ac_datarootdir_hack |
| 16262 | " $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] | 16263 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16264 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16265 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16266 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16267 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16268 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16269 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16270 | 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] | 16271 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16272 | rm -f "$tmp/stdin" |
| 16273 | case $ac_file in |
| 16274 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16275 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16276 | esac |
| 16277 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16278 | |
| 16279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16280 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16281 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16282 | ;; |
| 16283 | esac |
| 16284 | |
| 16285 | |
| 16286 | case $ac_file$ac_mode in |
| 16287 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16288 | for ac_file in $CONFIG_FILES; do |
| 16289 | # Support "outfile[:infile[:infile...]]" |
| 16290 | case "$ac_file" in |
| 16291 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16292 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16293 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16294 | case "$ac_file" in */Makefile.in) |
| 16295 | # Adjust a relative srcdir. |
| 16296 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16297 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16298 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16299 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16300 | # In autoconf-2.50 it is called $srcdir. |
| 16301 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16302 | case "$ac_given_srcdir" in |
| 16303 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16304 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16305 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16306 | esac |
| 16307 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16308 | rm -f "$ac_dir/POTFILES" |
| 16309 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16310 | 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] | 16311 | POMAKEFILEDEPS="POTFILES.in" |
| 16312 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16313 | # on $ac_dir but don't depend on user-specified configuration |
| 16314 | # parameters. |
| 16315 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16316 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16317 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16318 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16319 | fi |
| 16320 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16321 | # Hide the ALL_LINGUAS assigment from automake. |
| 16322 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16323 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16324 | else |
| 16325 | # The set of available languages was given in configure.in. |
| 16326 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16327 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16328 | # Compute POFILES |
| 16329 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16330 | # Compute UPDATEPOFILES |
| 16331 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16332 | # Compute DUMMYPOFILES |
| 16333 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16334 | # Compute GMOFILES |
| 16335 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16336 | case "$ac_given_srcdir" in |
| 16337 | .) srcdirpre= ;; |
| 16338 | *) srcdirpre='$(srcdir)/' ;; |
| 16339 | esac |
| 16340 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16341 | UPDATEPOFILES= |
| 16342 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16343 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16344 | for lang in $ALL_LINGUAS; do |
| 16345 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16346 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16347 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16348 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16349 | done |
| 16350 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16351 | # environment variable. |
| 16352 | INST_LINGUAS= |
| 16353 | if test -n "$ALL_LINGUAS"; then |
| 16354 | for presentlang in $ALL_LINGUAS; do |
| 16355 | useit=no |
| 16356 | if test "%UNSET%" != "$LINGUAS"; then |
| 16357 | desiredlanguages="$LINGUAS" |
| 16358 | else |
| 16359 | desiredlanguages="$ALL_LINGUAS" |
| 16360 | fi |
| 16361 | for desiredlang in $desiredlanguages; do |
| 16362 | # Use the presentlang catalog if desiredlang is |
| 16363 | # a. equal to presentlang, or |
| 16364 | # b. a variant of presentlang (because in this case, |
| 16365 | # presentlang can be used as a fallback for messages |
| 16366 | # which are not translated in the desiredlang catalog). |
| 16367 | case "$desiredlang" in |
| 16368 | "$presentlang"*) useit=yes;; |
| 16369 | esac |
| 16370 | done |
| 16371 | if test $useit = yes; then |
| 16372 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16373 | fi |
| 16374 | done |
| 16375 | fi |
| 16376 | CATALOGS= |
| 16377 | if test -n "$INST_LINGUAS"; then |
| 16378 | for lang in $INST_LINGUAS; do |
| 16379 | CATALOGS="$CATALOGS $lang.gmo" |
| 16380 | done |
| 16381 | fi |
| 16382 | 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] | 16383 | 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] | 16384 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16385 | if test -f "$f"; then |
| 16386 | case "$f" in |
| 16387 | *.orig | *.bak | *~) ;; |
| 16388 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16389 | esac |
| 16390 | fi |
| 16391 | done |
| 16392 | fi |
| 16393 | ;; |
| 16394 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16395 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16396 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16397 | esac |
| 16398 | done # for ac_tag |
| 16399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16400 | |
| 16401 | { (exit 0); exit 0; } |
| 16402 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16403 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16404 | ac_clean_files=$ac_clean_files_save |
| 16405 | |
| 16406 | |
| 16407 | # configure is writing to config.log, and then calls config.status. |
| 16408 | # config.status does its own redirection, appending to config.log. |
| 16409 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16410 | # by configure, so config.status won't be able to write to it; its |
| 16411 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16412 | # effectively closing config.log, so it can be properly (re)opened and |
| 16413 | # appended to by config.status. When coming back to configure, we |
| 16414 | # need to make the FD available again. |
| 16415 | if test "$no_create" != yes; then |
| 16416 | ac_cs_success=: |
| 16417 | ac_config_status_args= |
| 16418 | test "$silent" = yes && |
| 16419 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16420 | exec 5>/dev/null |
| 16421 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16422 | exec 5>>config.log |
| 16423 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16424 | # would make configure fail if this is the last instruction. |
| 16425 | $ac_cs_success || { (exit 1); exit 1; } |
| 16426 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16427 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16428 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16429 | |