Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 27 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 28 | |
| 29 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 30 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 32 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 59 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 226 | case $as_dir in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 227 | /*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 252 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 273 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 274 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 442 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 447 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 450 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 451 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 481 | esac |
| 482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
| 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 523 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 542 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
| 550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 552 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 562 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 563 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 565 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
| 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
| 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME= |
| 574 | PACKAGE_TARNAME= |
| 575 | PACKAGE_VERSION= |
| 576 | PACKAGE_STRING= |
| 577 | PACKAGE_BUGREPORT= |
| 578 | |
| 579 | ac_unique_file="version.h" |
| 580 | # Factoring default headers for most tests. |
| 581 | ac_includes_default="\ |
| 582 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 583 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | # include <sys/types.h> |
| 585 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 586 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 587 | # include <sys/stat.h> |
| 588 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
| 592 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 593 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 594 | # include <stdlib.h> |
| 595 | # endif |
| 596 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 597 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 599 | # include <memory.h> |
| 600 | # endif |
| 601 | # include <string.h> |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 604 | # include <strings.h> |
| 605 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 606 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 607 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 610 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <unistd.h> |
| 614 | #endif" |
| 615 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | ac_subst_vars='SHELL |
| 617 | PATH_SEPARATOR |
| 618 | PACKAGE_NAME |
| 619 | PACKAGE_TARNAME |
| 620 | PACKAGE_VERSION |
| 621 | PACKAGE_STRING |
| 622 | PACKAGE_BUGREPORT |
| 623 | exec_prefix |
| 624 | prefix |
| 625 | program_transform_name |
| 626 | bindir |
| 627 | sbindir |
| 628 | libexecdir |
| 629 | datarootdir |
| 630 | datadir |
| 631 | sysconfdir |
| 632 | sharedstatedir |
| 633 | localstatedir |
| 634 | includedir |
| 635 | oldincludedir |
| 636 | docdir |
| 637 | infodir |
| 638 | htmldir |
| 639 | dvidir |
| 640 | pdfdir |
| 641 | psdir |
| 642 | libdir |
| 643 | localedir |
| 644 | mandir |
| 645 | DEFS |
| 646 | ECHO_C |
| 647 | ECHO_N |
| 648 | ECHO_T |
| 649 | LIBS |
| 650 | build_alias |
| 651 | host_alias |
| 652 | target_alias |
| 653 | E2FSPROGS_YEAR |
| 654 | E2FSPROGS_MONTH |
| 655 | E2FSPROGS_DAY |
| 656 | E2FSPROGS_VERSION |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 657 | E2FSPROGS_PKGVER |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 658 | build |
| 659 | build_cpu |
| 660 | build_vendor |
| 661 | build_os |
| 662 | host |
| 663 | host_cpu |
| 664 | host_vendor |
| 665 | host_os |
| 666 | CC |
| 667 | CFLAGS |
| 668 | LDFLAGS |
| 669 | CPPFLAGS |
| 670 | ac_ct_CC |
| 671 | EXEEXT |
| 672 | OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 673 | CPP |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 674 | LD |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 675 | GREP |
| 676 | EGREP |
| 677 | LINUX_INCLUDE |
| 678 | MAINTAINER_CMT |
| 679 | HTREE_CMT |
| 680 | ELF_CMT |
| 681 | BSDLIB_CMT |
| 682 | PROFILE_CMT |
| 683 | CHECKER_CMT |
| 684 | LIB_EXT |
| 685 | STATIC_LIB_EXT |
| 686 | PROFILED_LIB_EXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 687 | DEBUGFS_CMT |
| 688 | IMAGER_CMT |
| 689 | RESIZER_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 690 | FSCK_PROG |
| 691 | FSCK_MAN |
| 692 | E2INITRD_PROG |
| 693 | E2INITRD_MAN |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 694 | PKG_CONFIG |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 695 | DEVMAPPER_REQ |
| 696 | DEVMAPPER_PC_LIBS |
| 697 | DEVMAPPER_LIBS |
| 698 | STATIC_DEVMAPPER_LIBS |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 699 | STATIC_BLKID_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 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 749 | MAKEINFO |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 750 | BUILD_CC |
| 751 | SIZEOF_SHORT |
| 752 | SIZEOF_INT |
| 753 | SIZEOF_LONG |
| 754 | SIZEOF_LONG_LONG |
| 755 | SOCKET_LIB |
| 756 | DLOPEN_LIB |
| 757 | UNI_DIFF_OPTS |
| 758 | LINUX_CMT |
| 759 | CYGWIN_CMT |
| 760 | UNIX_CMT |
| 761 | root_prefix |
| 762 | root_bindir |
| 763 | root_sbindir |
| 764 | root_libdir |
| 765 | root_sysconfdir |
| 766 | LDFLAG_STATIC |
| 767 | SS_DIR |
| 768 | ET_DIR |
| 769 | DO_TEST_SUITE |
| 770 | INTL_FLAGS |
| 771 | BUILD_CFLAGS |
| 772 | BUILD_LDFLAGS |
| 773 | LIBOBJS |
| 774 | LTLIBOBJS' |
| 775 | ac_subst_files='MCONFIG |
| 776 | MAKEFILE_ELF |
| 777 | MAKEFILE_BSDLIB |
| 778 | MAKEFILE_PROFILE |
| 779 | MAKEFILE_CHECKER |
| 780 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 781 | ASM_TYPES_HEADER |
| 782 | PUBLIC_CONFIG_HEADER' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 783 | ac_precious_vars='build_alias |
| 784 | host_alias |
| 785 | target_alias |
| 786 | CC |
| 787 | CFLAGS |
| 788 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 789 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 790 | CPPFLAGS |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 791 | CPP |
| 792 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 793 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 794 | |
| 795 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 796 | ac_init_help= |
| 797 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 798 | # The variables have the same names as the options, with |
| 799 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 800 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 801 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 802 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 803 | no_recursion= |
| 804 | prefix=NONE |
| 805 | program_prefix=NONE |
| 806 | program_suffix=NONE |
| 807 | program_transform_name=s,x,x, |
| 808 | silent= |
| 809 | site= |
| 810 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 811 | verbose= |
| 812 | x_includes=NONE |
| 813 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 814 | |
| 815 | # Installation directory options. |
| 816 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 817 | # and all the variables that are supposed to be based on exec_prefix |
| 818 | # by default will actually change. |
| 819 | # 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] | 820 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 821 | bindir='${exec_prefix}/bin' |
| 822 | sbindir='${exec_prefix}/sbin' |
| 823 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 824 | datarootdir='${prefix}/share' |
| 825 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 826 | sysconfdir='${prefix}/etc' |
| 827 | sharedstatedir='${prefix}/com' |
| 828 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 829 | includedir='${prefix}/include' |
| 830 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 831 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 832 | infodir='${datarootdir}/info' |
| 833 | htmldir='${docdir}' |
| 834 | dvidir='${docdir}' |
| 835 | pdfdir='${docdir}' |
| 836 | psdir='${docdir}' |
| 837 | libdir='${exec_prefix}/lib' |
| 838 | localedir='${datarootdir}/locale' |
| 839 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 840 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 842 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 843 | for ac_option |
| 844 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 845 | # If the previous option needs an argument, assign it. |
| 846 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 847 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 848 | ac_prev= |
| 849 | continue |
| 850 | fi |
| 851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 852 | case $ac_option in |
| 853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 854 | *) ac_optarg=yes ;; |
| 855 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 856 | |
| 857 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 858 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 859 | case $ac_dashdash$ac_option in |
| 860 | --) |
| 861 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 862 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 864 | ac_prev=bindir ;; |
| 865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 866 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 867 | |
| 868 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 869 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 871 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 872 | |
| 873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 875 | ac_prev=cache_file ;; |
| 876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 878 | cache_file=$ac_optarg ;; |
| 879 | |
| 880 | --config-cache | -C) |
| 881 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 883 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 884 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 886 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 889 | | --dataroo | --dataro | --datar) |
| 890 | ac_prev=datarootdir ;; |
| 891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 893 | datarootdir=$ac_optarg ;; |
| 894 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 896 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 897 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 898 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 899 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 900 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 901 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 902 | eval enable_$ac_feature=no ;; |
| 903 | |
| 904 | -docdir | --docdir | --docdi | --doc | --do) |
| 905 | ac_prev=docdir ;; |
| 906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 907 | docdir=$ac_optarg ;; |
| 908 | |
| 909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 910 | ac_prev=dvidir ;; |
| 911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 912 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 913 | |
| 914 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 915 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 917 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 918 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 919 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 920 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 921 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | |
| 923 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 924 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 925 | | --exec | --exe | --ex) |
| 926 | ac_prev=exec_prefix ;; |
| 927 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 928 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 929 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 930 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 931 | |
| 932 | -gas | --gas | --ga | --g) |
| 933 | # Obsolete; use --with-gas. |
| 934 | with_gas=yes ;; |
| 935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 936 | -help | --help | --hel | --he | -h) |
| 937 | ac_init_help=long ;; |
| 938 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 939 | ac_init_help=recursive ;; |
| 940 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 941 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | |
| 943 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 944 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 945 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 946 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 947 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 948 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 949 | ac_prev=htmldir ;; |
| 950 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 951 | | --ht=*) |
| 952 | htmldir=$ac_optarg ;; |
| 953 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 954 | -includedir | --includedir | --includedi | --included | --include \ |
| 955 | | --includ | --inclu | --incl | --inc) |
| 956 | ac_prev=includedir ;; |
| 957 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 958 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 959 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 960 | |
| 961 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 962 | ac_prev=infodir ;; |
| 963 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 964 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 965 | |
| 966 | -libdir | --libdir | --libdi | --libd) |
| 967 | ac_prev=libdir ;; |
| 968 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 969 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 970 | |
| 971 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 972 | | --libexe | --libex | --libe) |
| 973 | ac_prev=libexecdir ;; |
| 974 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 975 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 976 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 978 | -localedir | --localedir | --localedi | --localed | --locale) |
| 979 | ac_prev=localedir ;; |
| 980 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 981 | localedir=$ac_optarg ;; |
| 982 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 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 | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 985 | ac_prev=localstatedir ;; |
| 986 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 987 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 988 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 989 | |
| 990 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 991 | ac_prev=mandir ;; |
| 992 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 993 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | -nfp | --nfp | --nf) |
| 996 | # Obsolete; use --without-fp. |
| 997 | with_fp=no ;; |
| 998 | |
| 999 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1000 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1001 | no_create=yes ;; |
| 1002 | |
| 1003 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1004 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1005 | no_recursion=yes ;; |
| 1006 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1007 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1008 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1009 | | --oldin | --oldi | --old | --ol | --o) |
| 1010 | ac_prev=oldincludedir ;; |
| 1011 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1012 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1013 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1014 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1015 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1017 | ac_prev=prefix ;; |
| 1018 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1019 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1022 | | --program-pre | --program-pr | --program-p) |
| 1023 | ac_prev=program_prefix ;; |
| 1024 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1025 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1026 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1027 | |
| 1028 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1029 | | --program-suf | --program-su | --program-s) |
| 1030 | ac_prev=program_suffix ;; |
| 1031 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1032 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1033 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1034 | |
| 1035 | -program-transform-name | --program-transform-name \ |
| 1036 | | --program-transform-nam | --program-transform-na \ |
| 1037 | | --program-transform-n | --program-transform- \ |
| 1038 | | --program-transform | --program-transfor \ |
| 1039 | | --program-transfo | --program-transf \ |
| 1040 | | --program-trans | --program-tran \ |
| 1041 | | --progr-tra | --program-tr | --program-t) |
| 1042 | ac_prev=program_transform_name ;; |
| 1043 | -program-transform-name=* | --program-transform-name=* \ |
| 1044 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1045 | | --program-transform-n=* | --program-transform-=* \ |
| 1046 | | --program-transform=* | --program-transfor=* \ |
| 1047 | | --program-transfo=* | --program-transf=* \ |
| 1048 | | --program-trans=* | --program-tran=* \ |
| 1049 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1050 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1052 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1053 | ac_prev=pdfdir ;; |
| 1054 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1055 | pdfdir=$ac_optarg ;; |
| 1056 | |
| 1057 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1058 | ac_prev=psdir ;; |
| 1059 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1060 | psdir=$ac_optarg ;; |
| 1061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1063 | | -silent | --silent | --silen | --sile | --sil) |
| 1064 | silent=yes ;; |
| 1065 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1066 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1067 | ac_prev=sbindir ;; |
| 1068 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1069 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1070 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1071 | |
| 1072 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1073 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1074 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1075 | | --sha | --sh) |
| 1076 | ac_prev=sharedstatedir ;; |
| 1077 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1078 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1079 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1080 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1081 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1082 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1083 | -site | --site | --sit) |
| 1084 | ac_prev=site ;; |
| 1085 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1086 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1087 | |
| 1088 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1089 | ac_prev=srcdir ;; |
| 1090 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1092 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1093 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1094 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1095 | ac_prev=sysconfdir ;; |
| 1096 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1097 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1099 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1100 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1101 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1102 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1103 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1104 | |
| 1105 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1106 | verbose=yes ;; |
| 1107 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | -version | --version | --versio | --versi | --vers | -V) |
| 1109 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | |
| 1111 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1112 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1113 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1114 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1115 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1116 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1117 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1118 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1119 | |
| 1120 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1122 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1123 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1124 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1125 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1126 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1127 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | |
| 1129 | --x) |
| 1130 | # Obsolete; use --with-x. |
| 1131 | with_x=yes ;; |
| 1132 | |
| 1133 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1134 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1135 | ac_prev=x_includes ;; |
| 1136 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1137 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1138 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1139 | |
| 1140 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1141 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1142 | ac_prev=x_libraries ;; |
| 1143 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1144 | | --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] | 1145 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1148 | Try \`$0 --help' for more information." >&2 |
| 1149 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | ;; |
| 1151 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | *=*) |
| 1153 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1154 | # Reject names that are not valid shell variable names. |
| 1155 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1156 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1157 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1158 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | export $ac_envvar ;; |
| 1160 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1161 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | # FIXME: should be removed in autoconf 3.0. |
| 1163 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1164 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1165 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1166 | : ${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] | 1167 | ;; |
| 1168 | |
| 1169 | esac |
| 1170 | done |
| 1171 | |
| 1172 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1173 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1174 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1175 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1176 | fi |
| 1177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1178 | # Be sure to have absolute directory names. |
| 1179 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1180 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1181 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1182 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1183 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1184 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1185 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1186 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1189 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1190 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1191 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1193 | # There might be people who depend on the old broken behavior: `$host' |
| 1194 | # used to hold the argument of --host etc. |
| 1195 | # FIXME: To remove some day. |
| 1196 | build=$build_alias |
| 1197 | host=$host_alias |
| 1198 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1199 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1200 | # FIXME: To remove some day. |
| 1201 | if test "x$host_alias" != x; then |
| 1202 | if test "x$build_alias" = x; then |
| 1203 | cross_compiling=maybe |
| 1204 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1205 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1206 | elif test "x$build_alias" != "x$host_alias"; then |
| 1207 | cross_compiling=yes |
| 1208 | fi |
| 1209 | fi |
| 1210 | |
| 1211 | ac_tool_prefix= |
| 1212 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1213 | |
| 1214 | test "$silent" = yes && exec 6>/dev/null |
| 1215 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1216 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1217 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1218 | ac_ls_di=`ls -di .` && |
| 1219 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1220 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1221 | { (exit 1); exit 1; }; } |
| 1222 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1223 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1224 | { (exit 1); exit 1; }; } |
| 1225 | |
| 1226 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | # Find the source files, if location was not specified. |
| 1228 | if test -z "$srcdir"; then |
| 1229 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1230 | # Try the directory containing this script, then the parent directory. |
| 1231 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1233 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1234 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1235 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1236 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)[^/].*/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\/\)$/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | /^X\(\/\).*/{ |
| 1250 | s//\1/ |
| 1251 | q |
| 1252 | } |
| 1253 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1256 | srcdir=.. |
| 1257 | fi |
| 1258 | else |
| 1259 | ac_srcdir_defaulted=no |
| 1260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1263 | { 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] | 1264 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1267 | ac_abs_confdir=`( |
| 1268 | 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] | 1269 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1270 | pwd)` |
| 1271 | # When building in place, set srcdir=. |
| 1272 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1273 | srcdir=. |
| 1274 | fi |
| 1275 | # Remove unnecessary trailing slashes from srcdir. |
| 1276 | # Double slashes in file names in object file debugging info |
| 1277 | # mess up M-x gdb in Emacs. |
| 1278 | case $srcdir in |
| 1279 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1280 | esac |
| 1281 | for ac_var in $ac_precious_vars; do |
| 1282 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1284 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1285 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1286 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1288 | # |
| 1289 | # Report the --help message. |
| 1290 | # |
| 1291 | if test "$ac_init_help" = "long"; then |
| 1292 | # Omit some internal or obsolete options to make the list less imposing. |
| 1293 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1294 | cat <<_ACEOF |
| 1295 | \`configure' configures this package to adapt to many kinds of systems. |
| 1296 | |
| 1297 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1298 | |
| 1299 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1300 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1301 | |
| 1302 | Defaults for the options are specified in brackets. |
| 1303 | |
| 1304 | Configuration: |
| 1305 | -h, --help display this help and exit |
| 1306 | --help=short display options specific to this package |
| 1307 | --help=recursive display the short help of all the included packages |
| 1308 | -V, --version display version information and exit |
| 1309 | -q, --quiet, --silent do not print \`checking...' messages |
| 1310 | --cache-file=FILE cache test results in FILE [disabled] |
| 1311 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1312 | -n, --no-create do not create output files |
| 1313 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1314 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | Installation directories: |
| 1316 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1317 | [$ac_default_prefix] |
| 1318 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1319 | [PREFIX] |
| 1320 | |
| 1321 | By default, \`make install' will install all the files in |
| 1322 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1323 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1324 | for instance \`--prefix=\$HOME'. |
| 1325 | |
| 1326 | For better control, use the options below. |
| 1327 | |
| 1328 | Fine tuning of the installation directories: |
| 1329 | --bindir=DIR user executables [EPREFIX/bin] |
| 1330 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1331 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1332 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1333 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1334 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1335 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1336 | --includedir=DIR C header files [PREFIX/include] |
| 1337 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1338 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1339 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1340 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1341 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1342 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1343 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1344 | --htmldir=DIR html documentation [DOCDIR] |
| 1345 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1346 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1347 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1348 | _ACEOF |
| 1349 | |
| 1350 | cat <<\_ACEOF |
| 1351 | |
| 1352 | System types: |
| 1353 | --build=BUILD configure for building on BUILD [guessed] |
| 1354 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1355 | _ACEOF |
| 1356 | fi |
| 1357 | |
| 1358 | if test -n "$ac_init_help"; then |
| 1359 | |
| 1360 | cat <<\_ACEOF |
| 1361 | |
| 1362 | Optional Features: |
| 1363 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1364 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1365 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1366 | --enable-compression enable EXPERIMENTAL compression support |
| 1367 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1368 | --enable-elf-shlibs select ELF shared libraries |
| 1369 | --enable-bsd-shlibs select BSD shared libraries |
| 1370 | --enable-profile build profiling libraries |
| 1371 | --enable-checker build checker libraries |
| 1372 | --enable-jbd-debug enable journal debugging |
| 1373 | --enable-blkid-debug enable blkid debugging |
| 1374 | --enable-testio-debug enable the use of the test I/O manager for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1375 | --disable-debugfs disable support of debugfs program |
| 1376 | --disable-imager disable support of e2image program |
| 1377 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1378 | --enable-fsck build fsck wrapper program |
| 1379 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1380 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1381 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1382 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1383 | --disable-nls do not use Native Language Support |
| 1384 | --disable-rpath do not hardcode runtime library paths |
| 1385 | |
| 1386 | Optional Packages: |
| 1387 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1388 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1389 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1390 | --with-cc=COMPILER select compiler to use |
| 1391 | --with-linker=LINKER select linker to use |
| 1392 | --with-ccopts=CCOPTS select compiler command line options |
| 1393 | --with-ldopts=LDOPTS select linker command line options |
| 1394 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1395 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1396 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1397 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1398 | --with-included-gettext use the GNU gettext library included here |
| 1399 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1400 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1401 | |
| 1402 | Some influential environment variables: |
| 1403 | CC C compiler command |
| 1404 | CFLAGS C compiler flags |
| 1405 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1406 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1407 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1408 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1409 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1410 | CPP C preprocessor |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 1411 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1412 | |
| 1413 | Use these variables to override the choices made by `configure' or to help |
| 1414 | it to find libraries and programs with nonstandard names/locations. |
| 1415 | |
| 1416 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1417 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1418 | fi |
| 1419 | |
| 1420 | if test "$ac_init_help" = "recursive"; then |
| 1421 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1422 | 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] | 1423 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1424 | ac_builddir=. |
| 1425 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1426 | case "$ac_dir" in |
| 1427 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1428 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1429 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1430 | # A ".." for each directory in $ac_dir_suffix. |
| 1431 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1432 | case $ac_top_builddir_sub in |
| 1433 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1434 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1435 | esac ;; |
| 1436 | esac |
| 1437 | ac_abs_top_builddir=$ac_pwd |
| 1438 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1439 | # for backward compatibility: |
| 1440 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1441 | |
| 1442 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1443 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1444 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1445 | ac_top_srcdir=$ac_top_builddir_sub |
| 1446 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1447 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1449 | ac_top_srcdir=$srcdir |
| 1450 | ac_abs_top_srcdir=$srcdir ;; |
| 1451 | *) # Relative name. |
| 1452 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1453 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1454 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1455 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1456 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1457 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1458 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1459 | # Check for guested configure. |
| 1460 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1461 | echo && |
| 1462 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1463 | elif test -f "$ac_srcdir/configure"; then |
| 1464 | echo && |
| 1465 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | else |
| 1467 | 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] | 1468 | fi || ac_status=$? |
| 1469 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | done |
| 1471 | fi |
| 1472 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1473 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | if $ac_init_version; then |
| 1475 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1476 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1477 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1479 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1480 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1481 | This configure script is free software; the Free Software Foundation |
| 1482 | gives unlimited permission to copy, distribute and modify it. |
| 1483 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1484 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1486 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1487 | This file contains any messages produced by compilers while |
| 1488 | running configure, to aid debugging if configure makes a mistake. |
| 1489 | |
| 1490 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1491 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | |
| 1493 | $ $0 $@ |
| 1494 | |
| 1495 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1496 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1497 | { |
| 1498 | cat <<_ASUNAME |
| 1499 | ## --------- ## |
| 1500 | ## Platform. ## |
| 1501 | ## --------- ## |
| 1502 | |
| 1503 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1504 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1505 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1506 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1507 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1508 | |
| 1509 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1510 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1511 | |
| 1512 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1513 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1514 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1515 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1516 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1517 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1518 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1519 | |
| 1520 | _ASUNAME |
| 1521 | |
| 1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1523 | for as_dir in $PATH |
| 1524 | do |
| 1525 | IFS=$as_save_IFS |
| 1526 | test -z "$as_dir" && as_dir=. |
| 1527 | echo "PATH: $as_dir" |
| 1528 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1529 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1530 | |
| 1531 | } >&5 |
| 1532 | |
| 1533 | cat >&5 <<_ACEOF |
| 1534 | |
| 1535 | |
| 1536 | ## ----------- ## |
| 1537 | ## Core tests. ## |
| 1538 | ## ----------- ## |
| 1539 | |
| 1540 | _ACEOF |
| 1541 | |
| 1542 | |
| 1543 | # Keep a trace of the command line. |
| 1544 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1545 | # Strip out --silent because we don't want to record it for future runs. |
| 1546 | # Also quote any args containing shell meta-characters. |
| 1547 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1548 | ac_configure_args= |
| 1549 | ac_configure_args0= |
| 1550 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1551 | ac_must_keep_next=false |
| 1552 | for ac_pass in 1 2 |
| 1553 | do |
| 1554 | for ac_arg |
| 1555 | do |
| 1556 | case $ac_arg in |
| 1557 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1558 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1559 | | -silent | --silent | --silen | --sile | --sil) |
| 1560 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1561 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1562 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1563 | esac |
| 1564 | case $ac_pass in |
| 1565 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1566 | 2) |
| 1567 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1568 | if test $ac_must_keep_next = true; then |
| 1569 | ac_must_keep_next=false # Got value, back to normal. |
| 1570 | else |
| 1571 | case $ac_arg in |
| 1572 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1573 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1574 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1575 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1576 | case "$ac_configure_args0 " in |
| 1577 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1578 | esac |
| 1579 | ;; |
| 1580 | -* ) ac_must_keep_next=true ;; |
| 1581 | esac |
| 1582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1583 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1584 | ;; |
| 1585 | esac |
| 1586 | done |
| 1587 | done |
| 1588 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1589 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1590 | |
| 1591 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1592 | # config.log. We remove comments because anyway the quotes in there |
| 1593 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1594 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1595 | # 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] | 1596 | trap 'exit_status=$? |
| 1597 | # Save into config.log some information that might help in debugging. |
| 1598 | { |
| 1599 | echo |
| 1600 | |
| 1601 | cat <<\_ASBOX |
| 1602 | ## ---------------- ## |
| 1603 | ## Cache variables. ## |
| 1604 | ## ---------------- ## |
| 1605 | _ASBOX |
| 1606 | echo |
| 1607 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1608 | ( |
| 1609 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1610 | eval ac_val=\$$ac_var |
| 1611 | case $ac_val in #( |
| 1612 | *${as_nl}*) |
| 1613 | case $ac_var in #( |
| 1614 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1615 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1616 | esac |
| 1617 | case $ac_var in #( |
| 1618 | _ | IFS | as_nl) ;; #( |
| 1619 | *) $as_unset $ac_var ;; |
| 1620 | esac ;; |
| 1621 | esac |
| 1622 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1623 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1624 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1625 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1626 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1627 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1629 | ;; #( |
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 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1632 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1633 | esac | |
| 1634 | sort |
| 1635 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1636 | echo |
| 1637 | |
| 1638 | cat <<\_ASBOX |
| 1639 | ## ----------------- ## |
| 1640 | ## Output variables. ## |
| 1641 | ## ----------------- ## |
| 1642 | _ASBOX |
| 1643 | echo |
| 1644 | for ac_var in $ac_subst_vars |
| 1645 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1646 | eval ac_val=\$$ac_var |
| 1647 | case $ac_val in |
| 1648 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1649 | esac |
| 1650 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1651 | done | sort |
| 1652 | echo |
| 1653 | |
| 1654 | if test -n "$ac_subst_files"; then |
| 1655 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1656 | ## ------------------- ## |
| 1657 | ## File substitutions. ## |
| 1658 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1659 | _ASBOX |
| 1660 | echo |
| 1661 | for ac_var in $ac_subst_files |
| 1662 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1663 | eval ac_val=\$$ac_var |
| 1664 | case $ac_val in |
| 1665 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1666 | esac |
| 1667 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1668 | done | sort |
| 1669 | echo |
| 1670 | fi |
| 1671 | |
| 1672 | if test -s confdefs.h; then |
| 1673 | cat <<\_ASBOX |
| 1674 | ## ----------- ## |
| 1675 | ## confdefs.h. ## |
| 1676 | ## ----------- ## |
| 1677 | _ASBOX |
| 1678 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1679 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1680 | echo |
| 1681 | fi |
| 1682 | test "$ac_signal" != 0 && |
| 1683 | echo "$as_me: caught signal $ac_signal" |
| 1684 | echo "$as_me: exit $exit_status" |
| 1685 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1686 | rm -f core *.core core.conftest.* && |
| 1687 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1688 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1689 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1690 | for ac_signal in 1 2 13 15; do |
| 1691 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1692 | done |
| 1693 | ac_signal=0 |
| 1694 | |
| 1695 | # 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] | 1696 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1697 | |
| 1698 | # Predefined preprocessor variables. |
| 1699 | |
| 1700 | cat >>confdefs.h <<_ACEOF |
| 1701 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1702 | _ACEOF |
| 1703 | |
| 1704 | |
| 1705 | cat >>confdefs.h <<_ACEOF |
| 1706 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1707 | _ACEOF |
| 1708 | |
| 1709 | |
| 1710 | cat >>confdefs.h <<_ACEOF |
| 1711 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1712 | _ACEOF |
| 1713 | |
| 1714 | |
| 1715 | cat >>confdefs.h <<_ACEOF |
| 1716 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1717 | _ACEOF |
| 1718 | |
| 1719 | |
| 1720 | cat >>confdefs.h <<_ACEOF |
| 1721 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1722 | _ACEOF |
| 1723 | |
| 1724 | |
| 1725 | # 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] | 1726 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1727 | if test -n "$CONFIG_SITE"; then |
| 1728 | set x "$CONFIG_SITE" |
| 1729 | elif test "x$prefix" != xNONE; then |
| 1730 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1731 | else |
| 1732 | set x "$ac_default_prefix/share/config.site" \ |
| 1733 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1735 | shift |
| 1736 | for ac_site_file |
| 1737 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1738 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1739 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1740 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1741 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1742 | . "$ac_site_file" |
| 1743 | fi |
| 1744 | done |
| 1745 | |
| 1746 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1747 | # Some versions of bash will fail to source /dev/null (special |
| 1748 | # files actually), so we avoid doing that. |
| 1749 | if test -f "$cache_file"; then |
| 1750 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1751 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1752 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1753 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1754 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1755 | esac |
| 1756 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1757 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1758 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1759 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1760 | >$cache_file |
| 1761 | fi |
| 1762 | |
| 1763 | # Check that the precious variables saved in the cache have kept the same |
| 1764 | # value. |
| 1765 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1766 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1767 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1768 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1769 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1770 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1771 | case $ac_old_set,$ac_new_set in |
| 1772 | set,) |
| 1773 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1774 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1775 | ac_cache_corrupted=: ;; |
| 1776 | ,set) |
| 1777 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1778 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1779 | ac_cache_corrupted=: ;; |
| 1780 | ,);; |
| 1781 | *) |
| 1782 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1783 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1784 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1785 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1786 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1787 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1788 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1789 | ac_cache_corrupted=: |
| 1790 | fi;; |
| 1791 | esac |
| 1792 | # Pass precious variables to config.status. |
| 1793 | if test "$ac_new_set" = set; then |
| 1794 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1795 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1796 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1797 | esac |
| 1798 | case " $ac_configure_args " in |
| 1799 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1800 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1801 | esac |
| 1802 | fi |
| 1803 | done |
| 1804 | if $ac_cache_corrupted; then |
| 1805 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1806 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1807 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1808 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1809 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1810 | fi |
| 1811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1828 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1829 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1834 | |
| 1835 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1836 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1837 | for ac_dir in config "$srcdir"/config; do |
| 1838 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1839 | ac_aux_dir=$ac_dir |
| 1840 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1841 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1842 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1843 | ac_aux_dir=$ac_dir |
| 1844 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1845 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1846 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1847 | ac_aux_dir=$ac_dir |
| 1848 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1849 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1850 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1851 | done |
| 1852 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1853 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1854 | 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] | 1855 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1856 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1857 | |
| 1858 | # These three variables are undocumented and unsupported, |
| 1859 | # and are intended to be withdrawn in a future Autoconf release. |
| 1860 | # They can cause serious problems if a builder's source tree is in a directory |
| 1861 | # whose full name contains unusual characters. |
| 1862 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1863 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1864 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1865 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1866 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1867 | MCONFIG=./MCONFIG |
| 1868 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1869 | BINARY_TYPE=bin |
| 1870 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1871 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1872 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1873 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1874 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1875 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1876 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1877 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1878 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1879 | E2FSPROGS_YEAR=$YEAR |
| 1880 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1881 | E2FSPROGS_YEAR=19$YEAR |
| 1882 | else |
| 1883 | E2FSPROGS_YEAR=20$YEAR |
| 1884 | fi |
| 1885 | |
| 1886 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1887 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1888 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1889 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1890 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1891 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1892 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1893 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1894 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1895 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1896 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1897 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1898 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1899 | *) echo "Unknown month $MONTH??" ;; |
| 1900 | esac |
| 1901 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1902 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1903 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1904 | |
| 1905 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1906 | |
| 1907 | case $E2FSPROGS_VERSION in |
| 1908 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame^] | 1909 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1910 | ;; |
| 1911 | *) |
| 1912 | E2FSPROGS_PKGVER="$base_ver" |
| 1913 | ;; |
| 1914 | esac |
| 1915 | |
| 1916 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1917 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1918 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1919 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1920 | |
| 1921 | |
| 1922 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1923 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1924 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1925 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1926 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1927 | 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] | 1928 | { (exit 1); exit 1; }; } |
| 1929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1930 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1931 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1932 | if test "${ac_cv_build+set}" = set; then |
| 1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1934 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1935 | ac_build_alias=$build_alias |
| 1936 | test "x$ac_build_alias" = x && |
| 1937 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1938 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1939 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1940 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1941 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1942 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1943 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1944 | 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] | 1945 | { (exit 1); exit 1; }; } |
| 1946 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1947 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1948 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1949 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1950 | case $ac_cv_build in |
| 1951 | *-*-*) ;; |
| 1952 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1953 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1954 | { (exit 1); exit 1; }; };; |
| 1955 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1956 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1957 | ac_save_IFS=$IFS; IFS='-' |
| 1958 | set x $ac_cv_build |
| 1959 | shift |
| 1960 | build_cpu=$1 |
| 1961 | build_vendor=$2 |
| 1962 | shift; shift |
| 1963 | # Remember, the first character of IFS is used to create $*, |
| 1964 | # except with old shells: |
| 1965 | build_os=$* |
| 1966 | IFS=$ac_save_IFS |
| 1967 | 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] | 1968 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1970 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1971 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1972 | if test "${ac_cv_host+set}" = set; then |
| 1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1974 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1975 | if test "x$host_alias" = x; then |
| 1976 | ac_cv_host=$ac_cv_build |
| 1977 | else |
| 1978 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1979 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1980 | 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] | 1981 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1982 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1984 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1985 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1986 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1987 | case $ac_cv_host in |
| 1988 | *-*-*) ;; |
| 1989 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1990 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1991 | { (exit 1); exit 1; }; };; |
| 1992 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1993 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1994 | ac_save_IFS=$IFS; IFS='-' |
| 1995 | set x $ac_cv_host |
| 1996 | shift |
| 1997 | host_cpu=$1 |
| 1998 | host_vendor=$2 |
| 1999 | shift; shift |
| 2000 | # Remember, the first character of IFS is used to create $*, |
| 2001 | # except with old shells: |
| 2002 | host_os=$* |
| 2003 | IFS=$ac_save_IFS |
| 2004 | 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] | 2005 | |
| 2006 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2008 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2009 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2010 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2011 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2012 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2013 | fi |
| 2014 | |
| 2015 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2016 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2017 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2018 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2019 | CC=$withval |
| 2020 | else |
| 2021 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2023 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2024 | fi |
| 2025 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2027 | ac_ext=c |
| 2028 | ac_cpp='$CPP $CPPFLAGS' |
| 2029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2032 | if test -n "$ac_tool_prefix"; then |
| 2033 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2034 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2035 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2037 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2039 | else |
| 2040 | if test -n "$CC"; then |
| 2041 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2044 | for as_dir in $PATH |
| 2045 | do |
| 2046 | IFS=$as_save_IFS |
| 2047 | test -z "$as_dir" && as_dir=. |
| 2048 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2049 | 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] | 2050 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2052 | break 2 |
| 2053 | fi |
| 2054 | done |
| 2055 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2056 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2057 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2058 | fi |
| 2059 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2060 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2061 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2063 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2064 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2066 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2067 | fi |
| 2068 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2069 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2070 | fi |
| 2071 | if test -z "$ac_cv_prog_CC"; then |
| 2072 | ac_ct_CC=$CC |
| 2073 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2074 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2075 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2077 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2079 | else |
| 2080 | if test -n "$ac_ct_CC"; then |
| 2081 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2082 | else |
| 2083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2084 | for as_dir in $PATH |
| 2085 | do |
| 2086 | IFS=$as_save_IFS |
| 2087 | test -z "$as_dir" && as_dir=. |
| 2088 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2089 | 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] | 2090 | ac_cv_prog_ac_ct_CC="gcc" |
| 2091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2092 | break 2 |
| 2093 | fi |
| 2094 | done |
| 2095 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2096 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2097 | |
| 2098 | fi |
| 2099 | fi |
| 2100 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2101 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2102 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2103 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2104 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2105 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2106 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2107 | fi |
| 2108 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2109 | if test "x$ac_ct_CC" = x; then |
| 2110 | CC="" |
| 2111 | else |
| 2112 | case $cross_compiling:$ac_tool_warned in |
| 2113 | yes:) |
| 2114 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2115 | whose name does not start with the host triplet. If you think this |
| 2116 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2117 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2118 | whose name does not start with the host triplet. If you think this |
| 2119 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2120 | ac_tool_warned=yes ;; |
| 2121 | esac |
| 2122 | CC=$ac_ct_CC |
| 2123 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2124 | else |
| 2125 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2126 | fi |
| 2127 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2128 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2129 | if test -n "$ac_tool_prefix"; then |
| 2130 | # 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] | 2131 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2132 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2134 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2136 | else |
| 2137 | if test -n "$CC"; then |
| 2138 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2141 | for as_dir in $PATH |
| 2142 | do |
| 2143 | IFS=$as_save_IFS |
| 2144 | test -z "$as_dir" && as_dir=. |
| 2145 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2146 | 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] | 2147 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2149 | break 2 |
| 2150 | fi |
| 2151 | done |
| 2152 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2153 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2154 | |
| 2155 | fi |
| 2156 | fi |
| 2157 | CC=$ac_cv_prog_CC |
| 2158 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2159 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2160 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2161 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2162 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2163 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2164 | fi |
| 2165 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2166 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2167 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2168 | fi |
| 2169 | if test -z "$CC"; then |
| 2170 | # Extract the first word of "cc", so it can be a program name with args. |
| 2171 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2172 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2174 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2176 | else |
| 2177 | if test -n "$CC"; then |
| 2178 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2179 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2180 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2182 | for as_dir in $PATH |
| 2183 | do |
| 2184 | IFS=$as_save_IFS |
| 2185 | test -z "$as_dir" && as_dir=. |
| 2186 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2187 | 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] | 2188 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2189 | ac_prog_rejected=yes |
| 2190 | continue |
| 2191 | fi |
| 2192 | ac_cv_prog_CC="cc" |
| 2193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2194 | break 2 |
| 2195 | fi |
| 2196 | done |
| 2197 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2198 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2199 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2200 | if test $ac_prog_rejected = yes; then |
| 2201 | # We found a bogon in the path, so make sure we never use it. |
| 2202 | set dummy $ac_cv_prog_CC |
| 2203 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2204 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2205 | # We chose a different compiler from the bogus one. |
| 2206 | # However, it has the same basename, so the bogon will be chosen |
| 2207 | # first if we set CC to just the basename; use the full file name. |
| 2208 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2209 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2210 | fi |
| 2211 | fi |
| 2212 | fi |
| 2213 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2214 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2215 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2216 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2217 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2218 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2220 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2221 | fi |
| 2222 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2223 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2224 | fi |
| 2225 | if test -z "$CC"; then |
| 2226 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2227 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2228 | do |
| 2229 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2230 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2233 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2235 | else |
| 2236 | if test -n "$CC"; then |
| 2237 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2238 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2240 | for as_dir in $PATH |
| 2241 | do |
| 2242 | IFS=$as_save_IFS |
| 2243 | test -z "$as_dir" && as_dir=. |
| 2244 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2245 | 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] | 2246 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2248 | break 2 |
| 2249 | fi |
| 2250 | done |
| 2251 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2252 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2253 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2254 | fi |
| 2255 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2256 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2257 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2258 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2259 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2260 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2261 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2262 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2263 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2264 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2266 | test -n "$CC" && break |
| 2267 | done |
| 2268 | fi |
| 2269 | if test -z "$CC"; then |
| 2270 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2271 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2272 | do |
| 2273 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2274 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2277 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2279 | else |
| 2280 | if test -n "$ac_ct_CC"; then |
| 2281 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2282 | else |
| 2283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2284 | for as_dir in $PATH |
| 2285 | do |
| 2286 | IFS=$as_save_IFS |
| 2287 | test -z "$as_dir" && as_dir=. |
| 2288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2289 | 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] | 2290 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2292 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2293 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2294 | done |
| 2295 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2296 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2297 | |
| 2298 | fi |
| 2299 | fi |
| 2300 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2301 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2302 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2303 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2304 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2306 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2307 | fi |
| 2308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2309 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2310 | test -n "$ac_ct_CC" && break |
| 2311 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2312 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2313 | if test "x$ac_ct_CC" = x; then |
| 2314 | CC="" |
| 2315 | else |
| 2316 | case $cross_compiling:$ac_tool_warned in |
| 2317 | yes:) |
| 2318 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2319 | whose name does not start with the host triplet. If you think this |
| 2320 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2321 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2322 | whose name does not start with the host triplet. If you think this |
| 2323 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2324 | ac_tool_warned=yes ;; |
| 2325 | esac |
| 2326 | CC=$ac_ct_CC |
| 2327 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2328 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2330 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2331 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2333 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2334 | See \`config.log' for more details." >&5 |
| 2335 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2336 | See \`config.log' for more details." >&2;} |
| 2337 | { (exit 1); exit 1; }; } |
| 2338 | |
| 2339 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2340 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2341 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2342 | { (ac_try="$ac_compiler --version >&5" |
| 2343 | case "(($ac_try" in |
| 2344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2345 | *) ac_try_echo=$ac_try;; |
| 2346 | esac |
| 2347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2348 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2349 | ac_status=$? |
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2352 | { (ac_try="$ac_compiler -v >&5" |
| 2353 | case "(($ac_try" in |
| 2354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2355 | *) ac_try_echo=$ac_try;; |
| 2356 | esac |
| 2357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2358 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2362 | { (ac_try="$ac_compiler -V >&5" |
| 2363 | case "(($ac_try" in |
| 2364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2365 | *) ac_try_echo=$ac_try;; |
| 2366 | esac |
| 2367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2368 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2369 | ac_status=$? |
| 2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2371 | (exit $ac_status); } |
| 2372 | |
| 2373 | cat >conftest.$ac_ext <<_ACEOF |
| 2374 | /* confdefs.h. */ |
| 2375 | _ACEOF |
| 2376 | cat confdefs.h >>conftest.$ac_ext |
| 2377 | cat >>conftest.$ac_ext <<_ACEOF |
| 2378 | /* end confdefs.h. */ |
| 2379 | |
| 2380 | int |
| 2381 | main () |
| 2382 | { |
| 2383 | |
| 2384 | ; |
| 2385 | return 0; |
| 2386 | } |
| 2387 | _ACEOF |
| 2388 | ac_clean_files_save=$ac_clean_files |
| 2389 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2390 | # Try to create an executable without -o first, disregard a.out. |
| 2391 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2392 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2393 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2394 | 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] | 2395 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2396 | # |
| 2397 | # List of possible output files, starting from the most likely. |
| 2398 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2399 | # only as a last resort. b.out is created by i960 compilers. |
| 2400 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2401 | # |
| 2402 | # The IRIX 6 linker writes into existing files which may not be |
| 2403 | # executable, retaining their permissions. Remove them first so a |
| 2404 | # subsequent execution test works. |
| 2405 | ac_rmfiles= |
| 2406 | for ac_file in $ac_files |
| 2407 | do |
| 2408 | case $ac_file in |
| 2409 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2410 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2411 | esac |
| 2412 | done |
| 2413 | rm -f $ac_rmfiles |
| 2414 | |
| 2415 | if { (ac_try="$ac_link_default" |
| 2416 | case "(($ac_try" in |
| 2417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2418 | *) ac_try_echo=$ac_try;; |
| 2419 | esac |
| 2420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2421 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2422 | ac_status=$? |
| 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2424 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2425 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2426 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2427 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2428 | # so that the user can short-circuit this test for compilers unknown to |
| 2429 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2430 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2431 | do |
| 2432 | test -f "$ac_file" || continue |
| 2433 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2434 | *.$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] | 2435 | ;; |
| 2436 | [ab].out ) |
| 2437 | # We found the default executable, but exeext='' is most |
| 2438 | # certainly right. |
| 2439 | break;; |
| 2440 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2441 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2442 | then :; else |
| 2443 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2444 | fi |
| 2445 | # We set ac_cv_exeext here because the later test for it is not |
| 2446 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2447 | # argument, so we may need to know it at that point already. |
| 2448 | # Even if this section looks crufty: it has the advantage of |
| 2449 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2450 | break;; |
| 2451 | * ) |
| 2452 | break;; |
| 2453 | esac |
| 2454 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2455 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2457 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2458 | ac_file='' |
| 2459 | fi |
| 2460 | |
| 2461 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2462 | echo "${ECHO_T}$ac_file" >&6; } |
| 2463 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2464 | echo "$as_me: failed program was:" >&5 |
| 2465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2466 | |
| 2467 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2468 | See \`config.log' for more details." >&5 |
| 2469 | echo "$as_me: error: C compiler cannot create executables |
| 2470 | See \`config.log' for more details." >&2;} |
| 2471 | { (exit 77); exit 77; }; } |
| 2472 | fi |
| 2473 | |
| 2474 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2476 | # 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] | 2477 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2479 | 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] | 2480 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2481 | # If not cross compiling, check that we can run a simple program. |
| 2482 | if test "$cross_compiling" != yes; then |
| 2483 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2484 | { (case "(($ac_try" in |
| 2485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2486 | *) ac_try_echo=$ac_try;; |
| 2487 | esac |
| 2488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2489 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2490 | ac_status=$? |
| 2491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2492 | (exit $ac_status); }; }; then |
| 2493 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2494 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2495 | if test "$cross_compiling" = maybe; then |
| 2496 | cross_compiling=yes |
| 2497 | else |
| 2498 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2499 | If you meant to cross compile, use \`--host'. |
| 2500 | See \`config.log' for more details." >&5 |
| 2501 | echo "$as_me: error: cannot run C compiled programs. |
| 2502 | If you meant to cross compile, use \`--host'. |
| 2503 | See \`config.log' for more details." >&2;} |
| 2504 | { (exit 1); exit 1; }; } |
| 2505 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2506 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2507 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2508 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2509 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2512 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2513 | # 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] | 2514 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2515 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2516 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2517 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2518 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2519 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2520 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2521 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2522 | if { (ac_try="$ac_link" |
| 2523 | case "(($ac_try" in |
| 2524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2525 | *) ac_try_echo=$ac_try;; |
| 2526 | esac |
| 2527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2528 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2529 | ac_status=$? |
| 2530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2531 | (exit $ac_status); }; then |
| 2532 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2533 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2534 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2535 | # `rm'. |
| 2536 | for ac_file in conftest.exe conftest conftest.*; do |
| 2537 | test -f "$ac_file" || continue |
| 2538 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2539 | *.$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] | 2540 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2541 | break;; |
| 2542 | * ) break;; |
| 2543 | esac |
| 2544 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2545 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2546 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2547 | See \`config.log' for more details." >&5 |
| 2548 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2549 | See \`config.log' for more details." >&2;} |
| 2550 | { (exit 1); exit 1; }; } |
| 2551 | fi |
| 2552 | |
| 2553 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2554 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2555 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2556 | |
| 2557 | rm -f conftest.$ac_ext |
| 2558 | EXEEXT=$ac_cv_exeext |
| 2559 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2560 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2561 | 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] | 2562 | if test "${ac_cv_objext+set}" = set; then |
| 2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2564 | else |
| 2565 | cat >conftest.$ac_ext <<_ACEOF |
| 2566 | /* confdefs.h. */ |
| 2567 | _ACEOF |
| 2568 | cat confdefs.h >>conftest.$ac_ext |
| 2569 | cat >>conftest.$ac_ext <<_ACEOF |
| 2570 | /* end confdefs.h. */ |
| 2571 | |
| 2572 | int |
| 2573 | main () |
| 2574 | { |
| 2575 | |
| 2576 | ; |
| 2577 | return 0; |
| 2578 | } |
| 2579 | _ACEOF |
| 2580 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2581 | if { (ac_try="$ac_compile" |
| 2582 | case "(($ac_try" in |
| 2583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2584 | *) ac_try_echo=$ac_try;; |
| 2585 | esac |
| 2586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2587 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2588 | ac_status=$? |
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2590 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2591 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2592 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2593 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2594 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2595 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2596 | break;; |
| 2597 | esac |
| 2598 | done |
| 2599 | else |
| 2600 | echo "$as_me: failed program was:" >&5 |
| 2601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2602 | |
| 2603 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2604 | See \`config.log' for more details." >&5 |
| 2605 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2606 | See \`config.log' for more details." >&2;} |
| 2607 | { (exit 1); exit 1; }; } |
| 2608 | fi |
| 2609 | |
| 2610 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2613 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2614 | OBJEXT=$ac_cv_objext |
| 2615 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2616 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2617 | 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] | 2618 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2620 | else |
| 2621 | cat >conftest.$ac_ext <<_ACEOF |
| 2622 | /* confdefs.h. */ |
| 2623 | _ACEOF |
| 2624 | cat confdefs.h >>conftest.$ac_ext |
| 2625 | cat >>conftest.$ac_ext <<_ACEOF |
| 2626 | /* end confdefs.h. */ |
| 2627 | |
| 2628 | int |
| 2629 | main () |
| 2630 | { |
| 2631 | #ifndef __GNUC__ |
| 2632 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2633 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2635 | ; |
| 2636 | return 0; |
| 2637 | } |
| 2638 | _ACEOF |
| 2639 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2640 | if { (ac_try="$ac_compile" |
| 2641 | case "(($ac_try" in |
| 2642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2643 | *) ac_try_echo=$ac_try;; |
| 2644 | esac |
| 2645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2646 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2647 | ac_status=$? |
| 2648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2649 | rm -f conftest.er1 |
| 2650 | cat conftest.err >&5 |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2652 | (exit $ac_status); } && { |
| 2653 | test -z "$ac_c_werror_flag" || |
| 2654 | test ! -s conftest.err |
| 2655 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2656 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2657 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | echo "$as_me: failed program was:" >&5 |
| 2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2660 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2661 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2662 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2663 | |
| 2664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2665 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2666 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2668 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2669 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2670 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2671 | ac_test_CFLAGS=${CFLAGS+set} |
| 2672 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2673 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2674 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2675 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2677 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2678 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2679 | ac_c_werror_flag=yes |
| 2680 | ac_cv_prog_cc_g=no |
| 2681 | CFLAGS="-g" |
| 2682 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2683 | /* confdefs.h. */ |
| 2684 | _ACEOF |
| 2685 | cat confdefs.h >>conftest.$ac_ext |
| 2686 | cat >>conftest.$ac_ext <<_ACEOF |
| 2687 | /* end confdefs.h. */ |
| 2688 | |
| 2689 | int |
| 2690 | main () |
| 2691 | { |
| 2692 | |
| 2693 | ; |
| 2694 | return 0; |
| 2695 | } |
| 2696 | _ACEOF |
| 2697 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2698 | if { (ac_try="$ac_compile" |
| 2699 | case "(($ac_try" in |
| 2700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2701 | *) ac_try_echo=$ac_try;; |
| 2702 | esac |
| 2703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2704 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2705 | ac_status=$? |
| 2706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2707 | rm -f conftest.er1 |
| 2708 | cat conftest.err >&5 |
| 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2710 | (exit $ac_status); } && { |
| 2711 | test -z "$ac_c_werror_flag" || |
| 2712 | test ! -s conftest.err |
| 2713 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2714 | ac_cv_prog_cc_g=yes |
| 2715 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2716 | echo "$as_me: failed program was:" >&5 |
| 2717 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2719 | CFLAGS="" |
| 2720 | cat >conftest.$ac_ext <<_ACEOF |
| 2721 | /* confdefs.h. */ |
| 2722 | _ACEOF |
| 2723 | cat confdefs.h >>conftest.$ac_ext |
| 2724 | cat >>conftest.$ac_ext <<_ACEOF |
| 2725 | /* end confdefs.h. */ |
| 2726 | |
| 2727 | int |
| 2728 | main () |
| 2729 | { |
| 2730 | |
| 2731 | ; |
| 2732 | return 0; |
| 2733 | } |
| 2734 | _ACEOF |
| 2735 | rm -f conftest.$ac_objext |
| 2736 | if { (ac_try="$ac_compile" |
| 2737 | case "(($ac_try" in |
| 2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2739 | *) ac_try_echo=$ac_try;; |
| 2740 | esac |
| 2741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2742 | (eval "$ac_compile") 2>conftest.er1 |
| 2743 | ac_status=$? |
| 2744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2745 | rm -f conftest.er1 |
| 2746 | cat conftest.err >&5 |
| 2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2748 | (exit $ac_status); } && { |
| 2749 | test -z "$ac_c_werror_flag" || |
| 2750 | test ! -s conftest.err |
| 2751 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2752 | : |
| 2753 | else |
| 2754 | echo "$as_me: failed program was:" >&5 |
| 2755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2756 | |
| 2757 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2758 | CFLAGS="-g" |
| 2759 | cat >conftest.$ac_ext <<_ACEOF |
| 2760 | /* confdefs.h. */ |
| 2761 | _ACEOF |
| 2762 | cat confdefs.h >>conftest.$ac_ext |
| 2763 | cat >>conftest.$ac_ext <<_ACEOF |
| 2764 | /* end confdefs.h. */ |
| 2765 | |
| 2766 | int |
| 2767 | main () |
| 2768 | { |
| 2769 | |
| 2770 | ; |
| 2771 | return 0; |
| 2772 | } |
| 2773 | _ACEOF |
| 2774 | rm -f conftest.$ac_objext |
| 2775 | if { (ac_try="$ac_compile" |
| 2776 | case "(($ac_try" in |
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2778 | *) ac_try_echo=$ac_try;; |
| 2779 | esac |
| 2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2781 | (eval "$ac_compile") 2>conftest.er1 |
| 2782 | ac_status=$? |
| 2783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2784 | rm -f conftest.er1 |
| 2785 | cat conftest.err >&5 |
| 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2787 | (exit $ac_status); } && { |
| 2788 | test -z "$ac_c_werror_flag" || |
| 2789 | test ! -s conftest.err |
| 2790 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2791 | ac_cv_prog_cc_g=yes |
| 2792 | else |
| 2793 | echo "$as_me: failed program was:" >&5 |
| 2794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2795 | |
| 2796 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2797 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2798 | |
| 2799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2801 | |
| 2802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2803 | fi |
| 2804 | |
| 2805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2806 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2807 | fi |
| 2808 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2809 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2810 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2811 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2812 | elif test $ac_cv_prog_cc_g = yes; then |
| 2813 | if test "$GCC" = yes; then |
| 2814 | CFLAGS="-g -O2" |
| 2815 | else |
| 2816 | CFLAGS="-g" |
| 2817 | fi |
| 2818 | else |
| 2819 | if test "$GCC" = yes; then |
| 2820 | CFLAGS="-O2" |
| 2821 | else |
| 2822 | CFLAGS= |
| 2823 | fi |
| 2824 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2825 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2826 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2827 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2829 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2830 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2831 | ac_save_CC=$CC |
| 2832 | cat >conftest.$ac_ext <<_ACEOF |
| 2833 | /* confdefs.h. */ |
| 2834 | _ACEOF |
| 2835 | cat confdefs.h >>conftest.$ac_ext |
| 2836 | cat >>conftest.$ac_ext <<_ACEOF |
| 2837 | /* end confdefs.h. */ |
| 2838 | #include <stdarg.h> |
| 2839 | #include <stdio.h> |
| 2840 | #include <sys/types.h> |
| 2841 | #include <sys/stat.h> |
| 2842 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2843 | struct buf { int x; }; |
| 2844 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2845 | static char *e (p, i) |
| 2846 | char **p; |
| 2847 | int i; |
| 2848 | { |
| 2849 | return p[i]; |
| 2850 | } |
| 2851 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2852 | { |
| 2853 | char *s; |
| 2854 | va_list v; |
| 2855 | va_start (v,p); |
| 2856 | s = g (p, va_arg (v,int)); |
| 2857 | va_end (v); |
| 2858 | return s; |
| 2859 | } |
| 2860 | |
| 2861 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2862 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2863 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2864 | 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] | 2865 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2866 | 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] | 2867 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2868 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2871 | inside strings and character constants. */ |
| 2872 | #define FOO(x) 'x' |
| 2873 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2874 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2875 | int test (int i, double x); |
| 2876 | struct s1 {int (*f) (int a);}; |
| 2877 | struct s2 {int (*f) (double a);}; |
| 2878 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2879 | int argc; |
| 2880 | char **argv; |
| 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2885 | ; |
| 2886 | return 0; |
| 2887 | } |
| 2888 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2889 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2890 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2891 | do |
| 2892 | CC="$ac_save_CC $ac_arg" |
| 2893 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2894 | if { (ac_try="$ac_compile" |
| 2895 | case "(($ac_try" in |
| 2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2897 | *) ac_try_echo=$ac_try;; |
| 2898 | esac |
| 2899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2900 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2901 | ac_status=$? |
| 2902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2903 | rm -f conftest.er1 |
| 2904 | cat conftest.err >&5 |
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2906 | (exit $ac_status); } && { |
| 2907 | test -z "$ac_c_werror_flag" || |
| 2908 | test ! -s conftest.err |
| 2909 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2910 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2911 | else |
| 2912 | echo "$as_me: failed program was:" >&5 |
| 2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2915 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2917 | |
| 2918 | rm -f core conftest.err conftest.$ac_objext |
| 2919 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2920 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2921 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2922 | CC=$ac_save_CC |
| 2923 | |
| 2924 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2925 | # AC_CACHE_VAL |
| 2926 | case "x$ac_cv_prog_cc_c89" in |
| 2927 | x) |
| 2928 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2929 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2930 | xno) |
| 2931 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2932 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2934 | CC="$CC $ac_cv_prog_cc_c89" |
| 2935 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2936 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2937 | esac |
| 2938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2940 | ac_ext=c |
| 2941 | ac_cpp='$CPP $CPPFLAGS' |
| 2942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2945 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2946 | ac_ext=c |
| 2947 | ac_cpp='$CPP $CPPFLAGS' |
| 2948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2951 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2952 | 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] | 2953 | # On Suns, sometimes $CPP names a directory. |
| 2954 | if test -n "$CPP" && test -d "$CPP"; then |
| 2955 | CPP= |
| 2956 | fi |
| 2957 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2958 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2960 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | # Double quotes because CPP needs to be expanded |
| 2962 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2963 | do |
| 2964 | ac_preproc_ok=false |
| 2965 | for ac_c_preproc_warn_flag in '' yes |
| 2966 | do |
| 2967 | # Use a header file that comes with gcc, so configuring glibc |
| 2968 | # with a fresh cross-compiler works. |
| 2969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2970 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2971 | # 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] | 2972 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2973 | cat >conftest.$ac_ext <<_ACEOF |
| 2974 | /* confdefs.h. */ |
| 2975 | _ACEOF |
| 2976 | cat confdefs.h >>conftest.$ac_ext |
| 2977 | cat >>conftest.$ac_ext <<_ACEOF |
| 2978 | /* end confdefs.h. */ |
| 2979 | #ifdef __STDC__ |
| 2980 | # include <limits.h> |
| 2981 | #else |
| 2982 | # include <assert.h> |
| 2983 | #endif |
| 2984 | Syntax error |
| 2985 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2987 | case "(($ac_try" in |
| 2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2989 | *) ac_try_echo=$ac_try;; |
| 2990 | esac |
| 2991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | ac_status=$? |
| 2994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2995 | rm -f conftest.er1 |
| 2996 | cat conftest.err >&5 |
| 2997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2998 | (exit $ac_status); } >/dev/null && { |
| 2999 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3000 | test ! -s conftest.err |
| 3001 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3002 | : |
| 3003 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3004 | echo "$as_me: failed program was:" >&5 |
| 3005 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | # Broken: fails on valid input. |
| 3008 | continue |
| 3009 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | rm -f conftest.err conftest.$ac_ext |
| 3012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3013 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3014 | # can be detected and how. |
| 3015 | cat >conftest.$ac_ext <<_ACEOF |
| 3016 | /* confdefs.h. */ |
| 3017 | _ACEOF |
| 3018 | cat confdefs.h >>conftest.$ac_ext |
| 3019 | cat >>conftest.$ac_ext <<_ACEOF |
| 3020 | /* end confdefs.h. */ |
| 3021 | #include <ac_nonexistent.h> |
| 3022 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3023 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3024 | case "(($ac_try" in |
| 3025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3026 | *) ac_try_echo=$ac_try;; |
| 3027 | esac |
| 3028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3029 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3030 | ac_status=$? |
| 3031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3032 | rm -f conftest.er1 |
| 3033 | cat conftest.err >&5 |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3035 | (exit $ac_status); } >/dev/null && { |
| 3036 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3037 | test ! -s conftest.err |
| 3038 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | # Broken: success on invalid input. |
| 3040 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | echo "$as_me: failed program was:" >&5 |
| 3043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3044 | |
| 3045 | # Passes both tests. |
| 3046 | ac_preproc_ok=: |
| 3047 | break |
| 3048 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3050 | rm -f conftest.err conftest.$ac_ext |
| 3051 | |
| 3052 | done |
| 3053 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3054 | rm -f conftest.err conftest.$ac_ext |
| 3055 | if $ac_preproc_ok; then |
| 3056 | break |
| 3057 | fi |
| 3058 | |
| 3059 | done |
| 3060 | ac_cv_prog_CPP=$CPP |
| 3061 | |
| 3062 | fi |
| 3063 | CPP=$ac_cv_prog_CPP |
| 3064 | else |
| 3065 | ac_cv_prog_CPP=$CPP |
| 3066 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3067 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3068 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3069 | ac_preproc_ok=false |
| 3070 | for ac_c_preproc_warn_flag in '' yes |
| 3071 | do |
| 3072 | # Use a header file that comes with gcc, so configuring glibc |
| 3073 | # with a fresh cross-compiler works. |
| 3074 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3075 | # <limits.h> exists even on freestanding compilers. |
| 3076 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3077 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3078 | cat >conftest.$ac_ext <<_ACEOF |
| 3079 | /* confdefs.h. */ |
| 3080 | _ACEOF |
| 3081 | cat confdefs.h >>conftest.$ac_ext |
| 3082 | cat >>conftest.$ac_ext <<_ACEOF |
| 3083 | /* end confdefs.h. */ |
| 3084 | #ifdef __STDC__ |
| 3085 | # include <limits.h> |
| 3086 | #else |
| 3087 | # include <assert.h> |
| 3088 | #endif |
| 3089 | Syntax error |
| 3090 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3091 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3092 | case "(($ac_try" in |
| 3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3094 | *) ac_try_echo=$ac_try;; |
| 3095 | esac |
| 3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3098 | ac_status=$? |
| 3099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3100 | rm -f conftest.er1 |
| 3101 | cat conftest.err >&5 |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3103 | (exit $ac_status); } >/dev/null && { |
| 3104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3105 | test ! -s conftest.err |
| 3106 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3107 | : |
| 3108 | else |
| 3109 | echo "$as_me: failed program was:" >&5 |
| 3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3111 | |
| 3112 | # Broken: fails on valid input. |
| 3113 | continue |
| 3114 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3115 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3116 | rm -f conftest.err conftest.$ac_ext |
| 3117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3118 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | # can be detected and how. |
| 3120 | cat >conftest.$ac_ext <<_ACEOF |
| 3121 | /* confdefs.h. */ |
| 3122 | _ACEOF |
| 3123 | cat confdefs.h >>conftest.$ac_ext |
| 3124 | cat >>conftest.$ac_ext <<_ACEOF |
| 3125 | /* end confdefs.h. */ |
| 3126 | #include <ac_nonexistent.h> |
| 3127 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3129 | case "(($ac_try" in |
| 3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3131 | *) ac_try_echo=$ac_try;; |
| 3132 | esac |
| 3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3135 | ac_status=$? |
| 3136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3137 | rm -f conftest.er1 |
| 3138 | cat conftest.err >&5 |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3140 | (exit $ac_status); } >/dev/null && { |
| 3141 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3142 | test ! -s conftest.err |
| 3143 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3144 | # Broken: success on invalid input. |
| 3145 | continue |
| 3146 | else |
| 3147 | echo "$as_me: failed program was:" >&5 |
| 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3149 | |
| 3150 | # Passes both tests. |
| 3151 | ac_preproc_ok=: |
| 3152 | break |
| 3153 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3154 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | |
| 3157 | done |
| 3158 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3159 | rm -f conftest.err conftest.$ac_ext |
| 3160 | if $ac_preproc_ok; then |
| 3161 | : |
| 3162 | else |
| 3163 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3164 | See \`config.log' for more details." >&5 |
| 3165 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3166 | See \`config.log' for more details." >&2;} |
| 3167 | { (exit 1); exit 1; }; } |
| 3168 | fi |
| 3169 | |
| 3170 | ac_ext=c |
| 3171 | ac_cpp='$CPP $CPPFLAGS' |
| 3172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3175 | |
| 3176 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3177 | # Check whether --with-linker was given. |
| 3178 | if test "${with_linker+set}" = set; then |
| 3179 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3180 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3181 | LD=$withval |
| 3182 | else |
| 3183 | if test -z "$LD" ; then LD=$CC; fi |
| 3184 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3185 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3186 | fi |
| 3187 | export LD |
| 3188 | |
| 3189 | |
| 3190 | # Check whether --with-ccopts was given. |
| 3191 | if test "${with_ccopts+set}" = set; then |
| 3192 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3193 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3194 | CFLAGS=$withval |
| 3195 | fi |
| 3196 | |
| 3197 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3198 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3199 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3200 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3202 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3203 | # Extract the first word of "grep ggrep" to use in msg output |
| 3204 | if test -z "$GREP"; then |
| 3205 | set dummy grep ggrep; ac_prog_name=$2 |
| 3206 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3208 | else |
| 3209 | ac_path_GREP_found=false |
| 3210 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3212 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3213 | do |
| 3214 | IFS=$as_save_IFS |
| 3215 | test -z "$as_dir" && as_dir=. |
| 3216 | for ac_prog in grep ggrep; do |
| 3217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3218 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3219 | { 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] | 3220 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3221 | # Check for GNU $ac_path_GREP |
| 3222 | case `"$ac_path_GREP" --version 2>&1` in |
| 3223 | *GNU*) |
| 3224 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3225 | *) |
| 3226 | ac_count=0 |
| 3227 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3228 | while : |
| 3229 | do |
| 3230 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3231 | mv "conftest.tmp" "conftest.in" |
| 3232 | cp "conftest.in" "conftest.nl" |
| 3233 | echo 'GREP' >> "conftest.nl" |
| 3234 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3235 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3236 | ac_count=`expr $ac_count + 1` |
| 3237 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3238 | # Best one so far, save it but keep looking for a better one |
| 3239 | ac_cv_path_GREP="$ac_path_GREP" |
| 3240 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3242 | # 10*(2^10) chars as input seems more than enough |
| 3243 | test $ac_count -gt 10 && break |
| 3244 | done |
| 3245 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3246 | esac |
| 3247 | |
| 3248 | |
| 3249 | $ac_path_GREP_found && break 3 |
| 3250 | done |
| 3251 | done |
| 3252 | |
| 3253 | done |
| 3254 | IFS=$as_save_IFS |
| 3255 | |
| 3256 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3257 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3258 | |
| 3259 | GREP="$ac_cv_path_GREP" |
| 3260 | if test -z "$GREP"; then |
| 3261 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3262 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3263 | { (exit 1); exit 1; }; } |
| 3264 | fi |
| 3265 | |
| 3266 | else |
| 3267 | ac_cv_path_GREP=$GREP |
| 3268 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3269 | |
| 3270 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3271 | fi |
| 3272 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3273 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3274 | GREP="$ac_cv_path_GREP" |
| 3275 | |
| 3276 | |
| 3277 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3278 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3279 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3281 | else |
| 3282 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3283 | then ac_cv_path_EGREP="$GREP -E" |
| 3284 | else |
| 3285 | # Extract the first word of "egrep" to use in msg output |
| 3286 | if test -z "$EGREP"; then |
| 3287 | set dummy egrep; ac_prog_name=$2 |
| 3288 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3290 | else |
| 3291 | ac_path_EGREP_found=false |
| 3292 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3294 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3295 | do |
| 3296 | IFS=$as_save_IFS |
| 3297 | test -z "$as_dir" && as_dir=. |
| 3298 | for ac_prog in egrep; do |
| 3299 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3300 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3301 | { 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] | 3302 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3303 | # Check for GNU $ac_path_EGREP |
| 3304 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3305 | *GNU*) |
| 3306 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3307 | *) |
| 3308 | ac_count=0 |
| 3309 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3310 | while : |
| 3311 | do |
| 3312 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3313 | mv "conftest.tmp" "conftest.in" |
| 3314 | cp "conftest.in" "conftest.nl" |
| 3315 | echo 'EGREP' >> "conftest.nl" |
| 3316 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3317 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3318 | ac_count=`expr $ac_count + 1` |
| 3319 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3320 | # Best one so far, save it but keep looking for a better one |
| 3321 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3322 | ac_path_EGREP_max=$ac_count |
| 3323 | fi |
| 3324 | # 10*(2^10) chars as input seems more than enough |
| 3325 | test $ac_count -gt 10 && break |
| 3326 | done |
| 3327 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3328 | esac |
| 3329 | |
| 3330 | |
| 3331 | $ac_path_EGREP_found && break 3 |
| 3332 | done |
| 3333 | done |
| 3334 | |
| 3335 | done |
| 3336 | IFS=$as_save_IFS |
| 3337 | |
| 3338 | |
| 3339 | fi |
| 3340 | |
| 3341 | EGREP="$ac_cv_path_EGREP" |
| 3342 | if test -z "$EGREP"; then |
| 3343 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3344 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3345 | { (exit 1); exit 1; }; } |
| 3346 | fi |
| 3347 | |
| 3348 | else |
| 3349 | ac_cv_path_EGREP=$EGREP |
| 3350 | fi |
| 3351 | |
| 3352 | |
| 3353 | fi |
| 3354 | fi |
| 3355 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3356 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3357 | EGREP="$ac_cv_path_EGREP" |
| 3358 | |
| 3359 | |
| 3360 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3361 | 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] | 3362 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3364 | else |
| 3365 | cat >conftest.$ac_ext <<_ACEOF |
| 3366 | /* confdefs.h. */ |
| 3367 | _ACEOF |
| 3368 | cat confdefs.h >>conftest.$ac_ext |
| 3369 | cat >>conftest.$ac_ext <<_ACEOF |
| 3370 | /* end confdefs.h. */ |
| 3371 | #include <stdlib.h> |
| 3372 | #include <stdarg.h> |
| 3373 | #include <string.h> |
| 3374 | #include <float.h> |
| 3375 | |
| 3376 | int |
| 3377 | main () |
| 3378 | { |
| 3379 | |
| 3380 | ; |
| 3381 | return 0; |
| 3382 | } |
| 3383 | _ACEOF |
| 3384 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3385 | if { (ac_try="$ac_compile" |
| 3386 | case "(($ac_try" in |
| 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3388 | *) ac_try_echo=$ac_try;; |
| 3389 | esac |
| 3390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3391 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3392 | ac_status=$? |
| 3393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3394 | rm -f conftest.er1 |
| 3395 | cat conftest.err >&5 |
| 3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3397 | (exit $ac_status); } && { |
| 3398 | test -z "$ac_c_werror_flag" || |
| 3399 | test ! -s conftest.err |
| 3400 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3401 | ac_cv_header_stdc=yes |
| 3402 | else |
| 3403 | echo "$as_me: failed program was:" >&5 |
| 3404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3406 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3407 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3408 | |
| 3409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3410 | |
| 3411 | if test $ac_cv_header_stdc = yes; then |
| 3412 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3413 | cat >conftest.$ac_ext <<_ACEOF |
| 3414 | /* confdefs.h. */ |
| 3415 | _ACEOF |
| 3416 | cat confdefs.h >>conftest.$ac_ext |
| 3417 | cat >>conftest.$ac_ext <<_ACEOF |
| 3418 | /* end confdefs.h. */ |
| 3419 | #include <string.h> |
| 3420 | |
| 3421 | _ACEOF |
| 3422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3423 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3424 | : |
| 3425 | else |
| 3426 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3427 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3428 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3429 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3430 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3431 | |
| 3432 | if test $ac_cv_header_stdc = yes; then |
| 3433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3434 | cat >conftest.$ac_ext <<_ACEOF |
| 3435 | /* confdefs.h. */ |
| 3436 | _ACEOF |
| 3437 | cat confdefs.h >>conftest.$ac_ext |
| 3438 | cat >>conftest.$ac_ext <<_ACEOF |
| 3439 | /* end confdefs.h. */ |
| 3440 | #include <stdlib.h> |
| 3441 | |
| 3442 | _ACEOF |
| 3443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3444 | $EGREP "free" >/dev/null 2>&1; then |
| 3445 | : |
| 3446 | else |
| 3447 | ac_cv_header_stdc=no |
| 3448 | fi |
| 3449 | rm -f conftest* |
| 3450 | |
| 3451 | fi |
| 3452 | |
| 3453 | if test $ac_cv_header_stdc = yes; then |
| 3454 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3455 | if test "$cross_compiling" = yes; then |
| 3456 | : |
| 3457 | else |
| 3458 | cat >conftest.$ac_ext <<_ACEOF |
| 3459 | /* confdefs.h. */ |
| 3460 | _ACEOF |
| 3461 | cat confdefs.h >>conftest.$ac_ext |
| 3462 | cat >>conftest.$ac_ext <<_ACEOF |
| 3463 | /* end confdefs.h. */ |
| 3464 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3465 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3466 | #if ((' ' & 0x0FF) == 0x020) |
| 3467 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3468 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3469 | #else |
| 3470 | # define ISLOWER(c) \ |
| 3471 | (('a' <= (c) && (c) <= 'i') \ |
| 3472 | || ('j' <= (c) && (c) <= 'r') \ |
| 3473 | || ('s' <= (c) && (c) <= 'z')) |
| 3474 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3475 | #endif |
| 3476 | |
| 3477 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3478 | int |
| 3479 | main () |
| 3480 | { |
| 3481 | int i; |
| 3482 | for (i = 0; i < 256; i++) |
| 3483 | if (XOR (islower (i), ISLOWER (i)) |
| 3484 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3485 | return 2; |
| 3486 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | } |
| 3488 | _ACEOF |
| 3489 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3490 | if { (ac_try="$ac_link" |
| 3491 | case "(($ac_try" in |
| 3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3493 | *) ac_try_echo=$ac_try;; |
| 3494 | esac |
| 3495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3496 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3497 | ac_status=$? |
| 3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3500 | { (case "(($ac_try" in |
| 3501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3502 | *) ac_try_echo=$ac_try;; |
| 3503 | esac |
| 3504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3505 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3506 | ac_status=$? |
| 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3508 | (exit $ac_status); }; }; then |
| 3509 | : |
| 3510 | else |
| 3511 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3512 | echo "$as_me: failed program was:" >&5 |
| 3513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3514 | |
| 3515 | ( exit $ac_status ) |
| 3516 | ac_cv_header_stdc=no |
| 3517 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3519 | fi |
| 3520 | |
| 3521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3522 | fi |
| 3523 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3524 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3525 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3526 | if test $ac_cv_header_stdc = yes; then |
| 3527 | |
| 3528 | cat >>confdefs.h <<\_ACEOF |
| 3529 | #define STDC_HEADERS 1 |
| 3530 | _ACEOF |
| 3531 | |
| 3532 | fi |
| 3533 | |
| 3534 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | |
| 3544 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3545 | inttypes.h stdint.h unistd.h |
| 3546 | do |
| 3547 | 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] | 3548 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3550 | 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] | 3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3552 | else |
| 3553 | cat >conftest.$ac_ext <<_ACEOF |
| 3554 | /* confdefs.h. */ |
| 3555 | _ACEOF |
| 3556 | cat confdefs.h >>conftest.$ac_ext |
| 3557 | cat >>conftest.$ac_ext <<_ACEOF |
| 3558 | /* end confdefs.h. */ |
| 3559 | $ac_includes_default |
| 3560 | |
| 3561 | #include <$ac_header> |
| 3562 | _ACEOF |
| 3563 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3564 | if { (ac_try="$ac_compile" |
| 3565 | case "(($ac_try" in |
| 3566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3567 | *) ac_try_echo=$ac_try;; |
| 3568 | esac |
| 3569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3570 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3571 | ac_status=$? |
| 3572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3573 | rm -f conftest.er1 |
| 3574 | cat conftest.err >&5 |
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3576 | (exit $ac_status); } && { |
| 3577 | test -z "$ac_c_werror_flag" || |
| 3578 | test ! -s conftest.err |
| 3579 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3580 | eval "$as_ac_Header=yes" |
| 3581 | else |
| 3582 | echo "$as_me: failed program was:" >&5 |
| 3583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3584 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3585 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3587 | |
| 3588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3590 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3592 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3594 | cat >>confdefs.h <<_ACEOF |
| 3595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3596 | _ACEOF |
| 3597 | |
| 3598 | fi |
| 3599 | |
| 3600 | done |
| 3601 | |
| 3602 | |
| 3603 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3604 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3605 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3606 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3609 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3610 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3611 | else |
| 3612 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3613 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3614 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3615 | cat >conftest.$ac_ext <<_ACEOF |
| 3616 | /* confdefs.h. */ |
| 3617 | _ACEOF |
| 3618 | cat confdefs.h >>conftest.$ac_ext |
| 3619 | cat >>conftest.$ac_ext <<_ACEOF |
| 3620 | /* end confdefs.h. */ |
| 3621 | $ac_includes_default |
| 3622 | #include <linux/fs.h> |
| 3623 | _ACEOF |
| 3624 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3625 | if { (ac_try="$ac_compile" |
| 3626 | case "(($ac_try" in |
| 3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3628 | *) ac_try_echo=$ac_try;; |
| 3629 | esac |
| 3630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3631 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3632 | ac_status=$? |
| 3633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3634 | rm -f conftest.er1 |
| 3635 | cat conftest.err >&5 |
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3637 | (exit $ac_status); } && { |
| 3638 | test -z "$ac_c_werror_flag" || |
| 3639 | test ! -s conftest.err |
| 3640 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3641 | ac_header_compiler=yes |
| 3642 | else |
| 3643 | echo "$as_me: failed program was:" >&5 |
| 3644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3645 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3646 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3647 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3648 | |
| 3649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3650 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3651 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | |
| 3653 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3654 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3655 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3656 | cat >conftest.$ac_ext <<_ACEOF |
| 3657 | /* confdefs.h. */ |
| 3658 | _ACEOF |
| 3659 | cat confdefs.h >>conftest.$ac_ext |
| 3660 | cat >>conftest.$ac_ext <<_ACEOF |
| 3661 | /* end confdefs.h. */ |
| 3662 | #include <linux/fs.h> |
| 3663 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3664 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3665 | case "(($ac_try" in |
| 3666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3667 | *) ac_try_echo=$ac_try;; |
| 3668 | esac |
| 3669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3671 | ac_status=$? |
| 3672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3673 | rm -f conftest.er1 |
| 3674 | cat conftest.err >&5 |
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3676 | (exit $ac_status); } >/dev/null && { |
| 3677 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3678 | test ! -s conftest.err |
| 3679 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3680 | ac_header_preproc=yes |
| 3681 | else |
| 3682 | echo "$as_me: failed program was:" >&5 |
| 3683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3684 | |
| 3685 | ac_header_preproc=no |
| 3686 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3688 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3689 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3690 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3691 | |
| 3692 | # So? What about this header? |
| 3693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3694 | yes:no: ) |
| 3695 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3696 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3697 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3698 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3699 | ac_header_preproc=yes |
| 3700 | ;; |
| 3701 | no:yes:* ) |
| 3702 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3703 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3704 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3705 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3706 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3707 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3708 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3709 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3710 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3711 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3712 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3713 | 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] | 3714 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3715 | ;; |
| 3716 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3717 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3718 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3719 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3721 | else |
| 3722 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3723 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3724 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3725 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3726 | |
| 3727 | fi |
| 3728 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3729 | linux_headers=yes |
| 3730 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3731 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3732 | fi |
| 3733 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3734 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3735 | if test "$linux_headers" != yes; then |
| 3736 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3737 | fi |
| 3738 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3739 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3740 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3741 | if test "$GCC" = yes |
| 3742 | then |
| 3743 | case "$host_cpu" in |
| 3744 | alpha) addcflags="-mieee" ;; |
| 3745 | esac |
| 3746 | fi |
| 3747 | if test "x$addcflags" != x |
| 3748 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3749 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3750 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3751 | CFLAGS="$addcflags $CFLAGS" |
| 3752 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3753 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3754 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3755 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3756 | LIB_EXT=.a |
| 3757 | STATIC_LIB_EXT=.a |
| 3758 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3759 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3760 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3761 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3762 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3763 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3764 | LDFLAGS=$withval |
| 3765 | else |
| 3766 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3767 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3769 | |
| 3770 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3771 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3772 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3773 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3774 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3775 | fi |
| 3776 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3777 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3778 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3779 | then |
| 3780 | MAINTAINER_CMT=# |
| 3781 | echo "Disabling maintainer mode" |
| 3782 | else |
| 3783 | MAINTAINER_CMT= |
| 3784 | echo "Enabling maintainer mode" |
| 3785 | fi |
| 3786 | |
| 3787 | else |
| 3788 | MAINTAINER_CMT=# |
| 3789 | echo "Disabling maintainer mode by default" |
| 3790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3791 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3792 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3793 | |
| 3794 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3795 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3796 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3797 | then |
| 3798 | echo "Disabling compression support" |
| 3799 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3800 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3801 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3802 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3803 | |
| 3804 | echo "Enabling compression support" |
| 3805 | echo "WARNING: Compression support is experimental" |
| 3806 | fi |
| 3807 | |
| 3808 | else |
| 3809 | echo "Disabling compression support by default" |
| 3810 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3811 | fi |
| 3812 | |
| 3813 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3814 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3815 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3816 | then |
| 3817 | HTREE_CMT=# |
| 3818 | echo "Disabling htree directory support" |
| 3819 | else |
| 3820 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3821 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3822 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3823 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3824 | |
| 3825 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3826 | fi |
| 3827 | |
| 3828 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3829 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3830 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3831 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3832 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3833 | |
| 3834 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3835 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3836 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3838 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3839 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3840 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3841 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3842 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3843 | then |
| 3844 | ELF_CMT=# |
| 3845 | MAKEFILE_ELF=/dev/null |
| 3846 | echo "Disabling ELF shared libraries" |
| 3847 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3848 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3849 | ELF_CMT= |
| 3850 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3851 | case "$host_os" in |
| 3852 | solaris2.*) |
| 3853 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3854 | ;; |
| 3855 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3856 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3857 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3858 | echo "Enabling ELF shared libraries" |
| 3859 | fi |
| 3860 | |
| 3861 | else |
| 3862 | MAKEFILE_ELF=/dev/null |
| 3863 | ELF_CMT=# |
| 3864 | echo "Disabling ELF shared libraries by default" |
| 3865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3866 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3867 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3869 | |
| 3870 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3871 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3872 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3873 | then |
| 3874 | BSDLIB_CMT=# |
| 3875 | MAKEFILE_BSDLIB=/dev/null |
| 3876 | echo "Disabling BSD shared libraries" |
| 3877 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3878 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3879 | BSDLIB_CMT= |
| 3880 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3881 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3882 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3883 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3884 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3885 | LIB_EXT=.dylib |
| 3886 | ;; |
| 3887 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3888 | echo "Enabling BSD shared libraries" |
| 3889 | fi |
| 3890 | |
| 3891 | else |
| 3892 | MAKEFILE_BSDLIB=/dev/null |
| 3893 | BSDLIB_CMT=# |
| 3894 | echo "Disabling BSD shared libraries by default" |
| 3895 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3896 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3897 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3899 | |
| 3900 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3901 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3902 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3903 | then |
| 3904 | PROFILE_CMT=# |
| 3905 | MAKEFILE_PROFILE=/dev/null |
| 3906 | echo "Disabling profiling libraries" |
| 3907 | else |
| 3908 | PROFILE_CMT= |
| 3909 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3910 | PROFILED_LIB_EXT=_p.a |
| 3911 | echo "Building profiling libraries" |
| 3912 | fi |
| 3913 | |
| 3914 | else |
| 3915 | PROFILE_CMT=# |
| 3916 | MAKEFILE_PROFILE=/dev/null |
| 3917 | echo "Disabling profiling libraries by default" |
| 3918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3919 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3920 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3922 | |
| 3923 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3924 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3925 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3926 | then |
| 3927 | CHECKER_CMT=# |
| 3928 | MAKEFILE_CHECKER=/dev/null |
| 3929 | echo "Disabling checker libraries" |
| 3930 | else |
| 3931 | CHECKER_CMT= |
| 3932 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3933 | echo "Building checker libraries" |
| 3934 | fi |
| 3935 | |
| 3936 | else |
| 3937 | CHECKER_CMT=# |
| 3938 | MAKEFILE_CHECKER=/dev/null |
| 3939 | echo "Disabling checker libraries by default" |
| 3940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3941 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3947 | |
| 3948 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3949 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3950 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3951 | then |
| 3952 | echo "Disabling journal debugging" |
| 3953 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3954 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3955 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3956 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3957 | |
| 3958 | echo "Enabling journal debugging" |
| 3959 | fi |
| 3960 | |
| 3961 | else |
| 3962 | echo "Disabling journal debugging by default" |
| 3963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3964 | fi |
| 3965 | |
| 3966 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3967 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3968 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3969 | then |
| 3970 | echo "Disabling blkid debugging" |
| 3971 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3972 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3973 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3974 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3975 | |
| 3976 | echo "Enabling blkid debugging" |
| 3977 | fi |
| 3978 | |
| 3979 | else |
| 3980 | echo "Disabling blkid debugging by default" |
| 3981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3982 | fi |
| 3983 | |
| 3984 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3985 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3986 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3987 | then |
| 3988 | echo "Disabling testio debugging" |
| 3989 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3990 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3991 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3992 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3993 | |
| 3994 | echo "Enabling testio debugging" |
| 3995 | fi |
| 3996 | |
| 3997 | else |
| 3998 | echo "Disabling testio debugging by default" |
| 3999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4000 | fi |
| 4001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4002 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4003 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4004 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4005 | then |
| 4006 | echo "Disabling debugfs support" |
| 4007 | DEBUGFS_CMT="#" |
| 4008 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4009 | DEBUGFS_CMT= |
| 4010 | echo "Enabling debugfs support" |
| 4011 | fi |
| 4012 | |
| 4013 | else |
| 4014 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4015 | DEBUGFS_CMT= |
| 4016 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4017 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4019 | |
| 4020 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4021 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4022 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4023 | then |
| 4024 | echo "Disabling e2image support" |
| 4025 | IMAGER_CMT="#" |
| 4026 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4027 | IMAGER_CMT= |
| 4028 | echo "Enabling e2image support" |
| 4029 | fi |
| 4030 | |
| 4031 | else |
| 4032 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4033 | IMAGER_CMT= |
| 4034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4035 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4037 | |
| 4038 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4039 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4040 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4041 | then |
| 4042 | echo "Disabling e2resize support" |
| 4043 | RESIZER_CMT="#" |
| 4044 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4045 | RESIZER_CMT= |
| 4046 | echo "Enabling e2resize support" |
| 4047 | fi |
| 4048 | |
| 4049 | else |
| 4050 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4051 | RESIZER_CMT= |
| 4052 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4053 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4055 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4056 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4057 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4058 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4059 | then |
| 4060 | FSCK_PROG='' FSCK_MAN='' |
| 4061 | echo "Not building fsck wrapper" |
| 4062 | else |
| 4063 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4064 | echo "Building fsck wrapper" |
| 4065 | fi |
| 4066 | |
| 4067 | else |
| 4068 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4069 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4070 | FSCK_PROG='' FSCK_MAN='' |
| 4071 | echo "Not building fsck wrapper by default" |
| 4072 | ;; |
| 4073 | *) |
| 4074 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4075 | echo "Building fsck wrapper by default" |
| 4076 | esac |
| 4077 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4078 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4079 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4081 | |
| 4082 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4083 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4084 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4085 | then |
| 4086 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4087 | echo "Not building e2initrd helper" |
| 4088 | else |
| 4089 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4090 | echo "Building e2initrd helper" |
| 4091 | fi |
| 4092 | |
| 4093 | else |
| 4094 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4095 | echo "Building e2initrd helper by default" |
| 4096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4097 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4098 | |
| 4099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4100 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4101 | STATIC_BLKID_DEVMAPPER_LIBS='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4102 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4103 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4104 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4105 | then |
| 4106 | echo "Disabling device-mapper support" |
| 4107 | DEVMAPPER_REQ='' |
| 4108 | DEVMAPPER_LIBS='' |
| 4109 | STATIC_DEVMAPPER_LIBS='' |
| 4110 | else |
| 4111 | cat >>confdefs.h <<\_ACEOF |
| 4112 | #define HAVE_DEVMAPPER 1 |
| 4113 | _ACEOF |
| 4114 | |
| 4115 | echo "Enabling device-mapper support" |
| 4116 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4117 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4118 | |
| 4119 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4120 | if test -n "$ac_tool_prefix"; then |
| 4121 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4122 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4123 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4125 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4127 | else |
| 4128 | case $PKG_CONFIG in |
| 4129 | [\\/]* | ?:[\\/]*) |
| 4130 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4131 | ;; |
| 4132 | *) |
| 4133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4134 | for as_dir in $PATH |
| 4135 | do |
| 4136 | IFS=$as_save_IFS |
| 4137 | test -z "$as_dir" && as_dir=. |
| 4138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4140 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4142 | break 2 |
| 4143 | fi |
| 4144 | done |
| 4145 | done |
| 4146 | IFS=$as_save_IFS |
| 4147 | |
| 4148 | ;; |
| 4149 | esac |
| 4150 | fi |
| 4151 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4152 | if test -n "$PKG_CONFIG"; then |
| 4153 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4154 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 4155 | else |
| 4156 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4157 | echo "${ECHO_T}no" >&6; } |
| 4158 | fi |
| 4159 | |
| 4160 | |
| 4161 | fi |
| 4162 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4163 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4164 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4165 | set dummy pkg-config; ac_word=$2 |
| 4166 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4168 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4170 | else |
| 4171 | case $ac_pt_PKG_CONFIG in |
| 4172 | [\\/]* | ?:[\\/]*) |
| 4173 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4174 | ;; |
| 4175 | *) |
| 4176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4177 | for as_dir in $PATH |
| 4178 | do |
| 4179 | IFS=$as_save_IFS |
| 4180 | test -z "$as_dir" && as_dir=. |
| 4181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4183 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4185 | break 2 |
| 4186 | fi |
| 4187 | done |
| 4188 | done |
| 4189 | IFS=$as_save_IFS |
| 4190 | |
| 4191 | ;; |
| 4192 | esac |
| 4193 | fi |
| 4194 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4195 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4196 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4197 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 4198 | else |
| 4199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4200 | echo "${ECHO_T}no" >&6; } |
| 4201 | fi |
| 4202 | |
| 4203 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4204 | PKG_CONFIG="" |
| 4205 | else |
| 4206 | case $cross_compiling:$ac_tool_warned in |
| 4207 | yes:) |
| 4208 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4209 | whose name does not start with the host triplet. If you think this |
| 4210 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4211 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4212 | whose name does not start with the host triplet. If you think this |
| 4213 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4214 | ac_tool_warned=yes ;; |
| 4215 | esac |
| 4216 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4217 | fi |
| 4218 | else |
| 4219 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4220 | fi |
| 4221 | |
| 4222 | fi |
| 4223 | if test -n "$PKG_CONFIG"; then |
| 4224 | _pkg_min_version=0.9.0 |
| 4225 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4226 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 4227 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4228 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4229 | echo "${ECHO_T}yes" >&6; } |
| 4230 | else |
| 4231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4232 | echo "${ECHO_T}no" >&6; } |
| 4233 | PKG_CONFIG="" |
| 4234 | fi |
| 4235 | |
| 4236 | fi |
| 4237 | |
| 4238 | if test -z "$PKG_CONFIG"; then |
| 4239 | echo "pkg-config not installed; please install it." |
| 4240 | exit 1; |
| 4241 | fi |
| 4242 | |
| 4243 | { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5 |
| 4244 | echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; } |
| 4245 | if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then |
| 4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4247 | else |
| 4248 | ac_check_lib_save_LIBS=$LIBS |
| 4249 | LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS" |
| 4250 | cat >conftest.$ac_ext <<_ACEOF |
| 4251 | /* confdefs.h. */ |
| 4252 | _ACEOF |
| 4253 | cat confdefs.h >>conftest.$ac_ext |
| 4254 | cat >>conftest.$ac_ext <<_ACEOF |
| 4255 | /* end confdefs.h. */ |
| 4256 | |
| 4257 | /* Override any GCC internal prototype to avoid an error. |
| 4258 | Use char because int might match the return type of a GCC |
| 4259 | builtin and then its argument prototype would still apply. */ |
| 4260 | #ifdef __cplusplus |
| 4261 | extern "C" |
| 4262 | #endif |
| 4263 | char dm_tree_create (); |
| 4264 | int |
| 4265 | main () |
| 4266 | { |
| 4267 | return dm_tree_create (); |
| 4268 | ; |
| 4269 | return 0; |
| 4270 | } |
| 4271 | _ACEOF |
| 4272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4273 | if { (ac_try="$ac_link" |
| 4274 | case "(($ac_try" in |
| 4275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4276 | *) ac_try_echo=$ac_try;; |
| 4277 | esac |
| 4278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4279 | (eval "$ac_link") 2>conftest.er1 |
| 4280 | ac_status=$? |
| 4281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4282 | rm -f conftest.er1 |
| 4283 | cat conftest.err >&5 |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && { |
| 4286 | test -z "$ac_c_werror_flag" || |
| 4287 | test ! -s conftest.err |
| 4288 | } && test -s conftest$ac_exeext && |
| 4289 | $as_test_x conftest$ac_exeext; then |
| 4290 | ac_cv_lib_devmapper_dm_tree_create=yes |
| 4291 | else |
| 4292 | echo "$as_me: failed program was:" >&5 |
| 4293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4294 | |
| 4295 | ac_cv_lib_devmapper_dm_tree_create=no |
| 4296 | fi |
| 4297 | |
| 4298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4299 | conftest$ac_exeext conftest.$ac_ext |
| 4300 | LIBS=$ac_check_lib_save_LIBS |
| 4301 | fi |
| 4302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5 |
| 4303 | echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; } |
| 4304 | if test $ac_cv_lib_devmapper_dm_tree_create = yes; then |
| 4305 | DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`; |
| 4306 | STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`; |
| 4307 | DEVMAPPER_REQ="devmapper"; |
| 4308 | DEVMAPPER_PC_LIBS="-ldevmapper" |
| 4309 | else |
| 4310 | { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5 |
| 4311 | echo "$as_me: error: device-mapper library not found" >&2;} |
| 4312 | { (exit 1); exit 1; }; } |
| 4313 | fi |
| 4314 | |
| 4315 | # work around stupid devmapper.pc bug in Debian |
| 4316 | case "$STATIC_DEVMAPPER_LIBS" in |
| 4317 | *pthread*) |
| 4318 | ;; |
| 4319 | *) |
| 4320 | echo "Working around Debian bug #390243..." |
| 4321 | STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS" |
| 4322 | ;; |
| 4323 | esac |
| 4324 | if test "$E2_PKG_CONFIG_STATIC" = "--static"; then |
| 4325 | DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4326 | STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4327 | fi |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4328 | fi |
| 4329 | |
| 4330 | else |
| 4331 | echo "Disabling device-mapper support by default" |
| 4332 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4333 | fi |
| 4334 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4335 | |
| 4336 | |
| 4337 | |
| 4338 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4339 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4340 | # Check whether --enable-tls was given. |
| 4341 | if test "${enable_tls+set}" = set; then |
| 4342 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4343 | then |
| 4344 | try_tls="" |
| 4345 | echo "Disabling thread local support" |
| 4346 | else |
| 4347 | try_tls="yes" |
| 4348 | echo "Enabling thread local support" |
| 4349 | fi |
| 4350 | |
| 4351 | else |
| 4352 | try_tls="yes" |
| 4353 | echo "Try using thread local support by default" |
| 4354 | |
| 4355 | fi |
| 4356 | |
| 4357 | if test "$try_tls" = "yes" |
| 4358 | then |
| 4359 | |
| 4360 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4361 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4362 | if test "${ac_cv_tls+set}" = set; then |
| 4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4364 | else |
| 4365 | |
| 4366 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4367 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4368 | case $ax_tls_keyword in |
| 4369 | none) ac_cv_tls=none ; break ;; |
| 4370 | *) |
| 4371 | cat >conftest.$ac_ext <<_ACEOF |
| 4372 | /* confdefs.h. */ |
| 4373 | _ACEOF |
| 4374 | cat confdefs.h >>conftest.$ac_ext |
| 4375 | cat >>conftest.$ac_ext <<_ACEOF |
| 4376 | /* end confdefs.h. */ |
| 4377 | #include <stdlib.h> |
| 4378 | static void |
| 4379 | foo(void) { |
| 4380 | static $ax_tls_keyword int bar; |
| 4381 | exit(1); |
| 4382 | } |
| 4383 | int |
| 4384 | main () |
| 4385 | { |
| 4386 | |
| 4387 | ; |
| 4388 | return 0; |
| 4389 | } |
| 4390 | _ACEOF |
| 4391 | rm -f conftest.$ac_objext |
| 4392 | if { (ac_try="$ac_compile" |
| 4393 | case "(($ac_try" in |
| 4394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4395 | *) ac_try_echo=$ac_try;; |
| 4396 | esac |
| 4397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4398 | (eval "$ac_compile") 2>conftest.er1 |
| 4399 | ac_status=$? |
| 4400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4401 | rm -f conftest.er1 |
| 4402 | cat conftest.err >&5 |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); } && { |
| 4405 | test -z "$ac_c_werror_flag" || |
| 4406 | test ! -s conftest.err |
| 4407 | } && test -s conftest.$ac_objext; then |
| 4408 | ac_cv_tls=$ax_tls_keyword ; break |
| 4409 | else |
| 4410 | echo "$as_me: failed program was:" >&5 |
| 4411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4412 | |
| 4413 | ac_cv_tls=none |
| 4414 | |
| 4415 | fi |
| 4416 | |
| 4417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4418 | esac |
| 4419 | done |
| 4420 | |
| 4421 | fi |
| 4422 | |
| 4423 | |
| 4424 | if test "$ac_cv_tls" != "none"; then |
| 4425 | |
| 4426 | cat >>confdefs.h <<_ACEOF |
| 4427 | #define TLS $ac_cv_tls |
| 4428 | _ACEOF |
| 4429 | |
| 4430 | fi |
| 4431 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4432 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4433 | |
| 4434 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4435 | # Check whether --enable-uuidd was given. |
| 4436 | if test "${enable_uuidd+set}" = set; then |
| 4437 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4438 | then |
| 4439 | echo "Not building uuidd" |
| 4440 | UUIDD_CMT="#" |
| 4441 | else |
| 4442 | cat >>confdefs.h <<\_ACEOF |
| 4443 | #define USE_UUIDD 1 |
| 4444 | _ACEOF |
| 4445 | |
| 4446 | UUIDD_CMT="" |
| 4447 | echo "Building uuidd" |
| 4448 | fi |
| 4449 | |
| 4450 | else |
| 4451 | cat >>confdefs.h <<\_ACEOF |
| 4452 | #define USE_UUIDD 1 |
| 4453 | _ACEOF |
| 4454 | |
| 4455 | UUIDD_CMT="" |
| 4456 | echo "Building uuidd by default" |
| 4457 | |
| 4458 | fi |
| 4459 | |
| 4460 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4461 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4463 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4464 | PACKAGE=e2fsprogs |
| 4465 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4466 | VERSION=0.14.1 |
| 4467 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4468 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4469 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4470 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4471 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4472 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4473 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4474 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4479 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4480 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4481 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4482 | 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] | 4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4484 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4485 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4486 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4487 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4488 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4489 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4490 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4491 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4492 | *@@@%%%=?*=@@@%%%*) |
| 4493 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4494 | *) |
| 4495 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4496 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4497 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4498 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4499 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4500 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4501 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4502 | SET_MAKE= |
| 4503 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4504 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4505 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4506 | SET_MAKE="MAKE=${MAKE-make}" |
| 4507 | fi |
| 4508 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4509 | # Find a good install program. We prefer a C program (faster), |
| 4510 | # so one script is as good as another. But avoid the broken or |
| 4511 | # incompatible versions: |
| 4512 | # SysV /etc/install, /usr/sbin/install |
| 4513 | # SunOS /usr/etc/install |
| 4514 | # IRIX /sbin/install |
| 4515 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4516 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4517 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4518 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4519 | # 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] | 4520 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4521 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4522 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4523 | 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] | 4524 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4525 | if test "${ac_cv_path_install+set}" = set; then |
| 4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4527 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4529 | for as_dir in $PATH |
| 4530 | do |
| 4531 | IFS=$as_save_IFS |
| 4532 | test -z "$as_dir" && as_dir=. |
| 4533 | # Account for people who put trailing slashes in PATH elements. |
| 4534 | case $as_dir/ in |
| 4535 | ./ | .// | /cC/* | \ |
| 4536 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4537 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4538 | /usr/ucb/* ) ;; |
| 4539 | *) |
| 4540 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4541 | # Don't use installbsd from OSF since it installs stuff as root |
| 4542 | # by default. |
| 4543 | for ac_prog in ginstall scoinst install; do |
| 4544 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4545 | 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] | 4546 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4547 | 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] | 4548 | # AIX install. It has an incompatible calling convention. |
| 4549 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4550 | elif test $ac_prog = install && |
| 4551 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4552 | # program-specific install script used by HP pwplus--don't use. |
| 4553 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4554 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4556 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4557 | fi |
| 4558 | fi |
| 4559 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4560 | done |
| 4561 | ;; |
| 4562 | esac |
| 4563 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4564 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4566 | |
| 4567 | fi |
| 4568 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4569 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4570 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4571 | # As a last resort, use the slow shell script. Don't cache a |
| 4572 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4573 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4574 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4575 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4576 | fi |
| 4577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4578 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4579 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4580 | |
| 4581 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4582 | # It thinks the first close brace ends the variable substitution. |
| 4583 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4584 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4585 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4586 | |
| 4587 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4588 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4589 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4590 | MKINSTALLDIRS= |
| 4591 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4592 | case "$ac_aux_dir" in |
| 4593 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4594 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4595 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4596 | fi |
| 4597 | if test -z "$MKINSTALLDIRS"; then |
| 4598 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4599 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4601 | |
| 4602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4603 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4604 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4605 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4606 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4607 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4608 | else |
| 4609 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4610 | fi |
| 4611 | |
| 4612 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4613 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | # Prepare PATH_SEPARATOR. |
| 4621 | # The user is always right. |
| 4622 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4623 | echo "#! /bin/sh" >conf$$.sh |
| 4624 | echo "exit 0" >>conf$$.sh |
| 4625 | chmod +x conf$$.sh |
| 4626 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4627 | PATH_SEPARATOR=';' |
| 4628 | else |
| 4629 | PATH_SEPARATOR=: |
| 4630 | fi |
| 4631 | rm -f conf$$.sh |
| 4632 | fi |
| 4633 | |
| 4634 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4635 | # as systems may use methods other than mode bits to determine executability. |
| 4636 | cat >conf$$.file <<_ASEOF |
| 4637 | #! /bin/sh |
| 4638 | exit 0 |
| 4639 | _ASEOF |
| 4640 | chmod +x conf$$.file |
| 4641 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4642 | ac_executable_p="test -x" |
| 4643 | else |
| 4644 | ac_executable_p="test -f" |
| 4645 | fi |
| 4646 | rm -f conf$$.file |
| 4647 | |
| 4648 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4649 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4652 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4654 | else |
| 4655 | case "$MSGFMT" in |
| 4656 | [\\/]* | ?:[\\/]*) |
| 4657 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4658 | ;; |
| 4659 | *) |
| 4660 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4661 | for ac_dir in $PATH; do |
| 4662 | IFS="$ac_save_IFS" |
| 4663 | test -z "$ac_dir" && ac_dir=. |
| 4664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4665 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4666 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4667 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4668 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4669 | break 2 |
| 4670 | fi |
| 4671 | fi |
| 4672 | done |
| 4673 | done |
| 4674 | IFS="$ac_save_IFS" |
| 4675 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4676 | ;; |
| 4677 | esac |
| 4678 | fi |
| 4679 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4680 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4681 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4682 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4683 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4684 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4685 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4686 | fi |
| 4687 | |
| 4688 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4689 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4692 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | case $GMSGFMT in |
| 4696 | [\\/]* | ?:[\\/]*) |
| 4697 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4698 | ;; |
| 4699 | *) |
| 4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4701 | for as_dir in $PATH |
| 4702 | do |
| 4703 | IFS=$as_save_IFS |
| 4704 | test -z "$as_dir" && as_dir=. |
| 4705 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4706 | 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] | 4707 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4709 | break 2 |
| 4710 | fi |
| 4711 | done |
| 4712 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4713 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4714 | |
| 4715 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4716 | ;; |
| 4717 | esac |
| 4718 | fi |
| 4719 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4720 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4721 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4722 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4723 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4724 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4725 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4726 | fi |
| 4727 | |
| 4728 | |
| 4729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4731 | # Prepare PATH_SEPARATOR. |
| 4732 | # The user is always right. |
| 4733 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4734 | echo "#! /bin/sh" >conf$$.sh |
| 4735 | echo "exit 0" >>conf$$.sh |
| 4736 | chmod +x conf$$.sh |
| 4737 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4738 | PATH_SEPARATOR=';' |
| 4739 | else |
| 4740 | PATH_SEPARATOR=: |
| 4741 | fi |
| 4742 | rm -f conf$$.sh |
| 4743 | fi |
| 4744 | |
| 4745 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4746 | # as systems may use methods other than mode bits to determine executability. |
| 4747 | cat >conf$$.file <<_ASEOF |
| 4748 | #! /bin/sh |
| 4749 | exit 0 |
| 4750 | _ASEOF |
| 4751 | chmod +x conf$$.file |
| 4752 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4753 | ac_executable_p="test -x" |
| 4754 | else |
| 4755 | ac_executable_p="test -f" |
| 4756 | fi |
| 4757 | rm -f conf$$.file |
| 4758 | |
| 4759 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4760 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4761 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4763 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4765 | else |
| 4766 | case "$XGETTEXT" in |
| 4767 | [\\/]* | ?:[\\/]*) |
| 4768 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4769 | ;; |
| 4770 | *) |
| 4771 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4772 | for ac_dir in $PATH; do |
| 4773 | IFS="$ac_save_IFS" |
| 4774 | test -z "$ac_dir" && ac_dir=. |
| 4775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4776 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4777 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4778 | (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 |
| 4779 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4780 | break 2 |
| 4781 | fi |
| 4782 | fi |
| 4783 | done |
| 4784 | done |
| 4785 | IFS="$ac_save_IFS" |
| 4786 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4787 | ;; |
| 4788 | esac |
| 4789 | fi |
| 4790 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4791 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4792 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4793 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4794 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4795 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4796 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4797 | fi |
| 4798 | |
| 4799 | rm -f messages.po |
| 4800 | |
| 4801 | |
| 4802 | # Prepare PATH_SEPARATOR. |
| 4803 | # The user is always right. |
| 4804 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4805 | echo "#! /bin/sh" >conf$$.sh |
| 4806 | echo "exit 0" >>conf$$.sh |
| 4807 | chmod +x conf$$.sh |
| 4808 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4809 | PATH_SEPARATOR=';' |
| 4810 | else |
| 4811 | PATH_SEPARATOR=: |
| 4812 | fi |
| 4813 | rm -f conf$$.sh |
| 4814 | fi |
| 4815 | |
| 4816 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4817 | # as systems may use methods other than mode bits to determine executability. |
| 4818 | cat >conf$$.file <<_ASEOF |
| 4819 | #! /bin/sh |
| 4820 | exit 0 |
| 4821 | _ASEOF |
| 4822 | chmod +x conf$$.file |
| 4823 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4824 | ac_executable_p="test -x" |
| 4825 | else |
| 4826 | ac_executable_p="test -f" |
| 4827 | fi |
| 4828 | rm -f conf$$.file |
| 4829 | |
| 4830 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4831 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4834 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4836 | else |
| 4837 | case "$MSGMERGE" in |
| 4838 | [\\/]* | ?:[\\/]*) |
| 4839 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4840 | ;; |
| 4841 | *) |
| 4842 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4843 | for ac_dir in $PATH; do |
| 4844 | IFS="$ac_save_IFS" |
| 4845 | test -z "$ac_dir" && ac_dir=. |
| 4846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4847 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4848 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4849 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4850 | break 2 |
| 4851 | fi |
| 4852 | fi |
| 4853 | done |
| 4854 | done |
| 4855 | IFS="$ac_save_IFS" |
| 4856 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4857 | ;; |
| 4858 | esac |
| 4859 | fi |
| 4860 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4861 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4862 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4863 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4864 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4866 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4867 | fi |
| 4868 | |
| 4869 | |
| 4870 | if test "$GMSGFMT" != ":"; then |
| 4871 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4872 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4873 | : ; |
| 4874 | else |
| 4875 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4876 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4877 | 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] | 4878 | GMSGFMT=":" |
| 4879 | fi |
| 4880 | fi |
| 4881 | |
| 4882 | if test "$XGETTEXT" != ":"; then |
| 4883 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4884 | (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 |
| 4885 | : ; |
| 4886 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4887 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4888 | 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] | 4889 | XGETTEXT=":" |
| 4890 | fi |
| 4891 | rm -f messages.po |
| 4892 | fi |
| 4893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4894 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4895 | |
| 4896 | |
| 4897 | if test -n "$ac_tool_prefix"; then |
| 4898 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4899 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4902 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4904 | else |
| 4905 | if test -n "$RANLIB"; then |
| 4906 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4907 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4909 | for as_dir in $PATH |
| 4910 | do |
| 4911 | IFS=$as_save_IFS |
| 4912 | test -z "$as_dir" && as_dir=. |
| 4913 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4914 | 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] | 4915 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4917 | break 2 |
| 4918 | fi |
| 4919 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4920 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4921 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4922 | |
| 4923 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4924 | fi |
| 4925 | RANLIB=$ac_cv_prog_RANLIB |
| 4926 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4928 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4929 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4930 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4931 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4932 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4933 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4934 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4935 | fi |
| 4936 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4937 | ac_ct_RANLIB=$RANLIB |
| 4938 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4939 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4942 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4944 | else |
| 4945 | if test -n "$ac_ct_RANLIB"; then |
| 4946 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4947 | else |
| 4948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4949 | for as_dir in $PATH |
| 4950 | do |
| 4951 | IFS=$as_save_IFS |
| 4952 | test -z "$as_dir" && as_dir=. |
| 4953 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4954 | 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] | 4955 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4957 | break 2 |
| 4958 | fi |
| 4959 | done |
| 4960 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4961 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4962 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4963 | fi |
| 4964 | fi |
| 4965 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4966 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4967 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4968 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4969 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4970 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4971 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4972 | fi |
| 4973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4974 | if test "x$ac_ct_RANLIB" = x; then |
| 4975 | RANLIB=":" |
| 4976 | else |
| 4977 | case $cross_compiling:$ac_tool_warned in |
| 4978 | yes:) |
| 4979 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4980 | whose name does not start with the host triplet. If you think this |
| 4981 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4982 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4983 | whose name does not start with the host triplet. If you think this |
| 4984 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4985 | ac_tool_warned=yes ;; |
| 4986 | esac |
| 4987 | RANLIB=$ac_ct_RANLIB |
| 4988 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4989 | else |
| 4990 | RANLIB="$ac_cv_prog_RANLIB" |
| 4991 | fi |
| 4992 | |
| 4993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4994 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4995 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4996 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4998 | else |
| 4999 | ac_check_lib_save_LIBS=$LIBS |
| 5000 | LIBS="-lcposix $LIBS" |
| 5001 | cat >conftest.$ac_ext <<_ACEOF |
| 5002 | /* confdefs.h. */ |
| 5003 | _ACEOF |
| 5004 | cat confdefs.h >>conftest.$ac_ext |
| 5005 | cat >>conftest.$ac_ext <<_ACEOF |
| 5006 | /* end confdefs.h. */ |
| 5007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5008 | /* Override any GCC internal prototype to avoid an error. |
| 5009 | Use char because int might match the return type of a GCC |
| 5010 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5011 | #ifdef __cplusplus |
| 5012 | extern "C" |
| 5013 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5014 | char strerror (); |
| 5015 | int |
| 5016 | main () |
| 5017 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5018 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5019 | ; |
| 5020 | return 0; |
| 5021 | } |
| 5022 | _ACEOF |
| 5023 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5024 | if { (ac_try="$ac_link" |
| 5025 | case "(($ac_try" in |
| 5026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5027 | *) ac_try_echo=$ac_try;; |
| 5028 | esac |
| 5029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5030 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5031 | ac_status=$? |
| 5032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5033 | rm -f conftest.er1 |
| 5034 | cat conftest.err >&5 |
| 5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5036 | (exit $ac_status); } && { |
| 5037 | test -z "$ac_c_werror_flag" || |
| 5038 | test ! -s conftest.err |
| 5039 | } && test -s conftest$ac_exeext && |
| 5040 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5041 | ac_cv_lib_cposix_strerror=yes |
| 5042 | else |
| 5043 | echo "$as_me: failed program was:" >&5 |
| 5044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5046 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5048 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5049 | 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] | 5050 | conftest$ac_exeext conftest.$ac_ext |
| 5051 | LIBS=$ac_check_lib_save_LIBS |
| 5052 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5053 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5054 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5055 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5056 | LIBS="$LIBS -lcposix" |
| 5057 | fi |
| 5058 | |
| 5059 | |
| 5060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5061 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5062 | 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] | 5063 | if test "${ac_cv_c_const+set}" = set; then |
| 5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5065 | else |
| 5066 | cat >conftest.$ac_ext <<_ACEOF |
| 5067 | /* confdefs.h. */ |
| 5068 | _ACEOF |
| 5069 | cat confdefs.h >>conftest.$ac_ext |
| 5070 | cat >>conftest.$ac_ext <<_ACEOF |
| 5071 | /* end confdefs.h. */ |
| 5072 | |
| 5073 | int |
| 5074 | main () |
| 5075 | { |
| 5076 | /* FIXME: Include the comments suggested by Paul. */ |
| 5077 | #ifndef __cplusplus |
| 5078 | /* Ultrix mips cc rejects this. */ |
| 5079 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5080 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5081 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5082 | char const *const *pcpcc; |
| 5083 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5084 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5085 | struct point {int x, y;}; |
| 5086 | static struct point const zero = {0,0}; |
| 5087 | /* AIX XL C 1.02.0.0 rejects this. |
| 5088 | It does not let you subtract one const X* pointer from another in |
| 5089 | an arm of an if-expression whose if-part is not a constant |
| 5090 | expression */ |
| 5091 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5092 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5093 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5094 | ++pcpcc; |
| 5095 | ppc = (char**) pcpcc; |
| 5096 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5097 | { /* SCO 3.2v4 cc rejects this. */ |
| 5098 | char *t; |
| 5099 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5100 | |
| 5101 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5102 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5103 | } |
| 5104 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5105 | int x[] = {25, 17}; |
| 5106 | const int *foo = &x[0]; |
| 5107 | ++foo; |
| 5108 | } |
| 5109 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5110 | typedef const int *iptr; |
| 5111 | iptr p = 0; |
| 5112 | ++p; |
| 5113 | } |
| 5114 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5115 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5116 | struct s { int j; const int *ap[3]; }; |
| 5117 | struct s *b; b->j = 5; |
| 5118 | } |
| 5119 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5120 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5121 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5122 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5123 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5124 | #endif |
| 5125 | |
| 5126 | ; |
| 5127 | return 0; |
| 5128 | } |
| 5129 | _ACEOF |
| 5130 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5131 | if { (ac_try="$ac_compile" |
| 5132 | case "(($ac_try" in |
| 5133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5134 | *) ac_try_echo=$ac_try;; |
| 5135 | esac |
| 5136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5137 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5138 | ac_status=$? |
| 5139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5140 | rm -f conftest.er1 |
| 5141 | cat conftest.err >&5 |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5143 | (exit $ac_status); } && { |
| 5144 | test -z "$ac_c_werror_flag" || |
| 5145 | test ! -s conftest.err |
| 5146 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5147 | ac_cv_c_const=yes |
| 5148 | else |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5152 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5153 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5154 | |
| 5155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5156 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5157 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5158 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5159 | if test $ac_cv_c_const = no; then |
| 5160 | |
| 5161 | cat >>confdefs.h <<\_ACEOF |
| 5162 | #define const |
| 5163 | _ACEOF |
| 5164 | |
| 5165 | fi |
| 5166 | |
| 5167 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5168 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5169 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5170 | if test "${bh_cv_c_signed+set}" = set; then |
| 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5172 | else |
| 5173 | cat >conftest.$ac_ext <<_ACEOF |
| 5174 | /* confdefs.h. */ |
| 5175 | _ACEOF |
| 5176 | cat confdefs.h >>conftest.$ac_ext |
| 5177 | cat >>conftest.$ac_ext <<_ACEOF |
| 5178 | /* end confdefs.h. */ |
| 5179 | |
| 5180 | int |
| 5181 | main () |
| 5182 | { |
| 5183 | signed char x; |
| 5184 | ; |
| 5185 | return 0; |
| 5186 | } |
| 5187 | _ACEOF |
| 5188 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5189 | if { (ac_try="$ac_compile" |
| 5190 | case "(($ac_try" in |
| 5191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5192 | *) ac_try_echo=$ac_try;; |
| 5193 | esac |
| 5194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5195 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5196 | ac_status=$? |
| 5197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5198 | rm -f conftest.er1 |
| 5199 | cat conftest.err >&5 |
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5201 | (exit $ac_status); } && { |
| 5202 | test -z "$ac_c_werror_flag" || |
| 5203 | test ! -s conftest.err |
| 5204 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5205 | bh_cv_c_signed=yes |
| 5206 | else |
| 5207 | echo "$as_me: failed program was:" >&5 |
| 5208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5209 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5210 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5212 | |
| 5213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5214 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5215 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5216 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5217 | if test $bh_cv_c_signed = no; then |
| 5218 | |
| 5219 | cat >>confdefs.h <<\_ACEOF |
| 5220 | #define signed |
| 5221 | _ACEOF |
| 5222 | |
| 5223 | fi |
| 5224 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5225 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5226 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5227 | if test "${ac_cv_c_inline+set}" = set; then |
| 5228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5229 | else |
| 5230 | ac_cv_c_inline=no |
| 5231 | for ac_kw in inline __inline__ __inline; do |
| 5232 | cat >conftest.$ac_ext <<_ACEOF |
| 5233 | /* confdefs.h. */ |
| 5234 | _ACEOF |
| 5235 | cat confdefs.h >>conftest.$ac_ext |
| 5236 | cat >>conftest.$ac_ext <<_ACEOF |
| 5237 | /* end confdefs.h. */ |
| 5238 | #ifndef __cplusplus |
| 5239 | typedef int foo_t; |
| 5240 | static $ac_kw foo_t static_foo () {return 0; } |
| 5241 | $ac_kw foo_t foo () {return 0; } |
| 5242 | #endif |
| 5243 | |
| 5244 | _ACEOF |
| 5245 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5246 | if { (ac_try="$ac_compile" |
| 5247 | case "(($ac_try" in |
| 5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5249 | *) ac_try_echo=$ac_try;; |
| 5250 | esac |
| 5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5252 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5253 | ac_status=$? |
| 5254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5255 | rm -f conftest.er1 |
| 5256 | cat conftest.err >&5 |
| 5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5258 | (exit $ac_status); } && { |
| 5259 | test -z "$ac_c_werror_flag" || |
| 5260 | test ! -s conftest.err |
| 5261 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5262 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5263 | else |
| 5264 | echo "$as_me: failed program was:" >&5 |
| 5265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5269 | |
| 5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5271 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5272 | done |
| 5273 | |
| 5274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5275 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5276 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5277 | |
| 5278 | |
| 5279 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5280 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5281 | *) |
| 5282 | case $ac_cv_c_inline in |
| 5283 | no) ac_val=;; |
| 5284 | *) ac_val=$ac_cv_c_inline;; |
| 5285 | esac |
| 5286 | cat >>confdefs.h <<_ACEOF |
| 5287 | #ifndef __cplusplus |
| 5288 | #define inline $ac_val |
| 5289 | #endif |
| 5290 | _ACEOF |
| 5291 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5292 | esac |
| 5293 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5294 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5295 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5296 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5299 | cat >conftest.$ac_ext <<_ACEOF |
| 5300 | /* confdefs.h. */ |
| 5301 | _ACEOF |
| 5302 | cat confdefs.h >>conftest.$ac_ext |
| 5303 | cat >>conftest.$ac_ext <<_ACEOF |
| 5304 | /* end confdefs.h. */ |
| 5305 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5306 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5307 | int |
| 5308 | main () |
| 5309 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5310 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5311 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5312 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5313 | return 0; |
| 5314 | ; |
| 5315 | return 0; |
| 5316 | } |
| 5317 | _ACEOF |
| 5318 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5319 | if { (ac_try="$ac_compile" |
| 5320 | case "(($ac_try" in |
| 5321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5322 | *) ac_try_echo=$ac_try;; |
| 5323 | esac |
| 5324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5325 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5326 | ac_status=$? |
| 5327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5328 | rm -f conftest.er1 |
| 5329 | cat conftest.err >&5 |
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5331 | (exit $ac_status); } && { |
| 5332 | test -z "$ac_c_werror_flag" || |
| 5333 | test ! -s conftest.err |
| 5334 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5335 | ac_cv_type_off_t=yes |
| 5336 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5337 | echo "$as_me: failed program was:" >&5 |
| 5338 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5339 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5340 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5342 | |
| 5343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5344 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5345 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5346 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5347 | if test $ac_cv_type_off_t = yes; then |
| 5348 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5349 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5350 | |
| 5351 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5352 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5353 | _ACEOF |
| 5354 | |
| 5355 | fi |
| 5356 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5357 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5358 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5359 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5361 | else |
| 5362 | cat >conftest.$ac_ext <<_ACEOF |
| 5363 | /* confdefs.h. */ |
| 5364 | _ACEOF |
| 5365 | cat confdefs.h >>conftest.$ac_ext |
| 5366 | cat >>conftest.$ac_ext <<_ACEOF |
| 5367 | /* end confdefs.h. */ |
| 5368 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5369 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5370 | int |
| 5371 | main () |
| 5372 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5373 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5374 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5376 | return 0; |
| 5377 | ; |
| 5378 | return 0; |
| 5379 | } |
| 5380 | _ACEOF |
| 5381 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5382 | if { (ac_try="$ac_compile" |
| 5383 | case "(($ac_try" in |
| 5384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5385 | *) ac_try_echo=$ac_try;; |
| 5386 | esac |
| 5387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5388 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5389 | ac_status=$? |
| 5390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5391 | rm -f conftest.er1 |
| 5392 | cat conftest.err >&5 |
| 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5394 | (exit $ac_status); } && { |
| 5395 | test -z "$ac_c_werror_flag" || |
| 5396 | test ! -s conftest.err |
| 5397 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5398 | ac_cv_type_size_t=yes |
| 5399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5400 | echo "$as_me: failed program was:" >&5 |
| 5401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5403 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5404 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5405 | |
| 5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5407 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5408 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5409 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5410 | if test $ac_cv_type_size_t = yes; then |
| 5411 | : |
| 5412 | else |
| 5413 | |
| 5414 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5415 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5416 | _ACEOF |
| 5417 | |
| 5418 | fi |
| 5419 | |
| 5420 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5421 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5422 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5423 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5425 | else |
| 5426 | cat >conftest.$ac_ext <<_ACEOF |
| 5427 | /* confdefs.h. */ |
| 5428 | _ACEOF |
| 5429 | cat confdefs.h >>conftest.$ac_ext |
| 5430 | cat >>conftest.$ac_ext <<_ACEOF |
| 5431 | /* end confdefs.h. */ |
| 5432 | long long ll = 1LL; int i = 63; |
| 5433 | int |
| 5434 | main () |
| 5435 | { |
| 5436 | long long llmax = (long long) -1; |
| 5437 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5438 | ; |
| 5439 | return 0; |
| 5440 | } |
| 5441 | _ACEOF |
| 5442 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5443 | if { (ac_try="$ac_link" |
| 5444 | case "(($ac_try" in |
| 5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5446 | *) ac_try_echo=$ac_try;; |
| 5447 | esac |
| 5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5449 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5450 | ac_status=$? |
| 5451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5452 | rm -f conftest.er1 |
| 5453 | cat conftest.err >&5 |
| 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5455 | (exit $ac_status); } && { |
| 5456 | test -z "$ac_c_werror_flag" || |
| 5457 | test ! -s conftest.err |
| 5458 | } && test -s conftest$ac_exeext && |
| 5459 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5460 | ac_cv_type_long_long=yes |
| 5461 | else |
| 5462 | echo "$as_me: failed program was:" >&5 |
| 5463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5464 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5465 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5466 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5467 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5468 | 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] | 5469 | conftest$ac_exeext conftest.$ac_ext |
| 5470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5471 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5472 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5473 | if test $ac_cv_type_long_long = yes; then |
| 5474 | |
| 5475 | cat >>confdefs.h <<\_ACEOF |
| 5476 | #define HAVE_LONG_LONG 1 |
| 5477 | _ACEOF |
| 5478 | |
| 5479 | fi |
| 5480 | |
| 5481 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5482 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5483 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5484 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5486 | else |
| 5487 | if test "$GCC" = yes; then |
| 5488 | gt_cv_c_long_double=yes |
| 5489 | else |
| 5490 | cat >conftest.$ac_ext <<_ACEOF |
| 5491 | /* confdefs.h. */ |
| 5492 | _ACEOF |
| 5493 | cat confdefs.h >>conftest.$ac_ext |
| 5494 | cat >>conftest.$ac_ext <<_ACEOF |
| 5495 | /* end confdefs.h. */ |
| 5496 | |
| 5497 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5498 | long double foo = 0.0; |
| 5499 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5500 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5501 | |
| 5502 | int |
| 5503 | main () |
| 5504 | { |
| 5505 | |
| 5506 | ; |
| 5507 | return 0; |
| 5508 | } |
| 5509 | _ACEOF |
| 5510 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5511 | if { (ac_try="$ac_compile" |
| 5512 | case "(($ac_try" in |
| 5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5514 | *) ac_try_echo=$ac_try;; |
| 5515 | esac |
| 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5517 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5518 | ac_status=$? |
| 5519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5520 | rm -f conftest.er1 |
| 5521 | cat conftest.err >&5 |
| 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5523 | (exit $ac_status); } && { |
| 5524 | test -z "$ac_c_werror_flag" || |
| 5525 | test ! -s conftest.err |
| 5526 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5527 | gt_cv_c_long_double=yes |
| 5528 | else |
| 5529 | echo "$as_me: failed program was:" >&5 |
| 5530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5532 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5533 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5534 | |
| 5535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5536 | fi |
| 5537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5538 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5539 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5540 | if test $gt_cv_c_long_double = yes; then |
| 5541 | |
| 5542 | cat >>confdefs.h <<\_ACEOF |
| 5543 | #define HAVE_LONG_DOUBLE 1 |
| 5544 | _ACEOF |
| 5545 | |
| 5546 | fi |
| 5547 | |
| 5548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5549 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5550 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5551 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5553 | else |
| 5554 | cat >conftest.$ac_ext <<_ACEOF |
| 5555 | /* confdefs.h. */ |
| 5556 | _ACEOF |
| 5557 | cat confdefs.h >>conftest.$ac_ext |
| 5558 | cat >>conftest.$ac_ext <<_ACEOF |
| 5559 | /* end confdefs.h. */ |
| 5560 | #include <stddef.h> |
| 5561 | wchar_t foo = (wchar_t)'\0'; |
| 5562 | int |
| 5563 | main () |
| 5564 | { |
| 5565 | |
| 5566 | ; |
| 5567 | return 0; |
| 5568 | } |
| 5569 | _ACEOF |
| 5570 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5571 | if { (ac_try="$ac_compile" |
| 5572 | case "(($ac_try" in |
| 5573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5574 | *) ac_try_echo=$ac_try;; |
| 5575 | esac |
| 5576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5577 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5578 | ac_status=$? |
| 5579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5580 | rm -f conftest.er1 |
| 5581 | cat conftest.err >&5 |
| 5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5583 | (exit $ac_status); } && { |
| 5584 | test -z "$ac_c_werror_flag" || |
| 5585 | test ! -s conftest.err |
| 5586 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5587 | gt_cv_c_wchar_t=yes |
| 5588 | else |
| 5589 | echo "$as_me: failed program was:" >&5 |
| 5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5591 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5592 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5593 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5594 | |
| 5595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5596 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5597 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5598 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5599 | if test $gt_cv_c_wchar_t = yes; then |
| 5600 | |
| 5601 | cat >>confdefs.h <<\_ACEOF |
| 5602 | #define HAVE_WCHAR_T 1 |
| 5603 | _ACEOF |
| 5604 | |
| 5605 | fi |
| 5606 | |
| 5607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5608 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5609 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5610 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5612 | else |
| 5613 | cat >conftest.$ac_ext <<_ACEOF |
| 5614 | /* confdefs.h. */ |
| 5615 | _ACEOF |
| 5616 | cat confdefs.h >>conftest.$ac_ext |
| 5617 | cat >>conftest.$ac_ext <<_ACEOF |
| 5618 | /* end confdefs.h. */ |
| 5619 | #include <wchar.h> |
| 5620 | wint_t foo = (wchar_t)'\0'; |
| 5621 | int |
| 5622 | main () |
| 5623 | { |
| 5624 | |
| 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5630 | if { (ac_try="$ac_compile" |
| 5631 | case "(($ac_try" in |
| 5632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5633 | *) ac_try_echo=$ac_try;; |
| 5634 | esac |
| 5635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5636 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5637 | ac_status=$? |
| 5638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5639 | rm -f conftest.er1 |
| 5640 | cat conftest.err >&5 |
| 5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5642 | (exit $ac_status); } && { |
| 5643 | test -z "$ac_c_werror_flag" || |
| 5644 | test ! -s conftest.err |
| 5645 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | gt_cv_c_wint_t=yes |
| 5647 | else |
| 5648 | echo "$as_me: failed program was:" >&5 |
| 5649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5651 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5653 | |
| 5654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5655 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5656 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5657 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5658 | if test $gt_cv_c_wint_t = yes; then |
| 5659 | |
| 5660 | cat >>confdefs.h <<\_ACEOF |
| 5661 | #define HAVE_WINT_T 1 |
| 5662 | _ACEOF |
| 5663 | |
| 5664 | fi |
| 5665 | |
| 5666 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5667 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5668 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5669 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5671 | else |
| 5672 | cat >conftest.$ac_ext <<_ACEOF |
| 5673 | /* confdefs.h. */ |
| 5674 | _ACEOF |
| 5675 | cat confdefs.h >>conftest.$ac_ext |
| 5676 | cat >>conftest.$ac_ext <<_ACEOF |
| 5677 | /* end confdefs.h. */ |
| 5678 | #include <sys/types.h> |
| 5679 | #include <inttypes.h> |
| 5680 | int |
| 5681 | main () |
| 5682 | { |
| 5683 | uintmax_t i = (uintmax_t) -1; |
| 5684 | ; |
| 5685 | return 0; |
| 5686 | } |
| 5687 | _ACEOF |
| 5688 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5689 | if { (ac_try="$ac_compile" |
| 5690 | case "(($ac_try" in |
| 5691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5692 | *) ac_try_echo=$ac_try;; |
| 5693 | esac |
| 5694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5695 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5696 | ac_status=$? |
| 5697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5698 | rm -f conftest.er1 |
| 5699 | cat conftest.err >&5 |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5701 | (exit $ac_status); } && { |
| 5702 | test -z "$ac_c_werror_flag" || |
| 5703 | test ! -s conftest.err |
| 5704 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5705 | jm_ac_cv_header_inttypes_h=yes |
| 5706 | else |
| 5707 | echo "$as_me: failed program was:" >&5 |
| 5708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5710 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5712 | |
| 5713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5714 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5715 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5716 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5717 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5718 | |
| 5719 | cat >>confdefs.h <<_ACEOF |
| 5720 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5721 | _ACEOF |
| 5722 | |
| 5723 | fi |
| 5724 | |
| 5725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5727 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5728 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5730 | else |
| 5731 | cat >conftest.$ac_ext <<_ACEOF |
| 5732 | /* confdefs.h. */ |
| 5733 | _ACEOF |
| 5734 | cat confdefs.h >>conftest.$ac_ext |
| 5735 | cat >>conftest.$ac_ext <<_ACEOF |
| 5736 | /* end confdefs.h. */ |
| 5737 | #include <sys/types.h> |
| 5738 | #include <stdint.h> |
| 5739 | int |
| 5740 | main () |
| 5741 | { |
| 5742 | uintmax_t i = (uintmax_t) -1; |
| 5743 | ; |
| 5744 | return 0; |
| 5745 | } |
| 5746 | _ACEOF |
| 5747 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5748 | if { (ac_try="$ac_compile" |
| 5749 | case "(($ac_try" in |
| 5750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5751 | *) ac_try_echo=$ac_try;; |
| 5752 | esac |
| 5753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5754 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5755 | ac_status=$? |
| 5756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5757 | rm -f conftest.er1 |
| 5758 | cat conftest.err >&5 |
| 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5760 | (exit $ac_status); } && { |
| 5761 | test -z "$ac_c_werror_flag" || |
| 5762 | test ! -s conftest.err |
| 5763 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5764 | jm_ac_cv_header_stdint_h=yes |
| 5765 | else |
| 5766 | echo "$as_me: failed program was:" >&5 |
| 5767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5769 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5770 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5771 | |
| 5772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5773 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5774 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5775 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5776 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5777 | |
| 5778 | cat >>confdefs.h <<_ACEOF |
| 5779 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5780 | _ACEOF |
| 5781 | |
| 5782 | fi |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5787 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5788 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5789 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5791 | else |
| 5792 | cat >conftest.$ac_ext <<_ACEOF |
| 5793 | /* confdefs.h. */ |
| 5794 | _ACEOF |
| 5795 | cat confdefs.h >>conftest.$ac_ext |
| 5796 | cat >>conftest.$ac_ext <<_ACEOF |
| 5797 | /* end confdefs.h. */ |
| 5798 | |
| 5799 | #include <stddef.h> |
| 5800 | #include <stdlib.h> |
| 5801 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5802 | #include <stdint.h> |
| 5803 | #endif |
| 5804 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5805 | #include <inttypes.h> |
| 5806 | #endif |
| 5807 | |
| 5808 | int |
| 5809 | main () |
| 5810 | { |
| 5811 | intmax_t x = -1; |
| 5812 | ; |
| 5813 | return 0; |
| 5814 | } |
| 5815 | _ACEOF |
| 5816 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5817 | if { (ac_try="$ac_compile" |
| 5818 | case "(($ac_try" in |
| 5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5820 | *) ac_try_echo=$ac_try;; |
| 5821 | esac |
| 5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5823 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5824 | ac_status=$? |
| 5825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5826 | rm -f conftest.er1 |
| 5827 | cat conftest.err >&5 |
| 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5829 | (exit $ac_status); } && { |
| 5830 | test -z "$ac_c_werror_flag" || |
| 5831 | test ! -s conftest.err |
| 5832 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5833 | gt_cv_c_intmax_t=yes |
| 5834 | else |
| 5835 | echo "$as_me: failed program was:" >&5 |
| 5836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5838 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5839 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5840 | |
| 5841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5842 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5843 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5844 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5845 | if test $gt_cv_c_intmax_t = yes; then |
| 5846 | |
| 5847 | cat >>confdefs.h <<\_ACEOF |
| 5848 | #define HAVE_INTMAX_T 1 |
| 5849 | _ACEOF |
| 5850 | |
| 5851 | fi |
| 5852 | |
| 5853 | |
| 5854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5855 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5856 | 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] | 5857 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5859 | else |
| 5860 | |
| 5861 | if test "$cross_compiling" = yes; then |
| 5862 | |
| 5863 | cat >conftest.$ac_ext <<_ACEOF |
| 5864 | /* confdefs.h. */ |
| 5865 | _ACEOF |
| 5866 | cat confdefs.h >>conftest.$ac_ext |
| 5867 | cat >>conftest.$ac_ext <<_ACEOF |
| 5868 | /* end confdefs.h. */ |
| 5869 | |
| 5870 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5871 | notposix |
| 5872 | #endif |
| 5873 | |
| 5874 | _ACEOF |
| 5875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5876 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5877 | gt_cv_func_printf_posix="guessing no" |
| 5878 | else |
| 5879 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5880 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5881 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5882 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5883 | |
| 5884 | else |
| 5885 | cat >conftest.$ac_ext <<_ACEOF |
| 5886 | /* confdefs.h. */ |
| 5887 | _ACEOF |
| 5888 | cat confdefs.h >>conftest.$ac_ext |
| 5889 | cat >>conftest.$ac_ext <<_ACEOF |
| 5890 | /* end confdefs.h. */ |
| 5891 | |
| 5892 | #include <stdio.h> |
| 5893 | #include <string.h> |
| 5894 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5895 | dollar expansion (possibly an autoconf bug). */ |
| 5896 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5897 | static char buf[100]; |
| 5898 | int main () |
| 5899 | { |
| 5900 | sprintf (buf, format, 33, 55); |
| 5901 | return (strcmp (buf, "55 33") != 0); |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5905 | if { (ac_try="$ac_link" |
| 5906 | case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5911 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5912 | ac_status=$? |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5915 | { (case "(($ac_try" in |
| 5916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5917 | *) ac_try_echo=$ac_try;; |
| 5918 | esac |
| 5919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5920 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5921 | ac_status=$? |
| 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5923 | (exit $ac_status); }; }; then |
| 5924 | gt_cv_func_printf_posix=yes |
| 5925 | else |
| 5926 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5927 | echo "$as_me: failed program was:" >&5 |
| 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
| 5930 | ( exit $ac_status ) |
| 5931 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5932 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5933 | 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] | 5934 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5936 | |
| 5937 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5938 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5939 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5940 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5941 | case $gt_cv_func_printf_posix in |
| 5942 | *yes) |
| 5943 | |
| 5944 | cat >>confdefs.h <<\_ACEOF |
| 5945 | #define HAVE_POSIX_PRINTF 1 |
| 5946 | _ACEOF |
| 5947 | |
| 5948 | ;; |
| 5949 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5950 | |
| 5951 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5952 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5953 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5954 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5955 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5957 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5958 | cat >conftest.$ac_ext <<_ACEOF |
| 5959 | /* confdefs.h. */ |
| 5960 | _ACEOF |
| 5961 | cat confdefs.h >>conftest.$ac_ext |
| 5962 | cat >>conftest.$ac_ext <<_ACEOF |
| 5963 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5964 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5965 | int |
| 5966 | main () |
| 5967 | { |
| 5968 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5969 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | ; |
| 5971 | return 0; |
| 5972 | } |
| 5973 | _ACEOF |
| 5974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5975 | if { (ac_try="$ac_link" |
| 5976 | case "(($ac_try" in |
| 5977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5978 | *) ac_try_echo=$ac_try;; |
| 5979 | esac |
| 5980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5981 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5982 | ac_status=$? |
| 5983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5984 | rm -f conftest.er1 |
| 5985 | cat conftest.err >&5 |
| 5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5987 | (exit $ac_status); } && { |
| 5988 | test -z "$ac_c_werror_flag" || |
| 5989 | test ! -s conftest.err |
| 5990 | } && test -s conftest$ac_exeext && |
| 5991 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5992 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5993 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5994 | echo "$as_me: failed program was:" >&5 |
| 5995 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5996 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5997 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5999 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6000 | 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] | 6001 | conftest$ac_exeext conftest.$ac_ext |
| 6002 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6003 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6004 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6005 | if test $ac_cv_working_alloca_h = yes; then |
| 6006 | |
| 6007 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6008 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6009 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6010 | |
| 6011 | fi |
| 6012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6013 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6014 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6015 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
| 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6024 | #ifdef __GNUC__ |
| 6025 | # define alloca __builtin_alloca |
| 6026 | #else |
| 6027 | # ifdef _MSC_VER |
| 6028 | # include <malloc.h> |
| 6029 | # define alloca _alloca |
| 6030 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6031 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6032 | # include <alloca.h> |
| 6033 | # else |
| 6034 | # ifdef _AIX |
| 6035 | #pragma alloca |
| 6036 | # else |
| 6037 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6038 | char *alloca (); |
| 6039 | # endif |
| 6040 | # endif |
| 6041 | # endif |
| 6042 | # endif |
| 6043 | #endif |
| 6044 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6045 | int |
| 6046 | main () |
| 6047 | { |
| 6048 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6049 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6050 | ; |
| 6051 | return 0; |
| 6052 | } |
| 6053 | _ACEOF |
| 6054 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6055 | if { (ac_try="$ac_link" |
| 6056 | case "(($ac_try" in |
| 6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6058 | *) ac_try_echo=$ac_try;; |
| 6059 | esac |
| 6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6061 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6062 | ac_status=$? |
| 6063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6064 | rm -f conftest.er1 |
| 6065 | cat conftest.err >&5 |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6067 | (exit $ac_status); } && { |
| 6068 | test -z "$ac_c_werror_flag" || |
| 6069 | test ! -s conftest.err |
| 6070 | } && test -s conftest$ac_exeext && |
| 6071 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6072 | ac_cv_func_alloca_works=yes |
| 6073 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6074 | echo "$as_me: failed program was:" >&5 |
| 6075 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6077 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6079 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6080 | 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] | 6081 | conftest$ac_exeext conftest.$ac_ext |
| 6082 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6083 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6084 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6086 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6087 | |
| 6088 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6089 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6090 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6091 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6093 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6094 | # that cause trouble. Some versions do not even contain alloca or |
| 6095 | # contain a buggy version. If you still want to use their alloca, |
| 6096 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6098 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6099 | |
| 6100 | cat >>confdefs.h <<\_ACEOF |
| 6101 | #define C_ALLOCA 1 |
| 6102 | _ACEOF |
| 6103 | |
| 6104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6106 | 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] | 6107 | if test "${ac_cv_os_cray+set}" = set; then |
| 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6109 | else |
| 6110 | cat >conftest.$ac_ext <<_ACEOF |
| 6111 | /* confdefs.h. */ |
| 6112 | _ACEOF |
| 6113 | cat confdefs.h >>conftest.$ac_ext |
| 6114 | cat >>conftest.$ac_ext <<_ACEOF |
| 6115 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6116 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6117 | webecray |
| 6118 | #else |
| 6119 | wenotbecray |
| 6120 | #endif |
| 6121 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6122 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6124 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6125 | ac_cv_os_cray=yes |
| 6126 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6127 | ac_cv_os_cray=no |
| 6128 | fi |
| 6129 | rm -f conftest* |
| 6130 | |
| 6131 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6132 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6133 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6134 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6135 | for ac_func in _getb67 GETB67 getb67; do |
| 6136 | 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] | 6137 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6138 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6139 | 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] | 6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6141 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6142 | cat >conftest.$ac_ext <<_ACEOF |
| 6143 | /* confdefs.h. */ |
| 6144 | _ACEOF |
| 6145 | cat confdefs.h >>conftest.$ac_ext |
| 6146 | cat >>conftest.$ac_ext <<_ACEOF |
| 6147 | /* end confdefs.h. */ |
| 6148 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6150 | #define $ac_func innocuous_$ac_func |
| 6151 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6152 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6153 | which can conflict with char $ac_func (); below. |
| 6154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6155 | <limits.h> exists even on freestanding compilers. */ |
| 6156 | |
| 6157 | #ifdef __STDC__ |
| 6158 | # include <limits.h> |
| 6159 | #else |
| 6160 | # include <assert.h> |
| 6161 | #endif |
| 6162 | |
| 6163 | #undef $ac_func |
| 6164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6165 | /* Override any GCC internal prototype to avoid an error. |
| 6166 | Use char because int might match the return type of a GCC |
| 6167 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | #ifdef __cplusplus |
| 6169 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6171 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6172 | /* The GNU C library defines this for functions which it implements |
| 6173 | to always fail with ENOSYS. Some functions are actually named |
| 6174 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6175 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6176 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6177 | #endif |
| 6178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6179 | int |
| 6180 | main () |
| 6181 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6182 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6183 | ; |
| 6184 | return 0; |
| 6185 | } |
| 6186 | _ACEOF |
| 6187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6188 | if { (ac_try="$ac_link" |
| 6189 | case "(($ac_try" in |
| 6190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6191 | *) ac_try_echo=$ac_try;; |
| 6192 | esac |
| 6193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6194 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6195 | ac_status=$? |
| 6196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6197 | rm -f conftest.er1 |
| 6198 | cat conftest.err >&5 |
| 6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6200 | (exit $ac_status); } && { |
| 6201 | test -z "$ac_c_werror_flag" || |
| 6202 | test ! -s conftest.err |
| 6203 | } && test -s conftest$ac_exeext && |
| 6204 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6205 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6206 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6207 | echo "$as_me: failed program was:" >&5 |
| 6208 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6209 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6210 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6212 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6213 | 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] | 6214 | conftest$ac_exeext conftest.$ac_ext |
| 6215 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6216 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6217 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6218 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6219 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6220 | |
| 6221 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6222 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6223 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6225 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6226 | fi |
| 6227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6228 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6229 | fi |
| 6230 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6231 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6232 | 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] | 6233 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6235 | else |
| 6236 | if test "$cross_compiling" = yes; then |
| 6237 | ac_cv_c_stack_direction=0 |
| 6238 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6239 | cat >conftest.$ac_ext <<_ACEOF |
| 6240 | /* confdefs.h. */ |
| 6241 | _ACEOF |
| 6242 | cat confdefs.h >>conftest.$ac_ext |
| 6243 | cat >>conftest.$ac_ext <<_ACEOF |
| 6244 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6245 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6246 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6247 | find_stack_direction () |
| 6248 | { |
| 6249 | static char *addr = 0; |
| 6250 | auto char dummy; |
| 6251 | if (addr == 0) |
| 6252 | { |
| 6253 | addr = &dummy; |
| 6254 | return find_stack_direction (); |
| 6255 | } |
| 6256 | else |
| 6257 | return (&dummy > addr) ? 1 : -1; |
| 6258 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6259 | |
| 6260 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6261 | main () |
| 6262 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6263 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6264 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6265 | _ACEOF |
| 6266 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6267 | if { (ac_try="$ac_link" |
| 6268 | case "(($ac_try" in |
| 6269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6270 | *) ac_try_echo=$ac_try;; |
| 6271 | esac |
| 6272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6273 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6274 | ac_status=$? |
| 6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6277 | { (case "(($ac_try" in |
| 6278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6279 | *) ac_try_echo=$ac_try;; |
| 6280 | esac |
| 6281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6282 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | ac_status=$? |
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6286 | ac_cv_c_stack_direction=1 |
| 6287 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6289 | echo "$as_me: failed program was:" >&5 |
| 6290 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6291 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | ( exit $ac_status ) |
| 6293 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6294 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6295 | 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] | 6296 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6297 | |
| 6298 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6299 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6300 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6301 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6303 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6304 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6305 | _ACEOF |
| 6306 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6307 | |
| 6308 | fi |
| 6309 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6310 | |
| 6311 | |
| 6312 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6313 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6314 | 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] | 6315 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6316 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6317 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6318 | 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] | 6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6320 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6321 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6323 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6324 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6325 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6326 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6327 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6328 | cat >conftest.$ac_ext <<_ACEOF |
| 6329 | /* confdefs.h. */ |
| 6330 | _ACEOF |
| 6331 | cat confdefs.h >>conftest.$ac_ext |
| 6332 | cat >>conftest.$ac_ext <<_ACEOF |
| 6333 | /* end confdefs.h. */ |
| 6334 | $ac_includes_default |
| 6335 | #include <$ac_header> |
| 6336 | _ACEOF |
| 6337 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6338 | if { (ac_try="$ac_compile" |
| 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_compile") 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_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6354 | ac_header_compiler=yes |
| 6355 | else |
| 6356 | echo "$as_me: failed program was:" >&5 |
| 6357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6358 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6359 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6360 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6361 | |
| 6362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6363 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6364 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6365 | |
| 6366 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6367 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6368 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6369 | cat >conftest.$ac_ext <<_ACEOF |
| 6370 | /* confdefs.h. */ |
| 6371 | _ACEOF |
| 6372 | cat confdefs.h >>conftest.$ac_ext |
| 6373 | cat >>conftest.$ac_ext <<_ACEOF |
| 6374 | /* end confdefs.h. */ |
| 6375 | #include <$ac_header> |
| 6376 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6377 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6378 | case "(($ac_try" in |
| 6379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6380 | *) ac_try_echo=$ac_try;; |
| 6381 | esac |
| 6382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6383 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | ac_status=$? |
| 6385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6386 | rm -f conftest.er1 |
| 6387 | cat conftest.err >&5 |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6389 | (exit $ac_status); } >/dev/null && { |
| 6390 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6391 | test ! -s conftest.err |
| 6392 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6393 | ac_header_preproc=yes |
| 6394 | else |
| 6395 | echo "$as_me: failed program was:" >&5 |
| 6396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6397 | |
| 6398 | ac_header_preproc=no |
| 6399 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6400 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6401 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6402 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6403 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6404 | |
| 6405 | # So? What about this header? |
| 6406 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6407 | yes:no: ) |
| 6408 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6409 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6411 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6412 | ac_header_preproc=yes |
| 6413 | ;; |
| 6414 | no:yes:* ) |
| 6415 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6416 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6417 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6418 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6419 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6420 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6421 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6422 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6424 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6425 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6426 | 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] | 6427 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6428 | ;; |
| 6429 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6432 | 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] | 6433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6434 | else |
| 6435 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6437 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6439 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6440 | |
| 6441 | fi |
| 6442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6443 | cat >>confdefs.h <<_ACEOF |
| 6444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6445 | _ACEOF |
| 6446 | |
| 6447 | fi |
| 6448 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6449 | done |
| 6450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6452 | for ac_func in getpagesize |
| 6453 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6454 | 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] | 6455 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6456 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6457 | 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] | 6458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6459 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6460 | cat >conftest.$ac_ext <<_ACEOF |
| 6461 | /* confdefs.h. */ |
| 6462 | _ACEOF |
| 6463 | cat confdefs.h >>conftest.$ac_ext |
| 6464 | cat >>conftest.$ac_ext <<_ACEOF |
| 6465 | /* end confdefs.h. */ |
| 6466 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6468 | #define $ac_func innocuous_$ac_func |
| 6469 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6470 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6471 | which can conflict with char $ac_func (); below. |
| 6472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6473 | <limits.h> exists even on freestanding compilers. */ |
| 6474 | |
| 6475 | #ifdef __STDC__ |
| 6476 | # include <limits.h> |
| 6477 | #else |
| 6478 | # include <assert.h> |
| 6479 | #endif |
| 6480 | |
| 6481 | #undef $ac_func |
| 6482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6483 | /* Override any GCC internal prototype to avoid an error. |
| 6484 | Use char because int might match the return type of a GCC |
| 6485 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | #ifdef __cplusplus |
| 6487 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6488 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6489 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6490 | /* The GNU C library defines this for functions which it implements |
| 6491 | to always fail with ENOSYS. Some functions are actually named |
| 6492 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6493 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6494 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6495 | #endif |
| 6496 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | int |
| 6498 | main () |
| 6499 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6500 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | ; |
| 6502 | return 0; |
| 6503 | } |
| 6504 | _ACEOF |
| 6505 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6506 | if { (ac_try="$ac_link" |
| 6507 | case "(($ac_try" in |
| 6508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6509 | *) ac_try_echo=$ac_try;; |
| 6510 | esac |
| 6511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6512 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6513 | ac_status=$? |
| 6514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6515 | rm -f conftest.er1 |
| 6516 | cat conftest.err >&5 |
| 6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6518 | (exit $ac_status); } && { |
| 6519 | test -z "$ac_c_werror_flag" || |
| 6520 | test ! -s conftest.err |
| 6521 | } && test -s conftest$ac_exeext && |
| 6522 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6523 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6524 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6525 | echo "$as_me: failed program was:" >&5 |
| 6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6527 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6528 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6529 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6530 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6531 | 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] | 6532 | conftest$ac_exeext conftest.$ac_ext |
| 6533 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6534 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6536 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6537 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6538 | cat >>confdefs.h <<_ACEOF |
| 6539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6540 | _ACEOF |
| 6541 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6542 | fi |
| 6543 | done |
| 6544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6545 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6546 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6547 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6549 | else |
| 6550 | if test "$cross_compiling" = yes; then |
| 6551 | ac_cv_func_mmap_fixed_mapped=no |
| 6552 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6553 | cat >conftest.$ac_ext <<_ACEOF |
| 6554 | /* confdefs.h. */ |
| 6555 | _ACEOF |
| 6556 | cat confdefs.h >>conftest.$ac_ext |
| 6557 | cat >>conftest.$ac_ext <<_ACEOF |
| 6558 | /* end confdefs.h. */ |
| 6559 | $ac_includes_default |
| 6560 | /* malloc might have been renamed as rpl_malloc. */ |
| 6561 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6562 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6563 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6564 | Here is a matrix of mmap possibilities: |
| 6565 | mmap private not fixed |
| 6566 | mmap private fixed at somewhere currently unmapped |
| 6567 | mmap private fixed at somewhere already mapped |
| 6568 | mmap shared not fixed |
| 6569 | mmap shared fixed at somewhere currently unmapped |
| 6570 | mmap shared fixed at somewhere already mapped |
| 6571 | For private mappings, we should verify that changes cannot be read() |
| 6572 | back from the file, nor mmap's back from the file at a different |
| 6573 | address. (There have been systems where private was not correctly |
| 6574 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6575 | 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] | 6576 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6577 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6578 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6579 | |
| 6580 | Grep wants private fixed already mapped. |
| 6581 | The main things grep needs to know about mmap are: |
| 6582 | * does it exist and is it safe to write into the mmap'd area |
| 6583 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6584 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6585 | #include <fcntl.h> |
| 6586 | #include <sys/mman.h> |
| 6587 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6588 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | char *malloc (); |
| 6590 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6593 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6594 | /* 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] | 6595 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6596 | # define HAVE_SYS_PARAM_H 1 |
| 6597 | # endif |
| 6598 | |
| 6599 | # ifdef _SC_PAGESIZE |
| 6600 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6601 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6602 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6603 | # include <sys/param.h> |
| 6604 | # ifdef EXEC_PAGESIZE |
| 6605 | # define getpagesize() EXEC_PAGESIZE |
| 6606 | # else /* no EXEC_PAGESIZE */ |
| 6607 | # ifdef NBPG |
| 6608 | # define getpagesize() NBPG * CLSIZE |
| 6609 | # ifndef CLSIZE |
| 6610 | # define CLSIZE 1 |
| 6611 | # endif /* no CLSIZE */ |
| 6612 | # else /* no NBPG */ |
| 6613 | # ifdef NBPC |
| 6614 | # define getpagesize() NBPC |
| 6615 | # else /* no NBPC */ |
| 6616 | # ifdef PAGESIZE |
| 6617 | # define getpagesize() PAGESIZE |
| 6618 | # endif /* PAGESIZE */ |
| 6619 | # endif /* no NBPC */ |
| 6620 | # endif /* no NBPG */ |
| 6621 | # endif /* no EXEC_PAGESIZE */ |
| 6622 | # else /* no HAVE_SYS_PARAM_H */ |
| 6623 | # define getpagesize() 8192 /* punt totally */ |
| 6624 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6625 | # endif /* no _SC_PAGESIZE */ |
| 6626 | |
| 6627 | #endif /* no HAVE_GETPAGESIZE */ |
| 6628 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6629 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6630 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6631 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6632 | char *data, *data2, *data3; |
| 6633 | int i, pagesize; |
| 6634 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6636 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6638 | /* First, make a file with some known garbage in it. */ |
| 6639 | data = (char *) malloc (pagesize); |
| 6640 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6641 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | for (i = 0; i < pagesize; ++i) |
| 6643 | *(data + i) = rand (); |
| 6644 | umask (0); |
| 6645 | fd = creat ("conftest.mmap", 0600); |
| 6646 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6647 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6648 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6649 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6650 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6651 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6652 | /* Next, try to mmap the file at a fixed address which already has |
| 6653 | something else allocated at it. If we can, also make sure that |
| 6654 | we see the same garbage. */ |
| 6655 | fd = open ("conftest.mmap", O_RDWR); |
| 6656 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6657 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6658 | data2 = (char *) malloc (2 * pagesize); |
| 6659 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6660 | return 1; |
| 6661 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6662 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6663 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6664 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6665 | for (i = 0; i < pagesize; ++i) |
| 6666 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6667 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6668 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6669 | /* Finally, make sure that changes to the mapped area do not |
| 6670 | percolate back to the file as seen by read(). (This is a bug on |
| 6671 | some variants of i386 svr4.0.) */ |
| 6672 | for (i = 0; i < pagesize; ++i) |
| 6673 | *(data2 + i) = *(data2 + i) + 1; |
| 6674 | data3 = (char *) malloc (pagesize); |
| 6675 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6676 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6678 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6679 | for (i = 0; i < pagesize; ++i) |
| 6680 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6681 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6682 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6683 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6684 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | _ACEOF |
| 6686 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6687 | if { (ac_try="$ac_link" |
| 6688 | case "(($ac_try" in |
| 6689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6690 | *) ac_try_echo=$ac_try;; |
| 6691 | esac |
| 6692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6693 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | ac_status=$? |
| 6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6696 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6697 | { (case "(($ac_try" in |
| 6698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6699 | *) ac_try_echo=$ac_try;; |
| 6700 | esac |
| 6701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6702 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6703 | ac_status=$? |
| 6704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6705 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6706 | ac_cv_func_mmap_fixed_mapped=yes |
| 6707 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6708 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6709 | echo "$as_me: failed program was:" >&5 |
| 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6711 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6712 | ( exit $ac_status ) |
| 6713 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6714 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6715 | 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] | 6716 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6717 | |
| 6718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6721 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6722 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6723 | |
| 6724 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6725 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6727 | |
| 6728 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6730 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6731 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6732 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6733 | 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] | 6734 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6736 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | /* confdefs.h. */ |
| 6739 | _ACEOF |
| 6740 | cat confdefs.h >>conftest.$ac_ext |
| 6741 | cat >>conftest.$ac_ext <<_ACEOF |
| 6742 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6743 | |
| 6744 | #include <features.h> |
| 6745 | #ifdef __GNU_LIBRARY__ |
| 6746 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6747 | Lucky GNU user |
| 6748 | #endif |
| 6749 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | |
| 6751 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6753 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6754 | ac_cv_gnu_library_2_1=yes |
| 6755 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6756 | ac_cv_gnu_library_2_1=no |
| 6757 | fi |
| 6758 | rm -f conftest* |
| 6759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6760 | |
| 6761 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6762 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6763 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6764 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6765 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6766 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6767 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6768 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6769 | |
| 6770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6772 | 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] | 6773 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6775 | else |
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 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6779 | # Guess based on the CPU. |
| 6780 | case "$host_cpu" in |
| 6781 | alpha* | i3456786 | m68k | s390*) |
| 6782 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6783 | *) |
| 6784 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6785 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6786 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6787 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6788 | cat >conftest.$ac_ext <<_ACEOF |
| 6789 | /* confdefs.h. */ |
| 6790 | _ACEOF |
| 6791 | cat confdefs.h >>conftest.$ac_ext |
| 6792 | cat >>conftest.$ac_ext <<_ACEOF |
| 6793 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6794 | |
| 6795 | #include <stdlib.h> |
| 6796 | #include <signal.h> |
| 6797 | |
| 6798 | static void |
| 6799 | #ifdef __cplusplus |
| 6800 | sigfpe_handler (int sig) |
| 6801 | #else |
| 6802 | sigfpe_handler (sig) int sig; |
| 6803 | #endif |
| 6804 | { |
| 6805 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6806 | exit (sig != SIGFPE); |
| 6807 | } |
| 6808 | |
| 6809 | int x = 1; |
| 6810 | int y = 0; |
| 6811 | int z; |
| 6812 | int nan; |
| 6813 | |
| 6814 | int main () |
| 6815 | { |
| 6816 | signal (SIGFPE, sigfpe_handler); |
| 6817 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6818 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6819 | signal (SIGTRAP, sigfpe_handler); |
| 6820 | #endif |
| 6821 | /* Linux/SPARC yields signal SIGILL. */ |
| 6822 | #if defined (__sparc__) && defined (__linux__) |
| 6823 | signal (SIGILL, sigfpe_handler); |
| 6824 | #endif |
| 6825 | |
| 6826 | z = x / y; |
| 6827 | nan = y / y; |
| 6828 | exit (1); |
| 6829 | } |
| 6830 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6831 | _ACEOF |
| 6832 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6833 | if { (ac_try="$ac_link" |
| 6834 | case "(($ac_try" in |
| 6835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6836 | *) ac_try_echo=$ac_try;; |
| 6837 | esac |
| 6838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6839 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6840 | ac_status=$? |
| 6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6843 | { (case "(($ac_try" in |
| 6844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6845 | *) ac_try_echo=$ac_try;; |
| 6846 | esac |
| 6847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6848 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6852 | gt_cv_int_divbyzero_sigfpe=yes |
| 6853 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6854 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6855 | echo "$as_me: failed program was:" >&5 |
| 6856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6857 | |
| 6858 | ( exit $ac_status ) |
| 6859 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6860 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6861 | 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] | 6862 | fi |
| 6863 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6864 | |
| 6865 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6866 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6867 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6868 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6869 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6870 | *yes) value=1;; |
| 6871 | *) value=0;; |
| 6872 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6873 | |
| 6874 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6875 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6876 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6877 | |
| 6878 | |
| 6879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6880 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6881 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6882 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6884 | else |
| 6885 | cat >conftest.$ac_ext <<_ACEOF |
| 6886 | /* confdefs.h. */ |
| 6887 | _ACEOF |
| 6888 | cat confdefs.h >>conftest.$ac_ext |
| 6889 | cat >>conftest.$ac_ext <<_ACEOF |
| 6890 | /* end confdefs.h. */ |
| 6891 | unsigned long long ull = 1ULL; int i = 63; |
| 6892 | int |
| 6893 | main () |
| 6894 | { |
| 6895 | unsigned long long ullmax = (unsigned long long) -1; |
| 6896 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6897 | ; |
| 6898 | return 0; |
| 6899 | } |
| 6900 | _ACEOF |
| 6901 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6902 | if { (ac_try="$ac_link" |
| 6903 | case "(($ac_try" in |
| 6904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6905 | *) ac_try_echo=$ac_try;; |
| 6906 | esac |
| 6907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6908 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6909 | ac_status=$? |
| 6910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6911 | rm -f conftest.er1 |
| 6912 | cat conftest.err >&5 |
| 6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6914 | (exit $ac_status); } && { |
| 6915 | test -z "$ac_c_werror_flag" || |
| 6916 | test ! -s conftest.err |
| 6917 | } && test -s conftest$ac_exeext && |
| 6918 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6919 | ac_cv_type_unsigned_long_long=yes |
| 6920 | else |
| 6921 | echo "$as_me: failed program was:" >&5 |
| 6922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6924 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6925 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6926 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6927 | 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] | 6928 | conftest$ac_exeext conftest.$ac_ext |
| 6929 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6930 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6931 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6932 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6933 | |
| 6934 | cat >>confdefs.h <<\_ACEOF |
| 6935 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6936 | _ACEOF |
| 6937 | |
| 6938 | fi |
| 6939 | |
| 6940 | |
| 6941 | |
| 6942 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6943 | 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] | 6944 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6945 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6946 | && ac_type='unsigned long long' \ |
| 6947 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | |
| 6949 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6950 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6951 | _ACEOF |
| 6952 | |
| 6953 | else |
| 6954 | |
| 6955 | cat >>confdefs.h <<\_ACEOF |
| 6956 | #define HAVE_UINTMAX_T 1 |
| 6957 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6958 | |
| 6959 | fi |
| 6960 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6963 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6966 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | |
| 6968 | cat >conftest.$ac_ext <<_ACEOF |
| 6969 | /* confdefs.h. */ |
| 6970 | _ACEOF |
| 6971 | cat confdefs.h >>conftest.$ac_ext |
| 6972 | cat >>conftest.$ac_ext <<_ACEOF |
| 6973 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6974 | #include <sys/types.h> |
| 6975 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | int |
| 6977 | main () |
| 6978 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6979 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6980 | ; |
| 6981 | return 0; |
| 6982 | } |
| 6983 | _ACEOF |
| 6984 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6985 | if { (ac_try="$ac_compile" |
| 6986 | case "(($ac_try" in |
| 6987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6988 | *) ac_try_echo=$ac_try;; |
| 6989 | esac |
| 6990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6991 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6992 | ac_status=$? |
| 6993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6994 | rm -f conftest.er1 |
| 6995 | cat conftest.err >&5 |
| 6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6997 | (exit $ac_status); } && { |
| 6998 | test -z "$ac_c_werror_flag" || |
| 6999 | test ! -s conftest.err |
| 7000 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7001 | gt_cv_header_inttypes_h=yes |
| 7002 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | echo "$as_me: failed program was:" >&5 |
| 7004 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7006 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7007 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7008 | |
| 7009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7010 | |
| 7011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7012 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7013 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7014 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7015 | |
| 7016 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7017 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7018 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7019 | |
| 7020 | fi |
| 7021 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7024 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7025 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7026 | 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] | 7027 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7029 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7030 | |
| 7031 | cat >conftest.$ac_ext <<_ACEOF |
| 7032 | /* confdefs.h. */ |
| 7033 | _ACEOF |
| 7034 | cat confdefs.h >>conftest.$ac_ext |
| 7035 | cat >>conftest.$ac_ext <<_ACEOF |
| 7036 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7037 | #include <inttypes.h> |
| 7038 | #ifdef PRId32 |
| 7039 | char *p = PRId32; |
| 7040 | #endif |
| 7041 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7042 | int |
| 7043 | main () |
| 7044 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7046 | ; |
| 7047 | return 0; |
| 7048 | } |
| 7049 | _ACEOF |
| 7050 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7051 | if { (ac_try="$ac_compile" |
| 7052 | case "(($ac_try" in |
| 7053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7054 | *) ac_try_echo=$ac_try;; |
| 7055 | esac |
| 7056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7057 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7058 | ac_status=$? |
| 7059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7060 | rm -f conftest.er1 |
| 7061 | cat conftest.err >&5 |
| 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7063 | (exit $ac_status); } && { |
| 7064 | test -z "$ac_c_werror_flag" || |
| 7065 | test ! -s conftest.err |
| 7066 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7067 | gt_cv_inttypes_pri_broken=no |
| 7068 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7069 | echo "$as_me: failed program was:" >&5 |
| 7070 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7072 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7073 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7074 | |
| 7075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7076 | |
| 7077 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7078 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7079 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7080 | fi |
| 7081 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7082 | |
| 7083 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7084 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7085 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7086 | |
| 7087 | fi |
| 7088 | |
| 7089 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7090 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7091 | for ac_header in stdint.h |
| 7092 | do |
| 7093 | 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] | 7094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7095 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7097 | 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] | 7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7100 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7102 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7103 | else |
| 7104 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7105 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7106 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | cat >conftest.$ac_ext <<_ACEOF |
| 7108 | /* confdefs.h. */ |
| 7109 | _ACEOF |
| 7110 | cat confdefs.h >>conftest.$ac_ext |
| 7111 | cat >>conftest.$ac_ext <<_ACEOF |
| 7112 | /* end confdefs.h. */ |
| 7113 | $ac_includes_default |
| 7114 | #include <$ac_header> |
| 7115 | _ACEOF |
| 7116 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7117 | if { (ac_try="$ac_compile" |
| 7118 | case "(($ac_try" in |
| 7119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7120 | *) ac_try_echo=$ac_try;; |
| 7121 | esac |
| 7122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7123 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7124 | ac_status=$? |
| 7125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7126 | rm -f conftest.er1 |
| 7127 | cat conftest.err >&5 |
| 7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7129 | (exit $ac_status); } && { |
| 7130 | test -z "$ac_c_werror_flag" || |
| 7131 | test ! -s conftest.err |
| 7132 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7133 | ac_header_compiler=yes |
| 7134 | else |
| 7135 | echo "$as_me: failed program was:" >&5 |
| 7136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7138 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7139 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7140 | |
| 7141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7142 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7143 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7144 | |
| 7145 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7146 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | cat >conftest.$ac_ext <<_ACEOF |
| 7149 | /* confdefs.h. */ |
| 7150 | _ACEOF |
| 7151 | cat confdefs.h >>conftest.$ac_ext |
| 7152 | cat >>conftest.$ac_ext <<_ACEOF |
| 7153 | /* end confdefs.h. */ |
| 7154 | #include <$ac_header> |
| 7155 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7156 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7157 | case "(($ac_try" in |
| 7158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7159 | *) ac_try_echo=$ac_try;; |
| 7160 | esac |
| 7161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7162 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | ac_status=$? |
| 7164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7165 | rm -f conftest.er1 |
| 7166 | cat conftest.err >&5 |
| 7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7168 | (exit $ac_status); } >/dev/null && { |
| 7169 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7170 | test ! -s conftest.err |
| 7171 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7172 | ac_header_preproc=yes |
| 7173 | else |
| 7174 | echo "$as_me: failed program was:" >&5 |
| 7175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7176 | |
| 7177 | ac_header_preproc=no |
| 7178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7181 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7182 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7183 | |
| 7184 | # So? What about this header? |
| 7185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7186 | yes:no: ) |
| 7187 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7188 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7190 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7191 | ac_header_preproc=yes |
| 7192 | ;; |
| 7193 | no:yes:* ) |
| 7194 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7195 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7196 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7197 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7198 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7199 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7200 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7201 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7203 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7204 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7205 | 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] | 7206 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7207 | ;; |
| 7208 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7209 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7211 | 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] | 7212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7213 | else |
| 7214 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7215 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7216 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7217 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7218 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7219 | |
| 7220 | fi |
| 7221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7222 | cat >>confdefs.h <<_ACEOF |
| 7223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7224 | _ACEOF |
| 7225 | |
| 7226 | fi |
| 7227 | |
| 7228 | done |
| 7229 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7230 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7231 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | result= |
| 7233 | cat >conftest.$ac_ext <<_ACEOF |
| 7234 | /* confdefs.h. */ |
| 7235 | _ACEOF |
| 7236 | cat confdefs.h >>conftest.$ac_ext |
| 7237 | cat >>conftest.$ac_ext <<_ACEOF |
| 7238 | /* end confdefs.h. */ |
| 7239 | |
| 7240 | #include <limits.h> |
| 7241 | #if HAVE_STDINT_H |
| 7242 | #include <stdint.h> |
| 7243 | #endif |
| 7244 | #ifdef SIZE_MAX |
| 7245 | Found it |
| 7246 | #endif |
| 7247 | |
| 7248 | _ACEOF |
| 7249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7250 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7251 | result=yes |
| 7252 | fi |
| 7253 | rm -f conftest* |
| 7254 | |
| 7255 | if test -z "$result"; then |
| 7256 | if test "$cross_compiling" = yes; then |
| 7257 | # Depending upon the size, compute the lo and hi bounds. |
| 7258 | cat >conftest.$ac_ext <<_ACEOF |
| 7259 | /* confdefs.h. */ |
| 7260 | _ACEOF |
| 7261 | cat confdefs.h >>conftest.$ac_ext |
| 7262 | cat >>conftest.$ac_ext <<_ACEOF |
| 7263 | /* end confdefs.h. */ |
| 7264 | #include <stddef.h> |
| 7265 | int |
| 7266 | main () |
| 7267 | { |
| 7268 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7269 | test_array [0] = 0 |
| 7270 | |
| 7271 | ; |
| 7272 | return 0; |
| 7273 | } |
| 7274 | _ACEOF |
| 7275 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7276 | if { (ac_try="$ac_compile" |
| 7277 | case "(($ac_try" in |
| 7278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7279 | *) ac_try_echo=$ac_try;; |
| 7280 | esac |
| 7281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7282 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7283 | ac_status=$? |
| 7284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7285 | rm -f conftest.er1 |
| 7286 | cat conftest.err >&5 |
| 7287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7288 | (exit $ac_status); } && { |
| 7289 | test -z "$ac_c_werror_flag" || |
| 7290 | test ! -s conftest.err |
| 7291 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7292 | ac_lo=0 ac_mid=0 |
| 7293 | while :; do |
| 7294 | cat >conftest.$ac_ext <<_ACEOF |
| 7295 | /* confdefs.h. */ |
| 7296 | _ACEOF |
| 7297 | cat confdefs.h >>conftest.$ac_ext |
| 7298 | cat >>conftest.$ac_ext <<_ACEOF |
| 7299 | /* end confdefs.h. */ |
| 7300 | #include <stddef.h> |
| 7301 | int |
| 7302 | main () |
| 7303 | { |
| 7304 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7305 | test_array [0] = 0 |
| 7306 | |
| 7307 | ; |
| 7308 | return 0; |
| 7309 | } |
| 7310 | _ACEOF |
| 7311 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7312 | if { (ac_try="$ac_compile" |
| 7313 | case "(($ac_try" in |
| 7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7315 | *) ac_try_echo=$ac_try;; |
| 7316 | esac |
| 7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7318 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7319 | ac_status=$? |
| 7320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7321 | rm -f conftest.er1 |
| 7322 | cat conftest.err >&5 |
| 7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7324 | (exit $ac_status); } && { |
| 7325 | test -z "$ac_c_werror_flag" || |
| 7326 | test ! -s conftest.err |
| 7327 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | ac_hi=$ac_mid; break |
| 7329 | else |
| 7330 | echo "$as_me: failed program was:" >&5 |
| 7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7332 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7333 | ac_lo=`expr $ac_mid + 1` |
| 7334 | if test $ac_lo -le $ac_mid; then |
| 7335 | ac_lo= ac_hi= |
| 7336 | break |
| 7337 | fi |
| 7338 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7340 | |
| 7341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7342 | done |
| 7343 | else |
| 7344 | echo "$as_me: failed program was:" >&5 |
| 7345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7346 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7347 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7348 | /* confdefs.h. */ |
| 7349 | _ACEOF |
| 7350 | cat confdefs.h >>conftest.$ac_ext |
| 7351 | cat >>conftest.$ac_ext <<_ACEOF |
| 7352 | /* end confdefs.h. */ |
| 7353 | #include <stddef.h> |
| 7354 | int |
| 7355 | main () |
| 7356 | { |
| 7357 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7358 | test_array [0] = 0 |
| 7359 | |
| 7360 | ; |
| 7361 | return 0; |
| 7362 | } |
| 7363 | _ACEOF |
| 7364 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7365 | if { (ac_try="$ac_compile" |
| 7366 | case "(($ac_try" in |
| 7367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7368 | *) ac_try_echo=$ac_try;; |
| 7369 | esac |
| 7370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7371 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7372 | ac_status=$? |
| 7373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7374 | rm -f conftest.er1 |
| 7375 | cat conftest.err >&5 |
| 7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7377 | (exit $ac_status); } && { |
| 7378 | test -z "$ac_c_werror_flag" || |
| 7379 | test ! -s conftest.err |
| 7380 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | ac_hi=-1 ac_mid=-1 |
| 7382 | while :; do |
| 7383 | cat >conftest.$ac_ext <<_ACEOF |
| 7384 | /* confdefs.h. */ |
| 7385 | _ACEOF |
| 7386 | cat confdefs.h >>conftest.$ac_ext |
| 7387 | cat >>conftest.$ac_ext <<_ACEOF |
| 7388 | /* end confdefs.h. */ |
| 7389 | #include <stddef.h> |
| 7390 | int |
| 7391 | main () |
| 7392 | { |
| 7393 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7394 | test_array [0] = 0 |
| 7395 | |
| 7396 | ; |
| 7397 | return 0; |
| 7398 | } |
| 7399 | _ACEOF |
| 7400 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7401 | if { (ac_try="$ac_compile" |
| 7402 | case "(($ac_try" in |
| 7403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7404 | *) ac_try_echo=$ac_try;; |
| 7405 | esac |
| 7406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7407 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7408 | ac_status=$? |
| 7409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7410 | rm -f conftest.er1 |
| 7411 | cat conftest.err >&5 |
| 7412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7413 | (exit $ac_status); } && { |
| 7414 | test -z "$ac_c_werror_flag" || |
| 7415 | test ! -s conftest.err |
| 7416 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7417 | ac_lo=$ac_mid; break |
| 7418 | else |
| 7419 | echo "$as_me: failed program was:" >&5 |
| 7420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7422 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7423 | if test $ac_mid -le $ac_hi; then |
| 7424 | ac_lo= ac_hi= |
| 7425 | break |
| 7426 | fi |
| 7427 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7428 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7429 | |
| 7430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7431 | done |
| 7432 | else |
| 7433 | echo "$as_me: failed program was:" >&5 |
| 7434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7436 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7437 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7438 | |
| 7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7440 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7441 | |
| 7442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7443 | # Binary search between lo and hi bounds. |
| 7444 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7445 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7446 | cat >conftest.$ac_ext <<_ACEOF |
| 7447 | /* confdefs.h. */ |
| 7448 | _ACEOF |
| 7449 | cat confdefs.h >>conftest.$ac_ext |
| 7450 | cat >>conftest.$ac_ext <<_ACEOF |
| 7451 | /* end confdefs.h. */ |
| 7452 | #include <stddef.h> |
| 7453 | int |
| 7454 | main () |
| 7455 | { |
| 7456 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7457 | test_array [0] = 0 |
| 7458 | |
| 7459 | ; |
| 7460 | return 0; |
| 7461 | } |
| 7462 | _ACEOF |
| 7463 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7464 | if { (ac_try="$ac_compile" |
| 7465 | case "(($ac_try" in |
| 7466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7467 | *) ac_try_echo=$ac_try;; |
| 7468 | esac |
| 7469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7470 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7471 | ac_status=$? |
| 7472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7473 | rm -f conftest.er1 |
| 7474 | cat conftest.err >&5 |
| 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7476 | (exit $ac_status); } && { |
| 7477 | test -z "$ac_c_werror_flag" || |
| 7478 | test ! -s conftest.err |
| 7479 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7480 | ac_hi=$ac_mid |
| 7481 | else |
| 7482 | echo "$as_me: failed program was:" >&5 |
| 7483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7485 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7486 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7487 | |
| 7488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7489 | done |
| 7490 | case $ac_lo in |
| 7491 | ?*) res_hi=$ac_lo;; |
| 7492 | '') result=? ;; |
| 7493 | esac |
| 7494 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7495 | cat >conftest.$ac_ext <<_ACEOF |
| 7496 | /* confdefs.h. */ |
| 7497 | _ACEOF |
| 7498 | cat confdefs.h >>conftest.$ac_ext |
| 7499 | cat >>conftest.$ac_ext <<_ACEOF |
| 7500 | /* end confdefs.h. */ |
| 7501 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7502 | static long int longval () { return ~(size_t)0 / 10; } |
| 7503 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7504 | #include <stdio.h> |
| 7505 | #include <stdlib.h> |
| 7506 | int |
| 7507 | main () |
| 7508 | { |
| 7509 | |
| 7510 | FILE *f = fopen ("conftest.val", "w"); |
| 7511 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7512 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7513 | if ((~(size_t)0 / 10) < 0) |
| 7514 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7515 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7516 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7517 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7518 | fprintf (f, "%ld\n", i); |
| 7519 | } |
| 7520 | else |
| 7521 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7522 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7523 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7524 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7525 | fprintf (f, "%lu\n", i); |
| 7526 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7527 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7528 | |
| 7529 | ; |
| 7530 | return 0; |
| 7531 | } |
| 7532 | _ACEOF |
| 7533 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7534 | if { (ac_try="$ac_link" |
| 7535 | case "(($ac_try" in |
| 7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7537 | *) ac_try_echo=$ac_try;; |
| 7538 | esac |
| 7539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7540 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7541 | ac_status=$? |
| 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 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_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7550 | ac_status=$? |
| 7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7552 | (exit $ac_status); }; }; then |
| 7553 | res_hi=`cat conftest.val` |
| 7554 | else |
| 7555 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7556 | echo "$as_me: failed program was:" >&5 |
| 7557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7558 | |
| 7559 | ( exit $ac_status ) |
| 7560 | result=? |
| 7561 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7562 | 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] | 7563 | fi |
| 7564 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7566 | if test "$cross_compiling" = yes; then |
| 7567 | # Depending upon the size, compute the lo and hi bounds. |
| 7568 | cat >conftest.$ac_ext <<_ACEOF |
| 7569 | /* confdefs.h. */ |
| 7570 | _ACEOF |
| 7571 | cat confdefs.h >>conftest.$ac_ext |
| 7572 | cat >>conftest.$ac_ext <<_ACEOF |
| 7573 | /* end confdefs.h. */ |
| 7574 | #include <stddef.h> |
| 7575 | int |
| 7576 | main () |
| 7577 | { |
| 7578 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7579 | test_array [0] = 0 |
| 7580 | |
| 7581 | ; |
| 7582 | return 0; |
| 7583 | } |
| 7584 | _ACEOF |
| 7585 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7586 | if { (ac_try="$ac_compile" |
| 7587 | case "(($ac_try" in |
| 7588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7589 | *) ac_try_echo=$ac_try;; |
| 7590 | esac |
| 7591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7592 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7593 | ac_status=$? |
| 7594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7595 | rm -f conftest.er1 |
| 7596 | cat conftest.err >&5 |
| 7597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7598 | (exit $ac_status); } && { |
| 7599 | test -z "$ac_c_werror_flag" || |
| 7600 | test ! -s conftest.err |
| 7601 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7602 | ac_lo=0 ac_mid=0 |
| 7603 | while :; do |
| 7604 | cat >conftest.$ac_ext <<_ACEOF |
| 7605 | /* confdefs.h. */ |
| 7606 | _ACEOF |
| 7607 | cat confdefs.h >>conftest.$ac_ext |
| 7608 | cat >>conftest.$ac_ext <<_ACEOF |
| 7609 | /* end confdefs.h. */ |
| 7610 | #include <stddef.h> |
| 7611 | int |
| 7612 | main () |
| 7613 | { |
| 7614 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7615 | test_array [0] = 0 |
| 7616 | |
| 7617 | ; |
| 7618 | return 0; |
| 7619 | } |
| 7620 | _ACEOF |
| 7621 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7622 | if { (ac_try="$ac_compile" |
| 7623 | case "(($ac_try" in |
| 7624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7625 | *) ac_try_echo=$ac_try;; |
| 7626 | esac |
| 7627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7628 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | ac_status=$? |
| 7630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7631 | rm -f conftest.er1 |
| 7632 | cat conftest.err >&5 |
| 7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7634 | (exit $ac_status); } && { |
| 7635 | test -z "$ac_c_werror_flag" || |
| 7636 | test ! -s conftest.err |
| 7637 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | ac_hi=$ac_mid; break |
| 7639 | else |
| 7640 | echo "$as_me: failed program was:" >&5 |
| 7641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7642 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7643 | ac_lo=`expr $ac_mid + 1` |
| 7644 | if test $ac_lo -le $ac_mid; then |
| 7645 | ac_lo= ac_hi= |
| 7646 | break |
| 7647 | fi |
| 7648 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7650 | |
| 7651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7652 | done |
| 7653 | else |
| 7654 | echo "$as_me: failed program was:" >&5 |
| 7655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7657 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | /* confdefs.h. */ |
| 7659 | _ACEOF |
| 7660 | cat confdefs.h >>conftest.$ac_ext |
| 7661 | cat >>conftest.$ac_ext <<_ACEOF |
| 7662 | /* end confdefs.h. */ |
| 7663 | #include <stddef.h> |
| 7664 | int |
| 7665 | main () |
| 7666 | { |
| 7667 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7668 | test_array [0] = 0 |
| 7669 | |
| 7670 | ; |
| 7671 | return 0; |
| 7672 | } |
| 7673 | _ACEOF |
| 7674 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7675 | if { (ac_try="$ac_compile" |
| 7676 | case "(($ac_try" in |
| 7677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7678 | *) ac_try_echo=$ac_try;; |
| 7679 | esac |
| 7680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7681 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7682 | ac_status=$? |
| 7683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7684 | rm -f conftest.er1 |
| 7685 | cat conftest.err >&5 |
| 7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7687 | (exit $ac_status); } && { |
| 7688 | test -z "$ac_c_werror_flag" || |
| 7689 | test ! -s conftest.err |
| 7690 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7691 | ac_hi=-1 ac_mid=-1 |
| 7692 | while :; do |
| 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | /* confdefs.h. */ |
| 7695 | _ACEOF |
| 7696 | cat confdefs.h >>conftest.$ac_ext |
| 7697 | cat >>conftest.$ac_ext <<_ACEOF |
| 7698 | /* end confdefs.h. */ |
| 7699 | #include <stddef.h> |
| 7700 | int |
| 7701 | main () |
| 7702 | { |
| 7703 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7704 | test_array [0] = 0 |
| 7705 | |
| 7706 | ; |
| 7707 | return 0; |
| 7708 | } |
| 7709 | _ACEOF |
| 7710 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7711 | if { (ac_try="$ac_compile" |
| 7712 | case "(($ac_try" in |
| 7713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7714 | *) ac_try_echo=$ac_try;; |
| 7715 | esac |
| 7716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7717 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | ac_status=$? |
| 7719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7720 | rm -f conftest.er1 |
| 7721 | cat conftest.err >&5 |
| 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7723 | (exit $ac_status); } && { |
| 7724 | test -z "$ac_c_werror_flag" || |
| 7725 | test ! -s conftest.err |
| 7726 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7727 | ac_lo=$ac_mid; break |
| 7728 | else |
| 7729 | echo "$as_me: failed program was:" >&5 |
| 7730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7731 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7732 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7733 | if test $ac_mid -le $ac_hi; then |
| 7734 | ac_lo= ac_hi= |
| 7735 | break |
| 7736 | fi |
| 7737 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7738 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7739 | |
| 7740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7741 | done |
| 7742 | else |
| 7743 | echo "$as_me: failed program was:" >&5 |
| 7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7745 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7746 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7747 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7748 | |
| 7749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7750 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7751 | |
| 7752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7753 | # Binary search between lo and hi bounds. |
| 7754 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7755 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7756 | cat >conftest.$ac_ext <<_ACEOF |
| 7757 | /* confdefs.h. */ |
| 7758 | _ACEOF |
| 7759 | cat confdefs.h >>conftest.$ac_ext |
| 7760 | cat >>conftest.$ac_ext <<_ACEOF |
| 7761 | /* end confdefs.h. */ |
| 7762 | #include <stddef.h> |
| 7763 | int |
| 7764 | main () |
| 7765 | { |
| 7766 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7767 | test_array [0] = 0 |
| 7768 | |
| 7769 | ; |
| 7770 | return 0; |
| 7771 | } |
| 7772 | _ACEOF |
| 7773 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7774 | if { (ac_try="$ac_compile" |
| 7775 | case "(($ac_try" in |
| 7776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7777 | *) ac_try_echo=$ac_try;; |
| 7778 | esac |
| 7779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7780 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7781 | ac_status=$? |
| 7782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7783 | rm -f conftest.er1 |
| 7784 | cat conftest.err >&5 |
| 7785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7786 | (exit $ac_status); } && { |
| 7787 | test -z "$ac_c_werror_flag" || |
| 7788 | test ! -s conftest.err |
| 7789 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7790 | ac_hi=$ac_mid |
| 7791 | else |
| 7792 | echo "$as_me: failed program was:" >&5 |
| 7793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7794 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7795 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7797 | |
| 7798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7799 | done |
| 7800 | case $ac_lo in |
| 7801 | ?*) res_lo=$ac_lo;; |
| 7802 | '') result=? ;; |
| 7803 | esac |
| 7804 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7805 | cat >conftest.$ac_ext <<_ACEOF |
| 7806 | /* confdefs.h. */ |
| 7807 | _ACEOF |
| 7808 | cat confdefs.h >>conftest.$ac_ext |
| 7809 | cat >>conftest.$ac_ext <<_ACEOF |
| 7810 | /* end confdefs.h. */ |
| 7811 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7812 | static long int longval () { return ~(size_t)0 % 10; } |
| 7813 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7814 | #include <stdio.h> |
| 7815 | #include <stdlib.h> |
| 7816 | int |
| 7817 | main () |
| 7818 | { |
| 7819 | |
| 7820 | FILE *f = fopen ("conftest.val", "w"); |
| 7821 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7822 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7823 | if ((~(size_t)0 % 10) < 0) |
| 7824 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7825 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7826 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7827 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7828 | fprintf (f, "%ld\n", i); |
| 7829 | } |
| 7830 | else |
| 7831 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7832 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7833 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7834 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7835 | fprintf (f, "%lu\n", i); |
| 7836 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7837 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7838 | |
| 7839 | ; |
| 7840 | return 0; |
| 7841 | } |
| 7842 | _ACEOF |
| 7843 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7844 | if { (ac_try="$ac_link" |
| 7845 | case "(($ac_try" in |
| 7846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7847 | *) ac_try_echo=$ac_try;; |
| 7848 | esac |
| 7849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7850 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7851 | ac_status=$? |
| 7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 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_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7860 | ac_status=$? |
| 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7862 | (exit $ac_status); }; }; then |
| 7863 | res_lo=`cat conftest.val` |
| 7864 | else |
| 7865 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7866 | echo "$as_me: failed program was:" >&5 |
| 7867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7868 | |
| 7869 | ( exit $ac_status ) |
| 7870 | result=? |
| 7871 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7872 | 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] | 7873 | fi |
| 7874 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7875 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7876 | if test "$cross_compiling" = yes; then |
| 7877 | # Depending upon the size, compute the lo and hi bounds. |
| 7878 | cat >conftest.$ac_ext <<_ACEOF |
| 7879 | /* confdefs.h. */ |
| 7880 | _ACEOF |
| 7881 | cat confdefs.h >>conftest.$ac_ext |
| 7882 | cat >>conftest.$ac_ext <<_ACEOF |
| 7883 | /* end confdefs.h. */ |
| 7884 | #include <stddef.h> |
| 7885 | int |
| 7886 | main () |
| 7887 | { |
| 7888 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7889 | test_array [0] = 0 |
| 7890 | |
| 7891 | ; |
| 7892 | return 0; |
| 7893 | } |
| 7894 | _ACEOF |
| 7895 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7896 | if { (ac_try="$ac_compile" |
| 7897 | case "(($ac_try" in |
| 7898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7899 | *) ac_try_echo=$ac_try;; |
| 7900 | esac |
| 7901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7902 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7903 | ac_status=$? |
| 7904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7905 | rm -f conftest.er1 |
| 7906 | cat conftest.err >&5 |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7908 | (exit $ac_status); } && { |
| 7909 | test -z "$ac_c_werror_flag" || |
| 7910 | test ! -s conftest.err |
| 7911 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7912 | ac_lo=0 ac_mid=0 |
| 7913 | while :; do |
| 7914 | cat >conftest.$ac_ext <<_ACEOF |
| 7915 | /* confdefs.h. */ |
| 7916 | _ACEOF |
| 7917 | cat confdefs.h >>conftest.$ac_ext |
| 7918 | cat >>conftest.$ac_ext <<_ACEOF |
| 7919 | /* end confdefs.h. */ |
| 7920 | #include <stddef.h> |
| 7921 | int |
| 7922 | main () |
| 7923 | { |
| 7924 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7925 | test_array [0] = 0 |
| 7926 | |
| 7927 | ; |
| 7928 | return 0; |
| 7929 | } |
| 7930 | _ACEOF |
| 7931 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7932 | if { (ac_try="$ac_compile" |
| 7933 | case "(($ac_try" in |
| 7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7935 | *) ac_try_echo=$ac_try;; |
| 7936 | esac |
| 7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7938 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | ac_status=$? |
| 7940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7941 | rm -f conftest.er1 |
| 7942 | cat conftest.err >&5 |
| 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7944 | (exit $ac_status); } && { |
| 7945 | test -z "$ac_c_werror_flag" || |
| 7946 | test ! -s conftest.err |
| 7947 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7948 | ac_hi=$ac_mid; break |
| 7949 | else |
| 7950 | echo "$as_me: failed program was:" >&5 |
| 7951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7952 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7953 | ac_lo=`expr $ac_mid + 1` |
| 7954 | if test $ac_lo -le $ac_mid; then |
| 7955 | ac_lo= ac_hi= |
| 7956 | break |
| 7957 | fi |
| 7958 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7959 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7960 | |
| 7961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7962 | done |
| 7963 | else |
| 7964 | echo "$as_me: failed program was:" >&5 |
| 7965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7967 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7968 | /* confdefs.h. */ |
| 7969 | _ACEOF |
| 7970 | cat confdefs.h >>conftest.$ac_ext |
| 7971 | cat >>conftest.$ac_ext <<_ACEOF |
| 7972 | /* end confdefs.h. */ |
| 7973 | #include <stddef.h> |
| 7974 | int |
| 7975 | main () |
| 7976 | { |
| 7977 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7978 | test_array [0] = 0 |
| 7979 | |
| 7980 | ; |
| 7981 | return 0; |
| 7982 | } |
| 7983 | _ACEOF |
| 7984 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7985 | if { (ac_try="$ac_compile" |
| 7986 | case "(($ac_try" in |
| 7987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7988 | *) ac_try_echo=$ac_try;; |
| 7989 | esac |
| 7990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7991 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7992 | ac_status=$? |
| 7993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7994 | rm -f conftest.er1 |
| 7995 | cat conftest.err >&5 |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7997 | (exit $ac_status); } && { |
| 7998 | test -z "$ac_c_werror_flag" || |
| 7999 | test ! -s conftest.err |
| 8000 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8001 | ac_hi=-1 ac_mid=-1 |
| 8002 | while :; do |
| 8003 | cat >conftest.$ac_ext <<_ACEOF |
| 8004 | /* confdefs.h. */ |
| 8005 | _ACEOF |
| 8006 | cat confdefs.h >>conftest.$ac_ext |
| 8007 | cat >>conftest.$ac_ext <<_ACEOF |
| 8008 | /* end confdefs.h. */ |
| 8009 | #include <stddef.h> |
| 8010 | int |
| 8011 | main () |
| 8012 | { |
| 8013 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8014 | test_array [0] = 0 |
| 8015 | |
| 8016 | ; |
| 8017 | return 0; |
| 8018 | } |
| 8019 | _ACEOF |
| 8020 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8021 | if { (ac_try="$ac_compile" |
| 8022 | case "(($ac_try" in |
| 8023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8024 | *) ac_try_echo=$ac_try;; |
| 8025 | esac |
| 8026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8027 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8028 | ac_status=$? |
| 8029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8030 | rm -f conftest.er1 |
| 8031 | cat conftest.err >&5 |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8033 | (exit $ac_status); } && { |
| 8034 | test -z "$ac_c_werror_flag" || |
| 8035 | test ! -s conftest.err |
| 8036 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8037 | ac_lo=$ac_mid; break |
| 8038 | else |
| 8039 | echo "$as_me: failed program was:" >&5 |
| 8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8042 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8043 | if test $ac_mid -le $ac_hi; then |
| 8044 | ac_lo= ac_hi= |
| 8045 | break |
| 8046 | fi |
| 8047 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8048 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8049 | |
| 8050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8051 | done |
| 8052 | else |
| 8053 | echo "$as_me: failed program was:" >&5 |
| 8054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8055 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8056 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8057 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8058 | |
| 8059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | # Binary search between lo and hi bounds. |
| 8064 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8065 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8066 | cat >conftest.$ac_ext <<_ACEOF |
| 8067 | /* confdefs.h. */ |
| 8068 | _ACEOF |
| 8069 | cat confdefs.h >>conftest.$ac_ext |
| 8070 | cat >>conftest.$ac_ext <<_ACEOF |
| 8071 | /* end confdefs.h. */ |
| 8072 | #include <stddef.h> |
| 8073 | int |
| 8074 | main () |
| 8075 | { |
| 8076 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8077 | test_array [0] = 0 |
| 8078 | |
| 8079 | ; |
| 8080 | return 0; |
| 8081 | } |
| 8082 | _ACEOF |
| 8083 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8084 | if { (ac_try="$ac_compile" |
| 8085 | case "(($ac_try" in |
| 8086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8087 | *) ac_try_echo=$ac_try;; |
| 8088 | esac |
| 8089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8090 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8091 | ac_status=$? |
| 8092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8093 | rm -f conftest.er1 |
| 8094 | cat conftest.err >&5 |
| 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8096 | (exit $ac_status); } && { |
| 8097 | test -z "$ac_c_werror_flag" || |
| 8098 | test ! -s conftest.err |
| 8099 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8100 | ac_hi=$ac_mid |
| 8101 | else |
| 8102 | echo "$as_me: failed program was:" >&5 |
| 8103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8105 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8106 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8107 | |
| 8108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8109 | done |
| 8110 | case $ac_lo in |
| 8111 | ?*) fits_in_uint=$ac_lo;; |
| 8112 | '') result=? ;; |
| 8113 | esac |
| 8114 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8115 | cat >conftest.$ac_ext <<_ACEOF |
| 8116 | /* confdefs.h. */ |
| 8117 | _ACEOF |
| 8118 | cat confdefs.h >>conftest.$ac_ext |
| 8119 | cat >>conftest.$ac_ext <<_ACEOF |
| 8120 | /* end confdefs.h. */ |
| 8121 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8122 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8123 | 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] | 8124 | #include <stdio.h> |
| 8125 | #include <stdlib.h> |
| 8126 | int |
| 8127 | main () |
| 8128 | { |
| 8129 | |
| 8130 | FILE *f = fopen ("conftest.val", "w"); |
| 8131 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8132 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8133 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8134 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8135 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8136 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8137 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8138 | fprintf (f, "%ld\n", i); |
| 8139 | } |
| 8140 | else |
| 8141 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8142 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8143 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8144 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8145 | fprintf (f, "%lu\n", i); |
| 8146 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8147 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8148 | |
| 8149 | ; |
| 8150 | return 0; |
| 8151 | } |
| 8152 | _ACEOF |
| 8153 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8154 | if { (ac_try="$ac_link" |
| 8155 | case "(($ac_try" in |
| 8156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8157 | *) ac_try_echo=$ac_try;; |
| 8158 | esac |
| 8159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8160 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8161 | ac_status=$? |
| 8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8163 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8164 | { (case "(($ac_try" in |
| 8165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8166 | *) ac_try_echo=$ac_try;; |
| 8167 | esac |
| 8168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8169 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8170 | ac_status=$? |
| 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8172 | (exit $ac_status); }; }; then |
| 8173 | fits_in_uint=`cat conftest.val` |
| 8174 | else |
| 8175 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8176 | echo "$as_me: failed program was:" >&5 |
| 8177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8178 | |
| 8179 | ( exit $ac_status ) |
| 8180 | result=? |
| 8181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8182 | 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] | 8183 | fi |
| 8184 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8185 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8186 | if test "$fits_in_uint" = 1; then |
| 8187 | cat >conftest.$ac_ext <<_ACEOF |
| 8188 | /* confdefs.h. */ |
| 8189 | _ACEOF |
| 8190 | cat confdefs.h >>conftest.$ac_ext |
| 8191 | cat >>conftest.$ac_ext <<_ACEOF |
| 8192 | /* end confdefs.h. */ |
| 8193 | #include <stddef.h> |
| 8194 | extern size_t foo; |
| 8195 | extern unsigned long foo; |
| 8196 | |
| 8197 | int |
| 8198 | main () |
| 8199 | { |
| 8200 | |
| 8201 | ; |
| 8202 | return 0; |
| 8203 | } |
| 8204 | _ACEOF |
| 8205 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8206 | if { (ac_try="$ac_compile" |
| 8207 | case "(($ac_try" in |
| 8208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8209 | *) ac_try_echo=$ac_try;; |
| 8210 | esac |
| 8211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8212 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8213 | ac_status=$? |
| 8214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8215 | rm -f conftest.er1 |
| 8216 | cat conftest.err >&5 |
| 8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8218 | (exit $ac_status); } && { |
| 8219 | test -z "$ac_c_werror_flag" || |
| 8220 | test ! -s conftest.err |
| 8221 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8222 | fits_in_uint=0 |
| 8223 | else |
| 8224 | echo "$as_me: failed program was:" >&5 |
| 8225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8229 | |
| 8230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8231 | fi |
| 8232 | if test -z "$result"; then |
| 8233 | if test "$fits_in_uint" = 1; then |
| 8234 | result="$res_hi$res_lo"U |
| 8235 | else |
| 8236 | result="$res_hi$res_lo"UL |
| 8237 | fi |
| 8238 | else |
| 8239 | result='~(size_t)0' |
| 8240 | fi |
| 8241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8242 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8243 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8244 | if test "$result" != yes; then |
| 8245 | |
| 8246 | cat >>confdefs.h <<_ACEOF |
| 8247 | #define SIZE_MAX $result |
| 8248 | _ACEOF |
| 8249 | |
| 8250 | fi |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | for ac_header in stdint.h |
| 8256 | do |
| 8257 | 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] | 8258 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8259 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8261 | 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] | 8262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8264 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8265 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8266 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8267 | else |
| 8268 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8269 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8270 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8271 | cat >conftest.$ac_ext <<_ACEOF |
| 8272 | /* confdefs.h. */ |
| 8273 | _ACEOF |
| 8274 | cat confdefs.h >>conftest.$ac_ext |
| 8275 | cat >>conftest.$ac_ext <<_ACEOF |
| 8276 | /* end confdefs.h. */ |
| 8277 | $ac_includes_default |
| 8278 | #include <$ac_header> |
| 8279 | _ACEOF |
| 8280 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8281 | if { (ac_try="$ac_compile" |
| 8282 | case "(($ac_try" in |
| 8283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8284 | *) ac_try_echo=$ac_try;; |
| 8285 | esac |
| 8286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8287 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8288 | ac_status=$? |
| 8289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8290 | rm -f conftest.er1 |
| 8291 | cat conftest.err >&5 |
| 8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8293 | (exit $ac_status); } && { |
| 8294 | test -z "$ac_c_werror_flag" || |
| 8295 | test ! -s conftest.err |
| 8296 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | ac_header_compiler=yes |
| 8298 | else |
| 8299 | echo "$as_me: failed program was:" >&5 |
| 8300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8302 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8304 | |
| 8305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8306 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8307 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8308 | |
| 8309 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8310 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8311 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8312 | cat >conftest.$ac_ext <<_ACEOF |
| 8313 | /* confdefs.h. */ |
| 8314 | _ACEOF |
| 8315 | cat confdefs.h >>conftest.$ac_ext |
| 8316 | cat >>conftest.$ac_ext <<_ACEOF |
| 8317 | /* end confdefs.h. */ |
| 8318 | #include <$ac_header> |
| 8319 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8320 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8321 | case "(($ac_try" in |
| 8322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8323 | *) ac_try_echo=$ac_try;; |
| 8324 | esac |
| 8325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8326 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8327 | ac_status=$? |
| 8328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8329 | rm -f conftest.er1 |
| 8330 | cat conftest.err >&5 |
| 8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8332 | (exit $ac_status); } >/dev/null && { |
| 8333 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8334 | test ! -s conftest.err |
| 8335 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | ac_header_preproc=yes |
| 8337 | else |
| 8338 | echo "$as_me: failed program was:" >&5 |
| 8339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8340 | |
| 8341 | ac_header_preproc=no |
| 8342 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8343 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8344 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8345 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8346 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8347 | |
| 8348 | # So? What about this header? |
| 8349 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8350 | yes:no: ) |
| 8351 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8352 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8354 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8355 | ac_header_preproc=yes |
| 8356 | ;; |
| 8357 | no:yes:* ) |
| 8358 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8359 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8360 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8361 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8362 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8363 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8364 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8365 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8367 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8369 | 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] | 8370 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8371 | ;; |
| 8372 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8373 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8375 | 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] | 8376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8377 | else |
| 8378 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8379 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8380 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8381 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8382 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8383 | |
| 8384 | fi |
| 8385 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8386 | cat >>confdefs.h <<_ACEOF |
| 8387 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8388 | _ACEOF |
| 8389 | |
| 8390 | fi |
| 8391 | |
| 8392 | done |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | if test "X$prefix" = "XNONE"; then |
| 8397 | acl_final_prefix="$ac_default_prefix" |
| 8398 | else |
| 8399 | acl_final_prefix="$prefix" |
| 8400 | fi |
| 8401 | if test "X$exec_prefix" = "XNONE"; then |
| 8402 | acl_final_exec_prefix='${prefix}' |
| 8403 | else |
| 8404 | acl_final_exec_prefix="$exec_prefix" |
| 8405 | fi |
| 8406 | acl_save_prefix="$prefix" |
| 8407 | prefix="$acl_final_prefix" |
| 8408 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8409 | prefix="$acl_save_prefix" |
| 8410 | |
| 8411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8412 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8413 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8414 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8415 | else |
| 8416 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8417 | fi |
| 8418 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8419 | # Prepare PATH_SEPARATOR. |
| 8420 | # The user is always right. |
| 8421 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8422 | echo "#! /bin/sh" >conf$$.sh |
| 8423 | echo "exit 0" >>conf$$.sh |
| 8424 | chmod +x conf$$.sh |
| 8425 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8426 | PATH_SEPARATOR=';' |
| 8427 | else |
| 8428 | PATH_SEPARATOR=: |
| 8429 | fi |
| 8430 | rm -f conf$$.sh |
| 8431 | fi |
| 8432 | ac_prog=ld |
| 8433 | if test "$GCC" = yes; then |
| 8434 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8435 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8436 | 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] | 8437 | case $host in |
| 8438 | *-*-mingw*) |
| 8439 | # gcc leaves a trailing carriage return which upsets mingw |
| 8440 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8441 | *) |
| 8442 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8443 | esac |
| 8444 | case $ac_prog in |
| 8445 | # Accept absolute paths. |
| 8446 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8447 | re_direlt='/[^/][^/]*/\.\./' |
| 8448 | # Canonicalize the path of ld |
| 8449 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8450 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8451 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8452 | done |
| 8453 | test -z "$LD" && LD="$ac_prog" |
| 8454 | ;; |
| 8455 | "") |
| 8456 | # If it fails, then pretend we aren't using GCC. |
| 8457 | ac_prog=ld |
| 8458 | ;; |
| 8459 | *) |
| 8460 | # If it is relative, then search for the first ld in PATH. |
| 8461 | with_gnu_ld=unknown |
| 8462 | ;; |
| 8463 | esac |
| 8464 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8465 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8466 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8467 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8468 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8469 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8470 | fi |
| 8471 | if test "${acl_cv_path_LD+set}" = set; then |
| 8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8473 | else |
| 8474 | if test -z "$LD"; then |
| 8475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8476 | for ac_dir in $PATH; do |
| 8477 | test -z "$ac_dir" && ac_dir=. |
| 8478 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8479 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8480 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8481 | # but apparently some GNU ld's only accept -v. |
| 8482 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8483 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8484 | *GNU* | *'with BFD'*) |
| 8485 | test "$with_gnu_ld" != no && break ;; |
| 8486 | *) |
| 8487 | test "$with_gnu_ld" != yes && break ;; |
| 8488 | esac |
| 8489 | fi |
| 8490 | done |
| 8491 | IFS="$ac_save_ifs" |
| 8492 | else |
| 8493 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8494 | fi |
| 8495 | fi |
| 8496 | |
| 8497 | LD="$acl_cv_path_LD" |
| 8498 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8499 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8500 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8501 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8503 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8504 | fi |
| 8505 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8506 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8507 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8508 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8509 | 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] | 8510 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8512 | else |
| 8513 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8514 | case `$LD -v 2>&1 </dev/null` in |
| 8515 | *GNU* | *'with BFD'*) |
| 8516 | acl_cv_prog_gnu_ld=yes ;; |
| 8517 | *) |
| 8518 | acl_cv_prog_gnu_ld=no ;; |
| 8519 | esac |
| 8520 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8521 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8522 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8523 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8524 | |
| 8525 | |
| 8526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8527 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8528 | 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] | 8529 | if test "${acl_cv_rpath+set}" = set; then |
| 8530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8531 | else |
| 8532 | |
| 8533 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8534 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8535 | . ./conftest.sh |
| 8536 | rm -f ./conftest.sh |
| 8537 | acl_cv_rpath=done |
| 8538 | |
| 8539 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8540 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8541 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8542 | wl="$acl_cv_wl" |
| 8543 | libext="$acl_cv_libext" |
| 8544 | shlibext="$acl_cv_shlibext" |
| 8545 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8546 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8547 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8548 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8549 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8550 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8551 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | else |
| 8553 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8554 | fi |
| 8555 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | |
| 8562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8563 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8565 | acl_save_prefix="$prefix" |
| 8566 | prefix="$acl_final_prefix" |
| 8567 | acl_save_exec_prefix="$exec_prefix" |
| 8568 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8569 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8570 | eval additional_includedir=\"$includedir\" |
| 8571 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8572 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8573 | exec_prefix="$acl_save_exec_prefix" |
| 8574 | prefix="$acl_save_prefix" |
| 8575 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8576 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8577 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8578 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8579 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8580 | if test "X$withval" = "Xno"; then |
| 8581 | use_additional=no |
| 8582 | else |
| 8583 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8584 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8585 | acl_save_prefix="$prefix" |
| 8586 | prefix="$acl_final_prefix" |
| 8587 | acl_save_exec_prefix="$exec_prefix" |
| 8588 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8590 | eval additional_includedir=\"$includedir\" |
| 8591 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8592 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8593 | exec_prefix="$acl_save_exec_prefix" |
| 8594 | prefix="$acl_save_prefix" |
| 8595 | |
| 8596 | else |
| 8597 | additional_includedir="$withval/include" |
| 8598 | additional_libdir="$withval/lib" |
| 8599 | fi |
| 8600 | fi |
| 8601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8602 | fi |
| 8603 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8604 | LIBICONV= |
| 8605 | LTLIBICONV= |
| 8606 | INCICONV= |
| 8607 | rpathdirs= |
| 8608 | ltrpathdirs= |
| 8609 | names_already_handled= |
| 8610 | names_next_round='iconv ' |
| 8611 | while test -n "$names_next_round"; do |
| 8612 | names_this_round="$names_next_round" |
| 8613 | names_next_round= |
| 8614 | for name in $names_this_round; do |
| 8615 | already_handled= |
| 8616 | for n in $names_already_handled; do |
| 8617 | if test "$n" = "$name"; then |
| 8618 | already_handled=yes |
| 8619 | break |
| 8620 | fi |
| 8621 | done |
| 8622 | if test -z "$already_handled"; then |
| 8623 | names_already_handled="$names_already_handled $name" |
| 8624 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8625 | eval value=\"\$HAVE_LIB$uppername\" |
| 8626 | if test -n "$value"; then |
| 8627 | if test "$value" = yes; then |
| 8628 | eval value=\"\$LIB$uppername\" |
| 8629 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8630 | eval value=\"\$LTLIB$uppername\" |
| 8631 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8632 | else |
| 8633 | : |
| 8634 | fi |
| 8635 | else |
| 8636 | found_dir= |
| 8637 | found_la= |
| 8638 | found_so= |
| 8639 | found_a= |
| 8640 | if test $use_additional = yes; then |
| 8641 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8642 | found_dir="$additional_libdir" |
| 8643 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8644 | if test -f "$additional_libdir/lib$name.la"; then |
| 8645 | found_la="$additional_libdir/lib$name.la" |
| 8646 | fi |
| 8647 | else |
| 8648 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8649 | found_dir="$additional_libdir" |
| 8650 | found_a="$additional_libdir/lib$name.$libext" |
| 8651 | if test -f "$additional_libdir/lib$name.la"; then |
| 8652 | found_la="$additional_libdir/lib$name.la" |
| 8653 | fi |
| 8654 | fi |
| 8655 | fi |
| 8656 | fi |
| 8657 | if test "X$found_dir" = "X"; then |
| 8658 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8659 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8660 | acl_save_prefix="$prefix" |
| 8661 | prefix="$acl_final_prefix" |
| 8662 | acl_save_exec_prefix="$exec_prefix" |
| 8663 | exec_prefix="$acl_final_exec_prefix" |
| 8664 | eval x=\"$x\" |
| 8665 | exec_prefix="$acl_save_exec_prefix" |
| 8666 | prefix="$acl_save_prefix" |
| 8667 | |
| 8668 | case "$x" in |
| 8669 | -L*) |
| 8670 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8671 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8672 | found_dir="$dir" |
| 8673 | found_so="$dir/lib$name.$shlibext" |
| 8674 | if test -f "$dir/lib$name.la"; then |
| 8675 | found_la="$dir/lib$name.la" |
| 8676 | fi |
| 8677 | else |
| 8678 | if test -f "$dir/lib$name.$libext"; then |
| 8679 | found_dir="$dir" |
| 8680 | found_a="$dir/lib$name.$libext" |
| 8681 | if test -f "$dir/lib$name.la"; then |
| 8682 | found_la="$dir/lib$name.la" |
| 8683 | fi |
| 8684 | fi |
| 8685 | fi |
| 8686 | ;; |
| 8687 | esac |
| 8688 | if test "X$found_dir" != "X"; then |
| 8689 | break |
| 8690 | fi |
| 8691 | done |
| 8692 | fi |
| 8693 | if test "X$found_dir" != "X"; then |
| 8694 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8695 | if test "X$found_so" != "X"; then |
| 8696 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8697 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8698 | else |
| 8699 | haveit= |
| 8700 | for x in $ltrpathdirs; do |
| 8701 | if test "X$x" = "X$found_dir"; then |
| 8702 | haveit=yes |
| 8703 | break |
| 8704 | fi |
| 8705 | done |
| 8706 | if test -z "$haveit"; then |
| 8707 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8708 | fi |
| 8709 | if test "$hardcode_direct" = yes; then |
| 8710 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8711 | else |
| 8712 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8713 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8714 | haveit= |
| 8715 | for x in $rpathdirs; do |
| 8716 | if test "X$x" = "X$found_dir"; then |
| 8717 | haveit=yes |
| 8718 | break |
| 8719 | fi |
| 8720 | done |
| 8721 | if test -z "$haveit"; then |
| 8722 | rpathdirs="$rpathdirs $found_dir" |
| 8723 | fi |
| 8724 | else |
| 8725 | haveit= |
| 8726 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8727 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8728 | acl_save_prefix="$prefix" |
| 8729 | prefix="$acl_final_prefix" |
| 8730 | acl_save_exec_prefix="$exec_prefix" |
| 8731 | exec_prefix="$acl_final_exec_prefix" |
| 8732 | eval x=\"$x\" |
| 8733 | exec_prefix="$acl_save_exec_prefix" |
| 8734 | prefix="$acl_save_prefix" |
| 8735 | |
| 8736 | if test "X$x" = "X-L$found_dir"; then |
| 8737 | haveit=yes |
| 8738 | break |
| 8739 | fi |
| 8740 | done |
| 8741 | if test -z "$haveit"; then |
| 8742 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8743 | fi |
| 8744 | if test "$hardcode_minus_L" != no; then |
| 8745 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8746 | else |
| 8747 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8748 | fi |
| 8749 | fi |
| 8750 | fi |
| 8751 | fi |
| 8752 | else |
| 8753 | if test "X$found_a" != "X"; then |
| 8754 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8755 | else |
| 8756 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8757 | fi |
| 8758 | fi |
| 8759 | additional_includedir= |
| 8760 | case "$found_dir" in |
| 8761 | */lib | */lib/) |
| 8762 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8763 | additional_includedir="$basedir/include" |
| 8764 | ;; |
| 8765 | esac |
| 8766 | if test "X$additional_includedir" != "X"; then |
| 8767 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8768 | haveit= |
| 8769 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8770 | if test -n "$GCC"; then |
| 8771 | case $host_os in |
| 8772 | linux*) haveit=yes;; |
| 8773 | esac |
| 8774 | fi |
| 8775 | fi |
| 8776 | if test -z "$haveit"; then |
| 8777 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8779 | acl_save_prefix="$prefix" |
| 8780 | prefix="$acl_final_prefix" |
| 8781 | acl_save_exec_prefix="$exec_prefix" |
| 8782 | exec_prefix="$acl_final_exec_prefix" |
| 8783 | eval x=\"$x\" |
| 8784 | exec_prefix="$acl_save_exec_prefix" |
| 8785 | prefix="$acl_save_prefix" |
| 8786 | |
| 8787 | if test "X$x" = "X-I$additional_includedir"; then |
| 8788 | haveit=yes |
| 8789 | break |
| 8790 | fi |
| 8791 | done |
| 8792 | if test -z "$haveit"; then |
| 8793 | if test -d "$additional_includedir"; then |
| 8794 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8795 | fi |
| 8796 | fi |
| 8797 | fi |
| 8798 | fi |
| 8799 | fi |
| 8800 | if test -n "$found_la"; then |
| 8801 | save_libdir="$libdir" |
| 8802 | case "$found_la" in |
| 8803 | */* | *\\*) . "$found_la" ;; |
| 8804 | *) . "./$found_la" ;; |
| 8805 | esac |
| 8806 | libdir="$save_libdir" |
| 8807 | for dep in $dependency_libs; do |
| 8808 | case "$dep" in |
| 8809 | -L*) |
| 8810 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8811 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8812 | haveit= |
| 8813 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8814 | if test -n "$GCC"; then |
| 8815 | case $host_os in |
| 8816 | linux*) haveit=yes;; |
| 8817 | esac |
| 8818 | fi |
| 8819 | fi |
| 8820 | if test -z "$haveit"; then |
| 8821 | haveit= |
| 8822 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8823 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8824 | acl_save_prefix="$prefix" |
| 8825 | prefix="$acl_final_prefix" |
| 8826 | acl_save_exec_prefix="$exec_prefix" |
| 8827 | exec_prefix="$acl_final_exec_prefix" |
| 8828 | eval x=\"$x\" |
| 8829 | exec_prefix="$acl_save_exec_prefix" |
| 8830 | prefix="$acl_save_prefix" |
| 8831 | |
| 8832 | if test "X$x" = "X-L$additional_libdir"; then |
| 8833 | haveit=yes |
| 8834 | break |
| 8835 | fi |
| 8836 | done |
| 8837 | if test -z "$haveit"; then |
| 8838 | if test -d "$additional_libdir"; then |
| 8839 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8840 | fi |
| 8841 | fi |
| 8842 | haveit= |
| 8843 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8844 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8845 | acl_save_prefix="$prefix" |
| 8846 | prefix="$acl_final_prefix" |
| 8847 | acl_save_exec_prefix="$exec_prefix" |
| 8848 | exec_prefix="$acl_final_exec_prefix" |
| 8849 | eval x=\"$x\" |
| 8850 | exec_prefix="$acl_save_exec_prefix" |
| 8851 | prefix="$acl_save_prefix" |
| 8852 | |
| 8853 | if test "X$x" = "X-L$additional_libdir"; then |
| 8854 | haveit=yes |
| 8855 | break |
| 8856 | fi |
| 8857 | done |
| 8858 | if test -z "$haveit"; then |
| 8859 | if test -d "$additional_libdir"; then |
| 8860 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8861 | fi |
| 8862 | fi |
| 8863 | fi |
| 8864 | fi |
| 8865 | ;; |
| 8866 | -R*) |
| 8867 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8868 | if test "$enable_rpath" != no; then |
| 8869 | haveit= |
| 8870 | for x in $rpathdirs; do |
| 8871 | if test "X$x" = "X$dir"; then |
| 8872 | haveit=yes |
| 8873 | break |
| 8874 | fi |
| 8875 | done |
| 8876 | if test -z "$haveit"; then |
| 8877 | rpathdirs="$rpathdirs $dir" |
| 8878 | fi |
| 8879 | haveit= |
| 8880 | for x in $ltrpathdirs; do |
| 8881 | if test "X$x" = "X$dir"; then |
| 8882 | haveit=yes |
| 8883 | break |
| 8884 | fi |
| 8885 | done |
| 8886 | if test -z "$haveit"; then |
| 8887 | ltrpathdirs="$ltrpathdirs $dir" |
| 8888 | fi |
| 8889 | fi |
| 8890 | ;; |
| 8891 | -l*) |
| 8892 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8893 | ;; |
| 8894 | *.la) |
| 8895 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8896 | ;; |
| 8897 | *) |
| 8898 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8899 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8900 | ;; |
| 8901 | esac |
| 8902 | done |
| 8903 | fi |
| 8904 | else |
| 8905 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8906 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8907 | fi |
| 8908 | fi |
| 8909 | fi |
| 8910 | done |
| 8911 | done |
| 8912 | if test "X$rpathdirs" != "X"; then |
| 8913 | if test -n "$hardcode_libdir_separator"; then |
| 8914 | alldirs= |
| 8915 | for found_dir in $rpathdirs; do |
| 8916 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8917 | done |
| 8918 | acl_save_libdir="$libdir" |
| 8919 | libdir="$alldirs" |
| 8920 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8921 | libdir="$acl_save_libdir" |
| 8922 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8923 | else |
| 8924 | for found_dir in $rpathdirs; do |
| 8925 | acl_save_libdir="$libdir" |
| 8926 | libdir="$found_dir" |
| 8927 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8928 | libdir="$acl_save_libdir" |
| 8929 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8930 | done |
| 8931 | fi |
| 8932 | fi |
| 8933 | if test "X$ltrpathdirs" != "X"; then |
| 8934 | for found_dir in $ltrpathdirs; do |
| 8935 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8936 | done |
| 8937 | fi |
| 8938 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8939 | |
| 8940 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8942 | |
| 8943 | |
| 8944 | |
| 8945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8946 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8947 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8948 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8950 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8951 | cat >conftest.$ac_ext <<_ACEOF |
| 8952 | /* confdefs.h. */ |
| 8953 | _ACEOF |
| 8954 | cat confdefs.h >>conftest.$ac_ext |
| 8955 | cat >>conftest.$ac_ext <<_ACEOF |
| 8956 | /* end confdefs.h. */ |
| 8957 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8958 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8959 | int |
| 8960 | main () |
| 8961 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8962 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8963 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8964 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8965 | return 0; |
| 8966 | ; |
| 8967 | return 0; |
| 8968 | } |
| 8969 | _ACEOF |
| 8970 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8971 | if { (ac_try="$ac_compile" |
| 8972 | case "(($ac_try" in |
| 8973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8974 | *) ac_try_echo=$ac_try;; |
| 8975 | esac |
| 8976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8977 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8978 | ac_status=$? |
| 8979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8980 | rm -f conftest.er1 |
| 8981 | cat conftest.err >&5 |
| 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8983 | (exit $ac_status); } && { |
| 8984 | test -z "$ac_c_werror_flag" || |
| 8985 | test ! -s conftest.err |
| 8986 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8987 | ac_cv_type_ptrdiff_t=yes |
| 8988 | else |
| 8989 | echo "$as_me: failed program was:" >&5 |
| 8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8992 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8994 | |
| 8995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8996 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8997 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8998 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8999 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9000 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9001 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9002 | |
| 9003 | cat >>confdefs.h <<\_ACEOF |
| 9004 | #define ptrdiff_t long |
| 9005 | _ACEOF |
| 9006 | |
| 9007 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9008 | fi |
| 9009 | |
| 9010 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9011 | |
| 9012 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9013 | |
| 9014 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9015 | |
| 9016 | |
| 9017 | |
| 9018 | |
| 9019 | |
| 9020 | 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] | 9021 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9022 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9023 | 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] | 9024 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9025 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9027 | 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] | 9028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9029 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9030 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9032 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9033 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9034 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9035 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9037 | cat >conftest.$ac_ext <<_ACEOF |
| 9038 | /* confdefs.h. */ |
| 9039 | _ACEOF |
| 9040 | cat confdefs.h >>conftest.$ac_ext |
| 9041 | cat >>conftest.$ac_ext <<_ACEOF |
| 9042 | /* end confdefs.h. */ |
| 9043 | $ac_includes_default |
| 9044 | #include <$ac_header> |
| 9045 | _ACEOF |
| 9046 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9047 | if { (ac_try="$ac_compile" |
| 9048 | case "(($ac_try" in |
| 9049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9050 | *) ac_try_echo=$ac_try;; |
| 9051 | esac |
| 9052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9053 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9054 | ac_status=$? |
| 9055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9056 | rm -f conftest.er1 |
| 9057 | cat conftest.err >&5 |
| 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9059 | (exit $ac_status); } && { |
| 9060 | test -z "$ac_c_werror_flag" || |
| 9061 | test ! -s conftest.err |
| 9062 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9063 | ac_header_compiler=yes |
| 9064 | else |
| 9065 | echo "$as_me: failed program was:" >&5 |
| 9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9068 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9070 | |
| 9071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9072 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9073 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9074 | |
| 9075 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9076 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9077 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9078 | cat >conftest.$ac_ext <<_ACEOF |
| 9079 | /* confdefs.h. */ |
| 9080 | _ACEOF |
| 9081 | cat confdefs.h >>conftest.$ac_ext |
| 9082 | cat >>conftest.$ac_ext <<_ACEOF |
| 9083 | /* end confdefs.h. */ |
| 9084 | #include <$ac_header> |
| 9085 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9086 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9087 | case "(($ac_try" in |
| 9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9089 | *) ac_try_echo=$ac_try;; |
| 9090 | esac |
| 9091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9092 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9093 | ac_status=$? |
| 9094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9095 | rm -f conftest.er1 |
| 9096 | cat conftest.err >&5 |
| 9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9098 | (exit $ac_status); } >/dev/null && { |
| 9099 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9100 | test ! -s conftest.err |
| 9101 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9102 | ac_header_preproc=yes |
| 9103 | else |
| 9104 | echo "$as_me: failed program was:" >&5 |
| 9105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9106 | |
| 9107 | ac_header_preproc=no |
| 9108 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9109 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9110 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9111 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9112 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9113 | |
| 9114 | # So? What about this header? |
| 9115 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9116 | yes:no: ) |
| 9117 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9118 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9120 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9121 | ac_header_preproc=yes |
| 9122 | ;; |
| 9123 | no:yes:* ) |
| 9124 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9125 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9126 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9127 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9128 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9129 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9130 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9131 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9133 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9134 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9135 | 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] | 9136 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9137 | ;; |
| 9138 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9139 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9141 | 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] | 9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9143 | else |
| 9144 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9145 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9146 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9147 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9148 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9149 | |
| 9150 | fi |
| 9151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9152 | cat >>confdefs.h <<_ACEOF |
| 9153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9154 | _ACEOF |
| 9155 | |
| 9156 | fi |
| 9157 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9158 | done |
| 9159 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | |
| 9183 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9184 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9185 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9186 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9187 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9188 | 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] | 9189 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9191 | 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] | 9192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9193 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9194 | cat >conftest.$ac_ext <<_ACEOF |
| 9195 | /* confdefs.h. */ |
| 9196 | _ACEOF |
| 9197 | cat confdefs.h >>conftest.$ac_ext |
| 9198 | cat >>conftest.$ac_ext <<_ACEOF |
| 9199 | /* end confdefs.h. */ |
| 9200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9202 | #define $ac_func innocuous_$ac_func |
| 9203 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9204 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9205 | which can conflict with char $ac_func (); below. |
| 9206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9207 | <limits.h> exists even on freestanding compilers. */ |
| 9208 | |
| 9209 | #ifdef __STDC__ |
| 9210 | # include <limits.h> |
| 9211 | #else |
| 9212 | # include <assert.h> |
| 9213 | #endif |
| 9214 | |
| 9215 | #undef $ac_func |
| 9216 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9217 | /* Override any GCC internal prototype to avoid an error. |
| 9218 | Use char because int might match the return type of a GCC |
| 9219 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9220 | #ifdef __cplusplus |
| 9221 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9222 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9223 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9224 | /* The GNU C library defines this for functions which it implements |
| 9225 | to always fail with ENOSYS. Some functions are actually named |
| 9226 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9227 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9228 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9229 | #endif |
| 9230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9231 | int |
| 9232 | main () |
| 9233 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9234 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9235 | ; |
| 9236 | return 0; |
| 9237 | } |
| 9238 | _ACEOF |
| 9239 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9240 | if { (ac_try="$ac_link" |
| 9241 | case "(($ac_try" in |
| 9242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9243 | *) ac_try_echo=$ac_try;; |
| 9244 | esac |
| 9245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9246 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9247 | ac_status=$? |
| 9248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9249 | rm -f conftest.er1 |
| 9250 | cat conftest.err >&5 |
| 9251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9252 | (exit $ac_status); } && { |
| 9253 | test -z "$ac_c_werror_flag" || |
| 9254 | test ! -s conftest.err |
| 9255 | } && test -s conftest$ac_exeext && |
| 9256 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9257 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9258 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | echo "$as_me: failed program was:" >&5 |
| 9260 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9261 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9262 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9264 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9265 | 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] | 9266 | conftest$ac_exeext conftest.$ac_ext |
| 9267 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9268 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9270 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9272 | cat >>confdefs.h <<_ACEOF |
| 9273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9274 | _ACEOF |
| 9275 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9276 | fi |
| 9277 | done |
| 9278 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9279 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9280 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9281 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9282 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9283 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9285 | else |
| 9286 | cat >conftest.$ac_ext <<_ACEOF |
| 9287 | /* confdefs.h. */ |
| 9288 | _ACEOF |
| 9289 | cat confdefs.h >>conftest.$ac_ext |
| 9290 | cat >>conftest.$ac_ext <<_ACEOF |
| 9291 | /* end confdefs.h. */ |
| 9292 | #include <stdio.h> |
| 9293 | int |
| 9294 | main () |
| 9295 | { |
| 9296 | |
| 9297 | #ifndef _snprintf |
| 9298 | char *p = (char *) _snprintf; |
| 9299 | #endif |
| 9300 | |
| 9301 | ; |
| 9302 | return 0; |
| 9303 | } |
| 9304 | _ACEOF |
| 9305 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9306 | if { (ac_try="$ac_compile" |
| 9307 | case "(($ac_try" in |
| 9308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9309 | *) ac_try_echo=$ac_try;; |
| 9310 | esac |
| 9311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9312 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9313 | ac_status=$? |
| 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9318 | (exit $ac_status); } && { |
| 9319 | test -z "$ac_c_werror_flag" || |
| 9320 | test ! -s conftest.err |
| 9321 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9322 | ac_cv_have_decl__snprintf=yes |
| 9323 | else |
| 9324 | echo "$as_me: failed program was:" >&5 |
| 9325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9327 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9328 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9329 | |
| 9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9331 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9333 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9334 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9335 | gt_value=1 |
| 9336 | else |
| 9337 | gt_value=0 |
| 9338 | fi |
| 9339 | |
| 9340 | cat >>confdefs.h <<_ACEOF |
| 9341 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9342 | _ACEOF |
| 9343 | |
| 9344 | |
| 9345 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9346 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9347 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9348 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9350 | else |
| 9351 | cat >conftest.$ac_ext <<_ACEOF |
| 9352 | /* confdefs.h. */ |
| 9353 | _ACEOF |
| 9354 | cat confdefs.h >>conftest.$ac_ext |
| 9355 | cat >>conftest.$ac_ext <<_ACEOF |
| 9356 | /* end confdefs.h. */ |
| 9357 | #include <stdio.h> |
| 9358 | int |
| 9359 | main () |
| 9360 | { |
| 9361 | |
| 9362 | #ifndef _snwprintf |
| 9363 | char *p = (char *) _snwprintf; |
| 9364 | #endif |
| 9365 | |
| 9366 | ; |
| 9367 | return 0; |
| 9368 | } |
| 9369 | _ACEOF |
| 9370 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9371 | if { (ac_try="$ac_compile" |
| 9372 | case "(($ac_try" in |
| 9373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9374 | *) ac_try_echo=$ac_try;; |
| 9375 | esac |
| 9376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9377 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9378 | ac_status=$? |
| 9379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9380 | rm -f conftest.er1 |
| 9381 | cat conftest.err >&5 |
| 9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9383 | (exit $ac_status); } && { |
| 9384 | test -z "$ac_c_werror_flag" || |
| 9385 | test ! -s conftest.err |
| 9386 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9387 | ac_cv_have_decl__snwprintf=yes |
| 9388 | else |
| 9389 | echo "$as_me: failed program was:" >&5 |
| 9390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9392 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9394 | |
| 9395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9396 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9397 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9398 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9399 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9400 | gt_value=1 |
| 9401 | else |
| 9402 | gt_value=0 |
| 9403 | fi |
| 9404 | |
| 9405 | cat >>confdefs.h <<_ACEOF |
| 9406 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9407 | _ACEOF |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9412 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9413 | 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] | 9414 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9416 | else |
| 9417 | cat >conftest.$ac_ext <<_ACEOF |
| 9418 | /* confdefs.h. */ |
| 9419 | _ACEOF |
| 9420 | cat confdefs.h >>conftest.$ac_ext |
| 9421 | cat >>conftest.$ac_ext <<_ACEOF |
| 9422 | /* end confdefs.h. */ |
| 9423 | #include <stdio.h> |
| 9424 | int |
| 9425 | main () |
| 9426 | { |
| 9427 | |
| 9428 | #ifndef feof_unlocked |
| 9429 | char *p = (char *) feof_unlocked; |
| 9430 | #endif |
| 9431 | |
| 9432 | ; |
| 9433 | return 0; |
| 9434 | } |
| 9435 | _ACEOF |
| 9436 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9437 | if { (ac_try="$ac_compile" |
| 9438 | case "(($ac_try" in |
| 9439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9440 | *) ac_try_echo=$ac_try;; |
| 9441 | esac |
| 9442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9443 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9444 | ac_status=$? |
| 9445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9446 | rm -f conftest.er1 |
| 9447 | cat conftest.err >&5 |
| 9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9449 | (exit $ac_status); } && { |
| 9450 | test -z "$ac_c_werror_flag" || |
| 9451 | test ! -s conftest.err |
| 9452 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9453 | ac_cv_have_decl_feof_unlocked=yes |
| 9454 | else |
| 9455 | echo "$as_me: failed program was:" >&5 |
| 9456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9457 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9458 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9459 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9460 | |
| 9461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9462 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9463 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9464 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9466 | gt_value=1 |
| 9467 | else |
| 9468 | gt_value=0 |
| 9469 | fi |
| 9470 | |
| 9471 | cat >>confdefs.h <<_ACEOF |
| 9472 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9473 | _ACEOF |
| 9474 | |
| 9475 | |
| 9476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9477 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9478 | 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] | 9479 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9481 | else |
| 9482 | cat >conftest.$ac_ext <<_ACEOF |
| 9483 | /* confdefs.h. */ |
| 9484 | _ACEOF |
| 9485 | cat confdefs.h >>conftest.$ac_ext |
| 9486 | cat >>conftest.$ac_ext <<_ACEOF |
| 9487 | /* end confdefs.h. */ |
| 9488 | #include <stdio.h> |
| 9489 | int |
| 9490 | main () |
| 9491 | { |
| 9492 | |
| 9493 | #ifndef fgets_unlocked |
| 9494 | char *p = (char *) fgets_unlocked; |
| 9495 | #endif |
| 9496 | |
| 9497 | ; |
| 9498 | return 0; |
| 9499 | } |
| 9500 | _ACEOF |
| 9501 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9502 | if { (ac_try="$ac_compile" |
| 9503 | case "(($ac_try" in |
| 9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9505 | *) ac_try_echo=$ac_try;; |
| 9506 | esac |
| 9507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9508 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9509 | ac_status=$? |
| 9510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9511 | rm -f conftest.er1 |
| 9512 | cat conftest.err >&5 |
| 9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9514 | (exit $ac_status); } && { |
| 9515 | test -z "$ac_c_werror_flag" || |
| 9516 | test ! -s conftest.err |
| 9517 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9518 | ac_cv_have_decl_fgets_unlocked=yes |
| 9519 | else |
| 9520 | echo "$as_me: failed program was:" >&5 |
| 9521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9522 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9523 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9524 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9525 | |
| 9526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9527 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9528 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9529 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9530 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9531 | gt_value=1 |
| 9532 | else |
| 9533 | gt_value=0 |
| 9534 | fi |
| 9535 | |
| 9536 | cat >>confdefs.h <<_ACEOF |
| 9537 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9538 | _ACEOF |
| 9539 | |
| 9540 | |
| 9541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9542 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9543 | 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] | 9544 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9546 | else |
| 9547 | cat >conftest.$ac_ext <<_ACEOF |
| 9548 | /* confdefs.h. */ |
| 9549 | _ACEOF |
| 9550 | cat confdefs.h >>conftest.$ac_ext |
| 9551 | cat >>conftest.$ac_ext <<_ACEOF |
| 9552 | /* end confdefs.h. */ |
| 9553 | #include <stdio.h> |
| 9554 | int |
| 9555 | main () |
| 9556 | { |
| 9557 | |
| 9558 | #ifndef getc_unlocked |
| 9559 | char *p = (char *) getc_unlocked; |
| 9560 | #endif |
| 9561 | |
| 9562 | ; |
| 9563 | return 0; |
| 9564 | } |
| 9565 | _ACEOF |
| 9566 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9567 | if { (ac_try="$ac_compile" |
| 9568 | case "(($ac_try" in |
| 9569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9570 | *) ac_try_echo=$ac_try;; |
| 9571 | esac |
| 9572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9573 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9574 | ac_status=$? |
| 9575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9576 | rm -f conftest.er1 |
| 9577 | cat conftest.err >&5 |
| 9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9579 | (exit $ac_status); } && { |
| 9580 | test -z "$ac_c_werror_flag" || |
| 9581 | test ! -s conftest.err |
| 9582 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9583 | ac_cv_have_decl_getc_unlocked=yes |
| 9584 | else |
| 9585 | echo "$as_me: failed program was:" >&5 |
| 9586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9588 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9589 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9590 | |
| 9591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9593 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9594 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9595 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9596 | gt_value=1 |
| 9597 | else |
| 9598 | gt_value=0 |
| 9599 | fi |
| 9600 | |
| 9601 | cat >>confdefs.h <<_ACEOF |
| 9602 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9603 | _ACEOF |
| 9604 | |
| 9605 | |
| 9606 | |
| 9607 | case $gt_cv_func_printf_posix in |
| 9608 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9609 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9610 | esac |
| 9611 | |
| 9612 | if test "$ac_cv_func_asprintf" = yes; then |
| 9613 | HAVE_ASPRINTF=1 |
| 9614 | else |
| 9615 | HAVE_ASPRINTF=0 |
| 9616 | fi |
| 9617 | |
| 9618 | if test "$ac_cv_func_snprintf" = yes; then |
| 9619 | HAVE_SNPRINTF=1 |
| 9620 | else |
| 9621 | HAVE_SNPRINTF=0 |
| 9622 | fi |
| 9623 | |
| 9624 | if test "$ac_cv_func_wprintf" = yes; then |
| 9625 | HAVE_WPRINTF=1 |
| 9626 | else |
| 9627 | HAVE_WPRINTF=0 |
| 9628 | fi |
| 9629 | |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
| 9634 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9635 | |
| 9636 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9637 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9638 | for element in $INCICONV; do |
| 9639 | haveit= |
| 9640 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9641 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9642 | acl_save_prefix="$prefix" |
| 9643 | prefix="$acl_final_prefix" |
| 9644 | acl_save_exec_prefix="$exec_prefix" |
| 9645 | exec_prefix="$acl_final_exec_prefix" |
| 9646 | eval x=\"$x\" |
| 9647 | exec_prefix="$acl_save_exec_prefix" |
| 9648 | prefix="$acl_save_prefix" |
| 9649 | |
| 9650 | if test "X$x" = "X$element"; then |
| 9651 | haveit=yes |
| 9652 | break |
| 9653 | fi |
| 9654 | done |
| 9655 | if test -z "$haveit"; then |
| 9656 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9657 | fi |
| 9658 | done |
| 9659 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9660 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9661 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9662 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9663 | if test "${am_cv_func_iconv+set}" = set; then |
| 9664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9665 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9667 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9668 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9669 | cat >conftest.$ac_ext <<_ACEOF |
| 9670 | /* confdefs.h. */ |
| 9671 | _ACEOF |
| 9672 | cat confdefs.h >>conftest.$ac_ext |
| 9673 | cat >>conftest.$ac_ext <<_ACEOF |
| 9674 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9675 | #include <stdlib.h> |
| 9676 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9677 | int |
| 9678 | main () |
| 9679 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9680 | iconv_t cd = iconv_open("",""); |
| 9681 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9682 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9688 | if { (ac_try="$ac_link" |
| 9689 | case "(($ac_try" in |
| 9690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9691 | *) ac_try_echo=$ac_try;; |
| 9692 | esac |
| 9693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9694 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9695 | ac_status=$? |
| 9696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9697 | rm -f conftest.er1 |
| 9698 | cat conftest.err >&5 |
| 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9700 | (exit $ac_status); } && { |
| 9701 | test -z "$ac_c_werror_flag" || |
| 9702 | test ! -s conftest.err |
| 9703 | } && test -s conftest$ac_exeext && |
| 9704 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9705 | am_cv_func_iconv=yes |
| 9706 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9707 | echo "$as_me: failed program was:" >&5 |
| 9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9710 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9712 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9713 | 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] | 9714 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9715 | if test "$am_cv_func_iconv" != yes; then |
| 9716 | am_save_LIBS="$LIBS" |
| 9717 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9718 | cat >conftest.$ac_ext <<_ACEOF |
| 9719 | /* confdefs.h. */ |
| 9720 | _ACEOF |
| 9721 | cat confdefs.h >>conftest.$ac_ext |
| 9722 | cat >>conftest.$ac_ext <<_ACEOF |
| 9723 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9724 | #include <stdlib.h> |
| 9725 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9726 | int |
| 9727 | main () |
| 9728 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9729 | iconv_t cd = iconv_open("",""); |
| 9730 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9731 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9732 | ; |
| 9733 | return 0; |
| 9734 | } |
| 9735 | _ACEOF |
| 9736 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9737 | if { (ac_try="$ac_link" |
| 9738 | case "(($ac_try" in |
| 9739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9740 | *) ac_try_echo=$ac_try;; |
| 9741 | esac |
| 9742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9743 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9744 | ac_status=$? |
| 9745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9746 | rm -f conftest.er1 |
| 9747 | cat conftest.err >&5 |
| 9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9749 | (exit $ac_status); } && { |
| 9750 | test -z "$ac_c_werror_flag" || |
| 9751 | test ! -s conftest.err |
| 9752 | } && test -s conftest$ac_exeext && |
| 9753 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9754 | am_cv_lib_iconv=yes |
| 9755 | am_cv_func_iconv=yes |
| 9756 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9757 | echo "$as_me: failed program was:" >&5 |
| 9758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9759 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9760 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9761 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9762 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9763 | 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] | 9764 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9765 | LIBS="$am_save_LIBS" |
| 9766 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9767 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9768 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9769 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9770 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9771 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9772 | |
| 9773 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9774 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9775 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9776 | |
| 9777 | fi |
| 9778 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9779 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9780 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9781 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9782 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9783 | else |
| 9784 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9785 | LIBICONV= |
| 9786 | LTLIBICONV= |
| 9787 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9788 | |
| 9789 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9790 | |
| 9791 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9792 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9793 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9794 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9796 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9797 | |
| 9798 | cat >conftest.$ac_ext <<_ACEOF |
| 9799 | /* confdefs.h. */ |
| 9800 | _ACEOF |
| 9801 | cat confdefs.h >>conftest.$ac_ext |
| 9802 | cat >>conftest.$ac_ext <<_ACEOF |
| 9803 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9804 | |
| 9805 | #include <stdlib.h> |
| 9806 | #include <iconv.h> |
| 9807 | extern |
| 9808 | #ifdef __cplusplus |
| 9809 | "C" |
| 9810 | #endif |
| 9811 | #if defined(__STDC__) || defined(__cplusplus) |
| 9812 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9813 | #else |
| 9814 | size_t iconv(); |
| 9815 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9816 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9817 | int |
| 9818 | main () |
| 9819 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9820 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9821 | ; |
| 9822 | return 0; |
| 9823 | } |
| 9824 | _ACEOF |
| 9825 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9826 | if { (ac_try="$ac_compile" |
| 9827 | case "(($ac_try" in |
| 9828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9829 | *) ac_try_echo=$ac_try;; |
| 9830 | esac |
| 9831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9832 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9833 | ac_status=$? |
| 9834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9835 | rm -f conftest.er1 |
| 9836 | cat conftest.err >&5 |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9838 | (exit $ac_status); } && { |
| 9839 | test -z "$ac_c_werror_flag" || |
| 9840 | test ! -s conftest.err |
| 9841 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9842 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9843 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9844 | echo "$as_me: failed program was:" >&5 |
| 9845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9846 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9847 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9848 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9849 | |
| 9850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9851 | 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] | 9852 | fi |
| 9853 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9854 | 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] | 9855 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9856 | }$am_cv_proto_iconv" >&5 |
| 9857 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9858 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9859 | |
| 9860 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9861 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9862 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9863 | |
| 9864 | fi |
| 9865 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9867 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9868 | 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] | 9869 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9871 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9872 | cat >conftest.$ac_ext <<_ACEOF |
| 9873 | /* confdefs.h. */ |
| 9874 | _ACEOF |
| 9875 | cat confdefs.h >>conftest.$ac_ext |
| 9876 | cat >>conftest.$ac_ext <<_ACEOF |
| 9877 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9878 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9879 | int |
| 9880 | main () |
| 9881 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9882 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9883 | ; |
| 9884 | return 0; |
| 9885 | } |
| 9886 | _ACEOF |
| 9887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9888 | if { (ac_try="$ac_link" |
| 9889 | case "(($ac_try" in |
| 9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9891 | *) ac_try_echo=$ac_try;; |
| 9892 | esac |
| 9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9894 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9895 | ac_status=$? |
| 9896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9897 | rm -f conftest.er1 |
| 9898 | cat conftest.err >&5 |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9900 | (exit $ac_status); } && { |
| 9901 | test -z "$ac_c_werror_flag" || |
| 9902 | test ! -s conftest.err |
| 9903 | } && test -s conftest$ac_exeext && |
| 9904 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9905 | am_cv_langinfo_codeset=yes |
| 9906 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9907 | echo "$as_me: failed program was:" >&5 |
| 9908 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9910 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9911 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9912 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9913 | 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] | 9914 | conftest$ac_exeext conftest.$ac_ext |
| 9915 | |
| 9916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9917 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9918 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9919 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9920 | |
| 9921 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9922 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9923 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9924 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9925 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9927 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9929 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9930 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9931 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9933 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9934 | cat >conftest.$ac_ext <<_ACEOF |
| 9935 | /* confdefs.h. */ |
| 9936 | _ACEOF |
| 9937 | cat confdefs.h >>conftest.$ac_ext |
| 9938 | cat >>conftest.$ac_ext <<_ACEOF |
| 9939 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9940 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9941 | int |
| 9942 | main () |
| 9943 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9944 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9945 | ; |
| 9946 | return 0; |
| 9947 | } |
| 9948 | _ACEOF |
| 9949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9950 | if { (ac_try="$ac_link" |
| 9951 | case "(($ac_try" in |
| 9952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9953 | *) ac_try_echo=$ac_try;; |
| 9954 | esac |
| 9955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9956 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9957 | ac_status=$? |
| 9958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9959 | rm -f conftest.er1 |
| 9960 | cat conftest.err >&5 |
| 9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9962 | (exit $ac_status); } && { |
| 9963 | test -z "$ac_c_werror_flag" || |
| 9964 | test ! -s conftest.err |
| 9965 | } && test -s conftest$ac_exeext && |
| 9966 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9967 | am_cv_val_LC_MESSAGES=yes |
| 9968 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9969 | echo "$as_me: failed program was:" >&5 |
| 9970 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9972 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9973 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9974 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9975 | 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] | 9976 | conftest$ac_exeext conftest.$ac_ext |
| 9977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9978 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9979 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9980 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9981 | |
| 9982 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9983 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9984 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9985 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9986 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9987 | |
| 9988 | fi |
| 9989 | |
| 9990 | for ac_prog in bison |
| 9991 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9992 | # 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] | 9993 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9994 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9996 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9998 | else |
| 9999 | if test -n "$INTLBISON"; then |
| 10000 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10001 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10003 | for as_dir in $PATH |
| 10004 | do |
| 10005 | IFS=$as_save_IFS |
| 10006 | test -z "$as_dir" && as_dir=. |
| 10007 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10008 | 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] | 10009 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10011 | break 2 |
| 10012 | fi |
| 10013 | done |
| 10014 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10015 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10017 | fi |
| 10018 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10019 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10020 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10021 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10022 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10023 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10024 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10025 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10026 | fi |
| 10027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10028 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10029 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10030 | done |
| 10031 | |
| 10032 | if test -z "$INTLBISON"; then |
| 10033 | ac_verc_fail=yes |
| 10034 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10035 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10036 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10037 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10038 | case $ac_prog_version in |
| 10039 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10040 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10041 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10042 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10043 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10044 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10045 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10046 | fi |
| 10047 | if test $ac_verc_fail = yes; then |
| 10048 | INTLBISON=: |
| 10049 | fi |
| 10050 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10051 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10052 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10053 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10054 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10055 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10066 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10067 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10068 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10069 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10070 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10071 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10072 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10073 | fi |
| 10074 | |
| 10075 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10076 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10077 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10078 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10079 | |
| 10080 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10081 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10082 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10083 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10084 | LIBINTL= |
| 10085 | LTLIBINTL= |
| 10086 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10087 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10088 | if test "$USE_NLS" = "yes"; then |
| 10089 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10091 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10092 | 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] | 10093 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10094 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10095 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10096 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10097 | else |
| 10098 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10099 | fi |
| 10100 | |
| 10101 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10102 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10103 | |
| 10104 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10105 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10112 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10113 | 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] | 10114 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10116 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10117 | cat >conftest.$ac_ext <<_ACEOF |
| 10118 | /* confdefs.h. */ |
| 10119 | _ACEOF |
| 10120 | cat confdefs.h >>conftest.$ac_ext |
| 10121 | cat >>conftest.$ac_ext <<_ACEOF |
| 10122 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10123 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10124 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10125 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | int |
| 10127 | main () |
| 10128 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10129 | bindtextdomain ("", ""); |
| 10130 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10131 | ; |
| 10132 | return 0; |
| 10133 | } |
| 10134 | _ACEOF |
| 10135 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10136 | if { (ac_try="$ac_link" |
| 10137 | case "(($ac_try" in |
| 10138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10139 | *) ac_try_echo=$ac_try;; |
| 10140 | esac |
| 10141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10142 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10143 | ac_status=$? |
| 10144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10145 | rm -f conftest.er1 |
| 10146 | cat conftest.err >&5 |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10148 | (exit $ac_status); } && { |
| 10149 | test -z "$ac_c_werror_flag" || |
| 10150 | test ! -s conftest.err |
| 10151 | } && test -s conftest$ac_exeext && |
| 10152 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10153 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10154 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10155 | echo "$as_me: failed program was:" >&5 |
| 10156 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10158 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10159 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10160 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10161 | 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] | 10162 | conftest$ac_exeext conftest.$ac_ext |
| 10163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10164 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10165 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10166 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10167 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10168 | |
| 10169 | |
| 10170 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10171 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10172 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10173 | acl_save_prefix="$prefix" |
| 10174 | prefix="$acl_final_prefix" |
| 10175 | acl_save_exec_prefix="$exec_prefix" |
| 10176 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10177 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10178 | eval additional_includedir=\"$includedir\" |
| 10179 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10180 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10181 | exec_prefix="$acl_save_exec_prefix" |
| 10182 | prefix="$acl_save_prefix" |
| 10183 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10185 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10186 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10187 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10188 | if test "X$withval" = "Xno"; then |
| 10189 | use_additional=no |
| 10190 | else |
| 10191 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10192 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10193 | acl_save_prefix="$prefix" |
| 10194 | prefix="$acl_final_prefix" |
| 10195 | acl_save_exec_prefix="$exec_prefix" |
| 10196 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10197 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10198 | eval additional_includedir=\"$includedir\" |
| 10199 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10200 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10201 | exec_prefix="$acl_save_exec_prefix" |
| 10202 | prefix="$acl_save_prefix" |
| 10203 | |
| 10204 | else |
| 10205 | additional_includedir="$withval/include" |
| 10206 | additional_libdir="$withval/lib" |
| 10207 | fi |
| 10208 | fi |
| 10209 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10210 | fi |
| 10211 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10212 | LIBINTL= |
| 10213 | LTLIBINTL= |
| 10214 | INCINTL= |
| 10215 | rpathdirs= |
| 10216 | ltrpathdirs= |
| 10217 | names_already_handled= |
| 10218 | names_next_round='intl ' |
| 10219 | while test -n "$names_next_round"; do |
| 10220 | names_this_round="$names_next_round" |
| 10221 | names_next_round= |
| 10222 | for name in $names_this_round; do |
| 10223 | already_handled= |
| 10224 | for n in $names_already_handled; do |
| 10225 | if test "$n" = "$name"; then |
| 10226 | already_handled=yes |
| 10227 | break |
| 10228 | fi |
| 10229 | done |
| 10230 | if test -z "$already_handled"; then |
| 10231 | names_already_handled="$names_already_handled $name" |
| 10232 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10233 | eval value=\"\$HAVE_LIB$uppername\" |
| 10234 | if test -n "$value"; then |
| 10235 | if test "$value" = yes; then |
| 10236 | eval value=\"\$LIB$uppername\" |
| 10237 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10238 | eval value=\"\$LTLIB$uppername\" |
| 10239 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10240 | else |
| 10241 | : |
| 10242 | fi |
| 10243 | else |
| 10244 | found_dir= |
| 10245 | found_la= |
| 10246 | found_so= |
| 10247 | found_a= |
| 10248 | if test $use_additional = yes; then |
| 10249 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10250 | found_dir="$additional_libdir" |
| 10251 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10252 | if test -f "$additional_libdir/lib$name.la"; then |
| 10253 | found_la="$additional_libdir/lib$name.la" |
| 10254 | fi |
| 10255 | else |
| 10256 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10257 | found_dir="$additional_libdir" |
| 10258 | found_a="$additional_libdir/lib$name.$libext" |
| 10259 | if test -f "$additional_libdir/lib$name.la"; then |
| 10260 | found_la="$additional_libdir/lib$name.la" |
| 10261 | fi |
| 10262 | fi |
| 10263 | fi |
| 10264 | fi |
| 10265 | if test "X$found_dir" = "X"; then |
| 10266 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10267 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10268 | acl_save_prefix="$prefix" |
| 10269 | prefix="$acl_final_prefix" |
| 10270 | acl_save_exec_prefix="$exec_prefix" |
| 10271 | exec_prefix="$acl_final_exec_prefix" |
| 10272 | eval x=\"$x\" |
| 10273 | exec_prefix="$acl_save_exec_prefix" |
| 10274 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10275 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10276 | case "$x" in |
| 10277 | -L*) |
| 10278 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10279 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10280 | found_dir="$dir" |
| 10281 | found_so="$dir/lib$name.$shlibext" |
| 10282 | if test -f "$dir/lib$name.la"; then |
| 10283 | found_la="$dir/lib$name.la" |
| 10284 | fi |
| 10285 | else |
| 10286 | if test -f "$dir/lib$name.$libext"; then |
| 10287 | found_dir="$dir" |
| 10288 | found_a="$dir/lib$name.$libext" |
| 10289 | if test -f "$dir/lib$name.la"; then |
| 10290 | found_la="$dir/lib$name.la" |
| 10291 | fi |
| 10292 | fi |
| 10293 | fi |
| 10294 | ;; |
| 10295 | esac |
| 10296 | if test "X$found_dir" != "X"; then |
| 10297 | break |
| 10298 | fi |
| 10299 | done |
| 10300 | fi |
| 10301 | if test "X$found_dir" != "X"; then |
| 10302 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10303 | if test "X$found_so" != "X"; then |
| 10304 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10305 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10306 | else |
| 10307 | haveit= |
| 10308 | for x in $ltrpathdirs; do |
| 10309 | if test "X$x" = "X$found_dir"; then |
| 10310 | haveit=yes |
| 10311 | break |
| 10312 | fi |
| 10313 | done |
| 10314 | if test -z "$haveit"; then |
| 10315 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10316 | fi |
| 10317 | if test "$hardcode_direct" = yes; then |
| 10318 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10319 | else |
| 10320 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10321 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10322 | haveit= |
| 10323 | for x in $rpathdirs; do |
| 10324 | if test "X$x" = "X$found_dir"; then |
| 10325 | haveit=yes |
| 10326 | break |
| 10327 | fi |
| 10328 | done |
| 10329 | if test -z "$haveit"; then |
| 10330 | rpathdirs="$rpathdirs $found_dir" |
| 10331 | fi |
| 10332 | else |
| 10333 | haveit= |
| 10334 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10335 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10336 | acl_save_prefix="$prefix" |
| 10337 | prefix="$acl_final_prefix" |
| 10338 | acl_save_exec_prefix="$exec_prefix" |
| 10339 | exec_prefix="$acl_final_exec_prefix" |
| 10340 | eval x=\"$x\" |
| 10341 | exec_prefix="$acl_save_exec_prefix" |
| 10342 | prefix="$acl_save_prefix" |
| 10343 | |
| 10344 | if test "X$x" = "X-L$found_dir"; then |
| 10345 | haveit=yes |
| 10346 | break |
| 10347 | fi |
| 10348 | done |
| 10349 | if test -z "$haveit"; then |
| 10350 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10351 | fi |
| 10352 | if test "$hardcode_minus_L" != no; then |
| 10353 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10354 | else |
| 10355 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10356 | fi |
| 10357 | fi |
| 10358 | fi |
| 10359 | fi |
| 10360 | else |
| 10361 | if test "X$found_a" != "X"; then |
| 10362 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10363 | else |
| 10364 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10365 | fi |
| 10366 | fi |
| 10367 | additional_includedir= |
| 10368 | case "$found_dir" in |
| 10369 | */lib | */lib/) |
| 10370 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10371 | additional_includedir="$basedir/include" |
| 10372 | ;; |
| 10373 | esac |
| 10374 | if test "X$additional_includedir" != "X"; then |
| 10375 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10376 | haveit= |
| 10377 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10378 | if test -n "$GCC"; then |
| 10379 | case $host_os in |
| 10380 | linux*) haveit=yes;; |
| 10381 | esac |
| 10382 | fi |
| 10383 | fi |
| 10384 | if test -z "$haveit"; then |
| 10385 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10386 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10387 | acl_save_prefix="$prefix" |
| 10388 | prefix="$acl_final_prefix" |
| 10389 | acl_save_exec_prefix="$exec_prefix" |
| 10390 | exec_prefix="$acl_final_exec_prefix" |
| 10391 | eval x=\"$x\" |
| 10392 | exec_prefix="$acl_save_exec_prefix" |
| 10393 | prefix="$acl_save_prefix" |
| 10394 | |
| 10395 | if test "X$x" = "X-I$additional_includedir"; then |
| 10396 | haveit=yes |
| 10397 | break |
| 10398 | fi |
| 10399 | done |
| 10400 | if test -z "$haveit"; then |
| 10401 | if test -d "$additional_includedir"; then |
| 10402 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10403 | fi |
| 10404 | fi |
| 10405 | fi |
| 10406 | fi |
| 10407 | fi |
| 10408 | if test -n "$found_la"; then |
| 10409 | save_libdir="$libdir" |
| 10410 | case "$found_la" in |
| 10411 | */* | *\\*) . "$found_la" ;; |
| 10412 | *) . "./$found_la" ;; |
| 10413 | esac |
| 10414 | libdir="$save_libdir" |
| 10415 | for dep in $dependency_libs; do |
| 10416 | case "$dep" in |
| 10417 | -L*) |
| 10418 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10419 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10420 | haveit= |
| 10421 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10422 | if test -n "$GCC"; then |
| 10423 | case $host_os in |
| 10424 | linux*) haveit=yes;; |
| 10425 | esac |
| 10426 | fi |
| 10427 | fi |
| 10428 | if test -z "$haveit"; then |
| 10429 | haveit= |
| 10430 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10431 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10432 | acl_save_prefix="$prefix" |
| 10433 | prefix="$acl_final_prefix" |
| 10434 | acl_save_exec_prefix="$exec_prefix" |
| 10435 | exec_prefix="$acl_final_exec_prefix" |
| 10436 | eval x=\"$x\" |
| 10437 | exec_prefix="$acl_save_exec_prefix" |
| 10438 | prefix="$acl_save_prefix" |
| 10439 | |
| 10440 | if test "X$x" = "X-L$additional_libdir"; then |
| 10441 | haveit=yes |
| 10442 | break |
| 10443 | fi |
| 10444 | done |
| 10445 | if test -z "$haveit"; then |
| 10446 | if test -d "$additional_libdir"; then |
| 10447 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10448 | fi |
| 10449 | fi |
| 10450 | haveit= |
| 10451 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10452 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10453 | acl_save_prefix="$prefix" |
| 10454 | prefix="$acl_final_prefix" |
| 10455 | acl_save_exec_prefix="$exec_prefix" |
| 10456 | exec_prefix="$acl_final_exec_prefix" |
| 10457 | eval x=\"$x\" |
| 10458 | exec_prefix="$acl_save_exec_prefix" |
| 10459 | prefix="$acl_save_prefix" |
| 10460 | |
| 10461 | if test "X$x" = "X-L$additional_libdir"; then |
| 10462 | haveit=yes |
| 10463 | break |
| 10464 | fi |
| 10465 | done |
| 10466 | if test -z "$haveit"; then |
| 10467 | if test -d "$additional_libdir"; then |
| 10468 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10469 | fi |
| 10470 | fi |
| 10471 | fi |
| 10472 | fi |
| 10473 | ;; |
| 10474 | -R*) |
| 10475 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10476 | if test "$enable_rpath" != no; then |
| 10477 | haveit= |
| 10478 | for x in $rpathdirs; do |
| 10479 | if test "X$x" = "X$dir"; then |
| 10480 | haveit=yes |
| 10481 | break |
| 10482 | fi |
| 10483 | done |
| 10484 | if test -z "$haveit"; then |
| 10485 | rpathdirs="$rpathdirs $dir" |
| 10486 | fi |
| 10487 | haveit= |
| 10488 | for x in $ltrpathdirs; do |
| 10489 | if test "X$x" = "X$dir"; then |
| 10490 | haveit=yes |
| 10491 | break |
| 10492 | fi |
| 10493 | done |
| 10494 | if test -z "$haveit"; then |
| 10495 | ltrpathdirs="$ltrpathdirs $dir" |
| 10496 | fi |
| 10497 | fi |
| 10498 | ;; |
| 10499 | -l*) |
| 10500 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10501 | ;; |
| 10502 | *.la) |
| 10503 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10504 | ;; |
| 10505 | *) |
| 10506 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10507 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10508 | ;; |
| 10509 | esac |
| 10510 | done |
| 10511 | fi |
| 10512 | else |
| 10513 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10514 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10515 | fi |
| 10516 | fi |
| 10517 | fi |
| 10518 | done |
| 10519 | done |
| 10520 | if test "X$rpathdirs" != "X"; then |
| 10521 | if test -n "$hardcode_libdir_separator"; then |
| 10522 | alldirs= |
| 10523 | for found_dir in $rpathdirs; do |
| 10524 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10525 | done |
| 10526 | acl_save_libdir="$libdir" |
| 10527 | libdir="$alldirs" |
| 10528 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10529 | libdir="$acl_save_libdir" |
| 10530 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10531 | else |
| 10532 | for found_dir in $rpathdirs; do |
| 10533 | acl_save_libdir="$libdir" |
| 10534 | libdir="$found_dir" |
| 10535 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10536 | libdir="$acl_save_libdir" |
| 10537 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10538 | done |
| 10539 | fi |
| 10540 | fi |
| 10541 | if test "X$ltrpathdirs" != "X"; then |
| 10542 | for found_dir in $ltrpathdirs; do |
| 10543 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10544 | done |
| 10545 | fi |
| 10546 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10547 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10548 | 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] | 10549 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10551 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10552 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10553 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10554 | gt_save_LIBS="$LIBS" |
| 10555 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10556 | cat >conftest.$ac_ext <<_ACEOF |
| 10557 | /* confdefs.h. */ |
| 10558 | _ACEOF |
| 10559 | cat confdefs.h >>conftest.$ac_ext |
| 10560 | cat >>conftest.$ac_ext <<_ACEOF |
| 10561 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10562 | #include <libintl.h> |
| 10563 | extern int _nl_msg_cat_cntr; |
| 10564 | extern |
| 10565 | #ifdef __cplusplus |
| 10566 | "C" |
| 10567 | #endif |
| 10568 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10569 | int |
| 10570 | main () |
| 10571 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10572 | bindtextdomain ("", ""); |
| 10573 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10574 | ; |
| 10575 | return 0; |
| 10576 | } |
| 10577 | _ACEOF |
| 10578 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10579 | if { (ac_try="$ac_link" |
| 10580 | case "(($ac_try" in |
| 10581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10582 | *) ac_try_echo=$ac_try;; |
| 10583 | esac |
| 10584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10585 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10586 | ac_status=$? |
| 10587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10588 | rm -f conftest.er1 |
| 10589 | cat conftest.err >&5 |
| 10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10591 | (exit $ac_status); } && { |
| 10592 | test -z "$ac_c_werror_flag" || |
| 10593 | test ! -s conftest.err |
| 10594 | } && test -s conftest$ac_exeext && |
| 10595 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10596 | gt_cv_func_gnugettext1_libintl=yes |
| 10597 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10598 | echo "$as_me: failed program was:" >&5 |
| 10599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10601 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10603 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10604 | 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] | 10605 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10606 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10607 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10608 | cat >conftest.$ac_ext <<_ACEOF |
| 10609 | /* confdefs.h. */ |
| 10610 | _ACEOF |
| 10611 | cat confdefs.h >>conftest.$ac_ext |
| 10612 | cat >>conftest.$ac_ext <<_ACEOF |
| 10613 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10614 | #include <libintl.h> |
| 10615 | extern int _nl_msg_cat_cntr; |
| 10616 | extern |
| 10617 | #ifdef __cplusplus |
| 10618 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10619 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10620 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10621 | int |
| 10622 | main () |
| 10623 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10624 | bindtextdomain ("", ""); |
| 10625 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10626 | ; |
| 10627 | return 0; |
| 10628 | } |
| 10629 | _ACEOF |
| 10630 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10631 | if { (ac_try="$ac_link" |
| 10632 | case "(($ac_try" in |
| 10633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10634 | *) ac_try_echo=$ac_try;; |
| 10635 | esac |
| 10636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10637 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10638 | ac_status=$? |
| 10639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10640 | rm -f conftest.er1 |
| 10641 | cat conftest.err >&5 |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10643 | (exit $ac_status); } && { |
| 10644 | test -z "$ac_c_werror_flag" || |
| 10645 | test ! -s conftest.err |
| 10646 | } && test -s conftest$ac_exeext && |
| 10647 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10648 | LIBINTL="$LIBINTL $LIBICONV" |
| 10649 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10650 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10651 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10652 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | echo "$as_me: failed program was:" >&5 |
| 10654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10655 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10656 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10657 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10658 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10659 | 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] | 10660 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10661 | fi |
| 10662 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10663 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10665 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10666 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10667 | fi |
| 10668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10669 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10670 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10671 | && test "$PACKAGE" != gettext-runtime \ |
| 10672 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10673 | gt_use_preinstalled_gnugettext=yes |
| 10674 | else |
| 10675 | LIBINTL= |
| 10676 | LTLIBINTL= |
| 10677 | INCINTL= |
| 10678 | fi |
| 10679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10681 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10682 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10683 | fi |
| 10684 | fi |
| 10685 | |
| 10686 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10687 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10688 | USE_INCLUDED_LIBINTL=yes |
| 10689 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10690 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10691 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10692 | fi |
| 10693 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10694 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10695 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10696 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10697 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10698 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10699 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10700 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10701 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10702 | |
| 10703 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10704 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10705 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10706 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10707 | else |
| 10708 | USE_NLS=no |
| 10709 | fi |
| 10710 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10712 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10713 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10714 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10715 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10716 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10717 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10718 | 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] | 10719 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10720 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10721 | gt_source="external libintl" |
| 10722 | else |
| 10723 | gt_source="libc" |
| 10724 | fi |
| 10725 | else |
| 10726 | gt_source="included intl directory" |
| 10727 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10728 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10729 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | fi |
| 10731 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10732 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10733 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10734 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10735 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10736 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10737 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10738 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10739 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10740 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10741 | for element in $INCINTL; do |
| 10742 | haveit= |
| 10743 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10744 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10745 | acl_save_prefix="$prefix" |
| 10746 | prefix="$acl_final_prefix" |
| 10747 | acl_save_exec_prefix="$exec_prefix" |
| 10748 | exec_prefix="$acl_final_exec_prefix" |
| 10749 | eval x=\"$x\" |
| 10750 | exec_prefix="$acl_save_exec_prefix" |
| 10751 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10752 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10753 | if test "X$x" = "X$element"; then |
| 10754 | haveit=yes |
| 10755 | break |
| 10756 | fi |
| 10757 | done |
| 10758 | if test -z "$haveit"; then |
| 10759 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10760 | fi |
| 10761 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10762 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10763 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10764 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10766 | cat >>confdefs.h <<\_ACEOF |
| 10767 | #define HAVE_GETTEXT 1 |
| 10768 | _ACEOF |
| 10769 | |
| 10770 | |
| 10771 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10772 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10773 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10774 | |
| 10775 | fi |
| 10776 | |
| 10777 | POSUB=po |
| 10778 | fi |
| 10779 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10780 | |
| 10781 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10782 | BUILD_INCLUDED_LIBINTL=yes |
| 10783 | fi |
| 10784 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10785 | |
| 10786 | |
| 10787 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10788 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10789 | nls_cv_header_intl= |
| 10790 | nls_cv_header_libgt= |
| 10791 | |
| 10792 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10793 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10794 | |
| 10795 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10796 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10797 | |
| 10798 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10799 | |
| 10800 | |
| 10801 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10802 | INTLOBJS="\$(GETTOBJS)" |
| 10803 | fi |
| 10804 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10805 | |
| 10806 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10807 | |
| 10808 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10809 | |
| 10810 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10811 | |
| 10812 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10818 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10819 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10820 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10821 | 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] | 10822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10823 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10824 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10825 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10826 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10827 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10828 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10829 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10830 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10831 | *@@@%%%=?*=@@@%%%*) |
| 10832 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10833 | *) |
| 10834 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10835 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10836 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10837 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10838 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10839 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10840 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10841 | SET_MAKE= |
| 10842 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10843 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10844 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10845 | SET_MAKE="MAKE=${MAKE-make}" |
| 10846 | fi |
| 10847 | |
| 10848 | # Extract the first word of "ln", so it can be a program name with args. |
| 10849 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10852 | if test "${ac_cv_path_LN+set}" = set; then |
| 10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10854 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10855 | case $LN in |
| 10856 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10857 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10858 | ;; |
| 10859 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10861 | for as_dir in $PATH |
| 10862 | do |
| 10863 | IFS=$as_save_IFS |
| 10864 | test -z "$as_dir" && as_dir=. |
| 10865 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10866 | 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] | 10867 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10869 | break 2 |
| 10870 | fi |
| 10871 | done |
| 10872 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10873 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10874 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10875 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10876 | ;; |
| 10877 | esac |
| 10878 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10879 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10880 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10881 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10882 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10883 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10884 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10885 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10886 | fi |
| 10887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10888 | |
| 10889 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10890 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10891 | LN_S=$as_ln_s |
| 10892 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10893 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10894 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10895 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10896 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10897 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10898 | fi |
| 10899 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10900 | # Extract the first word of "mv", so it can be a program name with args. |
| 10901 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10904 | if test "${ac_cv_path_MV+set}" = set; then |
| 10905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10906 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10907 | case $MV in |
| 10908 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10909 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10910 | ;; |
| 10911 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10913 | for as_dir in $PATH |
| 10914 | do |
| 10915 | IFS=$as_save_IFS |
| 10916 | test -z "$as_dir" && as_dir=. |
| 10917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10918 | 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] | 10919 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10921 | break 2 |
| 10922 | fi |
| 10923 | done |
| 10924 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10925 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10927 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10928 | ;; |
| 10929 | esac |
| 10930 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10931 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10932 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10933 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10934 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10935 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10937 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10938 | fi |
| 10939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10940 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10941 | # Extract the first word of "cp", so it can be a program name with args. |
| 10942 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10943 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10945 | if test "${ac_cv_path_CP+set}" = set; then |
| 10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10947 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10948 | case $CP in |
| 10949 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10950 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10951 | ;; |
| 10952 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10954 | for as_dir in $PATH |
| 10955 | do |
| 10956 | IFS=$as_save_IFS |
| 10957 | test -z "$as_dir" && as_dir=. |
| 10958 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10959 | 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] | 10960 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10962 | break 2 |
| 10963 | fi |
| 10964 | done |
| 10965 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10966 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10967 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10968 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10969 | ;; |
| 10970 | esac |
| 10971 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10972 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10973 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10974 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10975 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10976 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10978 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10979 | fi |
| 10980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10981 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10982 | # Extract the first word of "rm", so it can be a program name with args. |
| 10983 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10986 | if test "${ac_cv_path_RM+set}" = set; then |
| 10987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10988 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10989 | case $RM in |
| 10990 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10991 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10992 | ;; |
| 10993 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10995 | for as_dir in $PATH |
| 10996 | do |
| 10997 | IFS=$as_save_IFS |
| 10998 | test -z "$as_dir" && as_dir=. |
| 10999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11000 | 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] | 11001 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11003 | break 2 |
| 11004 | fi |
| 11005 | done |
| 11006 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11007 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11008 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11009 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11010 | ;; |
| 11011 | esac |
| 11012 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11013 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11014 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11015 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11016 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11017 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11019 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11020 | fi |
| 11021 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11022 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11023 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11024 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11027 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11029 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11030 | case $CHMOD in |
| 11031 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11032 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11033 | ;; |
| 11034 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11036 | for as_dir in $PATH |
| 11037 | do |
| 11038 | IFS=$as_save_IFS |
| 11039 | test -z "$as_dir" && as_dir=. |
| 11040 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11041 | 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] | 11042 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11044 | break 2 |
| 11045 | fi |
| 11046 | done |
| 11047 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11048 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11049 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11050 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11051 | ;; |
| 11052 | esac |
| 11053 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11054 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11055 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11056 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11057 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11058 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11059 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11060 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11061 | fi |
| 11062 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11063 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11064 | for ac_prog in gawk mawk nawk awk |
| 11065 | do |
| 11066 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11067 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11068 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11070 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11072 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11073 | if test -n "$AWK"; then |
| 11074 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11075 | else |
| 11076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11077 | for as_dir in $PATH |
| 11078 | do |
| 11079 | IFS=$as_save_IFS |
| 11080 | test -z "$as_dir" && as_dir=. |
| 11081 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11082 | 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] | 11083 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11085 | break 2 |
| 11086 | fi |
| 11087 | done |
| 11088 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11089 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11090 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11091 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11092 | fi |
| 11093 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11094 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11095 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11096 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +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 | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11100 | fi |
| 11101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11102 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11103 | test -n "$AWK" && break |
| 11104 | done |
| 11105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11107 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11108 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11110 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11111 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11112 | then ac_cv_path_EGREP="$GREP -E" |
| 11113 | else |
| 11114 | # Extract the first word of "egrep" to use in msg output |
| 11115 | if test -z "$EGREP"; then |
| 11116 | set dummy egrep; ac_prog_name=$2 |
| 11117 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11119 | else |
| 11120 | ac_path_EGREP_found=false |
| 11121 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11123 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11124 | do |
| 11125 | IFS=$as_save_IFS |
| 11126 | test -z "$as_dir" && as_dir=. |
| 11127 | for ac_prog in egrep; do |
| 11128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11129 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11130 | { 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] | 11131 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11132 | # Check for GNU $ac_path_EGREP |
| 11133 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11134 | *GNU*) |
| 11135 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11136 | *) |
| 11137 | ac_count=0 |
| 11138 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11139 | while : |
| 11140 | do |
| 11141 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11142 | mv "conftest.tmp" "conftest.in" |
| 11143 | cp "conftest.in" "conftest.nl" |
| 11144 | echo 'EGREP' >> "conftest.nl" |
| 11145 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11146 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11147 | ac_count=`expr $ac_count + 1` |
| 11148 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11149 | # Best one so far, save it but keep looking for a better one |
| 11150 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11151 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11153 | # 10*(2^10) chars as input seems more than enough |
| 11154 | test $ac_count -gt 10 && break |
| 11155 | done |
| 11156 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11157 | esac |
| 11158 | |
| 11159 | |
| 11160 | $ac_path_EGREP_found && break 3 |
| 11161 | done |
| 11162 | done |
| 11163 | |
| 11164 | done |
| 11165 | IFS=$as_save_IFS |
| 11166 | |
| 11167 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11168 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11169 | |
| 11170 | EGREP="$ac_cv_path_EGREP" |
| 11171 | if test -z "$EGREP"; then |
| 11172 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11173 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11174 | { (exit 1); exit 1; }; } |
| 11175 | fi |
| 11176 | |
| 11177 | else |
| 11178 | ac_cv_path_EGREP=$EGREP |
| 11179 | fi |
| 11180 | |
| 11181 | |
| 11182 | fi |
| 11183 | fi |
| 11184 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11185 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11186 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11187 | |
| 11188 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11189 | # Extract the first word of "sed", so it can be a program name with args. |
| 11190 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11193 | if test "${ac_cv_path_SED+set}" = set; then |
| 11194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11195 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11196 | case $SED in |
| 11197 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11198 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11199 | ;; |
| 11200 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11202 | for as_dir in $PATH |
| 11203 | do |
| 11204 | IFS=$as_save_IFS |
| 11205 | test -z "$as_dir" && as_dir=. |
| 11206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11207 | 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] | 11208 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11210 | break 2 |
| 11211 | fi |
| 11212 | done |
| 11213 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11214 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11215 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11216 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11217 | ;; |
| 11218 | esac |
| 11219 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11220 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11221 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11222 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11223 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11224 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11226 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11227 | fi |
| 11228 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11229 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11230 | # Extract the first word of "perl", so it can be a program name with args. |
| 11231 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11234 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11236 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | case $PERL in |
| 11238 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11239 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11240 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11241 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11243 | for as_dir in $PATH |
| 11244 | do |
| 11245 | IFS=$as_save_IFS |
| 11246 | test -z "$as_dir" && as_dir=. |
| 11247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11248 | 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] | 11249 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11251 | break 2 |
| 11252 | fi |
| 11253 | done |
| 11254 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11255 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11256 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11257 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11258 | ;; |
| 11259 | esac |
| 11260 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11261 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11262 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11263 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11264 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11265 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11266 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11267 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11268 | fi |
| 11269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11270 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11271 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11272 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11275 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11277 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11278 | case $LDCONFIG in |
| 11279 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11280 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11281 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11282 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11284 | for as_dir in $PATH |
| 11285 | do |
| 11286 | IFS=$as_save_IFS |
| 11287 | test -z "$as_dir" && as_dir=. |
| 11288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11290 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11292 | break 2 |
| 11293 | fi |
| 11294 | done |
| 11295 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11296 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11297 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11298 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11299 | ;; |
| 11300 | esac |
| 11301 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11302 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11303 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11304 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11305 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11306 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11307 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11308 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11309 | fi |
| 11310 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11312 | if test -n "$ac_tool_prefix"; then |
| 11313 | # 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] | 11314 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11315 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11317 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11319 | else |
| 11320 | if test -n "$AR"; then |
| 11321 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11322 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11324 | for as_dir in $PATH |
| 11325 | do |
| 11326 | IFS=$as_save_IFS |
| 11327 | test -z "$as_dir" && as_dir=. |
| 11328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11329 | 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] | 11330 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11332 | break 2 |
| 11333 | fi |
| 11334 | done |
| 11335 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11336 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11337 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11338 | fi |
| 11339 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11340 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11341 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11342 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11343 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11344 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11346 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11347 | fi |
| 11348 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11349 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11350 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11351 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11352 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11353 | # Extract the first word of "ar", so it can be a program name with args. |
| 11354 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11355 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11359 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11360 | if test -n "$ac_ct_AR"; then |
| 11361 | 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] | 11362 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11364 | for as_dir in $PATH |
| 11365 | do |
| 11366 | IFS=$as_save_IFS |
| 11367 | test -z "$as_dir" && as_dir=. |
| 11368 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11369 | 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] | 11370 | ac_cv_prog_ac_ct_AR="ar" |
| 11371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11372 | break 2 |
| 11373 | fi |
| 11374 | done |
| 11375 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11376 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11377 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11378 | fi |
| 11379 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11380 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11381 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11382 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11383 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11384 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11385 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11386 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11387 | fi |
| 11388 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11389 | if test "x$ac_ct_AR" = x; then |
| 11390 | AR="ar" |
| 11391 | else |
| 11392 | case $cross_compiling:$ac_tool_warned in |
| 11393 | yes:) |
| 11394 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11395 | whose name does not start with the host triplet. If you think this |
| 11396 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11397 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11398 | whose name does not start with the host triplet. If you think this |
| 11399 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11400 | ac_tool_warned=yes ;; |
| 11401 | esac |
| 11402 | AR=$ac_ct_AR |
| 11403 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11404 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11405 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11406 | fi |
| 11407 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11408 | if test -n "$ac_tool_prefix"; then |
| 11409 | # 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] | 11410 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11411 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11413 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11415 | else |
| 11416 | if test -n "$RANLIB"; then |
| 11417 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11418 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11420 | for as_dir in $PATH |
| 11421 | do |
| 11422 | IFS=$as_save_IFS |
| 11423 | test -z "$as_dir" && as_dir=. |
| 11424 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11425 | 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] | 11426 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11428 | break 2 |
| 11429 | fi |
| 11430 | done |
| 11431 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11432 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11434 | fi |
| 11435 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11436 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11437 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11438 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11439 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11440 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11442 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11443 | fi |
| 11444 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11445 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11446 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11447 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11448 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11449 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11450 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11451 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11453 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11455 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11456 | if test -n "$ac_ct_RANLIB"; then |
| 11457 | 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] | 11458 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11460 | for as_dir in $PATH |
| 11461 | do |
| 11462 | IFS=$as_save_IFS |
| 11463 | test -z "$as_dir" && as_dir=. |
| 11464 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11465 | 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] | 11466 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11468 | break 2 |
| 11469 | fi |
| 11470 | done |
| 11471 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11472 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11473 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11474 | fi |
| 11475 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11476 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11477 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11478 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11479 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11480 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11481 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11482 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11483 | fi |
| 11484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11485 | if test "x$ac_ct_RANLIB" = x; then |
| 11486 | RANLIB=":" |
| 11487 | else |
| 11488 | case $cross_compiling:$ac_tool_warned in |
| 11489 | yes:) |
| 11490 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11491 | whose name does not start with the host triplet. If you think this |
| 11492 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11493 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11494 | whose name does not start with the host triplet. If you think this |
| 11495 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11496 | ac_tool_warned=yes ;; |
| 11497 | esac |
| 11498 | RANLIB=$ac_ct_RANLIB |
| 11499 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11500 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11501 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11502 | fi |
| 11503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11504 | if test -n "$ac_tool_prefix"; then |
| 11505 | # 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] | 11506 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11507 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11509 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11511 | else |
| 11512 | if test -n "$STRIP"; then |
| 11513 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11514 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11516 | for as_dir in $PATH |
| 11517 | do |
| 11518 | IFS=$as_save_IFS |
| 11519 | test -z "$as_dir" && as_dir=. |
| 11520 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11521 | 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] | 11522 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11524 | break 2 |
| 11525 | fi |
| 11526 | done |
| 11527 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11528 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11529 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11530 | fi |
| 11531 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11532 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11533 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11534 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11535 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11536 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11538 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11539 | fi |
| 11540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11541 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11542 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11543 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11544 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11545 | # Extract the first word of "strip", so it can be a program name with args. |
| 11546 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11547 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | if test -n "$ac_ct_STRIP"; then |
| 11553 | 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] | 11554 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11556 | for as_dir in $PATH |
| 11557 | do |
| 11558 | IFS=$as_save_IFS |
| 11559 | test -z "$as_dir" && as_dir=. |
| 11560 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11561 | 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] | 11562 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11564 | break 2 |
| 11565 | fi |
| 11566 | done |
| 11567 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11568 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11569 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11570 | fi |
| 11571 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11572 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11573 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11574 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11575 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11576 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11578 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11579 | fi |
| 11580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11581 | if test "x$ac_ct_STRIP" = x; then |
| 11582 | STRIP=":" |
| 11583 | else |
| 11584 | case $cross_compiling:$ac_tool_warned in |
| 11585 | yes:) |
| 11586 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11587 | whose name does not start with the host triplet. If you think this |
| 11588 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11589 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11590 | whose name does not start with the host triplet. If you think this |
| 11591 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11592 | ac_tool_warned=yes ;; |
| 11593 | esac |
| 11594 | STRIP=$ac_ct_STRIP |
| 11595 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11596 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11597 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11598 | fi |
| 11599 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 11600 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 11601 | set dummy makeinfo; ac_word=$2 |
| 11602 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11604 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
| 11605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11606 | else |
| 11607 | if test -n "$MAKEINFO"; then |
| 11608 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 11609 | else |
| 11610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11611 | for as_dir in $PATH |
| 11612 | do |
| 11613 | IFS=$as_save_IFS |
| 11614 | test -z "$as_dir" && as_dir=. |
| 11615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11617 | ac_cv_prog_MAKEINFO="makeinfo" |
| 11618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11619 | break 2 |
| 11620 | fi |
| 11621 | done |
| 11622 | done |
| 11623 | IFS=$as_save_IFS |
| 11624 | |
| 11625 | fi |
| 11626 | fi |
| 11627 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 11628 | if test -n "$MAKEINFO"; then |
| 11629 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 11630 | echo "${ECHO_T}$MAKEINFO" >&6; } |
| 11631 | else |
| 11632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11633 | echo "${ECHO_T}no" >&6; } |
| 11634 | fi |
| 11635 | |
| 11636 | |
| 11637 | if test "_$MAKEINFO" = "_"; then |
| 11638 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 11639 | else |
| 11640 | case "$MAKEINFO" in |
| 11641 | */missing.*) |
| 11642 | { echo "$as_me:$LINENO: WARNING: |
| 11643 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
| 11644 | echo "$as_me: WARNING: |
| 11645 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 11646 | ;; |
| 11647 | *) |
| 11648 | ;; |
| 11649 | esac |
| 11650 | fi |
| 11651 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11652 | # Find a good install program. We prefer a C program (faster), |
| 11653 | # so one script is as good as another. But avoid the broken or |
| 11654 | # incompatible versions: |
| 11655 | # SysV /etc/install, /usr/sbin/install |
| 11656 | # SunOS /usr/etc/install |
| 11657 | # IRIX /sbin/install |
| 11658 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11659 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11660 | # 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] | 11661 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11662 | # 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] | 11663 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11664 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11665 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11666 | 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] | 11667 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11668 | if test "${ac_cv_path_install+set}" = set; then |
| 11669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11670 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11672 | for as_dir in $PATH |
| 11673 | do |
| 11674 | IFS=$as_save_IFS |
| 11675 | test -z "$as_dir" && as_dir=. |
| 11676 | # Account for people who put trailing slashes in PATH elements. |
| 11677 | case $as_dir/ in |
| 11678 | ./ | .// | /cC/* | \ |
| 11679 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11680 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11681 | /usr/ucb/* ) ;; |
| 11682 | *) |
| 11683 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11684 | # Don't use installbsd from OSF since it installs stuff as root |
| 11685 | # by default. |
| 11686 | for ac_prog in ginstall scoinst install; do |
| 11687 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11688 | 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] | 11689 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11690 | 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] | 11691 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11692 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | elif test $ac_prog = install && |
| 11694 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11695 | # program-specific install script used by HP pwplus--don't use. |
| 11696 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11697 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11699 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11700 | fi |
| 11701 | fi |
| 11702 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11703 | done |
| 11704 | ;; |
| 11705 | esac |
| 11706 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11707 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11708 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11709 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11710 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11711 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11712 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11713 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11714 | # As a last resort, use the slow shell script. Don't cache a |
| 11715 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11716 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11717 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11718 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11719 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11720 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11721 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11722 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11723 | |
| 11724 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11725 | # It thinks the first close brace ends the variable substitution. |
| 11726 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11728 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11729 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11730 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11731 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11732 | # See if we need a separate native compiler. |
| 11733 | if test $cross_compiling = no; then |
| 11734 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11735 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11736 | else |
| 11737 | for ac_prog in gcc cc |
| 11738 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11739 | # 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] | 11740 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11741 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11743 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11745 | else |
| 11746 | if test -n "$BUILD_CC"; then |
| 11747 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11748 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11750 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11751 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11752 | IFS=$as_save_IFS |
| 11753 | test -z "$as_dir" && as_dir=. |
| 11754 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11755 | 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] | 11756 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11758 | break 2 |
| 11759 | fi |
| 11760 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11761 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11762 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11763 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11764 | fi |
| 11765 | fi |
| 11766 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11767 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11768 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11769 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11770 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11772 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11773 | fi |
| 11774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11776 | test -n "$BUILD_CC" && break |
| 11777 | done |
| 11778 | |
| 11779 | fi |
| 11780 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 11781 | |
| 11782 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11783 | |
| 11784 | |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | |
| 11789 | |
| 11790 | |
| 11791 | |
| 11792 | |
| 11793 | |
| 11794 | |
| 11795 | |
| 11796 | |
| 11797 | |
| 11798 | |
| 11799 | |
| 11800 | |
| 11801 | |
| 11802 | |
| 11803 | |
| 11804 | |
| 11805 | |
| 11806 | |
| 11807 | |
| 11808 | |
| 11809 | |
| 11810 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11811 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11812 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 11813 | |
| 11814 | |
| 11815 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11816 | do |
| 11817 | 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] | 11818 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11819 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11821 | 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] | 11822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11824 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11825 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11826 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11827 | else |
| 11828 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11829 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11830 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11831 | cat >conftest.$ac_ext <<_ACEOF |
| 11832 | /* confdefs.h. */ |
| 11833 | _ACEOF |
| 11834 | cat confdefs.h >>conftest.$ac_ext |
| 11835 | cat >>conftest.$ac_ext <<_ACEOF |
| 11836 | /* end confdefs.h. */ |
| 11837 | $ac_includes_default |
| 11838 | #include <$ac_header> |
| 11839 | _ACEOF |
| 11840 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11841 | if { (ac_try="$ac_compile" |
| 11842 | case "(($ac_try" in |
| 11843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11844 | *) ac_try_echo=$ac_try;; |
| 11845 | esac |
| 11846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11847 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11848 | ac_status=$? |
| 11849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11850 | rm -f conftest.er1 |
| 11851 | cat conftest.err >&5 |
| 11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11853 | (exit $ac_status); } && { |
| 11854 | test -z "$ac_c_werror_flag" || |
| 11855 | test ! -s conftest.err |
| 11856 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11857 | ac_header_compiler=yes |
| 11858 | else |
| 11859 | echo "$as_me: failed program was:" >&5 |
| 11860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11861 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11862 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11863 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11864 | |
| 11865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11866 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11867 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11868 | |
| 11869 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11871 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11872 | cat >conftest.$ac_ext <<_ACEOF |
| 11873 | /* confdefs.h. */ |
| 11874 | _ACEOF |
| 11875 | cat confdefs.h >>conftest.$ac_ext |
| 11876 | cat >>conftest.$ac_ext <<_ACEOF |
| 11877 | /* end confdefs.h. */ |
| 11878 | #include <$ac_header> |
| 11879 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11880 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11881 | case "(($ac_try" in |
| 11882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11883 | *) ac_try_echo=$ac_try;; |
| 11884 | esac |
| 11885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11887 | ac_status=$? |
| 11888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11889 | rm -f conftest.er1 |
| 11890 | cat conftest.err >&5 |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11892 | (exit $ac_status); } >/dev/null && { |
| 11893 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11894 | test ! -s conftest.err |
| 11895 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | ac_header_preproc=yes |
| 11897 | else |
| 11898 | echo "$as_me: failed program was:" >&5 |
| 11899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11900 | |
| 11901 | ac_header_preproc=no |
| 11902 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11903 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11904 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11906 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11907 | |
| 11908 | # So? What about this header? |
| 11909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11910 | yes:no: ) |
| 11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11914 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11915 | ac_header_preproc=yes |
| 11916 | ;; |
| 11917 | no:yes:* ) |
| 11918 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11919 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11920 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11921 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11922 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11923 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11924 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11925 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11927 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11928 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11929 | 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] | 11930 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11931 | ;; |
| 11932 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11933 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11935 | 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] | 11936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11937 | else |
| 11938 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11939 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11942 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | |
| 11944 | fi |
| 11945 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11946 | cat >>confdefs.h <<_ACEOF |
| 11947 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11948 | _ACEOF |
| 11949 | |
| 11950 | fi |
| 11951 | |
| 11952 | done |
| 11953 | |
| 11954 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11955 | |
| 11956 | for ac_header in sys/disk.h sys/mount.h |
| 11957 | do |
| 11958 | 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] | 11959 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11961 | 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] | 11962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11963 | else |
| 11964 | cat >conftest.$ac_ext <<_ACEOF |
| 11965 | /* confdefs.h. */ |
| 11966 | _ACEOF |
| 11967 | cat confdefs.h >>conftest.$ac_ext |
| 11968 | cat >>conftest.$ac_ext <<_ACEOF |
| 11969 | /* end confdefs.h. */ |
| 11970 | |
| 11971 | #if HAVE_SYS_QUEUE_H |
| 11972 | #include <sys/queue.h> |
| 11973 | #endif |
| 11974 | |
| 11975 | |
| 11976 | #include <$ac_header> |
| 11977 | _ACEOF |
| 11978 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11979 | if { (ac_try="$ac_compile" |
| 11980 | case "(($ac_try" in |
| 11981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11982 | *) ac_try_echo=$ac_try;; |
| 11983 | esac |
| 11984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11985 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11986 | ac_status=$? |
| 11987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11988 | rm -f conftest.er1 |
| 11989 | cat conftest.err >&5 |
| 11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11991 | (exit $ac_status); } && { |
| 11992 | test -z "$ac_c_werror_flag" || |
| 11993 | test ! -s conftest.err |
| 11994 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11995 | eval "$as_ac_Header=yes" |
| 11996 | else |
| 11997 | echo "$as_me: failed program was:" >&5 |
| 11998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12000 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12001 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12002 | |
| 12003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12004 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12005 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12006 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12007 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12008 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12009 | cat >>confdefs.h <<_ACEOF |
| 12010 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12011 | _ACEOF |
| 12012 | |
| 12013 | fi |
| 12014 | |
| 12015 | done |
| 12016 | |
| 12017 | |
| 12018 | for ac_header in net/if.h |
| 12019 | do |
| 12020 | 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] | 12021 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12023 | 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] | 12024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12025 | else |
| 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | /* confdefs.h. */ |
| 12028 | _ACEOF |
| 12029 | cat confdefs.h >>conftest.$ac_ext |
| 12030 | cat >>conftest.$ac_ext <<_ACEOF |
| 12031 | /* end confdefs.h. */ |
| 12032 | |
| 12033 | #if HAVE_SYS_TYPES_H |
| 12034 | #include <sys/types.h> |
| 12035 | #endif |
| 12036 | #if HAVE_SYS_SOCKET |
| 12037 | #include <sys/socket.h> |
| 12038 | #endif |
| 12039 | |
| 12040 | |
| 12041 | #include <$ac_header> |
| 12042 | _ACEOF |
| 12043 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12044 | if { (ac_try="$ac_compile" |
| 12045 | case "(($ac_try" in |
| 12046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12047 | *) ac_try_echo=$ac_try;; |
| 12048 | esac |
| 12049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12050 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12051 | ac_status=$? |
| 12052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12053 | rm -f conftest.er1 |
| 12054 | cat conftest.err >&5 |
| 12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12056 | (exit $ac_status); } && { |
| 12057 | test -z "$ac_c_werror_flag" || |
| 12058 | test ! -s conftest.err |
| 12059 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12060 | eval "$as_ac_Header=yes" |
| 12061 | else |
| 12062 | echo "$as_me: failed program was:" >&5 |
| 12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12065 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12066 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12067 | |
| 12068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12070 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12072 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12073 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12074 | cat >>confdefs.h <<_ACEOF |
| 12075 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12076 | _ACEOF |
| 12077 | |
| 12078 | fi |
| 12079 | |
| 12080 | done |
| 12081 | |
| 12082 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12083 | for ac_func in vprintf |
| 12084 | do |
| 12085 | 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] | 12086 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12088 | 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] | 12089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12090 | else |
| 12091 | cat >conftest.$ac_ext <<_ACEOF |
| 12092 | /* confdefs.h. */ |
| 12093 | _ACEOF |
| 12094 | cat confdefs.h >>conftest.$ac_ext |
| 12095 | cat >>conftest.$ac_ext <<_ACEOF |
| 12096 | /* end confdefs.h. */ |
| 12097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12099 | #define $ac_func innocuous_$ac_func |
| 12100 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12101 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | which can conflict with char $ac_func (); below. |
| 12103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12104 | <limits.h> exists even on freestanding compilers. */ |
| 12105 | |
| 12106 | #ifdef __STDC__ |
| 12107 | # include <limits.h> |
| 12108 | #else |
| 12109 | # include <assert.h> |
| 12110 | #endif |
| 12111 | |
| 12112 | #undef $ac_func |
| 12113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12114 | /* Override any GCC internal prototype to avoid an error. |
| 12115 | Use char because int might match the return type of a GCC |
| 12116 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12117 | #ifdef __cplusplus |
| 12118 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12119 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12121 | /* The GNU C library defines this for functions which it implements |
| 12122 | to always fail with ENOSYS. Some functions are actually named |
| 12123 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12124 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12125 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12126 | #endif |
| 12127 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12128 | int |
| 12129 | main () |
| 12130 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12131 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12132 | ; |
| 12133 | return 0; |
| 12134 | } |
| 12135 | _ACEOF |
| 12136 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12137 | if { (ac_try="$ac_link" |
| 12138 | case "(($ac_try" in |
| 12139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12140 | *) ac_try_echo=$ac_try;; |
| 12141 | esac |
| 12142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12143 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12144 | ac_status=$? |
| 12145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12146 | rm -f conftest.er1 |
| 12147 | cat conftest.err >&5 |
| 12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12149 | (exit $ac_status); } && { |
| 12150 | test -z "$ac_c_werror_flag" || |
| 12151 | test ! -s conftest.err |
| 12152 | } && test -s conftest$ac_exeext && |
| 12153 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12154 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12155 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12156 | echo "$as_me: failed program was:" >&5 |
| 12157 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12159 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12160 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12161 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12162 | 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] | 12163 | conftest$ac_exeext conftest.$ac_ext |
| 12164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12165 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12167 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12168 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12169 | cat >>confdefs.h <<_ACEOF |
| 12170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12171 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12172 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12173 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12174 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12175 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12177 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12178 | cat >conftest.$ac_ext <<_ACEOF |
| 12179 | /* confdefs.h. */ |
| 12180 | _ACEOF |
| 12181 | cat confdefs.h >>conftest.$ac_ext |
| 12182 | cat >>conftest.$ac_ext <<_ACEOF |
| 12183 | /* end confdefs.h. */ |
| 12184 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12185 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12186 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12187 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12188 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12189 | which can conflict with char _doprnt (); below. |
| 12190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12191 | <limits.h> exists even on freestanding compilers. */ |
| 12192 | |
| 12193 | #ifdef __STDC__ |
| 12194 | # include <limits.h> |
| 12195 | #else |
| 12196 | # include <assert.h> |
| 12197 | #endif |
| 12198 | |
| 12199 | #undef _doprnt |
| 12200 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12201 | /* Override any GCC internal prototype to avoid an error. |
| 12202 | Use char because int might match the return type of a GCC |
| 12203 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12204 | #ifdef __cplusplus |
| 12205 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12206 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12207 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12208 | /* The GNU C library defines this for functions which it implements |
| 12209 | to always fail with ENOSYS. Some functions are actually named |
| 12210 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12212 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12213 | #endif |
| 12214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12215 | int |
| 12216 | main () |
| 12217 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12218 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12219 | ; |
| 12220 | return 0; |
| 12221 | } |
| 12222 | _ACEOF |
| 12223 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12224 | if { (ac_try="$ac_link" |
| 12225 | case "(($ac_try" in |
| 12226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12227 | *) ac_try_echo=$ac_try;; |
| 12228 | esac |
| 12229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12230 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12231 | ac_status=$? |
| 12232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12233 | rm -f conftest.er1 |
| 12234 | cat conftest.err >&5 |
| 12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12236 | (exit $ac_status); } && { |
| 12237 | test -z "$ac_c_werror_flag" || |
| 12238 | test ! -s conftest.err |
| 12239 | } && test -s conftest$ac_exeext && |
| 12240 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12241 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12243 | echo "$as_me: failed program was:" >&5 |
| 12244 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12245 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12246 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12247 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12248 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12249 | 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] | 12250 | conftest$ac_exeext conftest.$ac_ext |
| 12251 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12252 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12253 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12254 | if test $ac_cv_func__doprnt = yes; then |
| 12255 | |
| 12256 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12257 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12258 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12259 | |
| 12260 | fi |
| 12261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12262 | fi |
| 12263 | done |
| 12264 | |
| 12265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12266 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12267 | 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] | 12268 | 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] | 12269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [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 | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12277 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12279 | int |
| 12280 | main () |
| 12281 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12282 | static struct dirent ac_aggr; |
| 12283 | if (ac_aggr.d_reclen) |
| 12284 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12290 | if { (ac_try="$ac_compile" |
| 12291 | case "(($ac_try" in |
| 12292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12293 | *) ac_try_echo=$ac_try;; |
| 12294 | esac |
| 12295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12296 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12297 | ac_status=$? |
| 12298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12299 | rm -f conftest.er1 |
| 12300 | cat conftest.err >&5 |
| 12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12302 | (exit $ac_status); } && { |
| 12303 | test -z "$ac_c_werror_flag" || |
| 12304 | test ! -s conftest.err |
| 12305 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12306 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12307 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12308 | echo "$as_me: failed program was:" >&5 |
| 12309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12310 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12311 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12312 | /* confdefs.h. */ |
| 12313 | _ACEOF |
| 12314 | cat confdefs.h >>conftest.$ac_ext |
| 12315 | cat >>conftest.$ac_ext <<_ACEOF |
| 12316 | /* end confdefs.h. */ |
| 12317 | #include <dirent.h> |
| 12318 | |
| 12319 | int |
| 12320 | main () |
| 12321 | { |
| 12322 | static struct dirent ac_aggr; |
| 12323 | if (sizeof ac_aggr.d_reclen) |
| 12324 | return 0; |
| 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
| 12329 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12330 | if { (ac_try="$ac_compile" |
| 12331 | case "(($ac_try" in |
| 12332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12333 | *) ac_try_echo=$ac_try;; |
| 12334 | esac |
| 12335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12336 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12337 | ac_status=$? |
| 12338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12339 | rm -f conftest.er1 |
| 12340 | cat conftest.err >&5 |
| 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12342 | (exit $ac_status); } && { |
| 12343 | test -z "$ac_c_werror_flag" || |
| 12344 | test ! -s conftest.err |
| 12345 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12346 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12347 | else |
| 12348 | echo "$as_me: failed program was:" >&5 |
| 12349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12350 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12351 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12352 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12353 | |
| 12354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12355 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12356 | |
| 12357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12358 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12359 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12360 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12361 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12362 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12363 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12364 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12365 | |
| 12366 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12367 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12368 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12369 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12370 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12372 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12373 | cat >conftest.$ac_ext <<_ACEOF |
| 12374 | /* confdefs.h. */ |
| 12375 | _ACEOF |
| 12376 | cat confdefs.h >>conftest.$ac_ext |
| 12377 | cat >>conftest.$ac_ext <<_ACEOF |
| 12378 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12379 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12381 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12382 | int |
| 12383 | main () |
| 12384 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12385 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12386 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12387 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12388 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12389 | ; |
| 12390 | return 0; |
| 12391 | } |
| 12392 | _ACEOF |
| 12393 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12394 | if { (ac_try="$ac_compile" |
| 12395 | case "(($ac_try" in |
| 12396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12397 | *) ac_try_echo=$ac_try;; |
| 12398 | esac |
| 12399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12400 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12401 | ac_status=$? |
| 12402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12403 | rm -f conftest.er1 |
| 12404 | cat conftest.err >&5 |
| 12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12406 | (exit $ac_status); } && { |
| 12407 | test -z "$ac_c_werror_flag" || |
| 12408 | test ! -s conftest.err |
| 12409 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12410 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12411 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12412 | echo "$as_me: failed program was:" >&5 |
| 12413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12414 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12415 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12416 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12417 | |
| 12418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12419 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12420 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12421 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12422 | if test $ac_cv_type_ssize_t = yes; then |
| 12423 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12424 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12425 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12426 | |
| 12427 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12428 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12429 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12430 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12431 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12433 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12434 | cat >conftest.$ac_ext <<_ACEOF |
| 12435 | /* confdefs.h. */ |
| 12436 | _ACEOF |
| 12437 | cat confdefs.h >>conftest.$ac_ext |
| 12438 | cat >>conftest.$ac_ext <<_ACEOF |
| 12439 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12440 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12442 | int |
| 12443 | main () |
| 12444 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12445 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12446 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12447 | #endif |
| 12448 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12449 | ; |
| 12450 | return 0; |
| 12451 | } |
| 12452 | _ACEOF |
| 12453 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12454 | if { (ac_try="$ac_compile" |
| 12455 | case "(($ac_try" in |
| 12456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12457 | *) ac_try_echo=$ac_try;; |
| 12458 | esac |
| 12459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12460 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12461 | ac_status=$? |
| 12462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12463 | rm -f conftest.er1 |
| 12464 | cat conftest.err >&5 |
| 12465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12466 | (exit $ac_status); } && { |
| 12467 | test -z "$ac_c_werror_flag" || |
| 12468 | test ! -s conftest.err |
| 12469 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12470 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12471 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12472 | echo "$as_me: failed program was:" >&5 |
| 12473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12475 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12477 | |
| 12478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12479 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12480 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12481 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12482 | if test $ac_cv_have_decl_llseek = yes; then |
| 12483 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12484 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12485 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12486 | |
| 12487 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12488 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12489 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12490 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12491 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12493 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12494 | cat >conftest.$ac_ext <<_ACEOF |
| 12495 | /* confdefs.h. */ |
| 12496 | _ACEOF |
| 12497 | cat confdefs.h >>conftest.$ac_ext |
| 12498 | cat >>conftest.$ac_ext <<_ACEOF |
| 12499 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12500 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12501 | #define _LARGEFILE64_SOURCE |
| 12502 | #include <unistd.h> |
| 12503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12504 | int |
| 12505 | main () |
| 12506 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12507 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12508 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12509 | #endif |
| 12510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12511 | ; |
| 12512 | return 0; |
| 12513 | } |
| 12514 | _ACEOF |
| 12515 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12516 | if { (ac_try="$ac_compile" |
| 12517 | case "(($ac_try" in |
| 12518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12519 | *) ac_try_echo=$ac_try;; |
| 12520 | esac |
| 12521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12522 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12523 | ac_status=$? |
| 12524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12525 | rm -f conftest.er1 |
| 12526 | cat conftest.err >&5 |
| 12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12528 | (exit $ac_status); } && { |
| 12529 | test -z "$ac_c_werror_flag" || |
| 12530 | test ! -s conftest.err |
| 12531 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12532 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12533 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12534 | echo "$as_me: failed program was:" >&5 |
| 12535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12537 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12538 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12539 | |
| 12540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12541 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12542 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12543 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12544 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12545 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12546 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12547 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12548 | |
| 12549 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12550 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12551 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12552 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12553 | if test "${ac_cv_type_short+set}" = set; then |
| 12554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12555 | else |
| 12556 | cat >conftest.$ac_ext <<_ACEOF |
| 12557 | /* confdefs.h. */ |
| 12558 | _ACEOF |
| 12559 | cat confdefs.h >>conftest.$ac_ext |
| 12560 | cat >>conftest.$ac_ext <<_ACEOF |
| 12561 | /* end confdefs.h. */ |
| 12562 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12563 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12564 | int |
| 12565 | main () |
| 12566 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12567 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12568 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12569 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12570 | return 0; |
| 12571 | ; |
| 12572 | return 0; |
| 12573 | } |
| 12574 | _ACEOF |
| 12575 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12576 | if { (ac_try="$ac_compile" |
| 12577 | case "(($ac_try" in |
| 12578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12579 | *) ac_try_echo=$ac_try;; |
| 12580 | esac |
| 12581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12582 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12583 | ac_status=$? |
| 12584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12585 | rm -f conftest.er1 |
| 12586 | cat conftest.err >&5 |
| 12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12588 | (exit $ac_status); } && { |
| 12589 | test -z "$ac_c_werror_flag" || |
| 12590 | test ! -s conftest.err |
| 12591 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12592 | ac_cv_type_short=yes |
| 12593 | else |
| 12594 | echo "$as_me: failed program was:" >&5 |
| 12595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12597 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12598 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12599 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12601 | fi |
| 12602 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12603 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12604 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12605 | # The cast to long int works around a bug in the HP C Compiler |
| 12606 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12607 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12608 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12609 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12610 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12611 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12613 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12614 | if test "$cross_compiling" = yes; then |
| 12615 | # Depending upon the size, compute the lo and hi bounds. |
| 12616 | cat >conftest.$ac_ext <<_ACEOF |
| 12617 | /* confdefs.h. */ |
| 12618 | _ACEOF |
| 12619 | cat confdefs.h >>conftest.$ac_ext |
| 12620 | cat >>conftest.$ac_ext <<_ACEOF |
| 12621 | /* end confdefs.h. */ |
| 12622 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12623 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12624 | int |
| 12625 | main () |
| 12626 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12627 | 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] | 12628 | test_array [0] = 0 |
| 12629 | |
| 12630 | ; |
| 12631 | return 0; |
| 12632 | } |
| 12633 | _ACEOF |
| 12634 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12635 | if { (ac_try="$ac_compile" |
| 12636 | case "(($ac_try" in |
| 12637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12638 | *) ac_try_echo=$ac_try;; |
| 12639 | esac |
| 12640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12641 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12642 | ac_status=$? |
| 12643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12644 | rm -f conftest.er1 |
| 12645 | cat conftest.err >&5 |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12647 | (exit $ac_status); } && { |
| 12648 | test -z "$ac_c_werror_flag" || |
| 12649 | test ! -s conftest.err |
| 12650 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12651 | ac_lo=0 ac_mid=0 |
| 12652 | while :; do |
| 12653 | cat >conftest.$ac_ext <<_ACEOF |
| 12654 | /* confdefs.h. */ |
| 12655 | _ACEOF |
| 12656 | cat confdefs.h >>conftest.$ac_ext |
| 12657 | cat >>conftest.$ac_ext <<_ACEOF |
| 12658 | /* end confdefs.h. */ |
| 12659 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12660 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12661 | int |
| 12662 | main () |
| 12663 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12664 | 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] | 12665 | test_array [0] = 0 |
| 12666 | |
| 12667 | ; |
| 12668 | return 0; |
| 12669 | } |
| 12670 | _ACEOF |
| 12671 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12672 | if { (ac_try="$ac_compile" |
| 12673 | case "(($ac_try" in |
| 12674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12675 | *) ac_try_echo=$ac_try;; |
| 12676 | esac |
| 12677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12678 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12679 | ac_status=$? |
| 12680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12681 | rm -f conftest.er1 |
| 12682 | cat conftest.err >&5 |
| 12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12684 | (exit $ac_status); } && { |
| 12685 | test -z "$ac_c_werror_flag" || |
| 12686 | test ! -s conftest.err |
| 12687 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12688 | ac_hi=$ac_mid; break |
| 12689 | else |
| 12690 | echo "$as_me: failed program was:" >&5 |
| 12691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12693 | ac_lo=`expr $ac_mid + 1` |
| 12694 | if test $ac_lo -le $ac_mid; then |
| 12695 | ac_lo= ac_hi= |
| 12696 | break |
| 12697 | fi |
| 12698 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12699 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12700 | |
| 12701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12702 | done |
| 12703 | else |
| 12704 | echo "$as_me: failed program was:" >&5 |
| 12705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12706 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12707 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12708 | /* confdefs.h. */ |
| 12709 | _ACEOF |
| 12710 | cat confdefs.h >>conftest.$ac_ext |
| 12711 | cat >>conftest.$ac_ext <<_ACEOF |
| 12712 | /* end confdefs.h. */ |
| 12713 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12714 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12715 | int |
| 12716 | main () |
| 12717 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12718 | 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] | 12719 | test_array [0] = 0 |
| 12720 | |
| 12721 | ; |
| 12722 | return 0; |
| 12723 | } |
| 12724 | _ACEOF |
| 12725 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12726 | if { (ac_try="$ac_compile" |
| 12727 | case "(($ac_try" in |
| 12728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12729 | *) ac_try_echo=$ac_try;; |
| 12730 | esac |
| 12731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12732 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12733 | ac_status=$? |
| 12734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12735 | rm -f conftest.er1 |
| 12736 | cat conftest.err >&5 |
| 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12738 | (exit $ac_status); } && { |
| 12739 | test -z "$ac_c_werror_flag" || |
| 12740 | test ! -s conftest.err |
| 12741 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12742 | ac_hi=-1 ac_mid=-1 |
| 12743 | while :; do |
| 12744 | cat >conftest.$ac_ext <<_ACEOF |
| 12745 | /* confdefs.h. */ |
| 12746 | _ACEOF |
| 12747 | cat confdefs.h >>conftest.$ac_ext |
| 12748 | cat >>conftest.$ac_ext <<_ACEOF |
| 12749 | /* end confdefs.h. */ |
| 12750 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12751 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12752 | int |
| 12753 | main () |
| 12754 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12755 | 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] | 12756 | test_array [0] = 0 |
| 12757 | |
| 12758 | ; |
| 12759 | return 0; |
| 12760 | } |
| 12761 | _ACEOF |
| 12762 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12763 | if { (ac_try="$ac_compile" |
| 12764 | case "(($ac_try" in |
| 12765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12766 | *) ac_try_echo=$ac_try;; |
| 12767 | esac |
| 12768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12769 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12770 | ac_status=$? |
| 12771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12772 | rm -f conftest.er1 |
| 12773 | cat conftest.err >&5 |
| 12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12775 | (exit $ac_status); } && { |
| 12776 | test -z "$ac_c_werror_flag" || |
| 12777 | test ! -s conftest.err |
| 12778 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12779 | ac_lo=$ac_mid; break |
| 12780 | else |
| 12781 | echo "$as_me: failed program was:" >&5 |
| 12782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12783 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12784 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12785 | if test $ac_mid -le $ac_hi; then |
| 12786 | ac_lo= ac_hi= |
| 12787 | break |
| 12788 | fi |
| 12789 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12790 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12791 | |
| 12792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12793 | done |
| 12794 | else |
| 12795 | echo "$as_me: failed program was:" >&5 |
| 12796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12797 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12798 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12799 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12800 | |
| 12801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12802 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12803 | |
| 12804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | # Binary search between lo and hi bounds. |
| 12806 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12807 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12808 | cat >conftest.$ac_ext <<_ACEOF |
| 12809 | /* confdefs.h. */ |
| 12810 | _ACEOF |
| 12811 | cat confdefs.h >>conftest.$ac_ext |
| 12812 | cat >>conftest.$ac_ext <<_ACEOF |
| 12813 | /* end confdefs.h. */ |
| 12814 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12815 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12816 | int |
| 12817 | main () |
| 12818 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12819 | 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] | 12820 | test_array [0] = 0 |
| 12821 | |
| 12822 | ; |
| 12823 | return 0; |
| 12824 | } |
| 12825 | _ACEOF |
| 12826 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12827 | if { (ac_try="$ac_compile" |
| 12828 | case "(($ac_try" in |
| 12829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12830 | *) ac_try_echo=$ac_try;; |
| 12831 | esac |
| 12832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12833 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12834 | ac_status=$? |
| 12835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12836 | rm -f conftest.er1 |
| 12837 | cat conftest.err >&5 |
| 12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12839 | (exit $ac_status); } && { |
| 12840 | test -z "$ac_c_werror_flag" || |
| 12841 | test ! -s conftest.err |
| 12842 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12843 | ac_hi=$ac_mid |
| 12844 | else |
| 12845 | echo "$as_me: failed program was:" >&5 |
| 12846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12848 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12849 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12850 | |
| 12851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12852 | done |
| 12853 | case $ac_lo in |
| 12854 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12855 | '') if test "$ac_cv_type_short" = yes; then |
| 12856 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12857 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12858 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12859 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12860 | { (exit 77); exit 77; }; } |
| 12861 | else |
| 12862 | ac_cv_sizeof_short=0 |
| 12863 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12864 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12865 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12866 | cat >conftest.$ac_ext <<_ACEOF |
| 12867 | /* confdefs.h. */ |
| 12868 | _ACEOF |
| 12869 | cat confdefs.h >>conftest.$ac_ext |
| 12870 | cat >>conftest.$ac_ext <<_ACEOF |
| 12871 | /* end confdefs.h. */ |
| 12872 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12873 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12874 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12875 | 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] | 12876 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12877 | #include <stdlib.h> |
| 12878 | int |
| 12879 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12880 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12881 | |
| 12882 | FILE *f = fopen ("conftest.val", "w"); |
| 12883 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12884 | return 1; |
| 12885 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12886 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12887 | long int i = longval (); |
| 12888 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12889 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12890 | fprintf (f, "%ld\n", i); |
| 12891 | } |
| 12892 | else |
| 12893 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12894 | unsigned long int i = ulongval (); |
| 12895 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12896 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12897 | fprintf (f, "%lu\n", i); |
| 12898 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12899 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12900 | |
| 12901 | ; |
| 12902 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12903 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12904 | _ACEOF |
| 12905 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12906 | if { (ac_try="$ac_link" |
| 12907 | case "(($ac_try" in |
| 12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12909 | *) ac_try_echo=$ac_try;; |
| 12910 | esac |
| 12911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12912 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12913 | ac_status=$? |
| 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12916 | { (case "(($ac_try" in |
| 12917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12918 | *) ac_try_echo=$ac_try;; |
| 12919 | esac |
| 12920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12921 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); }; }; then |
| 12925 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12926 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12928 | echo "$as_me: failed program was:" >&5 |
| 12929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12930 | |
| 12931 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12932 | if test "$ac_cv_type_short" = yes; then |
| 12933 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12934 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12935 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12936 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12937 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12938 | else |
| 12939 | ac_cv_sizeof_short=0 |
| 12940 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12941 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12942 | 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] | 12943 | fi |
| 12944 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12945 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12946 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12947 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12948 | |
| 12949 | |
| 12950 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12951 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12952 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12954 | |
| 12955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12956 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12957 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12958 | if test "${ac_cv_type_int+set}" = set; then |
| 12959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12960 | else |
| 12961 | cat >conftest.$ac_ext <<_ACEOF |
| 12962 | /* confdefs.h. */ |
| 12963 | _ACEOF |
| 12964 | cat confdefs.h >>conftest.$ac_ext |
| 12965 | cat >>conftest.$ac_ext <<_ACEOF |
| 12966 | /* end confdefs.h. */ |
| 12967 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12968 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12969 | int |
| 12970 | main () |
| 12971 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12972 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12973 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12974 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12975 | return 0; |
| 12976 | ; |
| 12977 | return 0; |
| 12978 | } |
| 12979 | _ACEOF |
| 12980 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12981 | if { (ac_try="$ac_compile" |
| 12982 | case "(($ac_try" in |
| 12983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12984 | *) ac_try_echo=$ac_try;; |
| 12985 | esac |
| 12986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12987 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12988 | ac_status=$? |
| 12989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12990 | rm -f conftest.er1 |
| 12991 | cat conftest.err >&5 |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12993 | (exit $ac_status); } && { |
| 12994 | test -z "$ac_c_werror_flag" || |
| 12995 | test ! -s conftest.err |
| 12996 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12997 | ac_cv_type_int=yes |
| 12998 | else |
| 12999 | echo "$as_me: failed program was:" >&5 |
| 13000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13002 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13003 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13006 | fi |
| 13007 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 13008 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 13009 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13010 | # The cast to long int works around a bug in the HP C Compiler |
| 13011 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13012 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13013 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13014 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 13015 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13016 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13018 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13019 | if test "$cross_compiling" = yes; then |
| 13020 | # Depending upon the size, compute the lo and hi bounds. |
| 13021 | cat >conftest.$ac_ext <<_ACEOF |
| 13022 | /* confdefs.h. */ |
| 13023 | _ACEOF |
| 13024 | cat confdefs.h >>conftest.$ac_ext |
| 13025 | cat >>conftest.$ac_ext <<_ACEOF |
| 13026 | /* end confdefs.h. */ |
| 13027 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13028 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13029 | int |
| 13030 | main () |
| 13031 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13032 | 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] | 13033 | test_array [0] = 0 |
| 13034 | |
| 13035 | ; |
| 13036 | return 0; |
| 13037 | } |
| 13038 | _ACEOF |
| 13039 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13040 | if { (ac_try="$ac_compile" |
| 13041 | case "(($ac_try" in |
| 13042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13043 | *) ac_try_echo=$ac_try;; |
| 13044 | esac |
| 13045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13046 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13047 | ac_status=$? |
| 13048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13049 | rm -f conftest.er1 |
| 13050 | cat conftest.err >&5 |
| 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13052 | (exit $ac_status); } && { |
| 13053 | test -z "$ac_c_werror_flag" || |
| 13054 | test ! -s conftest.err |
| 13055 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13056 | ac_lo=0 ac_mid=0 |
| 13057 | while :; do |
| 13058 | cat >conftest.$ac_ext <<_ACEOF |
| 13059 | /* confdefs.h. */ |
| 13060 | _ACEOF |
| 13061 | cat confdefs.h >>conftest.$ac_ext |
| 13062 | cat >>conftest.$ac_ext <<_ACEOF |
| 13063 | /* end confdefs.h. */ |
| 13064 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13065 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13066 | int |
| 13067 | main () |
| 13068 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13069 | 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] | 13070 | test_array [0] = 0 |
| 13071 | |
| 13072 | ; |
| 13073 | return 0; |
| 13074 | } |
| 13075 | _ACEOF |
| 13076 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13077 | if { (ac_try="$ac_compile" |
| 13078 | case "(($ac_try" in |
| 13079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13080 | *) ac_try_echo=$ac_try;; |
| 13081 | esac |
| 13082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13083 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13084 | ac_status=$? |
| 13085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13086 | rm -f conftest.er1 |
| 13087 | cat conftest.err >&5 |
| 13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13089 | (exit $ac_status); } && { |
| 13090 | test -z "$ac_c_werror_flag" || |
| 13091 | test ! -s conftest.err |
| 13092 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13093 | ac_hi=$ac_mid; break |
| 13094 | else |
| 13095 | echo "$as_me: failed program was:" >&5 |
| 13096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13098 | ac_lo=`expr $ac_mid + 1` |
| 13099 | if test $ac_lo -le $ac_mid; then |
| 13100 | ac_lo= ac_hi= |
| 13101 | break |
| 13102 | fi |
| 13103 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13105 | |
| 13106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13107 | done |
| 13108 | else |
| 13109 | echo "$as_me: failed program was:" >&5 |
| 13110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13111 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13112 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13113 | /* confdefs.h. */ |
| 13114 | _ACEOF |
| 13115 | cat confdefs.h >>conftest.$ac_ext |
| 13116 | cat >>conftest.$ac_ext <<_ACEOF |
| 13117 | /* end confdefs.h. */ |
| 13118 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13119 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13120 | int |
| 13121 | main () |
| 13122 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13123 | 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] | 13124 | test_array [0] = 0 |
| 13125 | |
| 13126 | ; |
| 13127 | return 0; |
| 13128 | } |
| 13129 | _ACEOF |
| 13130 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13131 | if { (ac_try="$ac_compile" |
| 13132 | case "(($ac_try" in |
| 13133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13134 | *) ac_try_echo=$ac_try;; |
| 13135 | esac |
| 13136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13137 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13138 | ac_status=$? |
| 13139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13140 | rm -f conftest.er1 |
| 13141 | cat conftest.err >&5 |
| 13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13143 | (exit $ac_status); } && { |
| 13144 | test -z "$ac_c_werror_flag" || |
| 13145 | test ! -s conftest.err |
| 13146 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13147 | ac_hi=-1 ac_mid=-1 |
| 13148 | while :; do |
| 13149 | cat >conftest.$ac_ext <<_ACEOF |
| 13150 | /* confdefs.h. */ |
| 13151 | _ACEOF |
| 13152 | cat confdefs.h >>conftest.$ac_ext |
| 13153 | cat >>conftest.$ac_ext <<_ACEOF |
| 13154 | /* end confdefs.h. */ |
| 13155 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13156 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13157 | int |
| 13158 | main () |
| 13159 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13160 | 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] | 13161 | test_array [0] = 0 |
| 13162 | |
| 13163 | ; |
| 13164 | return 0; |
| 13165 | } |
| 13166 | _ACEOF |
| 13167 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13168 | if { (ac_try="$ac_compile" |
| 13169 | case "(($ac_try" in |
| 13170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13171 | *) ac_try_echo=$ac_try;; |
| 13172 | esac |
| 13173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13174 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13175 | ac_status=$? |
| 13176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13177 | rm -f conftest.er1 |
| 13178 | cat conftest.err >&5 |
| 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13180 | (exit $ac_status); } && { |
| 13181 | test -z "$ac_c_werror_flag" || |
| 13182 | test ! -s conftest.err |
| 13183 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13184 | ac_lo=$ac_mid; break |
| 13185 | else |
| 13186 | echo "$as_me: failed program was:" >&5 |
| 13187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13188 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13189 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13190 | if test $ac_mid -le $ac_hi; then |
| 13191 | ac_lo= ac_hi= |
| 13192 | break |
| 13193 | fi |
| 13194 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13195 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13196 | |
| 13197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13198 | done |
| 13199 | else |
| 13200 | echo "$as_me: failed program was:" >&5 |
| 13201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13202 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13203 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13204 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13205 | |
| 13206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13207 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13208 | |
| 13209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13210 | # Binary search between lo and hi bounds. |
| 13211 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13212 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13213 | cat >conftest.$ac_ext <<_ACEOF |
| 13214 | /* confdefs.h. */ |
| 13215 | _ACEOF |
| 13216 | cat confdefs.h >>conftest.$ac_ext |
| 13217 | cat >>conftest.$ac_ext <<_ACEOF |
| 13218 | /* end confdefs.h. */ |
| 13219 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13220 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13221 | int |
| 13222 | main () |
| 13223 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13224 | 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] | 13225 | test_array [0] = 0 |
| 13226 | |
| 13227 | ; |
| 13228 | return 0; |
| 13229 | } |
| 13230 | _ACEOF |
| 13231 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13232 | if { (ac_try="$ac_compile" |
| 13233 | case "(($ac_try" in |
| 13234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13235 | *) ac_try_echo=$ac_try;; |
| 13236 | esac |
| 13237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13238 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13239 | ac_status=$? |
| 13240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13241 | rm -f conftest.er1 |
| 13242 | cat conftest.err >&5 |
| 13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13244 | (exit $ac_status); } && { |
| 13245 | test -z "$ac_c_werror_flag" || |
| 13246 | test ! -s conftest.err |
| 13247 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13248 | ac_hi=$ac_mid |
| 13249 | else |
| 13250 | echo "$as_me: failed program was:" >&5 |
| 13251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13252 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13253 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13254 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13255 | |
| 13256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13257 | done |
| 13258 | case $ac_lo in |
| 13259 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13260 | '') if test "$ac_cv_type_int" = yes; then |
| 13261 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13262 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13263 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13264 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13265 | { (exit 77); exit 77; }; } |
| 13266 | else |
| 13267 | ac_cv_sizeof_int=0 |
| 13268 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13269 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13270 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13271 | cat >conftest.$ac_ext <<_ACEOF |
| 13272 | /* confdefs.h. */ |
| 13273 | _ACEOF |
| 13274 | cat confdefs.h >>conftest.$ac_ext |
| 13275 | cat >>conftest.$ac_ext <<_ACEOF |
| 13276 | /* end confdefs.h. */ |
| 13277 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13278 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13279 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13280 | 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] | 13281 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13282 | #include <stdlib.h> |
| 13283 | int |
| 13284 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13285 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13286 | |
| 13287 | FILE *f = fopen ("conftest.val", "w"); |
| 13288 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13289 | return 1; |
| 13290 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13291 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13292 | long int i = longval (); |
| 13293 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13294 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13295 | fprintf (f, "%ld\n", i); |
| 13296 | } |
| 13297 | else |
| 13298 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13299 | unsigned long int i = ulongval (); |
| 13300 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13301 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13302 | fprintf (f, "%lu\n", i); |
| 13303 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13304 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13305 | |
| 13306 | ; |
| 13307 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13308 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13309 | _ACEOF |
| 13310 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13311 | if { (ac_try="$ac_link" |
| 13312 | case "(($ac_try" in |
| 13313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13314 | *) ac_try_echo=$ac_try;; |
| 13315 | esac |
| 13316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13317 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13318 | ac_status=$? |
| 13319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13320 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13321 | { (case "(($ac_try" in |
| 13322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13323 | *) ac_try_echo=$ac_try;; |
| 13324 | esac |
| 13325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13326 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13327 | ac_status=$? |
| 13328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13329 | (exit $ac_status); }; }; then |
| 13330 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13331 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13332 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13333 | echo "$as_me: failed program was:" >&5 |
| 13334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13335 | |
| 13336 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13337 | if test "$ac_cv_type_int" = yes; then |
| 13338 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13339 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13340 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13341 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13342 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13343 | else |
| 13344 | ac_cv_sizeof_int=0 |
| 13345 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13347 | 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] | 13348 | fi |
| 13349 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13351 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13352 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13353 | |
| 13354 | |
| 13355 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13356 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13357 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13359 | |
| 13360 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13361 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13362 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13363 | if test "${ac_cv_type_long+set}" = set; then |
| 13364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13365 | else |
| 13366 | cat >conftest.$ac_ext <<_ACEOF |
| 13367 | /* confdefs.h. */ |
| 13368 | _ACEOF |
| 13369 | cat confdefs.h >>conftest.$ac_ext |
| 13370 | cat >>conftest.$ac_ext <<_ACEOF |
| 13371 | /* end confdefs.h. */ |
| 13372 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13373 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13374 | int |
| 13375 | main () |
| 13376 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13377 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13378 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13379 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13380 | return 0; |
| 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
| 13385 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13386 | if { (ac_try="$ac_compile" |
| 13387 | case "(($ac_try" in |
| 13388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13389 | *) ac_try_echo=$ac_try;; |
| 13390 | esac |
| 13391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13392 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13393 | ac_status=$? |
| 13394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13395 | rm -f conftest.er1 |
| 13396 | cat conftest.err >&5 |
| 13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13398 | (exit $ac_status); } && { |
| 13399 | test -z "$ac_c_werror_flag" || |
| 13400 | test ! -s conftest.err |
| 13401 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13402 | ac_cv_type_long=yes |
| 13403 | else |
| 13404 | echo "$as_me: failed program was:" >&5 |
| 13405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13406 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13407 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13408 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13409 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13411 | fi |
| 13412 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13413 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13414 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13415 | # The cast to long int works around a bug in the HP C Compiler |
| 13416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13418 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13419 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13420 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13421 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13423 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13424 | if test "$cross_compiling" = yes; then |
| 13425 | # Depending upon the size, compute the lo and hi bounds. |
| 13426 | cat >conftest.$ac_ext <<_ACEOF |
| 13427 | /* confdefs.h. */ |
| 13428 | _ACEOF |
| 13429 | cat confdefs.h >>conftest.$ac_ext |
| 13430 | cat >>conftest.$ac_ext <<_ACEOF |
| 13431 | /* end confdefs.h. */ |
| 13432 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13433 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13434 | int |
| 13435 | main () |
| 13436 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13437 | 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] | 13438 | test_array [0] = 0 |
| 13439 | |
| 13440 | ; |
| 13441 | return 0; |
| 13442 | } |
| 13443 | _ACEOF |
| 13444 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13445 | if { (ac_try="$ac_compile" |
| 13446 | case "(($ac_try" in |
| 13447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13448 | *) ac_try_echo=$ac_try;; |
| 13449 | esac |
| 13450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13451 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13452 | ac_status=$? |
| 13453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13454 | rm -f conftest.er1 |
| 13455 | cat conftest.err >&5 |
| 13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13457 | (exit $ac_status); } && { |
| 13458 | test -z "$ac_c_werror_flag" || |
| 13459 | test ! -s conftest.err |
| 13460 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13461 | ac_lo=0 ac_mid=0 |
| 13462 | while :; do |
| 13463 | cat >conftest.$ac_ext <<_ACEOF |
| 13464 | /* confdefs.h. */ |
| 13465 | _ACEOF |
| 13466 | cat confdefs.h >>conftest.$ac_ext |
| 13467 | cat >>conftest.$ac_ext <<_ACEOF |
| 13468 | /* end confdefs.h. */ |
| 13469 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13470 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13471 | int |
| 13472 | main () |
| 13473 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13474 | 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] | 13475 | test_array [0] = 0 |
| 13476 | |
| 13477 | ; |
| 13478 | return 0; |
| 13479 | } |
| 13480 | _ACEOF |
| 13481 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13482 | if { (ac_try="$ac_compile" |
| 13483 | case "(($ac_try" in |
| 13484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13485 | *) ac_try_echo=$ac_try;; |
| 13486 | esac |
| 13487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13488 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13489 | ac_status=$? |
| 13490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13491 | rm -f conftest.er1 |
| 13492 | cat conftest.err >&5 |
| 13493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13494 | (exit $ac_status); } && { |
| 13495 | test -z "$ac_c_werror_flag" || |
| 13496 | test ! -s conftest.err |
| 13497 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13498 | ac_hi=$ac_mid; break |
| 13499 | else |
| 13500 | echo "$as_me: failed program was:" >&5 |
| 13501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13503 | ac_lo=`expr $ac_mid + 1` |
| 13504 | if test $ac_lo -le $ac_mid; then |
| 13505 | ac_lo= ac_hi= |
| 13506 | break |
| 13507 | fi |
| 13508 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13509 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13510 | |
| 13511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13512 | done |
| 13513 | else |
| 13514 | echo "$as_me: failed program was:" >&5 |
| 13515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13516 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13517 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13518 | /* confdefs.h. */ |
| 13519 | _ACEOF |
| 13520 | cat confdefs.h >>conftest.$ac_ext |
| 13521 | cat >>conftest.$ac_ext <<_ACEOF |
| 13522 | /* end confdefs.h. */ |
| 13523 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13524 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13525 | int |
| 13526 | main () |
| 13527 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13528 | 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] | 13529 | test_array [0] = 0 |
| 13530 | |
| 13531 | ; |
| 13532 | return 0; |
| 13533 | } |
| 13534 | _ACEOF |
| 13535 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13536 | if { (ac_try="$ac_compile" |
| 13537 | case "(($ac_try" in |
| 13538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13539 | *) ac_try_echo=$ac_try;; |
| 13540 | esac |
| 13541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13542 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13543 | ac_status=$? |
| 13544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13545 | rm -f conftest.er1 |
| 13546 | cat conftest.err >&5 |
| 13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13548 | (exit $ac_status); } && { |
| 13549 | test -z "$ac_c_werror_flag" || |
| 13550 | test ! -s conftest.err |
| 13551 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13552 | ac_hi=-1 ac_mid=-1 |
| 13553 | while :; do |
| 13554 | cat >conftest.$ac_ext <<_ACEOF |
| 13555 | /* confdefs.h. */ |
| 13556 | _ACEOF |
| 13557 | cat confdefs.h >>conftest.$ac_ext |
| 13558 | cat >>conftest.$ac_ext <<_ACEOF |
| 13559 | /* end confdefs.h. */ |
| 13560 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13561 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13562 | int |
| 13563 | main () |
| 13564 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13565 | 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] | 13566 | test_array [0] = 0 |
| 13567 | |
| 13568 | ; |
| 13569 | return 0; |
| 13570 | } |
| 13571 | _ACEOF |
| 13572 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13573 | if { (ac_try="$ac_compile" |
| 13574 | case "(($ac_try" in |
| 13575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13576 | *) ac_try_echo=$ac_try;; |
| 13577 | esac |
| 13578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13579 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13580 | ac_status=$? |
| 13581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13582 | rm -f conftest.er1 |
| 13583 | cat conftest.err >&5 |
| 13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13585 | (exit $ac_status); } && { |
| 13586 | test -z "$ac_c_werror_flag" || |
| 13587 | test ! -s conftest.err |
| 13588 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13589 | ac_lo=$ac_mid; break |
| 13590 | else |
| 13591 | echo "$as_me: failed program was:" >&5 |
| 13592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13594 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13595 | if test $ac_mid -le $ac_hi; then |
| 13596 | ac_lo= ac_hi= |
| 13597 | break |
| 13598 | fi |
| 13599 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13601 | |
| 13602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13603 | done |
| 13604 | else |
| 13605 | echo "$as_me: failed program was:" >&5 |
| 13606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13608 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13609 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13610 | |
| 13611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13613 | |
| 13614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | # Binary search between lo and hi bounds. |
| 13616 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13617 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13618 | cat >conftest.$ac_ext <<_ACEOF |
| 13619 | /* confdefs.h. */ |
| 13620 | _ACEOF |
| 13621 | cat confdefs.h >>conftest.$ac_ext |
| 13622 | cat >>conftest.$ac_ext <<_ACEOF |
| 13623 | /* end confdefs.h. */ |
| 13624 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13625 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13626 | int |
| 13627 | main () |
| 13628 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13629 | 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] | 13630 | test_array [0] = 0 |
| 13631 | |
| 13632 | ; |
| 13633 | return 0; |
| 13634 | } |
| 13635 | _ACEOF |
| 13636 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13637 | if { (ac_try="$ac_compile" |
| 13638 | case "(($ac_try" in |
| 13639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13640 | *) ac_try_echo=$ac_try;; |
| 13641 | esac |
| 13642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13643 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13644 | ac_status=$? |
| 13645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13646 | rm -f conftest.er1 |
| 13647 | cat conftest.err >&5 |
| 13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13649 | (exit $ac_status); } && { |
| 13650 | test -z "$ac_c_werror_flag" || |
| 13651 | test ! -s conftest.err |
| 13652 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13653 | ac_hi=$ac_mid |
| 13654 | else |
| 13655 | echo "$as_me: failed program was:" >&5 |
| 13656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13657 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13658 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13659 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13660 | |
| 13661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13662 | done |
| 13663 | case $ac_lo in |
| 13664 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13665 | '') if test "$ac_cv_type_long" = yes; then |
| 13666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13667 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13668 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13669 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13670 | { (exit 77); exit 77; }; } |
| 13671 | else |
| 13672 | ac_cv_sizeof_long=0 |
| 13673 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13674 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13675 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13676 | cat >conftest.$ac_ext <<_ACEOF |
| 13677 | /* confdefs.h. */ |
| 13678 | _ACEOF |
| 13679 | cat confdefs.h >>conftest.$ac_ext |
| 13680 | cat >>conftest.$ac_ext <<_ACEOF |
| 13681 | /* end confdefs.h. */ |
| 13682 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13683 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13684 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13685 | 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] | 13686 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13687 | #include <stdlib.h> |
| 13688 | int |
| 13689 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13690 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13691 | |
| 13692 | FILE *f = fopen ("conftest.val", "w"); |
| 13693 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13694 | return 1; |
| 13695 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13696 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13697 | long int i = longval (); |
| 13698 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13699 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13700 | fprintf (f, "%ld\n", i); |
| 13701 | } |
| 13702 | else |
| 13703 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13704 | unsigned long int i = ulongval (); |
| 13705 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13706 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13707 | fprintf (f, "%lu\n", i); |
| 13708 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13709 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13710 | |
| 13711 | ; |
| 13712 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13713 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13714 | _ACEOF |
| 13715 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13716 | if { (ac_try="$ac_link" |
| 13717 | case "(($ac_try" in |
| 13718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13719 | *) ac_try_echo=$ac_try;; |
| 13720 | esac |
| 13721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13722 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13723 | ac_status=$? |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13726 | { (case "(($ac_try" in |
| 13727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13728 | *) ac_try_echo=$ac_try;; |
| 13729 | esac |
| 13730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13731 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; }; then |
| 13735 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13736 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13737 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13738 | echo "$as_me: failed program was:" >&5 |
| 13739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13740 | |
| 13741 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13742 | if test "$ac_cv_type_long" = yes; then |
| 13743 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13744 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13745 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13746 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13747 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13748 | else |
| 13749 | ac_cv_sizeof_long=0 |
| 13750 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13751 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13752 | 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] | 13753 | fi |
| 13754 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13755 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13756 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13757 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13758 | |
| 13759 | |
| 13760 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13761 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13762 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13763 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13764 | |
| 13765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13766 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13767 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13768 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13770 | else |
| 13771 | cat >conftest.$ac_ext <<_ACEOF |
| 13772 | /* confdefs.h. */ |
| 13773 | _ACEOF |
| 13774 | cat confdefs.h >>conftest.$ac_ext |
| 13775 | cat >>conftest.$ac_ext <<_ACEOF |
| 13776 | /* end confdefs.h. */ |
| 13777 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13778 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13779 | int |
| 13780 | main () |
| 13781 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13782 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13783 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13784 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13785 | return 0; |
| 13786 | ; |
| 13787 | return 0; |
| 13788 | } |
| 13789 | _ACEOF |
| 13790 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13791 | if { (ac_try="$ac_compile" |
| 13792 | case "(($ac_try" in |
| 13793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13794 | *) ac_try_echo=$ac_try;; |
| 13795 | esac |
| 13796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13797 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13798 | ac_status=$? |
| 13799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13800 | rm -f conftest.er1 |
| 13801 | cat conftest.err >&5 |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13803 | (exit $ac_status); } && { |
| 13804 | test -z "$ac_c_werror_flag" || |
| 13805 | test ! -s conftest.err |
| 13806 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13807 | ac_cv_type_long_long=yes |
| 13808 | else |
| 13809 | echo "$as_me: failed program was:" >&5 |
| 13810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13812 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13816 | fi |
| 13817 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13818 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13819 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13820 | # The cast to long int works around a bug in the HP C Compiler |
| 13821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13823 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13824 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13825 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13826 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13828 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13829 | if test "$cross_compiling" = yes; then |
| 13830 | # Depending upon the size, compute the lo and hi bounds. |
| 13831 | cat >conftest.$ac_ext <<_ACEOF |
| 13832 | /* confdefs.h. */ |
| 13833 | _ACEOF |
| 13834 | cat confdefs.h >>conftest.$ac_ext |
| 13835 | cat >>conftest.$ac_ext <<_ACEOF |
| 13836 | /* end confdefs.h. */ |
| 13837 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13838 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13839 | int |
| 13840 | main () |
| 13841 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13842 | 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] | 13843 | test_array [0] = 0 |
| 13844 | |
| 13845 | ; |
| 13846 | return 0; |
| 13847 | } |
| 13848 | _ACEOF |
| 13849 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13850 | if { (ac_try="$ac_compile" |
| 13851 | case "(($ac_try" in |
| 13852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13853 | *) ac_try_echo=$ac_try;; |
| 13854 | esac |
| 13855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13856 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13857 | ac_status=$? |
| 13858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13859 | rm -f conftest.er1 |
| 13860 | cat conftest.err >&5 |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13862 | (exit $ac_status); } && { |
| 13863 | test -z "$ac_c_werror_flag" || |
| 13864 | test ! -s conftest.err |
| 13865 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13866 | ac_lo=0 ac_mid=0 |
| 13867 | while :; do |
| 13868 | cat >conftest.$ac_ext <<_ACEOF |
| 13869 | /* confdefs.h. */ |
| 13870 | _ACEOF |
| 13871 | cat confdefs.h >>conftest.$ac_ext |
| 13872 | cat >>conftest.$ac_ext <<_ACEOF |
| 13873 | /* end confdefs.h. */ |
| 13874 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13875 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13876 | int |
| 13877 | main () |
| 13878 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13879 | 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] | 13880 | test_array [0] = 0 |
| 13881 | |
| 13882 | ; |
| 13883 | return 0; |
| 13884 | } |
| 13885 | _ACEOF |
| 13886 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13887 | if { (ac_try="$ac_compile" |
| 13888 | case "(($ac_try" in |
| 13889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13890 | *) ac_try_echo=$ac_try;; |
| 13891 | esac |
| 13892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13893 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13894 | ac_status=$? |
| 13895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13896 | rm -f conftest.er1 |
| 13897 | cat conftest.err >&5 |
| 13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13899 | (exit $ac_status); } && { |
| 13900 | test -z "$ac_c_werror_flag" || |
| 13901 | test ! -s conftest.err |
| 13902 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13903 | ac_hi=$ac_mid; break |
| 13904 | else |
| 13905 | echo "$as_me: failed program was:" >&5 |
| 13906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13908 | ac_lo=`expr $ac_mid + 1` |
| 13909 | if test $ac_lo -le $ac_mid; then |
| 13910 | ac_lo= ac_hi= |
| 13911 | break |
| 13912 | fi |
| 13913 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13914 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13915 | |
| 13916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13917 | done |
| 13918 | else |
| 13919 | echo "$as_me: failed program was:" >&5 |
| 13920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13922 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13923 | /* confdefs.h. */ |
| 13924 | _ACEOF |
| 13925 | cat confdefs.h >>conftest.$ac_ext |
| 13926 | cat >>conftest.$ac_ext <<_ACEOF |
| 13927 | /* end confdefs.h. */ |
| 13928 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13929 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13930 | int |
| 13931 | main () |
| 13932 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13933 | 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] | 13934 | test_array [0] = 0 |
| 13935 | |
| 13936 | ; |
| 13937 | return 0; |
| 13938 | } |
| 13939 | _ACEOF |
| 13940 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13941 | if { (ac_try="$ac_compile" |
| 13942 | case "(($ac_try" in |
| 13943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13944 | *) ac_try_echo=$ac_try;; |
| 13945 | esac |
| 13946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13947 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13948 | ac_status=$? |
| 13949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13950 | rm -f conftest.er1 |
| 13951 | cat conftest.err >&5 |
| 13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13953 | (exit $ac_status); } && { |
| 13954 | test -z "$ac_c_werror_flag" || |
| 13955 | test ! -s conftest.err |
| 13956 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13957 | ac_hi=-1 ac_mid=-1 |
| 13958 | while :; do |
| 13959 | cat >conftest.$ac_ext <<_ACEOF |
| 13960 | /* confdefs.h. */ |
| 13961 | _ACEOF |
| 13962 | cat confdefs.h >>conftest.$ac_ext |
| 13963 | cat >>conftest.$ac_ext <<_ACEOF |
| 13964 | /* end confdefs.h. */ |
| 13965 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13966 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13967 | int |
| 13968 | main () |
| 13969 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13970 | 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] | 13971 | test_array [0] = 0 |
| 13972 | |
| 13973 | ; |
| 13974 | return 0; |
| 13975 | } |
| 13976 | _ACEOF |
| 13977 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13978 | if { (ac_try="$ac_compile" |
| 13979 | case "(($ac_try" in |
| 13980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13981 | *) ac_try_echo=$ac_try;; |
| 13982 | esac |
| 13983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13984 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13985 | ac_status=$? |
| 13986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13987 | rm -f conftest.er1 |
| 13988 | cat conftest.err >&5 |
| 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13990 | (exit $ac_status); } && { |
| 13991 | test -z "$ac_c_werror_flag" || |
| 13992 | test ! -s conftest.err |
| 13993 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13994 | ac_lo=$ac_mid; break |
| 13995 | else |
| 13996 | echo "$as_me: failed program was:" >&5 |
| 13997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13998 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13999 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14000 | if test $ac_mid -le $ac_hi; then |
| 14001 | ac_lo= ac_hi= |
| 14002 | break |
| 14003 | fi |
| 14004 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14006 | |
| 14007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14008 | done |
| 14009 | else |
| 14010 | echo "$as_me: failed program was:" >&5 |
| 14011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14013 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14014 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14015 | |
| 14016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14017 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14018 | |
| 14019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14020 | # Binary search between lo and hi bounds. |
| 14021 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14022 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14023 | cat >conftest.$ac_ext <<_ACEOF |
| 14024 | /* confdefs.h. */ |
| 14025 | _ACEOF |
| 14026 | cat confdefs.h >>conftest.$ac_ext |
| 14027 | cat >>conftest.$ac_ext <<_ACEOF |
| 14028 | /* end confdefs.h. */ |
| 14029 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14030 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14031 | int |
| 14032 | main () |
| 14033 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14034 | 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] | 14035 | test_array [0] = 0 |
| 14036 | |
| 14037 | ; |
| 14038 | return 0; |
| 14039 | } |
| 14040 | _ACEOF |
| 14041 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14042 | if { (ac_try="$ac_compile" |
| 14043 | case "(($ac_try" in |
| 14044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14045 | *) ac_try_echo=$ac_try;; |
| 14046 | esac |
| 14047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14048 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14049 | ac_status=$? |
| 14050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14051 | rm -f conftest.er1 |
| 14052 | cat conftest.err >&5 |
| 14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14054 | (exit $ac_status); } && { |
| 14055 | test -z "$ac_c_werror_flag" || |
| 14056 | test ! -s conftest.err |
| 14057 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14058 | ac_hi=$ac_mid |
| 14059 | else |
| 14060 | echo "$as_me: failed program was:" >&5 |
| 14061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14062 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14063 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14064 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14065 | |
| 14066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14067 | done |
| 14068 | case $ac_lo in |
| 14069 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14070 | '') if test "$ac_cv_type_long_long" = yes; then |
| 14071 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14072 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14073 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14074 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14075 | { (exit 77); exit 77; }; } |
| 14076 | else |
| 14077 | ac_cv_sizeof_long_long=0 |
| 14078 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14079 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14080 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14081 | cat >conftest.$ac_ext <<_ACEOF |
| 14082 | /* confdefs.h. */ |
| 14083 | _ACEOF |
| 14084 | cat confdefs.h >>conftest.$ac_ext |
| 14085 | cat >>conftest.$ac_ext <<_ACEOF |
| 14086 | /* end confdefs.h. */ |
| 14087 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14088 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14089 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14090 | 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] | 14091 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | #include <stdlib.h> |
| 14093 | int |
| 14094 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14095 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14096 | |
| 14097 | FILE *f = fopen ("conftest.val", "w"); |
| 14098 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14099 | return 1; |
| 14100 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14101 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14102 | long int i = longval (); |
| 14103 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14104 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14105 | fprintf (f, "%ld\n", i); |
| 14106 | } |
| 14107 | else |
| 14108 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14109 | unsigned long int i = ulongval (); |
| 14110 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14111 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14112 | fprintf (f, "%lu\n", i); |
| 14113 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14114 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14115 | |
| 14116 | ; |
| 14117 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14118 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14119 | _ACEOF |
| 14120 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14121 | if { (ac_try="$ac_link" |
| 14122 | case "(($ac_try" in |
| 14123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14124 | *) ac_try_echo=$ac_try;; |
| 14125 | esac |
| 14126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14127 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14128 | ac_status=$? |
| 14129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14131 | { (case "(($ac_try" in |
| 14132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14133 | *) ac_try_echo=$ac_try;; |
| 14134 | esac |
| 14135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14136 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14137 | ac_status=$? |
| 14138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14139 | (exit $ac_status); }; }; then |
| 14140 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14141 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14143 | echo "$as_me: failed program was:" >&5 |
| 14144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14145 | |
| 14146 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14147 | if test "$ac_cv_type_long_long" = yes; then |
| 14148 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14149 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14150 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14151 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14152 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14153 | else |
| 14154 | ac_cv_sizeof_long_long=0 |
| 14155 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14156 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14157 | 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] | 14158 | fi |
| 14159 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14160 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14161 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14162 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14163 | |
| 14164 | |
| 14165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14166 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14167 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14168 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14169 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14170 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14171 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14172 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14173 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14174 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14175 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14176 | |
| 14177 | |
| 14178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14179 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14180 | 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] | 14181 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14183 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14184 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14185 | cat >conftest.$ac_ext <<_ACEOF |
| 14186 | /* confdefs.h. */ |
| 14187 | _ACEOF |
| 14188 | cat confdefs.h >>conftest.$ac_ext |
| 14189 | cat >>conftest.$ac_ext <<_ACEOF |
| 14190 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14191 | #include <sys/types.h> |
| 14192 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14194 | int |
| 14195 | main () |
| 14196 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14197 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14198 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14199 | bogus endian macros |
| 14200 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14201 | |
| 14202 | ; |
| 14203 | return 0; |
| 14204 | } |
| 14205 | _ACEOF |
| 14206 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14207 | if { (ac_try="$ac_compile" |
| 14208 | case "(($ac_try" in |
| 14209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14210 | *) ac_try_echo=$ac_try;; |
| 14211 | esac |
| 14212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14213 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14214 | ac_status=$? |
| 14215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14216 | rm -f conftest.er1 |
| 14217 | cat conftest.err >&5 |
| 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14219 | (exit $ac_status); } && { |
| 14220 | test -z "$ac_c_werror_flag" || |
| 14221 | test ! -s conftest.err |
| 14222 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14223 | # 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] | 14224 | cat >conftest.$ac_ext <<_ACEOF |
| 14225 | /* confdefs.h. */ |
| 14226 | _ACEOF |
| 14227 | cat confdefs.h >>conftest.$ac_ext |
| 14228 | cat >>conftest.$ac_ext <<_ACEOF |
| 14229 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14230 | #include <sys/types.h> |
| 14231 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14232 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14233 | int |
| 14234 | main () |
| 14235 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14236 | #if BYTE_ORDER != BIG_ENDIAN |
| 14237 | not big endian |
| 14238 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14239 | |
| 14240 | ; |
| 14241 | return 0; |
| 14242 | } |
| 14243 | _ACEOF |
| 14244 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14245 | if { (ac_try="$ac_compile" |
| 14246 | case "(($ac_try" in |
| 14247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14248 | *) ac_try_echo=$ac_try;; |
| 14249 | esac |
| 14250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14251 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14252 | ac_status=$? |
| 14253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14254 | rm -f conftest.er1 |
| 14255 | cat conftest.err >&5 |
| 14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14257 | (exit $ac_status); } && { |
| 14258 | test -z "$ac_c_werror_flag" || |
| 14259 | test ! -s conftest.err |
| 14260 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14261 | ac_cv_c_bigendian=yes |
| 14262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14263 | echo "$as_me: failed program was:" >&5 |
| 14264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14266 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14267 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14268 | |
| 14269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14270 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14271 | echo "$as_me: failed program was:" >&5 |
| 14272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14273 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14274 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14275 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14276 | # try to guess the endianness by grepping values into an object file |
| 14277 | ac_cv_c_bigendian=unknown |
| 14278 | cat >conftest.$ac_ext <<_ACEOF |
| 14279 | /* confdefs.h. */ |
| 14280 | _ACEOF |
| 14281 | cat confdefs.h >>conftest.$ac_ext |
| 14282 | cat >>conftest.$ac_ext <<_ACEOF |
| 14283 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14284 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14285 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14286 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14287 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14288 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14289 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14290 | int |
| 14291 | main () |
| 14292 | { |
| 14293 | _ascii (); _ebcdic (); |
| 14294 | ; |
| 14295 | return 0; |
| 14296 | } |
| 14297 | _ACEOF |
| 14298 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14299 | if { (ac_try="$ac_compile" |
| 14300 | case "(($ac_try" in |
| 14301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14302 | *) ac_try_echo=$ac_try;; |
| 14303 | esac |
| 14304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14305 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14306 | ac_status=$? |
| 14307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14308 | rm -f conftest.er1 |
| 14309 | cat conftest.err >&5 |
| 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14311 | (exit $ac_status); } && { |
| 14312 | test -z "$ac_c_werror_flag" || |
| 14313 | test ! -s conftest.err |
| 14314 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14315 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14316 | ac_cv_c_bigendian=yes |
| 14317 | fi |
| 14318 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14319 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14320 | ac_cv_c_bigendian=no |
| 14321 | else |
| 14322 | # finding both strings is unlikely to happen, but who knows? |
| 14323 | ac_cv_c_bigendian=unknown |
| 14324 | fi |
| 14325 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14326 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14327 | echo "$as_me: failed program was:" >&5 |
| 14328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14329 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14330 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14331 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14332 | |
| 14333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14334 | else |
| 14335 | cat >conftest.$ac_ext <<_ACEOF |
| 14336 | /* confdefs.h. */ |
| 14337 | _ACEOF |
| 14338 | cat confdefs.h >>conftest.$ac_ext |
| 14339 | cat >>conftest.$ac_ext <<_ACEOF |
| 14340 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14341 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14342 | int |
| 14343 | main () |
| 14344 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14345 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14346 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14347 | union |
| 14348 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14349 | long int l; |
| 14350 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14351 | } u; |
| 14352 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14353 | return u.c[sizeof (long int) - 1] == 1; |
| 14354 | |
| 14355 | ; |
| 14356 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14357 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14358 | _ACEOF |
| 14359 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14360 | if { (ac_try="$ac_link" |
| 14361 | case "(($ac_try" in |
| 14362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14363 | *) ac_try_echo=$ac_try;; |
| 14364 | esac |
| 14365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14366 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14367 | ac_status=$? |
| 14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 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_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | ac_status=$? |
| 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14378 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14379 | ac_cv_c_bigendian=no |
| 14380 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14381 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14382 | echo "$as_me: failed program was:" >&5 |
| 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14384 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14385 | ( exit $ac_status ) |
| 14386 | ac_cv_c_bigendian=yes |
| 14387 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14388 | 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] | 14389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | |
| 14391 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14393 | |
| 14394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14396 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14397 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14398 | case $ac_cv_c_bigendian in |
| 14399 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14400 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14401 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14402 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14403 | _ACEOF |
| 14404 | ;; |
| 14405 | no) |
| 14406 | ;; |
| 14407 | *) |
| 14408 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14409 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14410 | echo "$as_me: error: unknown endianness |
| 14411 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14412 | { (exit 1); exit 1; }; } ;; |
| 14413 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14414 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14415 | 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] | 14416 | ASM_TYPES_HEADER=./asm_types.h |
| 14417 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 14418 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 14419 | > public_config.h |
| 14420 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 14421 | uniq tmp_config.$$ >> public_config.h |
| 14422 | else |
| 14423 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 14424 | fi |
| 14425 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 14426 | uniq tmp_config.$$ >> public_config.h |
| 14427 | else |
| 14428 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 14429 | fi |
| 14430 | rm -f tmp_config.$$ |
| 14431 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 14432 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14433 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14434 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14435 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14436 | 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] | 14437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14438 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14440 | 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] | 14441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14442 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14443 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14445 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14446 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14447 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14448 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14449 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14450 | cat >conftest.$ac_ext <<_ACEOF |
| 14451 | /* confdefs.h. */ |
| 14452 | _ACEOF |
| 14453 | cat confdefs.h >>conftest.$ac_ext |
| 14454 | cat >>conftest.$ac_ext <<_ACEOF |
| 14455 | /* end confdefs.h. */ |
| 14456 | $ac_includes_default |
| 14457 | #include <$ac_header> |
| 14458 | _ACEOF |
| 14459 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14460 | if { (ac_try="$ac_compile" |
| 14461 | case "(($ac_try" in |
| 14462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14463 | *) ac_try_echo=$ac_try;; |
| 14464 | esac |
| 14465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14466 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14467 | ac_status=$? |
| 14468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14469 | rm -f conftest.er1 |
| 14470 | cat conftest.err >&5 |
| 14471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14472 | (exit $ac_status); } && { |
| 14473 | test -z "$ac_c_werror_flag" || |
| 14474 | test ! -s conftest.err |
| 14475 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14476 | ac_header_compiler=yes |
| 14477 | else |
| 14478 | echo "$as_me: failed program was:" >&5 |
| 14479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14480 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14481 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14482 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14483 | |
| 14484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14485 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14486 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14487 | |
| 14488 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14489 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | cat >conftest.$ac_ext <<_ACEOF |
| 14492 | /* confdefs.h. */ |
| 14493 | _ACEOF |
| 14494 | cat confdefs.h >>conftest.$ac_ext |
| 14495 | cat >>conftest.$ac_ext <<_ACEOF |
| 14496 | /* end confdefs.h. */ |
| 14497 | #include <$ac_header> |
| 14498 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14500 | case "(($ac_try" in |
| 14501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14502 | *) ac_try_echo=$ac_try;; |
| 14503 | esac |
| 14504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14506 | ac_status=$? |
| 14507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14508 | rm -f conftest.er1 |
| 14509 | cat conftest.err >&5 |
| 14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14511 | (exit $ac_status); } >/dev/null && { |
| 14512 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14513 | test ! -s conftest.err |
| 14514 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14515 | ac_header_preproc=yes |
| 14516 | else |
| 14517 | echo "$as_me: failed program was:" >&5 |
| 14518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14519 | |
| 14520 | ac_header_preproc=no |
| 14521 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14522 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14523 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14524 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14525 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14526 | |
| 14527 | # So? What about this header? |
| 14528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14529 | yes:no: ) |
| 14530 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14531 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14533 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14534 | ac_header_preproc=yes |
| 14535 | ;; |
| 14536 | no:yes:* ) |
| 14537 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14538 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14539 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14540 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14541 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14542 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14543 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14544 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14546 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14547 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14548 | 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] | 14549 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14550 | ;; |
| 14551 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14552 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14554 | 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] | 14555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14556 | else |
| 14557 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14558 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14559 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14560 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14561 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14562 | |
| 14563 | fi |
| 14564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14565 | cat >>confdefs.h <<_ACEOF |
| 14566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14567 | _ACEOF |
| 14568 | |
| 14569 | fi |
| 14570 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14571 | done |
| 14572 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14573 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14574 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14575 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14577 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14578 | cat >conftest.$ac_ext <<_ACEOF |
| 14579 | /* confdefs.h. */ |
| 14580 | _ACEOF |
| 14581 | cat confdefs.h >>conftest.$ac_ext |
| 14582 | cat >>conftest.$ac_ext <<_ACEOF |
| 14583 | /* end confdefs.h. */ |
| 14584 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14586 | int |
| 14587 | main () |
| 14588 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14589 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14590 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14591 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | return 0; |
| 14593 | ; |
| 14594 | return 0; |
| 14595 | } |
| 14596 | _ACEOF |
| 14597 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14598 | if { (ac_try="$ac_compile" |
| 14599 | case "(($ac_try" in |
| 14600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14601 | *) ac_try_echo=$ac_try;; |
| 14602 | esac |
| 14603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14604 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14605 | ac_status=$? |
| 14606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14607 | rm -f conftest.er1 |
| 14608 | cat conftest.err >&5 |
| 14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14610 | (exit $ac_status); } && { |
| 14611 | test -z "$ac_c_werror_flag" || |
| 14612 | test ! -s conftest.err |
| 14613 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14614 | ac_cv_type_intptr_t=yes |
| 14615 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14616 | echo "$as_me: failed program was:" >&5 |
| 14617 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14619 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14620 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14621 | |
| 14622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14623 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14624 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14625 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14626 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14627 | |
| 14628 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14629 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14630 | _ACEOF |
| 14631 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14632 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14633 | fi |
| 14634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14635 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14636 | 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] | 14637 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14639 | else |
| 14640 | cat >conftest.$ac_ext <<_ACEOF |
| 14641 | /* confdefs.h. */ |
| 14642 | _ACEOF |
| 14643 | cat confdefs.h >>conftest.$ac_ext |
| 14644 | cat >>conftest.$ac_ext <<_ACEOF |
| 14645 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14646 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14647 | int |
| 14648 | main () |
| 14649 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14650 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14651 | ; |
| 14652 | return 0; |
| 14653 | } |
| 14654 | _ACEOF |
| 14655 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14656 | if { (ac_try="$ac_compile" |
| 14657 | case "(($ac_try" in |
| 14658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14659 | *) ac_try_echo=$ac_try;; |
| 14660 | esac |
| 14661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14662 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14663 | ac_status=$? |
| 14664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14665 | rm -f conftest.er1 |
| 14666 | cat conftest.err >&5 |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14668 | (exit $ac_status); } && { |
| 14669 | test -z "$ac_c_werror_flag" || |
| 14670 | test ! -s conftest.err |
| 14671 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14672 | e2fsprogs_cv_struct_st_flags=yes |
| 14673 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14674 | echo "$as_me: failed program was:" >&5 |
| 14675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14677 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14678 | fi |
| 14679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14681 | fi |
| 14682 | |
| 14683 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14684 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14685 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14686 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14687 | 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] | 14688 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14690 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14691 | cat >conftest.$ac_ext <<_ACEOF |
| 14692 | /* confdefs.h. */ |
| 14693 | _ACEOF |
| 14694 | cat confdefs.h >>conftest.$ac_ext |
| 14695 | cat >>conftest.$ac_ext <<_ACEOF |
| 14696 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14697 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14698 | int |
| 14699 | main () |
| 14700 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14701 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14702 | ; |
| 14703 | return 0; |
| 14704 | } |
| 14705 | _ACEOF |
| 14706 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14707 | if { (ac_try="$ac_compile" |
| 14708 | case "(($ac_try" in |
| 14709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14710 | *) ac_try_echo=$ac_try;; |
| 14711 | esac |
| 14712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14713 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14714 | ac_status=$? |
| 14715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14716 | rm -f conftest.er1 |
| 14717 | cat conftest.err >&5 |
| 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14719 | (exit $ac_status); } && { |
| 14720 | test -z "$ac_c_werror_flag" || |
| 14721 | test ! -s conftest.err |
| 14722 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14723 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14724 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14725 | echo "$as_me: failed program was:" >&5 |
| 14726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14728 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14729 | fi |
| 14730 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14732 | fi |
| 14733 | |
| 14734 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14735 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14736 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14737 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14738 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14739 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14740 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14741 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14742 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14743 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14744 | 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] | 14745 | 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] | 14746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14747 | else |
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. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14754 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14755 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14756 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14757 | int |
| 14758 | main () |
| 14759 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14760 | static struct sockaddr ac_aggr; |
| 14761 | if (ac_aggr.sa_len) |
| 14762 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14763 | ; |
| 14764 | return 0; |
| 14765 | } |
| 14766 | _ACEOF |
| 14767 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14768 | if { (ac_try="$ac_compile" |
| 14769 | case "(($ac_try" in |
| 14770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14771 | *) ac_try_echo=$ac_try;; |
| 14772 | esac |
| 14773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14774 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14775 | ac_status=$? |
| 14776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14777 | rm -f conftest.er1 |
| 14778 | cat conftest.err >&5 |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14780 | (exit $ac_status); } && { |
| 14781 | test -z "$ac_c_werror_flag" || |
| 14782 | test ! -s conftest.err |
| 14783 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14784 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14785 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14786 | echo "$as_me: failed program was:" >&5 |
| 14787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14789 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14790 | /* confdefs.h. */ |
| 14791 | _ACEOF |
| 14792 | cat confdefs.h >>conftest.$ac_ext |
| 14793 | cat >>conftest.$ac_ext <<_ACEOF |
| 14794 | /* end confdefs.h. */ |
| 14795 | #include <sys/types.h> |
| 14796 | #include <sys/socket.h> |
| 14797 | |
| 14798 | int |
| 14799 | main () |
| 14800 | { |
| 14801 | static struct sockaddr ac_aggr; |
| 14802 | if (sizeof ac_aggr.sa_len) |
| 14803 | return 0; |
| 14804 | ; |
| 14805 | return 0; |
| 14806 | } |
| 14807 | _ACEOF |
| 14808 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14809 | if { (ac_try="$ac_compile" |
| 14810 | case "(($ac_try" in |
| 14811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14812 | *) ac_try_echo=$ac_try;; |
| 14813 | esac |
| 14814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14815 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14816 | ac_status=$? |
| 14817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14818 | rm -f conftest.er1 |
| 14819 | cat conftest.err >&5 |
| 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14821 | (exit $ac_status); } && { |
| 14822 | test -z "$ac_c_werror_flag" || |
| 14823 | test ! -s conftest.err |
| 14824 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14825 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14826 | else |
| 14827 | echo "$as_me: failed program was:" >&5 |
| 14828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14829 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14830 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14832 | |
| 14833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14834 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14835 | |
| 14836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14837 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14838 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14839 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14840 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14841 | |
| 14842 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14843 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14844 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14845 | |
| 14846 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
| 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
| 14857 | |
| 14858 | |
| 14859 | |
| 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
| 14864 | |
| 14865 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14866 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14867 | |
| 14868 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14869 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14870 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14871 | |
| 14872 | |
| 14873 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14874 | |
| 14875 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14876 | |
| 14877 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14878 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14879 | 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] | 14880 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14882 | 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] | 14883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14884 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14885 | cat >conftest.$ac_ext <<_ACEOF |
| 14886 | /* confdefs.h. */ |
| 14887 | _ACEOF |
| 14888 | cat confdefs.h >>conftest.$ac_ext |
| 14889 | cat >>conftest.$ac_ext <<_ACEOF |
| 14890 | /* end confdefs.h. */ |
| 14891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14893 | #define $ac_func innocuous_$ac_func |
| 14894 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14895 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14896 | which can conflict with char $ac_func (); below. |
| 14897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14898 | <limits.h> exists even on freestanding compilers. */ |
| 14899 | |
| 14900 | #ifdef __STDC__ |
| 14901 | # include <limits.h> |
| 14902 | #else |
| 14903 | # include <assert.h> |
| 14904 | #endif |
| 14905 | |
| 14906 | #undef $ac_func |
| 14907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14908 | /* Override any GCC internal prototype to avoid an error. |
| 14909 | Use char because int might match the return type of a GCC |
| 14910 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14911 | #ifdef __cplusplus |
| 14912 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14913 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14914 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14915 | /* The GNU C library defines this for functions which it implements |
| 14916 | to always fail with ENOSYS. Some functions are actually named |
| 14917 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14918 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14919 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14920 | #endif |
| 14921 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14922 | int |
| 14923 | main () |
| 14924 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14925 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14926 | ; |
| 14927 | return 0; |
| 14928 | } |
| 14929 | _ACEOF |
| 14930 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14931 | if { (ac_try="$ac_link" |
| 14932 | case "(($ac_try" in |
| 14933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14934 | *) ac_try_echo=$ac_try;; |
| 14935 | esac |
| 14936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14937 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14938 | ac_status=$? |
| 14939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14940 | rm -f conftest.er1 |
| 14941 | cat conftest.err >&5 |
| 14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14943 | (exit $ac_status); } && { |
| 14944 | test -z "$ac_c_werror_flag" || |
| 14945 | test ! -s conftest.err |
| 14946 | } && test -s conftest$ac_exeext && |
| 14947 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14948 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14949 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14950 | echo "$as_me: failed program was:" >&5 |
| 14951 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14952 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14953 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14954 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14955 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14956 | 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] | 14957 | conftest$ac_exeext conftest.$ac_ext |
| 14958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14959 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14961 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14962 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14963 | cat >>confdefs.h <<_ACEOF |
| 14964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14965 | _ACEOF |
| 14966 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14967 | fi |
| 14968 | done |
| 14969 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14970 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14971 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14972 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14973 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14976 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14977 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14978 | cat >conftest.$ac_ext <<_ACEOF |
| 14979 | /* confdefs.h. */ |
| 14980 | _ACEOF |
| 14981 | cat confdefs.h >>conftest.$ac_ext |
| 14982 | cat >>conftest.$ac_ext <<_ACEOF |
| 14983 | /* end confdefs.h. */ |
| 14984 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14985 | /* Override any GCC internal prototype to avoid an error. |
| 14986 | Use char because int might match the return type of a GCC |
| 14987 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14988 | #ifdef __cplusplus |
| 14989 | extern "C" |
| 14990 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14991 | char socket (); |
| 14992 | int |
| 14993 | main () |
| 14994 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14995 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14996 | ; |
| 14997 | return 0; |
| 14998 | } |
| 14999 | _ACEOF |
| 15000 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15001 | if { (ac_try="$ac_link" |
| 15002 | case "(($ac_try" in |
| 15003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15004 | *) ac_try_echo=$ac_try;; |
| 15005 | esac |
| 15006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15007 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15008 | ac_status=$? |
| 15009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15010 | rm -f conftest.er1 |
| 15011 | cat conftest.err >&5 |
| 15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15013 | (exit $ac_status); } && { |
| 15014 | test -z "$ac_c_werror_flag" || |
| 15015 | test ! -s conftest.err |
| 15016 | } && test -s conftest$ac_exeext && |
| 15017 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15018 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15020 | echo "$as_me: failed program was:" >&5 |
| 15021 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15023 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15025 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15026 | 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] | 15027 | conftest$ac_exeext conftest.$ac_ext |
| 15028 | LIBS=$ac_check_lib_save_LIBS |
| 15029 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15030 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15031 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15032 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15033 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15034 | fi |
| 15035 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15036 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15037 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15038 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15039 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15040 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15043 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15044 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15045 | cat >conftest.$ac_ext <<_ACEOF |
| 15046 | /* confdefs.h. */ |
| 15047 | _ACEOF |
| 15048 | cat confdefs.h >>conftest.$ac_ext |
| 15049 | cat >>conftest.$ac_ext <<_ACEOF |
| 15050 | /* end confdefs.h. */ |
| 15051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15052 | /* Override any GCC internal prototype to avoid an error. |
| 15053 | Use char because int might match the return type of a GCC |
| 15054 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15055 | #ifdef __cplusplus |
| 15056 | extern "C" |
| 15057 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15058 | char dlopen (); |
| 15059 | int |
| 15060 | main () |
| 15061 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15062 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15063 | ; |
| 15064 | return 0; |
| 15065 | } |
| 15066 | _ACEOF |
| 15067 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15068 | if { (ac_try="$ac_link" |
| 15069 | case "(($ac_try" in |
| 15070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15071 | *) ac_try_echo=$ac_try;; |
| 15072 | esac |
| 15073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15074 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15075 | ac_status=$? |
| 15076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15077 | rm -f conftest.er1 |
| 15078 | cat conftest.err >&5 |
| 15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15080 | (exit $ac_status); } && { |
| 15081 | test -z "$ac_c_werror_flag" || |
| 15082 | test ! -s conftest.err |
| 15083 | } && test -s conftest$ac_exeext && |
| 15084 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15085 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15086 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15087 | echo "$as_me: failed program was:" >&5 |
| 15088 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15090 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15091 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15092 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15093 | 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] | 15094 | conftest$ac_exeext conftest.$ac_ext |
| 15095 | LIBS=$ac_check_lib_save_LIBS |
| 15096 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15097 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15098 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15099 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15100 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15101 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15102 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15103 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15104 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15105 | fi |
| 15106 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15108 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 15109 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15110 | if test "${ac_cv_have_optreset+set}" = set; then |
| 15111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15112 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15113 | cat >conftest.$ac_ext <<_ACEOF |
| 15114 | /* confdefs.h. */ |
| 15115 | _ACEOF |
| 15116 | cat confdefs.h >>conftest.$ac_ext |
| 15117 | cat >>conftest.$ac_ext <<_ACEOF |
| 15118 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15119 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15120 | |
| 15121 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15122 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15123 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15124 | ac_cv_have_optreset=yes |
| 15125 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15126 | ac_cv_have_optreset=no |
| 15127 | fi |
| 15128 | rm -f conftest* |
| 15129 | |
| 15130 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15131 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 15132 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15133 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15134 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15135 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15136 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15137 | |
| 15138 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15139 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 15140 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 15141 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15142 | UNI_DIFF_OPTS=-u |
| 15143 | else |
| 15144 | UNI_DIFF_OPTS=-c |
| 15145 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15146 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 15147 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15148 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15149 | case "$host_os" in |
| 15150 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15151 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15152 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15153 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15154 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15155 | ;; |
| 15156 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15157 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15158 | CYGWIN_CMT="#" |
| 15159 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15160 | case "$host_os" in |
| 15161 | linux*) |
| 15162 | LINUX_CMT= |
| 15163 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15164 | cygwin) |
| 15165 | CYGWIN_CMT= |
| 15166 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15167 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15168 | esac |
| 15169 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15170 | |
| 15171 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15172 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15173 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15174 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 15175 | root_prefix=""; |
| 15176 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15177 | fi |
| 15178 | ;; |
| 15179 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15180 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15181 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15182 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15183 | prefix="/usr"; |
| 15184 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15185 | if test "$mandir" = '${prefix}/man' ; then |
| 15186 | echo "...and mandir defaults to /usr/share/man" |
| 15187 | mandir=/usr/share/man |
| 15188 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15189 | fi |
| 15190 | ;; |
| 15191 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15192 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15193 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15194 | root_prefix="$ac_default_prefix" |
| 15195 | else |
| 15196 | root_prefix="$prefix" |
| 15197 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15198 | root_bindir=$bindir |
| 15199 | root_sbindir=$sbindir |
| 15200 | root_libdir=$libdir |
| 15201 | root_sysconfdir=$sysconfdir |
| 15202 | else |
| 15203 | root_bindir='${root_prefix}/bin' |
| 15204 | root_sbindir='${root_prefix}/sbin' |
| 15205 | root_libdir='${root_prefix}/lib' |
| 15206 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15207 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15208 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15209 | root_bindir=$bindir |
| 15210 | echo "Setting root_bindir to $root_bindir" |
| 15211 | fi |
| 15212 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15213 | root_sbindir=$sbindir |
| 15214 | echo "Setting root_sbindir to $root_sbindir" |
| 15215 | fi |
| 15216 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15217 | root_libdir=$libdir |
| 15218 | echo "Setting root_libdir to $root_libdir" |
| 15219 | fi |
| 15220 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15221 | root_sysconfdir=$sysconfdir |
| 15222 | echo "Setting root_sysconfdir to $root_sysconfdir" |
| 15223 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15224 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15225 | |
| 15226 | |
| 15227 | |
| 15228 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15229 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15230 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15231 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15233 | else |
| 15234 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15235 | cat >conftest.$ac_ext <<_ACEOF |
| 15236 | /* confdefs.h. */ |
| 15237 | _ACEOF |
| 15238 | cat confdefs.h >>conftest.$ac_ext |
| 15239 | cat >>conftest.$ac_ext <<_ACEOF |
| 15240 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15241 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15242 | int |
| 15243 | main () |
| 15244 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15245 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15246 | ; |
| 15247 | return 0; |
| 15248 | } |
| 15249 | _ACEOF |
| 15250 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15251 | if { (ac_try="$ac_link" |
| 15252 | case "(($ac_try" in |
| 15253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15254 | *) ac_try_echo=$ac_try;; |
| 15255 | esac |
| 15256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15257 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15258 | ac_status=$? |
| 15259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15260 | rm -f conftest.er1 |
| 15261 | cat conftest.err >&5 |
| 15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15263 | (exit $ac_status); } && { |
| 15264 | test -z "$ac_c_werror_flag" || |
| 15265 | test ! -s conftest.err |
| 15266 | } && test -s conftest$ac_exeext && |
| 15267 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15268 | ac_cv_e2fsprogs_use_static=yes |
| 15269 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15270 | echo "$as_me: failed program was:" >&5 |
| 15271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15273 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15275 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15276 | 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] | 15277 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15278 | LDFLAGS=$SAVE_LDFLAGS |
| 15279 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15280 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15281 | case "$host_os" in |
| 15282 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15283 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15284 | ;; |
| 15285 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15286 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15287 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15288 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15289 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15290 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15291 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15292 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15293 | case "$host_os" in |
| 15294 | darwin*) |
| 15295 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15296 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15297 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15298 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15299 | |
| 15300 | ;; |
| 15301 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15302 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15303 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15304 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15305 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15306 | if test "$cross_compiling" = yes ; then |
| 15307 | DO_TEST_SUITE= |
| 15308 | else |
| 15309 | DO_TEST_SUITE=check |
| 15310 | fi |
| 15311 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15312 | INTL_FLAGS= |
| 15313 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15314 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15315 | fi |
| 15316 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15317 | if test $cross_compiling = no; then |
| 15318 | BUILD_CFLAGS="$CFLAGS" |
| 15319 | BUILD_LDFLAGS="$LDFLAGS" |
| 15320 | else |
| 15321 | BUILD_CFLAGS= |
| 15322 | BUILD_LDFLAGS= |
| 15323 | fi |
| 15324 | |
| 15325 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15326 | test -d lib || mkdir lib |
| 15327 | test -d include || mkdir include |
| 15328 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15329 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15330 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15331 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15332 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15333 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15334 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15335 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15336 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15337 | 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] | 15338 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15339 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15340 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15341 | if test -d `dirname ${srcdir}/$i` ; then |
| 15342 | outlist="$outlist $i" |
| 15343 | fi |
| 15344 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15345 | ac_config_files="$ac_config_files $outlist" |
| 15346 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15347 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15348 | # This file is a shell script that caches the results of configure |
| 15349 | # 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] | 15350 | # scripts and configure runs, see configure's option --config-cache. |
| 15351 | # It is not useful on other systems. If it contains results you don't |
| 15352 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15353 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15354 | # config.status only pays attention to the cache file if you give it |
| 15355 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15356 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15357 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15358 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15359 | # following values. |
| 15360 | |
| 15361 | _ACEOF |
| 15362 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15363 | # The following way of writing the cache mishandles newlines in values, |
| 15364 | # 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] | 15365 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15366 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15367 | # 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] | 15368 | ( |
| 15369 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15370 | eval ac_val=\$$ac_var |
| 15371 | case $ac_val in #( |
| 15372 | *${as_nl}*) |
| 15373 | case $ac_var in #( |
| 15374 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15375 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15376 | esac |
| 15377 | case $ac_var in #( |
| 15378 | _ | IFS | as_nl) ;; #( |
| 15379 | *) $as_unset $ac_var ;; |
| 15380 | esac ;; |
| 15381 | esac |
| 15382 | done |
| 15383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15384 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15385 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15386 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15387 | # `set' does not quote correctly, so add quotes (double-quote |
| 15388 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15389 | sed -n \ |
| 15390 | "s/'/'\\\\''/g; |
| 15391 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15392 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15393 | *) |
| 15394 | # `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] | 15395 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15396 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15397 | esac | |
| 15398 | sort |
| 15399 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15400 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15401 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15402 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15403 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15404 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15405 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15406 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15407 | :end' >>confcache |
| 15408 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15409 | if test -w "$cache_file"; then |
| 15410 | test "x$cache_file" != "x/dev/null" && |
| 15411 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15412 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15413 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15414 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15415 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15416 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15417 | fi |
| 15418 | fi |
| 15419 | rm -f confcache |
| 15420 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15421 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15422 | # Let make expand exec_prefix. |
| 15423 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15424 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15425 | # Transform confdefs.h into DEFS. |
| 15426 | # Protect against shell expansion while executing Makefile rules. |
| 15427 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15428 | # |
| 15429 | # 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] | 15430 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15431 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15432 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15433 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15434 | :clear |
| 15435 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15436 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15437 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15438 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15439 | b any |
| 15440 | :quote |
| 15441 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15442 | s/\[/\\&/g |
| 15443 | s/\]/\\&/g |
| 15444 | s/\$/$$/g |
| 15445 | H |
| 15446 | :any |
| 15447 | ${ |
| 15448 | g |
| 15449 | s/^\n// |
| 15450 | s/\n/ /g |
| 15451 | p |
| 15452 | } |
| 15453 | ' |
| 15454 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15455 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15457 | ac_libobjs= |
| 15458 | ac_ltlibobjs= |
| 15459 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15460 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15461 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15462 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15463 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15464 | # will be set to the directory where LIBOBJS objects are built. |
| 15465 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15466 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15467 | done |
| 15468 | LIBOBJS=$ac_libobjs |
| 15469 | |
| 15470 | LTLIBOBJS=$ac_ltlibobjs |
| 15471 | |
| 15472 | |
| 15473 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15474 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15475 | ac_clean_files_save=$ac_clean_files |
| 15476 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15477 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15478 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15479 | cat >$CONFIG_STATUS <<_ACEOF |
| 15480 | #! $SHELL |
| 15481 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15482 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15483 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15484 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15486 | debug=false |
| 15487 | ac_cs_recheck=false |
| 15488 | ac_cs_silent=false |
| 15489 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15490 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15492 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15493 | ## --------------------- ## |
| 15494 | ## M4sh Initialization. ## |
| 15495 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15496 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15497 | # Be more Bourne compatible |
| 15498 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15499 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15500 | emulate sh |
| 15501 | NULLCMD=: |
| 15502 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15503 | # is contrary to our usage. Disable this feature. |
| 15504 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15505 | setopt NO_GLOB_SUBST |
| 15506 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15507 | case `(set -o) 2>/dev/null` in |
| 15508 | *posix*) set -o posix ;; |
| 15509 | esac |
| 15510 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15511 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15512 | |
| 15513 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15514 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15516 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15517 | # Avoid depending upon Character Ranges. |
| 15518 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15519 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15520 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15521 | as_cr_digits='0123456789' |
| 15522 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15523 | |
| 15524 | # The user is always right. |
| 15525 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15526 | echo "#! /bin/sh" >conf$$.sh |
| 15527 | echo "exit 0" >>conf$$.sh |
| 15528 | chmod +x conf$$.sh |
| 15529 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15530 | PATH_SEPARATOR=';' |
| 15531 | else |
| 15532 | PATH_SEPARATOR=: |
| 15533 | fi |
| 15534 | rm -f conf$$.sh |
| 15535 | fi |
| 15536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15537 | # Support unset when possible. |
| 15538 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15539 | as_unset=unset |
| 15540 | else |
| 15541 | as_unset=false |
| 15542 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15544 | |
| 15545 | # IFS |
| 15546 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15547 | # there to prevent editors from complaining about space-tab. |
| 15548 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15549 | # splitting by setting IFS to empty value.) |
| 15550 | as_nl=' |
| 15551 | ' |
| 15552 | IFS=" "" $as_nl" |
| 15553 | |
| 15554 | # Find who we are. Look in the path if we contain no directory separator. |
| 15555 | case $0 in |
| 15556 | *[\\/]* ) as_myself=$0 ;; |
| 15557 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15558 | for as_dir in $PATH |
| 15559 | do |
| 15560 | IFS=$as_save_IFS |
| 15561 | test -z "$as_dir" && as_dir=. |
| 15562 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15563 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15564 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15565 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15566 | ;; |
| 15567 | esac |
| 15568 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15569 | # in which case we are not to be found in the path. |
| 15570 | if test "x$as_myself" = x; then |
| 15571 | as_myself=$0 |
| 15572 | fi |
| 15573 | if test ! -f "$as_myself"; then |
| 15574 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15575 | { (exit 1); exit 1; } |
| 15576 | fi |
| 15577 | |
| 15578 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15579 | for as_var in ENV MAIL MAILPATH |
| 15580 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15581 | done |
| 15582 | PS1='$ ' |
| 15583 | PS2='> ' |
| 15584 | PS4='+ ' |
| 15585 | |
| 15586 | # NLS nuisances. |
| 15587 | for as_var in \ |
| 15588 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15589 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15590 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15591 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15592 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15593 | eval $as_var=C; export $as_var |
| 15594 | else |
| 15595 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15596 | fi |
| 15597 | done |
| 15598 | |
| 15599 | # Required to use basename. |
| 15600 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15601 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15602 | as_expr=expr |
| 15603 | else |
| 15604 | as_expr=false |
| 15605 | fi |
| 15606 | |
| 15607 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15608 | as_basename=basename |
| 15609 | else |
| 15610 | as_basename=false |
| 15611 | fi |
| 15612 | |
| 15613 | |
| 15614 | # Name of the executable. |
| 15615 | as_me=`$as_basename -- "$0" || |
| 15616 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15617 | X"$0" : 'X\(//\)$' \| \ |
| 15618 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15619 | echo X/"$0" | |
| 15620 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15621 | s//\1/ |
| 15622 | q |
| 15623 | } |
| 15624 | /^X\/\(\/\/\)$/{ |
| 15625 | s//\1/ |
| 15626 | q |
| 15627 | } |
| 15628 | /^X\/\(\/\).*/{ |
| 15629 | s//\1/ |
| 15630 | q |
| 15631 | } |
| 15632 | s/.*/./; q'` |
| 15633 | |
| 15634 | # CDPATH. |
| 15635 | $as_unset CDPATH |
| 15636 | |
| 15637 | |
| 15638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15639 | as_lineno_1=$LINENO |
| 15640 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15641 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15642 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15643 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15644 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15645 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15646 | # line-number line after each line using $LINENO; the second 'sed' |
| 15647 | # does the real work. The second script uses 'N' to pair each |
| 15648 | # line-number line with the line containing $LINENO, and appends |
| 15649 | # trailing '-' during substitution so that $LINENO is not a special |
| 15650 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15651 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15652 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15653 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15654 | sed -n ' |
| 15655 | p |
| 15656 | /[$]LINENO/= |
| 15657 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15658 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15659 | s/[$]LINENO.*/&-/ |
| 15660 | t lineno |
| 15661 | b |
| 15662 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15663 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15664 | :loop |
| 15665 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15666 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15667 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15668 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15669 | chmod +x "$as_me.lineno" || |
| 15670 | { 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] | 15671 | { (exit 1); exit 1; }; } |
| 15672 | |
| 15673 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15674 | # (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] | 15675 | # original and so on. Autoconf is especially sensitive to this). |
| 15676 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15677 | # Exit status is that of the last command. |
| 15678 | exit |
| 15679 | } |
| 15680 | |
| 15681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15682 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15683 | as_dirname=dirname |
| 15684 | else |
| 15685 | as_dirname=false |
| 15686 | fi |
| 15687 | |
| 15688 | ECHO_C= ECHO_N= ECHO_T= |
| 15689 | case `echo -n x` in |
| 15690 | -n*) |
| 15691 | case `echo 'x\c'` in |
| 15692 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15693 | *) ECHO_C='\c';; |
| 15694 | esac;; |
| 15695 | *) |
| 15696 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15697 | esac |
| 15698 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15699 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15700 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15701 | as_expr=expr |
| 15702 | else |
| 15703 | as_expr=false |
| 15704 | fi |
| 15705 | |
| 15706 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15707 | if test -d conf$$.dir; then |
| 15708 | rm -f conf$$.dir/conf$$.file |
| 15709 | else |
| 15710 | rm -f conf$$.dir |
| 15711 | mkdir conf$$.dir |
| 15712 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15713 | echo >conf$$.file |
| 15714 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15715 | as_ln_s='ln -s' |
| 15716 | # ... but there are two gotchas: |
| 15717 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15718 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15719 | # In both cases, we have to default to `cp -p'. |
| 15720 | 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] | 15721 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15722 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15723 | as_ln_s=ln |
| 15724 | else |
| 15725 | as_ln_s='cp -p' |
| 15726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15727 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15728 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15729 | |
| 15730 | if mkdir -p . 2>/dev/null; then |
| 15731 | as_mkdir_p=: |
| 15732 | else |
| 15733 | test -d ./-p && rmdir ./-p |
| 15734 | as_mkdir_p=false |
| 15735 | fi |
| 15736 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15737 | if test -x / >/dev/null 2>&1; then |
| 15738 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15739 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15740 | if ls -dL / >/dev/null 2>&1; then |
| 15741 | as_ls_L_option=L |
| 15742 | else |
| 15743 | as_ls_L_option= |
| 15744 | fi |
| 15745 | as_test_x=' |
| 15746 | eval sh -c '\'' |
| 15747 | if test -d "$1"; then |
| 15748 | test -d "$1/."; |
| 15749 | else |
| 15750 | case $1 in |
| 15751 | -*)set "./$1";; |
| 15752 | esac; |
| 15753 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15754 | ???[sx]*):;;*)false;;esac;fi |
| 15755 | '\'' sh |
| 15756 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15757 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15758 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15759 | |
| 15760 | # Sed expression to map a string onto a valid CPP name. |
| 15761 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15762 | |
| 15763 | # Sed expression to map a string onto a valid variable name. |
| 15764 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15765 | |
| 15766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15767 | exec 6>&1 |
| 15768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15769 | # 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] | 15770 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15771 | # values after options handling. |
| 15772 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15773 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15774 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15775 | |
| 15776 | CONFIG_FILES = $CONFIG_FILES |
| 15777 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15778 | CONFIG_LINKS = $CONFIG_LINKS |
| 15779 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15780 | $ $0 $@ |
| 15781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15782 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15783 | " |
| 15784 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15785 | _ACEOF |
| 15786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15787 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15788 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15789 | config_files="$ac_config_files" |
| 15790 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15792 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15793 | |
| 15794 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15795 | ac_cs_usage="\ |
| 15796 | \`$as_me' instantiates files from templates according to the |
| 15797 | current configuration. |
| 15798 | |
| 15799 | Usage: $0 [OPTIONS] [FILE]... |
| 15800 | |
| 15801 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15802 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15803 | -q, --quiet do not print progress messages |
| 15804 | -d, --debug don't remove temporary files |
| 15805 | --recheck update $as_me by reconfiguring in the same conditions |
| 15806 | --file=FILE[:TEMPLATE] |
| 15807 | instantiate the configuration file FILE |
| 15808 | |
| 15809 | Configuration files: |
| 15810 | $config_files |
| 15811 | |
| 15812 | Configuration commands: |
| 15813 | $config_commands |
| 15814 | |
| 15815 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15817 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15818 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15819 | ac_cs_version="\\ |
| 15820 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15821 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15822 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15824 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15825 | This config.status script is free software; the Free Software Foundation |
| 15826 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15827 | |
| 15828 | ac_pwd='$ac_pwd' |
| 15829 | srcdir='$srcdir' |
| 15830 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15831 | _ACEOF |
| 15832 | |
| 15833 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15834 | # If no file are specified by the user, then we need to provide default |
| 15835 | # value. By we need to know if files were specified by the user. |
| 15836 | ac_need_defaults=: |
| 15837 | while test $# != 0 |
| 15838 | do |
| 15839 | case $1 in |
| 15840 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15841 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15842 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15843 | ac_shift=: |
| 15844 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15845 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15846 | ac_option=$1 |
| 15847 | ac_optarg=$2 |
| 15848 | ac_shift=shift |
| 15849 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15850 | esac |
| 15851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15852 | case $ac_option in |
| 15853 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15854 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15855 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15856 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15857 | echo "$ac_cs_version"; exit ;; |
| 15858 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15859 | debug=: ;; |
| 15860 | --file | --fil | --fi | --f ) |
| 15861 | $ac_shift |
| 15862 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15863 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15864 | --he | --h | --help | --hel | -h ) |
| 15865 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15866 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15867 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15868 | ac_cs_silent=: ;; |
| 15869 | |
| 15870 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15871 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15872 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15873 | { (exit 1); exit 1; }; } ;; |
| 15874 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15875 | *) ac_config_targets="$ac_config_targets $1" |
| 15876 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15877 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15878 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15879 | shift |
| 15880 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15881 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15882 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15883 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15884 | if $ac_cs_silent; then |
| 15885 | exec 6>/dev/null |
| 15886 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15887 | fi |
| 15888 | |
| 15889 | _ACEOF |
| 15890 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15891 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15892 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15893 | CONFIG_SHELL=$SHELL |
| 15894 | export CONFIG_SHELL |
| 15895 | 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] | 15896 | fi |
| 15897 | |
| 15898 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15899 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15900 | exec 5>>config.log |
| 15901 | { |
| 15902 | echo |
| 15903 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15904 | ## Running $as_me. ## |
| 15905 | _ASBOX |
| 15906 | echo "$ac_log" |
| 15907 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15909 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15910 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15911 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15912 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15913 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15914 | # 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] | 15915 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15916 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15917 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15918 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15919 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15920 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15921 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15922 | _ACEOF |
| 15923 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15924 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15925 | |
| 15926 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15927 | for ac_config_target in $ac_config_targets |
| 15928 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15929 | case $ac_config_target in |
| 15930 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15931 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15932 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15933 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15934 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15935 | { (exit 1); exit 1; }; };; |
| 15936 | esac |
| 15937 | done |
| 15938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15940 | # If the user did not use the arguments to specify the items to instantiate, |
| 15941 | # then the envvar interface is used. Set only those that are not. |
| 15942 | # We use the long form for the default assignment because of an extremely |
| 15943 | # bizarre bug on SunOS 4.1.3. |
| 15944 | if $ac_need_defaults; then |
| 15945 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15946 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15947 | fi |
| 15948 | |
| 15949 | # 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] | 15950 | # 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] | 15951 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15952 | # Hook for its removal unless debugging. |
| 15953 | # Note that there is a small window in which the directory will not be cleaned: |
| 15954 | # 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] | 15955 | $debug || |
| 15956 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15957 | tmp= |
| 15958 | trap 'exit_status=$? |
| 15959 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15960 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15961 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15962 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15963 | # Create a (secure) tmp directory for tmp files. |
| 15964 | |
| 15965 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15966 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15967 | test -n "$tmp" && test -d "$tmp" |
| 15968 | } || |
| 15969 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15970 | tmp=./conf$$-$RANDOM |
| 15971 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15972 | } || |
| 15973 | { |
| 15974 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15975 | { (exit 1); exit 1; } |
| 15976 | } |
| 15977 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15978 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15979 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15980 | # |
| 15981 | |
| 15982 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15983 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15984 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15985 | |
| 15986 | _ACEOF |
| 15987 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15988 | # Create sed commands to just substitute file output variables. |
| 15989 | |
| 15990 | # Remaining file output variables are in a fragment that also has non-file |
| 15991 | # output varibles. |
| 15992 | |
| 15993 | |
| 15994 | |
| 15995 | ac_delim='%!_!# ' |
| 15996 | for ac_last_try in false false false false false :; do |
| 15997 | cat >conf$$subs.sed <<_ACEOF |
| 15998 | SHELL!$SHELL$ac_delim |
| 15999 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 16000 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 16001 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 16002 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 16003 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 16004 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 16005 | exec_prefix!$exec_prefix$ac_delim |
| 16006 | prefix!$prefix$ac_delim |
| 16007 | program_transform_name!$program_transform_name$ac_delim |
| 16008 | bindir!$bindir$ac_delim |
| 16009 | sbindir!$sbindir$ac_delim |
| 16010 | libexecdir!$libexecdir$ac_delim |
| 16011 | datarootdir!$datarootdir$ac_delim |
| 16012 | datadir!$datadir$ac_delim |
| 16013 | sysconfdir!$sysconfdir$ac_delim |
| 16014 | sharedstatedir!$sharedstatedir$ac_delim |
| 16015 | localstatedir!$localstatedir$ac_delim |
| 16016 | includedir!$includedir$ac_delim |
| 16017 | oldincludedir!$oldincludedir$ac_delim |
| 16018 | docdir!$docdir$ac_delim |
| 16019 | infodir!$infodir$ac_delim |
| 16020 | htmldir!$htmldir$ac_delim |
| 16021 | dvidir!$dvidir$ac_delim |
| 16022 | pdfdir!$pdfdir$ac_delim |
| 16023 | psdir!$psdir$ac_delim |
| 16024 | libdir!$libdir$ac_delim |
| 16025 | localedir!$localedir$ac_delim |
| 16026 | mandir!$mandir$ac_delim |
| 16027 | DEFS!$DEFS$ac_delim |
| 16028 | ECHO_C!$ECHO_C$ac_delim |
| 16029 | ECHO_N!$ECHO_N$ac_delim |
| 16030 | ECHO_T!$ECHO_T$ac_delim |
| 16031 | LIBS!$LIBS$ac_delim |
| 16032 | build_alias!$build_alias$ac_delim |
| 16033 | host_alias!$host_alias$ac_delim |
| 16034 | target_alias!$target_alias$ac_delim |
| 16035 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 16036 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 16037 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 16038 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 16039 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16040 | build!$build$ac_delim |
| 16041 | build_cpu!$build_cpu$ac_delim |
| 16042 | build_vendor!$build_vendor$ac_delim |
| 16043 | build_os!$build_os$ac_delim |
| 16044 | host!$host$ac_delim |
| 16045 | host_cpu!$host_cpu$ac_delim |
| 16046 | host_vendor!$host_vendor$ac_delim |
| 16047 | host_os!$host_os$ac_delim |
| 16048 | CC!$CC$ac_delim |
| 16049 | CFLAGS!$CFLAGS$ac_delim |
| 16050 | LDFLAGS!$LDFLAGS$ac_delim |
| 16051 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 16052 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 16053 | EXEEXT!$EXEEXT$ac_delim |
| 16054 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16055 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16056 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16057 | GREP!$GREP$ac_delim |
| 16058 | EGREP!$EGREP$ac_delim |
| 16059 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 16060 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 16061 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 16062 | ELF_CMT!$ELF_CMT$ac_delim |
| 16063 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 16064 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 16065 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 16066 | LIB_EXT!$LIB_EXT$ac_delim |
| 16067 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 16068 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16069 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 16070 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16071 | _ACEOF |
| 16072 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16073 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16074 | break |
| 16075 | elif $ac_last_try; then |
| 16076 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16077 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16078 | { (exit 1); exit 1; }; } |
| 16079 | else |
| 16080 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16081 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16082 | done |
| 16083 | |
| 16084 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16085 | if test -n "$ac_eof"; then |
| 16086 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16087 | ac_eof=`expr $ac_eof + 1` |
| 16088 | fi |
| 16089 | |
| 16090 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16091 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 16092 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16093 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 16094 | r $MCONFIG |
| 16095 | d |
| 16096 | } |
| 16097 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 16098 | r $MAKEFILE_ELF |
| 16099 | d |
| 16100 | } |
| 16101 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 16102 | r $MAKEFILE_BSDLIB |
| 16103 | d |
| 16104 | } |
| 16105 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 16106 | r $MAKEFILE_PROFILE |
| 16107 | d |
| 16108 | } |
| 16109 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 16110 | r $MAKEFILE_CHECKER |
| 16111 | d |
| 16112 | } |
| 16113 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 16114 | r $MAKEFILE_LIBRARY |
| 16115 | d |
| 16116 | } |
| 16117 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 16118 | r $ASM_TYPES_HEADER |
| 16119 | d |
| 16120 | } |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16121 | /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ |
| 16122 | r $PUBLIC_CONFIG_HEADER |
| 16123 | d |
| 16124 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16125 | _ACEOF |
| 16126 | sed ' |
| 16127 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16128 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16129 | :n |
| 16130 | t n |
| 16131 | s/'"$ac_delim"'$/,g/; t |
| 16132 | s/$/\\/; p |
| 16133 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16134 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16135 | rm -f conf$$subs.sed |
| 16136 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16137 | CEOF$ac_eof |
| 16138 | _ACEOF |
| 16139 | |
| 16140 | |
| 16141 | ac_delim='%!_!# ' |
| 16142 | for ac_last_try in false false false false false :; do |
| 16143 | cat >conf$$subs.sed <<_ACEOF |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16144 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 16145 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16146 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 16147 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 16148 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16149 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16150 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 16151 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 16152 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 16153 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16154 | STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 16155 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16156 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 16157 | PACKAGE!$PACKAGE$ac_delim |
| 16158 | VERSION!$VERSION$ac_delim |
| 16159 | SET_MAKE!$SET_MAKE$ac_delim |
| 16160 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 16161 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 16162 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 16163 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 16164 | USE_NLS!$USE_NLS$ac_delim |
| 16165 | MSGFMT!$MSGFMT$ac_delim |
| 16166 | GMSGFMT!$GMSGFMT$ac_delim |
| 16167 | XGETTEXT!$XGETTEXT$ac_delim |
| 16168 | MSGMERGE!$MSGMERGE$ac_delim |
| 16169 | RANLIB!$RANLIB$ac_delim |
| 16170 | ALLOCA!$ALLOCA$ac_delim |
| 16171 | GLIBC21!$GLIBC21$ac_delim |
| 16172 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 16173 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 16174 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 16175 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 16176 | LIBICONV!$LIBICONV$ac_delim |
| 16177 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 16178 | INTLBISON!$INTLBISON$ac_delim |
| 16179 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16180 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16181 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16182 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16183 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16184 | GENCAT!$GENCAT$ac_delim |
| 16185 | INTLOBJS!$INTLOBJS$ac_delim |
| 16186 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16187 | INTLLIBS!$INTLLIBS$ac_delim |
| 16188 | LIBINTL!$LIBINTL$ac_delim |
| 16189 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16190 | POSUB!$POSUB$ac_delim |
| 16191 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16192 | LN!$LN$ac_delim |
| 16193 | LN_S!$LN_S$ac_delim |
| 16194 | MV!$MV$ac_delim |
| 16195 | CP!$CP$ac_delim |
| 16196 | RM!$RM$ac_delim |
| 16197 | CHMOD!$CHMOD$ac_delim |
| 16198 | AWK!$AWK$ac_delim |
| 16199 | SED!$SED$ac_delim |
| 16200 | PERL!$PERL$ac_delim |
| 16201 | LDCONFIG!$LDCONFIG$ac_delim |
| 16202 | AR!$AR$ac_delim |
| 16203 | STRIP!$STRIP$ac_delim |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 16204 | MAKEINFO!$MAKEINFO$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16205 | BUILD_CC!$BUILD_CC$ac_delim |
| 16206 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16207 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16208 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16209 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16210 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16211 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 16212 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16213 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16214 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16215 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16216 | root_prefix!$root_prefix$ac_delim |
| 16217 | root_bindir!$root_bindir$ac_delim |
| 16218 | root_sbindir!$root_sbindir$ac_delim |
| 16219 | root_libdir!$root_libdir$ac_delim |
| 16220 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16221 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16222 | SS_DIR!$SS_DIR$ac_delim |
| 16223 | ET_DIR!$ET_DIR$ac_delim |
| 16224 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16225 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16226 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16227 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16228 | LIBOBJS!$LIBOBJS$ac_delim |
| 16229 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16230 | _ACEOF |
| 16231 | |
Theodore Ts'o | dc9345a | 2008-06-07 10:08:48 -0400 | [diff] [blame] | 16232 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16233 | break |
| 16234 | elif $ac_last_try; then |
| 16235 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16236 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16237 | { (exit 1); exit 1; }; } |
| 16238 | else |
| 16239 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16240 | fi |
| 16241 | done |
| 16242 | |
| 16243 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16244 | if test -n "$ac_eof"; then |
| 16245 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16246 | ac_eof=`expr $ac_eof + 1` |
| 16247 | fi |
| 16248 | |
| 16249 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16250 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16251 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16252 | _ACEOF |
| 16253 | sed ' |
| 16254 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16255 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16256 | :n |
| 16257 | t n |
| 16258 | s/'"$ac_delim"'$/,g/; t |
| 16259 | s/$/\\/; p |
| 16260 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16261 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16262 | rm -f conf$$subs.sed |
| 16263 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16264 | :end |
| 16265 | s/|#_!!_#|//g |
| 16266 | CEOF$ac_eof |
| 16267 | _ACEOF |
| 16268 | |
| 16269 | |
| 16270 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16271 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16272 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16273 | # (actually we leave an empty line to preserve line numbers). |
| 16274 | if test "x$srcdir" = x.; then |
| 16275 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16276 | s/:*\$(srcdir):*/:/ |
| 16277 | s/:*\${srcdir}:*/:/ |
| 16278 | s/:*@srcdir@:*/:/ |
| 16279 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16280 | s/:*$// |
| 16281 | s/^[^=]*=[ ]*$// |
| 16282 | }' |
| 16283 | fi |
| 16284 | |
| 16285 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16286 | fi # test -n "$CONFIG_FILES" |
| 16287 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16288 | |
| 16289 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16290 | do |
| 16291 | case $ac_tag in |
| 16292 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16293 | esac |
| 16294 | case $ac_mode$ac_tag in |
| 16295 | :[FHL]*:*);; |
| 16296 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16297 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16298 | { (exit 1); exit 1; }; };; |
| 16299 | :[FH]-) ac_tag=-:-;; |
| 16300 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16301 | esac |
| 16302 | ac_save_IFS=$IFS |
| 16303 | IFS=: |
| 16304 | set x $ac_tag |
| 16305 | IFS=$ac_save_IFS |
| 16306 | shift |
| 16307 | ac_file=$1 |
| 16308 | shift |
| 16309 | |
| 16310 | case $ac_mode in |
| 16311 | :L) ac_source=$1;; |
| 16312 | :[FH]) |
| 16313 | ac_file_inputs= |
| 16314 | for ac_f |
| 16315 | do |
| 16316 | case $ac_f in |
| 16317 | -) ac_f="$tmp/stdin";; |
| 16318 | *) # Look for the file first in the build tree, then in the source tree |
| 16319 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16320 | # because $ac_f cannot contain `:'. |
| 16321 | test -f "$ac_f" || |
| 16322 | case $ac_f in |
| 16323 | [\\/$]*) false;; |
| 16324 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16325 | esac || |
| 16326 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16327 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16328 | { (exit 1); exit 1; }; };; |
| 16329 | esac |
| 16330 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16331 | done |
| 16332 | |
| 16333 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16334 | # use $as_me), people would be surprised to read: |
| 16335 | # /* config.h. Generated by config.status. */ |
| 16336 | configure_input="Generated from "`IFS=: |
| 16337 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16338 | if test x"$ac_file" != x-; then |
| 16339 | configure_input="$ac_file. $configure_input" |
| 16340 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16341 | echo "$as_me: creating $ac_file" >&6;} |
| 16342 | fi |
| 16343 | |
| 16344 | case $ac_tag in |
| 16345 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16346 | esac |
| 16347 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16348 | esac |
| 16349 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16350 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16351 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16352 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16353 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16354 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16355 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16357 | s//\1/ |
| 16358 | q |
| 16359 | } |
| 16360 | /^X\(\/\/\)[^/].*/{ |
| 16361 | s//\1/ |
| 16362 | q |
| 16363 | } |
| 16364 | /^X\(\/\/\)$/{ |
| 16365 | s//\1/ |
| 16366 | q |
| 16367 | } |
| 16368 | /^X\(\/\).*/{ |
| 16369 | s//\1/ |
| 16370 | q |
| 16371 | } |
| 16372 | s/.*/./; q'` |
| 16373 | { as_dir="$ac_dir" |
| 16374 | case $as_dir in #( |
| 16375 | -*) as_dir=./$as_dir;; |
| 16376 | esac |
| 16377 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16378 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16379 | while :; do |
| 16380 | case $as_dir in #( |
| 16381 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16382 | *) as_qdir=$as_dir;; |
| 16383 | esac |
| 16384 | as_dirs="'$as_qdir' $as_dirs" |
| 16385 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16386 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16387 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16388 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16389 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16390 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16392 | s//\1/ |
| 16393 | q |
| 16394 | } |
| 16395 | /^X\(\/\/\)[^/].*/{ |
| 16396 | s//\1/ |
| 16397 | q |
| 16398 | } |
| 16399 | /^X\(\/\/\)$/{ |
| 16400 | s//\1/ |
| 16401 | q |
| 16402 | } |
| 16403 | /^X\(\/\).*/{ |
| 16404 | s//\1/ |
| 16405 | q |
| 16406 | } |
| 16407 | s/.*/./; q'` |
| 16408 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16409 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16410 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16411 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16412 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16413 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16414 | ac_builddir=. |
| 16415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16416 | case "$ac_dir" in |
| 16417 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16418 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16419 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16420 | # A ".." for each directory in $ac_dir_suffix. |
| 16421 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16422 | case $ac_top_builddir_sub in |
| 16423 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16424 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16425 | esac ;; |
| 16426 | esac |
| 16427 | ac_abs_top_builddir=$ac_pwd |
| 16428 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16429 | # for backward compatibility: |
| 16430 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16431 | |
| 16432 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16433 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16434 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16435 | ac_top_srcdir=$ac_top_builddir_sub |
| 16436 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16437 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16438 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16439 | ac_top_srcdir=$srcdir |
| 16440 | ac_abs_top_srcdir=$srcdir ;; |
| 16441 | *) # Relative name. |
| 16442 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16443 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16444 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16445 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16446 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16449 | case $ac_mode in |
| 16450 | :F) |
| 16451 | # |
| 16452 | # CONFIG_FILE |
| 16453 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16454 | |
| 16455 | case $INSTALL in |
| 16456 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16457 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16458 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16459 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16460 | |
| 16461 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16462 | # If the template does not know about datarootdir, expand it. |
| 16463 | # FIXME: This hack should be removed a few years after 2.60. |
| 16464 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16465 | |
| 16466 | case `sed -n '/datarootdir/ { |
| 16467 | p |
| 16468 | q |
| 16469 | } |
| 16470 | /@datadir@/p |
| 16471 | /@docdir@/p |
| 16472 | /@infodir@/p |
| 16473 | /@localedir@/p |
| 16474 | /@mandir@/p |
| 16475 | ' $ac_file_inputs` in |
| 16476 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16477 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16478 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16479 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16480 | _ACEOF |
| 16481 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16482 | ac_datarootdir_hack=' |
| 16483 | s&@datadir@&$datadir&g |
| 16484 | s&@docdir@&$docdir&g |
| 16485 | s&@infodir@&$infodir&g |
| 16486 | s&@localedir@&$localedir&g |
| 16487 | s&@mandir@&$mandir&g |
| 16488 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16489 | esac |
| 16490 | _ACEOF |
| 16491 | |
| 16492 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16493 | # Shell code in configure.ac might set extrasub. |
| 16494 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16495 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16496 | sed "$ac_vpsub |
| 16497 | $extrasub |
| 16498 | _ACEOF |
| 16499 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16500 | :t |
| 16501 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16502 | s&@configure_input@&$configure_input&;t t |
| 16503 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16504 | s&@srcdir@&$ac_srcdir&;t t |
| 16505 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16506 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16507 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16508 | s&@builddir@&$ac_builddir&;t t |
| 16509 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16510 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16511 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16512 | $ac_datarootdir_hack |
| 16513 | " $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] | 16514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16515 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16516 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16517 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16518 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16519 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16520 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16521 | 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] | 16522 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16523 | rm -f "$tmp/stdin" |
| 16524 | case $ac_file in |
| 16525 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16526 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16527 | esac |
| 16528 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16529 | |
| 16530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16531 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16532 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16533 | ;; |
| 16534 | esac |
| 16535 | |
| 16536 | |
| 16537 | case $ac_file$ac_mode in |
| 16538 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16539 | for ac_file in $CONFIG_FILES; do |
| 16540 | # Support "outfile[:infile[:infile...]]" |
| 16541 | case "$ac_file" in |
| 16542 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16543 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16544 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16545 | case "$ac_file" in */Makefile.in) |
| 16546 | # Adjust a relative srcdir. |
| 16547 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16548 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16549 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16550 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16551 | # In autoconf-2.50 it is called $srcdir. |
| 16552 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16553 | case "$ac_given_srcdir" in |
| 16554 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16555 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16556 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16557 | esac |
| 16558 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16559 | rm -f "$ac_dir/POTFILES" |
| 16560 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16561 | 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] | 16562 | POMAKEFILEDEPS="POTFILES.in" |
| 16563 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16564 | # on $ac_dir but don't depend on user-specified configuration |
| 16565 | # parameters. |
| 16566 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16567 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16568 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16569 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16570 | fi |
| 16571 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16572 | # Hide the ALL_LINGUAS assigment from automake. |
| 16573 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16574 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16575 | else |
| 16576 | # The set of available languages was given in configure.in. |
| 16577 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16578 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16579 | # Compute POFILES |
| 16580 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16581 | # Compute UPDATEPOFILES |
| 16582 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16583 | # Compute DUMMYPOFILES |
| 16584 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16585 | # Compute GMOFILES |
| 16586 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16587 | case "$ac_given_srcdir" in |
| 16588 | .) srcdirpre= ;; |
| 16589 | *) srcdirpre='$(srcdir)/' ;; |
| 16590 | esac |
| 16591 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16592 | UPDATEPOFILES= |
| 16593 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16594 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16595 | for lang in $ALL_LINGUAS; do |
| 16596 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16597 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16598 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16599 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16600 | done |
| 16601 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16602 | # environment variable. |
| 16603 | INST_LINGUAS= |
| 16604 | if test -n "$ALL_LINGUAS"; then |
| 16605 | for presentlang in $ALL_LINGUAS; do |
| 16606 | useit=no |
| 16607 | if test "%UNSET%" != "$LINGUAS"; then |
| 16608 | desiredlanguages="$LINGUAS" |
| 16609 | else |
| 16610 | desiredlanguages="$ALL_LINGUAS" |
| 16611 | fi |
| 16612 | for desiredlang in $desiredlanguages; do |
| 16613 | # Use the presentlang catalog if desiredlang is |
| 16614 | # a. equal to presentlang, or |
| 16615 | # b. a variant of presentlang (because in this case, |
| 16616 | # presentlang can be used as a fallback for messages |
| 16617 | # which are not translated in the desiredlang catalog). |
| 16618 | case "$desiredlang" in |
| 16619 | "$presentlang"*) useit=yes;; |
| 16620 | esac |
| 16621 | done |
| 16622 | if test $useit = yes; then |
| 16623 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16624 | fi |
| 16625 | done |
| 16626 | fi |
| 16627 | CATALOGS= |
| 16628 | if test -n "$INST_LINGUAS"; then |
| 16629 | for lang in $INST_LINGUAS; do |
| 16630 | CATALOGS="$CATALOGS $lang.gmo" |
| 16631 | done |
| 16632 | fi |
| 16633 | 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] | 16634 | 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] | 16635 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16636 | if test -f "$f"; then |
| 16637 | case "$f" in |
| 16638 | *.orig | *.bak | *~) ;; |
| 16639 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16640 | esac |
| 16641 | fi |
| 16642 | done |
| 16643 | fi |
| 16644 | ;; |
| 16645 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16646 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16647 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16648 | esac |
| 16649 | done # for ac_tag |
| 16650 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16651 | |
| 16652 | { (exit 0); exit 0; } |
| 16653 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16654 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16655 | ac_clean_files=$ac_clean_files_save |
| 16656 | |
| 16657 | |
| 16658 | # configure is writing to config.log, and then calls config.status. |
| 16659 | # config.status does its own redirection, appending to config.log. |
| 16660 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16661 | # by configure, so config.status won't be able to write to it; its |
| 16662 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16663 | # effectively closing config.log, so it can be properly (re)opened and |
| 16664 | # appended to by config.status. When coming back to configure, we |
| 16665 | # need to make the FD available again. |
| 16666 | if test "$no_create" != yes; then |
| 16667 | ac_cs_success=: |
| 16668 | ac_config_status_args= |
| 16669 | test "$silent" = yes && |
| 16670 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16671 | exec 5>/dev/null |
| 16672 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16673 | exec 5>>config.log |
| 16674 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16675 | # would make configure fail if this is the last instruction. |
| 16676 | $ac_cs_success || { (exit 1); exit 1; } |
| 16677 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16678 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16679 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16680 | |