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 |
| 749 | BUILD_CC |
| 750 | SIZEOF_SHORT |
| 751 | SIZEOF_INT |
| 752 | SIZEOF_LONG |
| 753 | SIZEOF_LONG_LONG |
| 754 | SOCKET_LIB |
| 755 | DLOPEN_LIB |
| 756 | UNI_DIFF_OPTS |
| 757 | LINUX_CMT |
| 758 | CYGWIN_CMT |
| 759 | UNIX_CMT |
| 760 | root_prefix |
| 761 | root_bindir |
| 762 | root_sbindir |
| 763 | root_libdir |
| 764 | root_sysconfdir |
| 765 | LDFLAG_STATIC |
| 766 | SS_DIR |
| 767 | ET_DIR |
| 768 | DO_TEST_SUITE |
| 769 | INTL_FLAGS |
| 770 | BUILD_CFLAGS |
| 771 | BUILD_LDFLAGS |
| 772 | LIBOBJS |
| 773 | LTLIBOBJS' |
| 774 | ac_subst_files='MCONFIG |
| 775 | MAKEFILE_ELF |
| 776 | MAKEFILE_BSDLIB |
| 777 | MAKEFILE_PROFILE |
| 778 | MAKEFILE_CHECKER |
| 779 | MAKEFILE_LIBRARY |
| 780 | ASM_TYPES_HEADER' |
| 781 | ac_precious_vars='build_alias |
| 782 | host_alias |
| 783 | target_alias |
| 784 | CC |
| 785 | CFLAGS |
| 786 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 787 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 788 | CPPFLAGS |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 789 | CPP |
| 790 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 791 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 792 | |
| 793 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 794 | ac_init_help= |
| 795 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 796 | # The variables have the same names as the options, with |
| 797 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 798 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 799 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 800 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 801 | no_recursion= |
| 802 | prefix=NONE |
| 803 | program_prefix=NONE |
| 804 | program_suffix=NONE |
| 805 | program_transform_name=s,x,x, |
| 806 | silent= |
| 807 | site= |
| 808 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 809 | verbose= |
| 810 | x_includes=NONE |
| 811 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 812 | |
| 813 | # Installation directory options. |
| 814 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 815 | # and all the variables that are supposed to be based on exec_prefix |
| 816 | # by default will actually change. |
| 817 | # 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] | 818 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 819 | bindir='${exec_prefix}/bin' |
| 820 | sbindir='${exec_prefix}/sbin' |
| 821 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 822 | datarootdir='${prefix}/share' |
| 823 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 824 | sysconfdir='${prefix}/etc' |
| 825 | sharedstatedir='${prefix}/com' |
| 826 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 827 | includedir='${prefix}/include' |
| 828 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 829 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 830 | infodir='${datarootdir}/info' |
| 831 | htmldir='${docdir}' |
| 832 | dvidir='${docdir}' |
| 833 | pdfdir='${docdir}' |
| 834 | psdir='${docdir}' |
| 835 | libdir='${exec_prefix}/lib' |
| 836 | localedir='${datarootdir}/locale' |
| 837 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 838 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 840 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | for ac_option |
| 842 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 843 | # If the previous option needs an argument, assign it. |
| 844 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 845 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 846 | ac_prev= |
| 847 | continue |
| 848 | fi |
| 849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 850 | case $ac_option in |
| 851 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 852 | *) ac_optarg=yes ;; |
| 853 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 854 | |
| 855 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 857 | case $ac_dashdash$ac_option in |
| 858 | --) |
| 859 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 860 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 861 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 862 | ac_prev=bindir ;; |
| 863 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 864 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 865 | |
| 866 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 867 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 868 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 869 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 870 | |
| 871 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 872 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 873 | ac_prev=cache_file ;; |
| 874 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 875 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 876 | cache_file=$ac_optarg ;; |
| 877 | |
| 878 | --config-cache | -C) |
| 879 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 881 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 882 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 883 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 884 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 885 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 886 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 887 | | --dataroo | --dataro | --datar) |
| 888 | ac_prev=datarootdir ;; |
| 889 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 890 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 891 | datarootdir=$ac_optarg ;; |
| 892 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 894 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 896 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 897 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 898 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 899 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 900 | eval enable_$ac_feature=no ;; |
| 901 | |
| 902 | -docdir | --docdir | --docdi | --doc | --do) |
| 903 | ac_prev=docdir ;; |
| 904 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 905 | docdir=$ac_optarg ;; |
| 906 | |
| 907 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 908 | ac_prev=dvidir ;; |
| 909 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 910 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | |
| 912 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 915 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 916 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 917 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 918 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 919 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 920 | |
| 921 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 922 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 923 | | --exec | --exe | --ex) |
| 924 | ac_prev=exec_prefix ;; |
| 925 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 926 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 927 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 928 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 929 | |
| 930 | -gas | --gas | --ga | --g) |
| 931 | # Obsolete; use --with-gas. |
| 932 | with_gas=yes ;; |
| 933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 934 | -help | --help | --hel | --he | -h) |
| 935 | ac_init_help=long ;; |
| 936 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 937 | ac_init_help=recursive ;; |
| 938 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 939 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 940 | |
| 941 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 942 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 943 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 944 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 946 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 947 | ac_prev=htmldir ;; |
| 948 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 949 | | --ht=*) |
| 950 | htmldir=$ac_optarg ;; |
| 951 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 952 | -includedir | --includedir | --includedi | --included | --include \ |
| 953 | | --includ | --inclu | --incl | --inc) |
| 954 | ac_prev=includedir ;; |
| 955 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 956 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 957 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 958 | |
| 959 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 960 | ac_prev=infodir ;; |
| 961 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 962 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 963 | |
| 964 | -libdir | --libdir | --libdi | --libd) |
| 965 | ac_prev=libdir ;; |
| 966 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 967 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 968 | |
| 969 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 970 | | --libexe | --libex | --libe) |
| 971 | ac_prev=libexecdir ;; |
| 972 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 973 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 974 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 976 | -localedir | --localedir | --localedi | --localed | --locale) |
| 977 | ac_prev=localedir ;; |
| 978 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 979 | localedir=$ac_optarg ;; |
| 980 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 981 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 982 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | ac_prev=localstatedir ;; |
| 984 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 985 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 986 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 987 | |
| 988 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 989 | ac_prev=mandir ;; |
| 990 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 991 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 992 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 993 | -nfp | --nfp | --nf) |
| 994 | # Obsolete; use --without-fp. |
| 995 | with_fp=no ;; |
| 996 | |
| 997 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 998 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 999 | no_create=yes ;; |
| 1000 | |
| 1001 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1002 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1003 | no_recursion=yes ;; |
| 1004 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1005 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1006 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1007 | | --oldin | --oldi | --old | --ol | --o) |
| 1008 | ac_prev=oldincludedir ;; |
| 1009 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1010 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1011 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1012 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1013 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1014 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1015 | ac_prev=prefix ;; |
| 1016 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1017 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1018 | |
| 1019 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1020 | | --program-pre | --program-pr | --program-p) |
| 1021 | ac_prev=program_prefix ;; |
| 1022 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1023 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1024 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1025 | |
| 1026 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1027 | | --program-suf | --program-su | --program-s) |
| 1028 | ac_prev=program_suffix ;; |
| 1029 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1030 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1031 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1032 | |
| 1033 | -program-transform-name | --program-transform-name \ |
| 1034 | | --program-transform-nam | --program-transform-na \ |
| 1035 | | --program-transform-n | --program-transform- \ |
| 1036 | | --program-transform | --program-transfor \ |
| 1037 | | --program-transfo | --program-transf \ |
| 1038 | | --program-trans | --program-tran \ |
| 1039 | | --progr-tra | --program-tr | --program-t) |
| 1040 | ac_prev=program_transform_name ;; |
| 1041 | -program-transform-name=* | --program-transform-name=* \ |
| 1042 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1043 | | --program-transform-n=* | --program-transform-=* \ |
| 1044 | | --program-transform=* | --program-transfor=* \ |
| 1045 | | --program-transfo=* | --program-transf=* \ |
| 1046 | | --program-trans=* | --program-tran=* \ |
| 1047 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1048 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1049 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1050 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1051 | ac_prev=pdfdir ;; |
| 1052 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1053 | pdfdir=$ac_optarg ;; |
| 1054 | |
| 1055 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1056 | ac_prev=psdir ;; |
| 1057 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1058 | psdir=$ac_optarg ;; |
| 1059 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1061 | | -silent | --silent | --silen | --sile | --sil) |
| 1062 | silent=yes ;; |
| 1063 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1064 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1065 | ac_prev=sbindir ;; |
| 1066 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1067 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1068 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1069 | |
| 1070 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1071 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1072 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1073 | | --sha | --sh) |
| 1074 | ac_prev=sharedstatedir ;; |
| 1075 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1076 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1077 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1078 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1079 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1080 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | -site | --site | --sit) |
| 1082 | ac_prev=site ;; |
| 1083 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1084 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1085 | |
| 1086 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1087 | ac_prev=srcdir ;; |
| 1088 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1089 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1090 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1091 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1092 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1093 | ac_prev=sysconfdir ;; |
| 1094 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1095 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1096 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1097 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1099 | ac_prev=target_alias ;; |
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 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1102 | |
| 1103 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1104 | verbose=yes ;; |
| 1105 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1106 | -version | --version | --versio | --versi | --vers | -V) |
| 1107 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1108 | |
| 1109 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1110 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1111 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1112 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1113 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1114 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1115 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1116 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1117 | |
| 1118 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1119 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1120 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1121 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1122 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1123 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1124 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1125 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1126 | |
| 1127 | --x) |
| 1128 | # Obsolete; use --with-x. |
| 1129 | with_x=yes ;; |
| 1130 | |
| 1131 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1132 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1133 | ac_prev=x_includes ;; |
| 1134 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1135 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1136 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1137 | |
| 1138 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1139 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1140 | ac_prev=x_libraries ;; |
| 1141 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1142 | | --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] | 1143 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1144 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1145 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1146 | Try \`$0 --help' for more information." >&2 |
| 1147 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | ;; |
| 1149 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1150 | *=*) |
| 1151 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1152 | # Reject names that are not valid shell variable names. |
| 1153 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1154 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1155 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1156 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1157 | export $ac_envvar ;; |
| 1158 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1159 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1160 | # FIXME: should be removed in autoconf 3.0. |
| 1161 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1162 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1163 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1164 | : ${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] | 1165 | ;; |
| 1166 | |
| 1167 | esac |
| 1168 | done |
| 1169 | |
| 1170 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1171 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1172 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1173 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1174 | fi |
| 1175 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1176 | # Be sure to have absolute directory names. |
| 1177 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1178 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1179 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1180 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1182 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1183 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1184 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1185 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1186 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1187 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1188 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1189 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1191 | # There might be people who depend on the old broken behavior: `$host' |
| 1192 | # used to hold the argument of --host etc. |
| 1193 | # FIXME: To remove some day. |
| 1194 | build=$build_alias |
| 1195 | host=$host_alias |
| 1196 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1197 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1198 | # FIXME: To remove some day. |
| 1199 | if test "x$host_alias" != x; then |
| 1200 | if test "x$build_alias" = x; then |
| 1201 | cross_compiling=maybe |
| 1202 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1203 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1204 | elif test "x$build_alias" != "x$host_alias"; then |
| 1205 | cross_compiling=yes |
| 1206 | fi |
| 1207 | fi |
| 1208 | |
| 1209 | ac_tool_prefix= |
| 1210 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1211 | |
| 1212 | test "$silent" = yes && exec 6>/dev/null |
| 1213 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1214 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1215 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1216 | ac_ls_di=`ls -di .` && |
| 1217 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1218 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1219 | { (exit 1); exit 1; }; } |
| 1220 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1221 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1222 | { (exit 1); exit 1; }; } |
| 1223 | |
| 1224 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1225 | # Find the source files, if location was not specified. |
| 1226 | if test -z "$srcdir"; then |
| 1227 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1228 | # Try the directory containing this script, then the parent directory. |
| 1229 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1230 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1231 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1232 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1233 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1234 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | /^X\(\/\/\)[^/].*/{ |
| 1240 | s//\1/ |
| 1241 | q |
| 1242 | } |
| 1243 | /^X\(\/\/\)$/{ |
| 1244 | s//\1/ |
| 1245 | q |
| 1246 | } |
| 1247 | /^X\(\/\).*/{ |
| 1248 | s//\1/ |
| 1249 | q |
| 1250 | } |
| 1251 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1253 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | srcdir=.. |
| 1255 | fi |
| 1256 | else |
| 1257 | ac_srcdir_defaulted=no |
| 1258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1259 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1260 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1261 | { 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] | 1262 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1264 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1265 | ac_abs_confdir=`( |
| 1266 | 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] | 1267 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1268 | pwd)` |
| 1269 | # When building in place, set srcdir=. |
| 1270 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1271 | srcdir=. |
| 1272 | fi |
| 1273 | # Remove unnecessary trailing slashes from srcdir. |
| 1274 | # Double slashes in file names in object file debugging info |
| 1275 | # mess up M-x gdb in Emacs. |
| 1276 | case $srcdir in |
| 1277 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1278 | esac |
| 1279 | for ac_var in $ac_precious_vars; do |
| 1280 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1282 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1284 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1285 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1286 | # |
| 1287 | # Report the --help message. |
| 1288 | # |
| 1289 | if test "$ac_init_help" = "long"; then |
| 1290 | # Omit some internal or obsolete options to make the list less imposing. |
| 1291 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1292 | cat <<_ACEOF |
| 1293 | \`configure' configures this package to adapt to many kinds of systems. |
| 1294 | |
| 1295 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1296 | |
| 1297 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1298 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1299 | |
| 1300 | Defaults for the options are specified in brackets. |
| 1301 | |
| 1302 | Configuration: |
| 1303 | -h, --help display this help and exit |
| 1304 | --help=short display options specific to this package |
| 1305 | --help=recursive display the short help of all the included packages |
| 1306 | -V, --version display version information and exit |
| 1307 | -q, --quiet, --silent do not print \`checking...' messages |
| 1308 | --cache-file=FILE cache test results in FILE [disabled] |
| 1309 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1310 | -n, --no-create do not create output files |
| 1311 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1313 | Installation directories: |
| 1314 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1315 | [$ac_default_prefix] |
| 1316 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1317 | [PREFIX] |
| 1318 | |
| 1319 | By default, \`make install' will install all the files in |
| 1320 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1321 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1322 | for instance \`--prefix=\$HOME'. |
| 1323 | |
| 1324 | For better control, use the options below. |
| 1325 | |
| 1326 | Fine tuning of the installation directories: |
| 1327 | --bindir=DIR user executables [EPREFIX/bin] |
| 1328 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1329 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1330 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1331 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1332 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1333 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1334 | --includedir=DIR C header files [PREFIX/include] |
| 1335 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1336 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1337 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1338 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1339 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1340 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1341 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1342 | --htmldir=DIR html documentation [DOCDIR] |
| 1343 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1344 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1345 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1346 | _ACEOF |
| 1347 | |
| 1348 | cat <<\_ACEOF |
| 1349 | |
| 1350 | System types: |
| 1351 | --build=BUILD configure for building on BUILD [guessed] |
| 1352 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1353 | _ACEOF |
| 1354 | fi |
| 1355 | |
| 1356 | if test -n "$ac_init_help"; then |
| 1357 | |
| 1358 | cat <<\_ACEOF |
| 1359 | |
| 1360 | Optional Features: |
| 1361 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1362 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1363 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1364 | --enable-compression enable EXPERIMENTAL compression support |
| 1365 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1366 | --enable-elf-shlibs select ELF shared libraries |
| 1367 | --enable-bsd-shlibs select BSD shared libraries |
| 1368 | --enable-profile build profiling libraries |
| 1369 | --enable-checker build checker libraries |
| 1370 | --enable-jbd-debug enable journal debugging |
| 1371 | --enable-blkid-debug enable blkid debugging |
| 1372 | --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] | 1373 | --disable-debugfs disable support of debugfs program |
| 1374 | --disable-imager disable support of e2image program |
| 1375 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1376 | --enable-fsck build fsck wrapper program |
| 1377 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1378 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1379 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1380 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1381 | --disable-nls do not use Native Language Support |
| 1382 | --disable-rpath do not hardcode runtime library paths |
| 1383 | |
| 1384 | Optional Packages: |
| 1385 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1386 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1387 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1388 | --with-cc=COMPILER select compiler to use |
| 1389 | --with-linker=LINKER select linker to use |
| 1390 | --with-ccopts=CCOPTS select compiler command line options |
| 1391 | --with-ldopts=LDOPTS select linker command line options |
| 1392 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1393 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1394 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1395 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1396 | --with-included-gettext use the GNU gettext library included here |
| 1397 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1398 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1399 | |
| 1400 | Some influential environment variables: |
| 1401 | CC C compiler command |
| 1402 | CFLAGS C compiler flags |
| 1403 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1404 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1405 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1406 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1407 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1408 | CPP C preprocessor |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 1409 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1410 | |
| 1411 | Use these variables to override the choices made by `configure' or to help |
| 1412 | it to find libraries and programs with nonstandard names/locations. |
| 1413 | |
| 1414 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1415 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1416 | fi |
| 1417 | |
| 1418 | if test "$ac_init_help" = "recursive"; then |
| 1419 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1420 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1421 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1422 | ac_builddir=. |
| 1423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1424 | case "$ac_dir" in |
| 1425 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1426 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1427 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1428 | # A ".." for each directory in $ac_dir_suffix. |
| 1429 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1430 | case $ac_top_builddir_sub in |
| 1431 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1432 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1433 | esac ;; |
| 1434 | esac |
| 1435 | ac_abs_top_builddir=$ac_pwd |
| 1436 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1437 | # for backward compatibility: |
| 1438 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | |
| 1440 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1441 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1442 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1443 | ac_top_srcdir=$ac_top_builddir_sub |
| 1444 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1445 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1446 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1447 | ac_top_srcdir=$srcdir |
| 1448 | ac_abs_top_srcdir=$srcdir ;; |
| 1449 | *) # Relative name. |
| 1450 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1451 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1452 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1453 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1454 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1455 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1456 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1457 | # Check for guested configure. |
| 1458 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1459 | echo && |
| 1460 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1461 | elif test -f "$ac_srcdir/configure"; then |
| 1462 | echo && |
| 1463 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1464 | else |
| 1465 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1466 | fi || ac_status=$? |
| 1467 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1468 | done |
| 1469 | fi |
| 1470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1471 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1472 | if $ac_init_version; then |
| 1473 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1474 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1475 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1477 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1478 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1479 | This configure script is free software; the Free Software Foundation |
| 1480 | gives unlimited permission to copy, distribute and modify it. |
| 1481 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1482 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1484 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1485 | This file contains any messages produced by compilers while |
| 1486 | running configure, to aid debugging if configure makes a mistake. |
| 1487 | |
| 1488 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1489 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1490 | |
| 1491 | $ $0 $@ |
| 1492 | |
| 1493 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1494 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1495 | { |
| 1496 | cat <<_ASUNAME |
| 1497 | ## --------- ## |
| 1498 | ## Platform. ## |
| 1499 | ## --------- ## |
| 1500 | |
| 1501 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1502 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1503 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1504 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1505 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1506 | |
| 1507 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1508 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1509 | |
| 1510 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1511 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1512 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1513 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1514 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1515 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1516 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1517 | |
| 1518 | _ASUNAME |
| 1519 | |
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1521 | for as_dir in $PATH |
| 1522 | do |
| 1523 | IFS=$as_save_IFS |
| 1524 | test -z "$as_dir" && as_dir=. |
| 1525 | echo "PATH: $as_dir" |
| 1526 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1527 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | |
| 1529 | } >&5 |
| 1530 | |
| 1531 | cat >&5 <<_ACEOF |
| 1532 | |
| 1533 | |
| 1534 | ## ----------- ## |
| 1535 | ## Core tests. ## |
| 1536 | ## ----------- ## |
| 1537 | |
| 1538 | _ACEOF |
| 1539 | |
| 1540 | |
| 1541 | # Keep a trace of the command line. |
| 1542 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1543 | # Strip out --silent because we don't want to record it for future runs. |
| 1544 | # Also quote any args containing shell meta-characters. |
| 1545 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1546 | ac_configure_args= |
| 1547 | ac_configure_args0= |
| 1548 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1549 | ac_must_keep_next=false |
| 1550 | for ac_pass in 1 2 |
| 1551 | do |
| 1552 | for ac_arg |
| 1553 | do |
| 1554 | case $ac_arg in |
| 1555 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1556 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1557 | | -silent | --silent | --silen | --sile | --sil) |
| 1558 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1559 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1561 | esac |
| 1562 | case $ac_pass in |
| 1563 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1564 | 2) |
| 1565 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1566 | if test $ac_must_keep_next = true; then |
| 1567 | ac_must_keep_next=false # Got value, back to normal. |
| 1568 | else |
| 1569 | case $ac_arg in |
| 1570 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1571 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1572 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1573 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1574 | case "$ac_configure_args0 " in |
| 1575 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1576 | esac |
| 1577 | ;; |
| 1578 | -* ) ac_must_keep_next=true ;; |
| 1579 | esac |
| 1580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1581 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1582 | ;; |
| 1583 | esac |
| 1584 | done |
| 1585 | done |
| 1586 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1587 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1588 | |
| 1589 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1590 | # config.log. We remove comments because anyway the quotes in there |
| 1591 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1592 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1593 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1594 | trap 'exit_status=$? |
| 1595 | # Save into config.log some information that might help in debugging. |
| 1596 | { |
| 1597 | echo |
| 1598 | |
| 1599 | cat <<\_ASBOX |
| 1600 | ## ---------------- ## |
| 1601 | ## Cache variables. ## |
| 1602 | ## ---------------- ## |
| 1603 | _ASBOX |
| 1604 | echo |
| 1605 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1606 | ( |
| 1607 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1608 | eval ac_val=\$$ac_var |
| 1609 | case $ac_val in #( |
| 1610 | *${as_nl}*) |
| 1611 | case $ac_var in #( |
| 1612 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1613 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1614 | esac |
| 1615 | case $ac_var in #( |
| 1616 | _ | IFS | as_nl) ;; #( |
| 1617 | *) $as_unset $ac_var ;; |
| 1618 | esac ;; |
| 1619 | esac |
| 1620 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1621 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1622 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1623 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1624 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1625 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1626 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1627 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1630 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1631 | esac | |
| 1632 | sort |
| 1633 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1634 | echo |
| 1635 | |
| 1636 | cat <<\_ASBOX |
| 1637 | ## ----------------- ## |
| 1638 | ## Output variables. ## |
| 1639 | ## ----------------- ## |
| 1640 | _ASBOX |
| 1641 | echo |
| 1642 | for ac_var in $ac_subst_vars |
| 1643 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1644 | eval ac_val=\$$ac_var |
| 1645 | case $ac_val in |
| 1646 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1647 | esac |
| 1648 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1649 | done | sort |
| 1650 | echo |
| 1651 | |
| 1652 | if test -n "$ac_subst_files"; then |
| 1653 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1654 | ## ------------------- ## |
| 1655 | ## File substitutions. ## |
| 1656 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1657 | _ASBOX |
| 1658 | echo |
| 1659 | for ac_var in $ac_subst_files |
| 1660 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1661 | eval ac_val=\$$ac_var |
| 1662 | case $ac_val in |
| 1663 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1664 | esac |
| 1665 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1666 | done | sort |
| 1667 | echo |
| 1668 | fi |
| 1669 | |
| 1670 | if test -s confdefs.h; then |
| 1671 | cat <<\_ASBOX |
| 1672 | ## ----------- ## |
| 1673 | ## confdefs.h. ## |
| 1674 | ## ----------- ## |
| 1675 | _ASBOX |
| 1676 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1677 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1678 | echo |
| 1679 | fi |
| 1680 | test "$ac_signal" != 0 && |
| 1681 | echo "$as_me: caught signal $ac_signal" |
| 1682 | echo "$as_me: exit $exit_status" |
| 1683 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1684 | rm -f core *.core core.conftest.* && |
| 1685 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1686 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1687 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1688 | for ac_signal in 1 2 13 15; do |
| 1689 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1690 | done |
| 1691 | ac_signal=0 |
| 1692 | |
| 1693 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1694 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1695 | |
| 1696 | # Predefined preprocessor variables. |
| 1697 | |
| 1698 | cat >>confdefs.h <<_ACEOF |
| 1699 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1700 | _ACEOF |
| 1701 | |
| 1702 | |
| 1703 | cat >>confdefs.h <<_ACEOF |
| 1704 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1705 | _ACEOF |
| 1706 | |
| 1707 | |
| 1708 | cat >>confdefs.h <<_ACEOF |
| 1709 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1710 | _ACEOF |
| 1711 | |
| 1712 | |
| 1713 | cat >>confdefs.h <<_ACEOF |
| 1714 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1715 | _ACEOF |
| 1716 | |
| 1717 | |
| 1718 | cat >>confdefs.h <<_ACEOF |
| 1719 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1720 | _ACEOF |
| 1721 | |
| 1722 | |
| 1723 | # Let the site file select an alternate cache file if it wants to. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1724 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1725 | if test -n "$CONFIG_SITE"; then |
| 1726 | set x "$CONFIG_SITE" |
| 1727 | elif test "x$prefix" != xNONE; then |
| 1728 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1729 | else |
| 1730 | set x "$ac_default_prefix/share/config.site" \ |
| 1731 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1732 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1733 | shift |
| 1734 | for ac_site_file |
| 1735 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1736 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1737 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1738 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1739 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1740 | . "$ac_site_file" |
| 1741 | fi |
| 1742 | done |
| 1743 | |
| 1744 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1745 | # Some versions of bash will fail to source /dev/null (special |
| 1746 | # files actually), so we avoid doing that. |
| 1747 | if test -f "$cache_file"; then |
| 1748 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1749 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1750 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1751 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1752 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1753 | esac |
| 1754 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1755 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1756 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1757 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1758 | >$cache_file |
| 1759 | fi |
| 1760 | |
| 1761 | # Check that the precious variables saved in the cache have kept the same |
| 1762 | # value. |
| 1763 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1764 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1765 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1766 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1767 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1768 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1769 | case $ac_old_set,$ac_new_set in |
| 1770 | set,) |
| 1771 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1772 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1773 | ac_cache_corrupted=: ;; |
| 1774 | ,set) |
| 1775 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1776 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1777 | ac_cache_corrupted=: ;; |
| 1778 | ,);; |
| 1779 | *) |
| 1780 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1781 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1782 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1783 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1784 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1785 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1786 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1787 | ac_cache_corrupted=: |
| 1788 | fi;; |
| 1789 | esac |
| 1790 | # Pass precious variables to config.status. |
| 1791 | if test "$ac_new_set" = set; then |
| 1792 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1793 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1794 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1795 | esac |
| 1796 | case " $ac_configure_args " in |
| 1797 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1798 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1799 | esac |
| 1800 | fi |
| 1801 | done |
| 1802 | if $ac_cache_corrupted; then |
| 1803 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1804 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1805 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1806 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1807 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1808 | fi |
| 1809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1826 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1827 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1832 | |
| 1833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1834 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1835 | for ac_dir in config "$srcdir"/config; do |
| 1836 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1837 | ac_aux_dir=$ac_dir |
| 1838 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1839 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1840 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1841 | ac_aux_dir=$ac_dir |
| 1842 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1843 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1844 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1845 | ac_aux_dir=$ac_dir |
| 1846 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1847 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1848 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1849 | done |
| 1850 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1851 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1852 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1853 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1854 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1855 | |
| 1856 | # These three variables are undocumented and unsupported, |
| 1857 | # and are intended to be withdrawn in a future Autoconf release. |
| 1858 | # They can cause serious problems if a builder's source tree is in a directory |
| 1859 | # whose full name contains unusual characters. |
| 1860 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1861 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1862 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1863 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1864 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1865 | MCONFIG=./MCONFIG |
| 1866 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1867 | BINARY_TYPE=bin |
| 1868 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1869 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1870 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1871 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1872 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1873 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1874 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1875 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1876 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1877 | E2FSPROGS_YEAR=$YEAR |
| 1878 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1879 | E2FSPROGS_YEAR=19$YEAR |
| 1880 | else |
| 1881 | E2FSPROGS_YEAR=20$YEAR |
| 1882 | fi |
| 1883 | |
| 1884 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1885 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1886 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1887 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1888 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1889 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1890 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1891 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1892 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1893 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1894 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1895 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1896 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1897 | *) echo "Unknown month $MONTH??" ;; |
| 1898 | esac |
| 1899 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1900 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1901 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1902 | |
| 1903 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1904 | |
| 1905 | case $E2FSPROGS_VERSION in |
| 1906 | *-WIP|pre-*) |
Theodore Ts'o | d69e7e2 | 2008-02-15 21:28:48 -0500 | [diff] [blame] | 1907 | pre_vers=`echo $base_ver 0.01 - p | dc` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1908 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1909 | ;; |
| 1910 | *) |
| 1911 | E2FSPROGS_PKGVER="$base_ver" |
| 1912 | ;; |
| 1913 | esac |
| 1914 | |
| 1915 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1916 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1917 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1918 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1919 | |
| 1920 | |
| 1921 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1922 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1923 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1924 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1925 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1926 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1927 | { (exit 1); exit 1; }; } |
| 1928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1929 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1930 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1931 | if test "${ac_cv_build+set}" = set; then |
| 1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1933 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1934 | ac_build_alias=$build_alias |
| 1935 | test "x$ac_build_alias" = x && |
| 1936 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1937 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1938 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1939 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1940 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1941 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1942 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1943 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1944 | { (exit 1); exit 1; }; } |
| 1945 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1946 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1947 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1948 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1949 | case $ac_cv_build in |
| 1950 | *-*-*) ;; |
| 1951 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1952 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1953 | { (exit 1); exit 1; }; };; |
| 1954 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1955 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1956 | ac_save_IFS=$IFS; IFS='-' |
| 1957 | set x $ac_cv_build |
| 1958 | shift |
| 1959 | build_cpu=$1 |
| 1960 | build_vendor=$2 |
| 1961 | shift; shift |
| 1962 | # Remember, the first character of IFS is used to create $*, |
| 1963 | # except with old shells: |
| 1964 | build_os=$* |
| 1965 | IFS=$ac_save_IFS |
| 1966 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1967 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1969 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1970 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1971 | if test "${ac_cv_host+set}" = set; then |
| 1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1973 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1974 | if test "x$host_alias" = x; then |
| 1975 | ac_cv_host=$ac_cv_build |
| 1976 | else |
| 1977 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1978 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1979 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1980 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1981 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1983 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1984 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1985 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1986 | case $ac_cv_host in |
| 1987 | *-*-*) ;; |
| 1988 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1989 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1990 | { (exit 1); exit 1; }; };; |
| 1991 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1992 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1993 | ac_save_IFS=$IFS; IFS='-' |
| 1994 | set x $ac_cv_host |
| 1995 | shift |
| 1996 | host_cpu=$1 |
| 1997 | host_vendor=$2 |
| 1998 | shift; shift |
| 1999 | # Remember, the first character of IFS is used to create $*, |
| 2000 | # except with old shells: |
| 2001 | host_os=$* |
| 2002 | IFS=$ac_save_IFS |
| 2003 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2004 | |
| 2005 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2007 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2008 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2009 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2010 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2011 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2012 | fi |
| 2013 | |
| 2014 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2015 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2016 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2017 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2018 | CC=$withval |
| 2019 | else |
| 2020 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2021 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2022 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2023 | fi |
| 2024 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2025 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2026 | ac_ext=c |
| 2027 | ac_cpp='$CPP $CPPFLAGS' |
| 2028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2031 | if test -n "$ac_tool_prefix"; then |
| 2032 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2033 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2036 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2038 | else |
| 2039 | if test -n "$CC"; then |
| 2040 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2043 | for as_dir in $PATH |
| 2044 | do |
| 2045 | IFS=$as_save_IFS |
| 2046 | test -z "$as_dir" && as_dir=. |
| 2047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2049 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2051 | break 2 |
| 2052 | fi |
| 2053 | done |
| 2054 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2055 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2056 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2057 | fi |
| 2058 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2059 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2060 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2062 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2063 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2065 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2066 | fi |
| 2067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2068 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2069 | fi |
| 2070 | if test -z "$ac_cv_prog_CC"; then |
| 2071 | ac_ct_CC=$CC |
| 2072 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2073 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2076 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2078 | else |
| 2079 | if test -n "$ac_ct_CC"; then |
| 2080 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2081 | else |
| 2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2083 | for as_dir in $PATH |
| 2084 | do |
| 2085 | IFS=$as_save_IFS |
| 2086 | test -z "$as_dir" && as_dir=. |
| 2087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2089 | ac_cv_prog_ac_ct_CC="gcc" |
| 2090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2091 | break 2 |
| 2092 | fi |
| 2093 | done |
| 2094 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2095 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2096 | |
| 2097 | fi |
| 2098 | fi |
| 2099 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2100 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2102 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2103 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2105 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2106 | fi |
| 2107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2108 | if test "x$ac_ct_CC" = x; then |
| 2109 | CC="" |
| 2110 | else |
| 2111 | case $cross_compiling:$ac_tool_warned in |
| 2112 | yes:) |
| 2113 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2114 | whose name does not start with the host triplet. If you think this |
| 2115 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2116 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2117 | whose name does not start with the host triplet. If you think this |
| 2118 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2119 | ac_tool_warned=yes ;; |
| 2120 | esac |
| 2121 | CC=$ac_ct_CC |
| 2122 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2123 | else |
| 2124 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2125 | fi |
| 2126 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2127 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2128 | if test -n "$ac_tool_prefix"; then |
| 2129 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2130 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2133 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2135 | else |
| 2136 | if test -n "$CC"; then |
| 2137 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2140 | for as_dir in $PATH |
| 2141 | do |
| 2142 | IFS=$as_save_IFS |
| 2143 | test -z "$as_dir" && as_dir=. |
| 2144 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2145 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2146 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2148 | break 2 |
| 2149 | fi |
| 2150 | done |
| 2151 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2152 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2153 | |
| 2154 | fi |
| 2155 | fi |
| 2156 | CC=$ac_cv_prog_CC |
| 2157 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2159 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2160 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2161 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2162 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2163 | fi |
| 2164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2166 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2167 | fi |
| 2168 | if test -z "$CC"; then |
| 2169 | # Extract the first word of "cc", so it can be a program name with args. |
| 2170 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2171 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2173 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2175 | else |
| 2176 | if test -n "$CC"; then |
| 2177 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2178 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2179 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2181 | for as_dir in $PATH |
| 2182 | do |
| 2183 | IFS=$as_save_IFS |
| 2184 | test -z "$as_dir" && as_dir=. |
| 2185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2187 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2188 | ac_prog_rejected=yes |
| 2189 | continue |
| 2190 | fi |
| 2191 | ac_cv_prog_CC="cc" |
| 2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2193 | break 2 |
| 2194 | fi |
| 2195 | done |
| 2196 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2197 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2198 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2199 | if test $ac_prog_rejected = yes; then |
| 2200 | # We found a bogon in the path, so make sure we never use it. |
| 2201 | set dummy $ac_cv_prog_CC |
| 2202 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2203 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2204 | # We chose a different compiler from the bogus one. |
| 2205 | # However, it has the same basename, so the bogon will be chosen |
| 2206 | # first if we set CC to just the basename; use the full file name. |
| 2207 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2208 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2209 | fi |
| 2210 | fi |
| 2211 | fi |
| 2212 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2213 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2214 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2216 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2217 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2223 | fi |
| 2224 | if test -z "$CC"; then |
| 2225 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2226 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2227 | do |
| 2228 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2229 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2230 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2232 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2234 | else |
| 2235 | if test -n "$CC"; then |
| 2236 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2237 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2239 | for as_dir in $PATH |
| 2240 | do |
| 2241 | IFS=$as_save_IFS |
| 2242 | test -z "$as_dir" && as_dir=. |
| 2243 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2245 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2247 | break 2 |
| 2248 | fi |
| 2249 | done |
| 2250 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2251 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2252 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | fi |
| 2254 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2255 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2258 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2259 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2261 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2262 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2263 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2264 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2265 | test -n "$CC" && break |
| 2266 | done |
| 2267 | fi |
| 2268 | if test -z "$CC"; then |
| 2269 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2270 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2271 | do |
| 2272 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2273 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2278 | else |
| 2279 | if test -n "$ac_ct_CC"; then |
| 2280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2281 | else |
| 2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2283 | for as_dir in $PATH |
| 2284 | do |
| 2285 | IFS=$as_save_IFS |
| 2286 | test -z "$as_dir" && as_dir=. |
| 2287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2289 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2291 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2292 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | done |
| 2294 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2295 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2296 | |
| 2297 | fi |
| 2298 | fi |
| 2299 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2300 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2302 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2303 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2305 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2306 | fi |
| 2307 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2309 | test -n "$ac_ct_CC" && break |
| 2310 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2312 | if test "x$ac_ct_CC" = x; then |
| 2313 | CC="" |
| 2314 | else |
| 2315 | case $cross_compiling:$ac_tool_warned in |
| 2316 | yes:) |
| 2317 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2318 | whose name does not start with the host triplet. If you think this |
| 2319 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2320 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2321 | whose name does not start with the host triplet. If you think this |
| 2322 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2323 | ac_tool_warned=yes ;; |
| 2324 | esac |
| 2325 | CC=$ac_ct_CC |
| 2326 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2327 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2329 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2330 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2331 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2332 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2333 | See \`config.log' for more details." >&5 |
| 2334 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2335 | See \`config.log' for more details." >&2;} |
| 2336 | { (exit 1); exit 1; }; } |
| 2337 | |
| 2338 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2339 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2340 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2341 | { (ac_try="$ac_compiler --version >&5" |
| 2342 | case "(($ac_try" in |
| 2343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2344 | *) ac_try_echo=$ac_try;; |
| 2345 | esac |
| 2346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2347 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | ac_status=$? |
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2351 | { (ac_try="$ac_compiler -v >&5" |
| 2352 | case "(($ac_try" in |
| 2353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2354 | *) ac_try_echo=$ac_try;; |
| 2355 | esac |
| 2356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2357 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2358 | ac_status=$? |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2361 | { (ac_try="$ac_compiler -V >&5" |
| 2362 | case "(($ac_try" in |
| 2363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2364 | *) ac_try_echo=$ac_try;; |
| 2365 | esac |
| 2366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2367 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2368 | ac_status=$? |
| 2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2370 | (exit $ac_status); } |
| 2371 | |
| 2372 | cat >conftest.$ac_ext <<_ACEOF |
| 2373 | /* confdefs.h. */ |
| 2374 | _ACEOF |
| 2375 | cat confdefs.h >>conftest.$ac_ext |
| 2376 | cat >>conftest.$ac_ext <<_ACEOF |
| 2377 | /* end confdefs.h. */ |
| 2378 | |
| 2379 | int |
| 2380 | main () |
| 2381 | { |
| 2382 | |
| 2383 | ; |
| 2384 | return 0; |
| 2385 | } |
| 2386 | _ACEOF |
| 2387 | ac_clean_files_save=$ac_clean_files |
| 2388 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2389 | # Try to create an executable without -o first, disregard a.out. |
| 2390 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2391 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2393 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2394 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2395 | # |
| 2396 | # List of possible output files, starting from the most likely. |
| 2397 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2398 | # only as a last resort. b.out is created by i960 compilers. |
| 2399 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2400 | # |
| 2401 | # The IRIX 6 linker writes into existing files which may not be |
| 2402 | # executable, retaining their permissions. Remove them first so a |
| 2403 | # subsequent execution test works. |
| 2404 | ac_rmfiles= |
| 2405 | for ac_file in $ac_files |
| 2406 | do |
| 2407 | case $ac_file in |
| 2408 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2409 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2410 | esac |
| 2411 | done |
| 2412 | rm -f $ac_rmfiles |
| 2413 | |
| 2414 | if { (ac_try="$ac_link_default" |
| 2415 | case "(($ac_try" in |
| 2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2417 | *) ac_try_echo=$ac_try;; |
| 2418 | esac |
| 2419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2420 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2421 | ac_status=$? |
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2424 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2425 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2426 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2427 | # so that the user can short-circuit this test for compilers unknown to |
| 2428 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2429 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2430 | do |
| 2431 | test -f "$ac_file" || continue |
| 2432 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2433 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2434 | ;; |
| 2435 | [ab].out ) |
| 2436 | # We found the default executable, but exeext='' is most |
| 2437 | # certainly right. |
| 2438 | break;; |
| 2439 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2440 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2441 | then :; else |
| 2442 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2443 | fi |
| 2444 | # We set ac_cv_exeext here because the later test for it is not |
| 2445 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2446 | # argument, so we may need to know it at that point already. |
| 2447 | # Even if this section looks crufty: it has the advantage of |
| 2448 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2449 | break;; |
| 2450 | * ) |
| 2451 | break;; |
| 2452 | esac |
| 2453 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2454 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2455 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2456 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2457 | ac_file='' |
| 2458 | fi |
| 2459 | |
| 2460 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2461 | echo "${ECHO_T}$ac_file" >&6; } |
| 2462 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | echo "$as_me: failed program was:" >&5 |
| 2464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2465 | |
| 2466 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2467 | See \`config.log' for more details." >&5 |
| 2468 | echo "$as_me: error: C compiler cannot create executables |
| 2469 | See \`config.log' for more details." >&2;} |
| 2470 | { (exit 77); exit 77; }; } |
| 2471 | fi |
| 2472 | |
| 2473 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2476 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2477 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2478 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2479 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2480 | # If not cross compiling, check that we can run a simple program. |
| 2481 | if test "$cross_compiling" != yes; then |
| 2482 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2483 | { (case "(($ac_try" in |
| 2484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2485 | *) ac_try_echo=$ac_try;; |
| 2486 | esac |
| 2487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2488 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2489 | ac_status=$? |
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2491 | (exit $ac_status); }; }; then |
| 2492 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2493 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2494 | if test "$cross_compiling" = maybe; then |
| 2495 | cross_compiling=yes |
| 2496 | else |
| 2497 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2498 | If you meant to cross compile, use \`--host'. |
| 2499 | See \`config.log' for more details." >&5 |
| 2500 | echo "$as_me: error: cannot run C compiled programs. |
| 2501 | If you meant to cross compile, use \`--host'. |
| 2502 | See \`config.log' for more details." >&2;} |
| 2503 | { (exit 1); exit 1; }; } |
| 2504 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2505 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2508 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2511 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2512 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2513 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2515 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2516 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2517 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2518 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2520 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2521 | if { (ac_try="$ac_link" |
| 2522 | case "(($ac_try" in |
| 2523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2524 | *) ac_try_echo=$ac_try;; |
| 2525 | esac |
| 2526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2527 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2528 | ac_status=$? |
| 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2530 | (exit $ac_status); }; then |
| 2531 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2532 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2533 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2534 | # `rm'. |
| 2535 | for ac_file in conftest.exe conftest conftest.*; do |
| 2536 | test -f "$ac_file" || continue |
| 2537 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2538 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2539 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | break;; |
| 2541 | * ) break;; |
| 2542 | esac |
| 2543 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2544 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2546 | See \`config.log' for more details." >&5 |
| 2547 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2548 | See \`config.log' for more details." >&2;} |
| 2549 | { (exit 1); exit 1; }; } |
| 2550 | fi |
| 2551 | |
| 2552 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2553 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2554 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2555 | |
| 2556 | rm -f conftest.$ac_ext |
| 2557 | EXEEXT=$ac_cv_exeext |
| 2558 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2559 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2560 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | if test "${ac_cv_objext+set}" = set; then |
| 2562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2563 | else |
| 2564 | cat >conftest.$ac_ext <<_ACEOF |
| 2565 | /* confdefs.h. */ |
| 2566 | _ACEOF |
| 2567 | cat confdefs.h >>conftest.$ac_ext |
| 2568 | cat >>conftest.$ac_ext <<_ACEOF |
| 2569 | /* end confdefs.h. */ |
| 2570 | |
| 2571 | int |
| 2572 | main () |
| 2573 | { |
| 2574 | |
| 2575 | ; |
| 2576 | return 0; |
| 2577 | } |
| 2578 | _ACEOF |
| 2579 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2580 | if { (ac_try="$ac_compile" |
| 2581 | case "(($ac_try" in |
| 2582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2583 | *) ac_try_echo=$ac_try;; |
| 2584 | esac |
| 2585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2586 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | ac_status=$? |
| 2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2589 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2590 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2591 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2592 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2595 | break;; |
| 2596 | esac |
| 2597 | done |
| 2598 | else |
| 2599 | echo "$as_me: failed program was:" >&5 |
| 2600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2601 | |
| 2602 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2603 | See \`config.log' for more details." >&5 |
| 2604 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2605 | See \`config.log' for more details." >&2;} |
| 2606 | { (exit 1); exit 1; }; } |
| 2607 | fi |
| 2608 | |
| 2609 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2612 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2613 | OBJEXT=$ac_cv_objext |
| 2614 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2616 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2617 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2619 | else |
| 2620 | cat >conftest.$ac_ext <<_ACEOF |
| 2621 | /* confdefs.h. */ |
| 2622 | _ACEOF |
| 2623 | cat confdefs.h >>conftest.$ac_ext |
| 2624 | cat >>conftest.$ac_ext <<_ACEOF |
| 2625 | /* end confdefs.h. */ |
| 2626 | |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | #ifndef __GNUC__ |
| 2631 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2632 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2634 | ; |
| 2635 | return 0; |
| 2636 | } |
| 2637 | _ACEOF |
| 2638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2639 | if { (ac_try="$ac_compile" |
| 2640 | case "(($ac_try" in |
| 2641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2642 | *) ac_try_echo=$ac_try;; |
| 2643 | esac |
| 2644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2646 | ac_status=$? |
| 2647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2648 | rm -f conftest.er1 |
| 2649 | cat conftest.err >&5 |
| 2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2651 | (exit $ac_status); } && { |
| 2652 | test -z "$ac_c_werror_flag" || |
| 2653 | test ! -s conftest.err |
| 2654 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2656 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2657 | echo "$as_me: failed program was:" >&5 |
| 2658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2660 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2662 | |
| 2663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2664 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2665 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2668 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2669 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2670 | ac_test_CFLAGS=${CFLAGS+set} |
| 2671 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2672 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2673 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2674 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2676 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2677 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2678 | ac_c_werror_flag=yes |
| 2679 | ac_cv_prog_cc_g=no |
| 2680 | CFLAGS="-g" |
| 2681 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2682 | /* confdefs.h. */ |
| 2683 | _ACEOF |
| 2684 | cat confdefs.h >>conftest.$ac_ext |
| 2685 | cat >>conftest.$ac_ext <<_ACEOF |
| 2686 | /* end confdefs.h. */ |
| 2687 | |
| 2688 | int |
| 2689 | main () |
| 2690 | { |
| 2691 | |
| 2692 | ; |
| 2693 | return 0; |
| 2694 | } |
| 2695 | _ACEOF |
| 2696 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2697 | if { (ac_try="$ac_compile" |
| 2698 | case "(($ac_try" in |
| 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2700 | *) ac_try_echo=$ac_try;; |
| 2701 | esac |
| 2702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2703 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2704 | ac_status=$? |
| 2705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2706 | rm -f conftest.er1 |
| 2707 | cat conftest.err >&5 |
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2709 | (exit $ac_status); } && { |
| 2710 | test -z "$ac_c_werror_flag" || |
| 2711 | test ! -s conftest.err |
| 2712 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2713 | ac_cv_prog_cc_g=yes |
| 2714 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2715 | echo "$as_me: failed program was:" >&5 |
| 2716 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2718 | CFLAGS="" |
| 2719 | cat >conftest.$ac_ext <<_ACEOF |
| 2720 | /* confdefs.h. */ |
| 2721 | _ACEOF |
| 2722 | cat confdefs.h >>conftest.$ac_ext |
| 2723 | cat >>conftest.$ac_ext <<_ACEOF |
| 2724 | /* end confdefs.h. */ |
| 2725 | |
| 2726 | int |
| 2727 | main () |
| 2728 | { |
| 2729 | |
| 2730 | ; |
| 2731 | return 0; |
| 2732 | } |
| 2733 | _ACEOF |
| 2734 | rm -f conftest.$ac_objext |
| 2735 | if { (ac_try="$ac_compile" |
| 2736 | case "(($ac_try" in |
| 2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2738 | *) ac_try_echo=$ac_try;; |
| 2739 | esac |
| 2740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2741 | (eval "$ac_compile") 2>conftest.er1 |
| 2742 | ac_status=$? |
| 2743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2744 | rm -f conftest.er1 |
| 2745 | cat conftest.err >&5 |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2747 | (exit $ac_status); } && { |
| 2748 | test -z "$ac_c_werror_flag" || |
| 2749 | test ! -s conftest.err |
| 2750 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2751 | : |
| 2752 | else |
| 2753 | echo "$as_me: failed program was:" >&5 |
| 2754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2755 | |
| 2756 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2757 | CFLAGS="-g" |
| 2758 | cat >conftest.$ac_ext <<_ACEOF |
| 2759 | /* confdefs.h. */ |
| 2760 | _ACEOF |
| 2761 | cat confdefs.h >>conftest.$ac_ext |
| 2762 | cat >>conftest.$ac_ext <<_ACEOF |
| 2763 | /* end confdefs.h. */ |
| 2764 | |
| 2765 | int |
| 2766 | main () |
| 2767 | { |
| 2768 | |
| 2769 | ; |
| 2770 | return 0; |
| 2771 | } |
| 2772 | _ACEOF |
| 2773 | rm -f conftest.$ac_objext |
| 2774 | if { (ac_try="$ac_compile" |
| 2775 | case "(($ac_try" in |
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2777 | *) ac_try_echo=$ac_try;; |
| 2778 | esac |
| 2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2780 | (eval "$ac_compile") 2>conftest.er1 |
| 2781 | ac_status=$? |
| 2782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2783 | rm -f conftest.er1 |
| 2784 | cat conftest.err >&5 |
| 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2786 | (exit $ac_status); } && { |
| 2787 | test -z "$ac_c_werror_flag" || |
| 2788 | test ! -s conftest.err |
| 2789 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2790 | ac_cv_prog_cc_g=yes |
| 2791 | else |
| 2792 | echo "$as_me: failed program was:" >&5 |
| 2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2794 | |
| 2795 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | |
| 2798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2799 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2800 | |
| 2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2802 | fi |
| 2803 | |
| 2804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2805 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2806 | fi |
| 2807 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2808 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2809 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2810 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2811 | elif test $ac_cv_prog_cc_g = yes; then |
| 2812 | if test "$GCC" = yes; then |
| 2813 | CFLAGS="-g -O2" |
| 2814 | else |
| 2815 | CFLAGS="-g" |
| 2816 | fi |
| 2817 | else |
| 2818 | if test "$GCC" = yes; then |
| 2819 | CFLAGS="-O2" |
| 2820 | else |
| 2821 | CFLAGS= |
| 2822 | fi |
| 2823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2824 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2825 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2826 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2828 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2829 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2830 | ac_save_CC=$CC |
| 2831 | cat >conftest.$ac_ext <<_ACEOF |
| 2832 | /* confdefs.h. */ |
| 2833 | _ACEOF |
| 2834 | cat confdefs.h >>conftest.$ac_ext |
| 2835 | cat >>conftest.$ac_ext <<_ACEOF |
| 2836 | /* end confdefs.h. */ |
| 2837 | #include <stdarg.h> |
| 2838 | #include <stdio.h> |
| 2839 | #include <sys/types.h> |
| 2840 | #include <sys/stat.h> |
| 2841 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2842 | struct buf { int x; }; |
| 2843 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2844 | static char *e (p, i) |
| 2845 | char **p; |
| 2846 | int i; |
| 2847 | { |
| 2848 | return p[i]; |
| 2849 | } |
| 2850 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2851 | { |
| 2852 | char *s; |
| 2853 | va_list v; |
| 2854 | va_start (v,p); |
| 2855 | s = g (p, va_arg (v,int)); |
| 2856 | va_end (v); |
| 2857 | return s; |
| 2858 | } |
| 2859 | |
| 2860 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2861 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2862 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2863 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2865 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2867 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2869 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2870 | inside strings and character constants. */ |
| 2871 | #define FOO(x) 'x' |
| 2872 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2873 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2874 | int test (int i, double x); |
| 2875 | struct s1 {int (*f) (int a);}; |
| 2876 | struct s2 {int (*f) (double a);}; |
| 2877 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2878 | int argc; |
| 2879 | char **argv; |
| 2880 | int |
| 2881 | main () |
| 2882 | { |
| 2883 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2884 | ; |
| 2885 | return 0; |
| 2886 | } |
| 2887 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2888 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2889 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2890 | do |
| 2891 | CC="$ac_save_CC $ac_arg" |
| 2892 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
| 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
| 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2899 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2900 | ac_status=$? |
| 2901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2902 | rm -f conftest.er1 |
| 2903 | cat conftest.err >&5 |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2905 | (exit $ac_status); } && { |
| 2906 | test -z "$ac_c_werror_flag" || |
| 2907 | test ! -s conftest.err |
| 2908 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2909 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2910 | else |
| 2911 | echo "$as_me: failed program was:" >&5 |
| 2912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2913 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2916 | |
| 2917 | rm -f core conftest.err conftest.$ac_objext |
| 2918 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2920 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2921 | CC=$ac_save_CC |
| 2922 | |
| 2923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2924 | # AC_CACHE_VAL |
| 2925 | case "x$ac_cv_prog_cc_c89" in |
| 2926 | x) |
| 2927 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2928 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2929 | xno) |
| 2930 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2931 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2932 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2933 | CC="$CC $ac_cv_prog_cc_c89" |
| 2934 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2935 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | esac |
| 2937 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2939 | ac_ext=c |
| 2940 | ac_cpp='$CPP $CPPFLAGS' |
| 2941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2944 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2945 | ac_ext=c |
| 2946 | ac_cpp='$CPP $CPPFLAGS' |
| 2947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2950 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2951 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2952 | # On Suns, sometimes $CPP names a directory. |
| 2953 | if test -n "$CPP" && test -d "$CPP"; then |
| 2954 | CPP= |
| 2955 | fi |
| 2956 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2959 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2960 | # Double quotes because CPP needs to be expanded |
| 2961 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2962 | do |
| 2963 | ac_preproc_ok=false |
| 2964 | for ac_c_preproc_warn_flag in '' yes |
| 2965 | do |
| 2966 | # Use a header file that comes with gcc, so configuring glibc |
| 2967 | # with a fresh cross-compiler works. |
| 2968 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2969 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2970 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2971 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2972 | cat >conftest.$ac_ext <<_ACEOF |
| 2973 | /* confdefs.h. */ |
| 2974 | _ACEOF |
| 2975 | cat confdefs.h >>conftest.$ac_ext |
| 2976 | cat >>conftest.$ac_ext <<_ACEOF |
| 2977 | /* end confdefs.h. */ |
| 2978 | #ifdef __STDC__ |
| 2979 | # include <limits.h> |
| 2980 | #else |
| 2981 | # include <assert.h> |
| 2982 | #endif |
| 2983 | Syntax error |
| 2984 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2986 | case "(($ac_try" in |
| 2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2988 | *) ac_try_echo=$ac_try;; |
| 2989 | esac |
| 2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2992 | ac_status=$? |
| 2993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2994 | rm -f conftest.er1 |
| 2995 | cat conftest.err >&5 |
| 2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2997 | (exit $ac_status); } >/dev/null && { |
| 2998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2999 | test ! -s conftest.err |
| 3000 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3001 | : |
| 3002 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | echo "$as_me: failed program was:" >&5 |
| 3004 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3005 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3006 | # Broken: fails on valid input. |
| 3007 | continue |
| 3008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | rm -f conftest.err conftest.$ac_ext |
| 3011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3012 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3013 | # can be detected and how. |
| 3014 | cat >conftest.$ac_ext <<_ACEOF |
| 3015 | /* confdefs.h. */ |
| 3016 | _ACEOF |
| 3017 | cat confdefs.h >>conftest.$ac_ext |
| 3018 | cat >>conftest.$ac_ext <<_ACEOF |
| 3019 | /* end confdefs.h. */ |
| 3020 | #include <ac_nonexistent.h> |
| 3021 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3023 | case "(($ac_try" in |
| 3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3025 | *) ac_try_echo=$ac_try;; |
| 3026 | esac |
| 3027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3029 | ac_status=$? |
| 3030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3031 | rm -f conftest.er1 |
| 3032 | cat conftest.err >&5 |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3034 | (exit $ac_status); } >/dev/null && { |
| 3035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3036 | test ! -s conftest.err |
| 3037 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | # Broken: success on invalid input. |
| 3039 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | echo "$as_me: failed program was:" >&5 |
| 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
| 3044 | # Passes both tests. |
| 3045 | ac_preproc_ok=: |
| 3046 | break |
| 3047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3048 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3049 | rm -f conftest.err conftest.$ac_ext |
| 3050 | |
| 3051 | done |
| 3052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3053 | rm -f conftest.err conftest.$ac_ext |
| 3054 | if $ac_preproc_ok; then |
| 3055 | break |
| 3056 | fi |
| 3057 | |
| 3058 | done |
| 3059 | ac_cv_prog_CPP=$CPP |
| 3060 | |
| 3061 | fi |
| 3062 | CPP=$ac_cv_prog_CPP |
| 3063 | else |
| 3064 | ac_cv_prog_CPP=$CPP |
| 3065 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3066 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3067 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3068 | ac_preproc_ok=false |
| 3069 | for ac_c_preproc_warn_flag in '' yes |
| 3070 | do |
| 3071 | # Use a header file that comes with gcc, so configuring glibc |
| 3072 | # with a fresh cross-compiler works. |
| 3073 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3074 | # <limits.h> exists even on freestanding compilers. |
| 3075 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3076 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3077 | cat >conftest.$ac_ext <<_ACEOF |
| 3078 | /* confdefs.h. */ |
| 3079 | _ACEOF |
| 3080 | cat confdefs.h >>conftest.$ac_ext |
| 3081 | cat >>conftest.$ac_ext <<_ACEOF |
| 3082 | /* end confdefs.h. */ |
| 3083 | #ifdef __STDC__ |
| 3084 | # include <limits.h> |
| 3085 | #else |
| 3086 | # include <assert.h> |
| 3087 | #endif |
| 3088 | Syntax error |
| 3089 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3091 | case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | ac_status=$? |
| 3098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3099 | rm -f conftest.er1 |
| 3100 | cat conftest.err >&5 |
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3102 | (exit $ac_status); } >/dev/null && { |
| 3103 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3104 | test ! -s conftest.err |
| 3105 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | : |
| 3107 | else |
| 3108 | echo "$as_me: failed program was:" >&5 |
| 3109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3110 | |
| 3111 | # Broken: fails on valid input. |
| 3112 | continue |
| 3113 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3115 | rm -f conftest.err conftest.$ac_ext |
| 3116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3117 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | # can be detected and how. |
| 3119 | cat >conftest.$ac_ext <<_ACEOF |
| 3120 | /* confdefs.h. */ |
| 3121 | _ACEOF |
| 3122 | cat confdefs.h >>conftest.$ac_ext |
| 3123 | cat >>conftest.$ac_ext <<_ACEOF |
| 3124 | /* end confdefs.h. */ |
| 3125 | #include <ac_nonexistent.h> |
| 3126 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3127 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3128 | case "(($ac_try" in |
| 3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3130 | *) ac_try_echo=$ac_try;; |
| 3131 | esac |
| 3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3133 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3134 | ac_status=$? |
| 3135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3136 | rm -f conftest.er1 |
| 3137 | cat conftest.err >&5 |
| 3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3139 | (exit $ac_status); } >/dev/null && { |
| 3140 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3141 | test ! -s conftest.err |
| 3142 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3143 | # Broken: success on invalid input. |
| 3144 | continue |
| 3145 | else |
| 3146 | echo "$as_me: failed program was:" >&5 |
| 3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3148 | |
| 3149 | # Passes both tests. |
| 3150 | ac_preproc_ok=: |
| 3151 | break |
| 3152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3154 | rm -f conftest.err conftest.$ac_ext |
| 3155 | |
| 3156 | done |
| 3157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3158 | rm -f conftest.err conftest.$ac_ext |
| 3159 | if $ac_preproc_ok; then |
| 3160 | : |
| 3161 | else |
| 3162 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3163 | See \`config.log' for more details." >&5 |
| 3164 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3165 | See \`config.log' for more details." >&2;} |
| 3166 | { (exit 1); exit 1; }; } |
| 3167 | fi |
| 3168 | |
| 3169 | ac_ext=c |
| 3170 | ac_cpp='$CPP $CPPFLAGS' |
| 3171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3174 | |
| 3175 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3176 | # Check whether --with-linker was given. |
| 3177 | if test "${with_linker+set}" = set; then |
| 3178 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3179 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3180 | LD=$withval |
| 3181 | else |
| 3182 | if test -z "$LD" ; then LD=$CC; fi |
| 3183 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3184 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3185 | fi |
| 3186 | export LD |
| 3187 | |
| 3188 | |
| 3189 | # Check whether --with-ccopts was given. |
| 3190 | if test "${with_ccopts+set}" = set; then |
| 3191 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3192 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3193 | CFLAGS=$withval |
| 3194 | fi |
| 3195 | |
| 3196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3197 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3198 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3199 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3201 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3202 | # Extract the first word of "grep ggrep" to use in msg output |
| 3203 | if test -z "$GREP"; then |
| 3204 | set dummy grep ggrep; ac_prog_name=$2 |
| 3205 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3207 | else |
| 3208 | ac_path_GREP_found=false |
| 3209 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3211 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3212 | do |
| 3213 | IFS=$as_save_IFS |
| 3214 | test -z "$as_dir" && as_dir=. |
| 3215 | for ac_prog in grep ggrep; do |
| 3216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3217 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3218 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3219 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3220 | # Check for GNU $ac_path_GREP |
| 3221 | case `"$ac_path_GREP" --version 2>&1` in |
| 3222 | *GNU*) |
| 3223 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3224 | *) |
| 3225 | ac_count=0 |
| 3226 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3227 | while : |
| 3228 | do |
| 3229 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3230 | mv "conftest.tmp" "conftest.in" |
| 3231 | cp "conftest.in" "conftest.nl" |
| 3232 | echo 'GREP' >> "conftest.nl" |
| 3233 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3234 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3235 | ac_count=`expr $ac_count + 1` |
| 3236 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3237 | # Best one so far, save it but keep looking for a better one |
| 3238 | ac_cv_path_GREP="$ac_path_GREP" |
| 3239 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3241 | # 10*(2^10) chars as input seems more than enough |
| 3242 | test $ac_count -gt 10 && break |
| 3243 | done |
| 3244 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3245 | esac |
| 3246 | |
| 3247 | |
| 3248 | $ac_path_GREP_found && break 3 |
| 3249 | done |
| 3250 | done |
| 3251 | |
| 3252 | done |
| 3253 | IFS=$as_save_IFS |
| 3254 | |
| 3255 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3257 | |
| 3258 | GREP="$ac_cv_path_GREP" |
| 3259 | if test -z "$GREP"; then |
| 3260 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3261 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3262 | { (exit 1); exit 1; }; } |
| 3263 | fi |
| 3264 | |
| 3265 | else |
| 3266 | ac_cv_path_GREP=$GREP |
| 3267 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | |
| 3269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3270 | fi |
| 3271 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3272 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3273 | GREP="$ac_cv_path_GREP" |
| 3274 | |
| 3275 | |
| 3276 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3277 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3278 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3280 | else |
| 3281 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3282 | then ac_cv_path_EGREP="$GREP -E" |
| 3283 | else |
| 3284 | # Extract the first word of "egrep" to use in msg output |
| 3285 | if test -z "$EGREP"; then |
| 3286 | set dummy egrep; ac_prog_name=$2 |
| 3287 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3289 | else |
| 3290 | ac_path_EGREP_found=false |
| 3291 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3293 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3294 | do |
| 3295 | IFS=$as_save_IFS |
| 3296 | test -z "$as_dir" && as_dir=. |
| 3297 | for ac_prog in egrep; do |
| 3298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3299 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3300 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3301 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3302 | # Check for GNU $ac_path_EGREP |
| 3303 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3304 | *GNU*) |
| 3305 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3306 | *) |
| 3307 | ac_count=0 |
| 3308 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3309 | while : |
| 3310 | do |
| 3311 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3312 | mv "conftest.tmp" "conftest.in" |
| 3313 | cp "conftest.in" "conftest.nl" |
| 3314 | echo 'EGREP' >> "conftest.nl" |
| 3315 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3316 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3317 | ac_count=`expr $ac_count + 1` |
| 3318 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3319 | # Best one so far, save it but keep looking for a better one |
| 3320 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3321 | ac_path_EGREP_max=$ac_count |
| 3322 | fi |
| 3323 | # 10*(2^10) chars as input seems more than enough |
| 3324 | test $ac_count -gt 10 && break |
| 3325 | done |
| 3326 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3327 | esac |
| 3328 | |
| 3329 | |
| 3330 | $ac_path_EGREP_found && break 3 |
| 3331 | done |
| 3332 | done |
| 3333 | |
| 3334 | done |
| 3335 | IFS=$as_save_IFS |
| 3336 | |
| 3337 | |
| 3338 | fi |
| 3339 | |
| 3340 | EGREP="$ac_cv_path_EGREP" |
| 3341 | if test -z "$EGREP"; then |
| 3342 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3343 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3344 | { (exit 1); exit 1; }; } |
| 3345 | fi |
| 3346 | |
| 3347 | else |
| 3348 | ac_cv_path_EGREP=$EGREP |
| 3349 | fi |
| 3350 | |
| 3351 | |
| 3352 | fi |
| 3353 | fi |
| 3354 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3355 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3356 | EGREP="$ac_cv_path_EGREP" |
| 3357 | |
| 3358 | |
| 3359 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3360 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3361 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3363 | else |
| 3364 | cat >conftest.$ac_ext <<_ACEOF |
| 3365 | /* confdefs.h. */ |
| 3366 | _ACEOF |
| 3367 | cat confdefs.h >>conftest.$ac_ext |
| 3368 | cat >>conftest.$ac_ext <<_ACEOF |
| 3369 | /* end confdefs.h. */ |
| 3370 | #include <stdlib.h> |
| 3371 | #include <stdarg.h> |
| 3372 | #include <string.h> |
| 3373 | #include <float.h> |
| 3374 | |
| 3375 | int |
| 3376 | main () |
| 3377 | { |
| 3378 | |
| 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3384 | if { (ac_try="$ac_compile" |
| 3385 | case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3391 | ac_status=$? |
| 3392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3393 | rm -f conftest.er1 |
| 3394 | cat conftest.err >&5 |
| 3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3396 | (exit $ac_status); } && { |
| 3397 | test -z "$ac_c_werror_flag" || |
| 3398 | test ! -s conftest.err |
| 3399 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3400 | ac_cv_header_stdc=yes |
| 3401 | else |
| 3402 | echo "$as_me: failed program was:" >&5 |
| 3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3405 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3407 | |
| 3408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3409 | |
| 3410 | if test $ac_cv_header_stdc = yes; then |
| 3411 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3412 | cat >conftest.$ac_ext <<_ACEOF |
| 3413 | /* confdefs.h. */ |
| 3414 | _ACEOF |
| 3415 | cat confdefs.h >>conftest.$ac_ext |
| 3416 | cat >>conftest.$ac_ext <<_ACEOF |
| 3417 | /* end confdefs.h. */ |
| 3418 | #include <string.h> |
| 3419 | |
| 3420 | _ACEOF |
| 3421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3422 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3423 | : |
| 3424 | else |
| 3425 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3426 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3427 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3428 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3429 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3430 | |
| 3431 | if test $ac_cv_header_stdc = yes; then |
| 3432 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3433 | cat >conftest.$ac_ext <<_ACEOF |
| 3434 | /* confdefs.h. */ |
| 3435 | _ACEOF |
| 3436 | cat confdefs.h >>conftest.$ac_ext |
| 3437 | cat >>conftest.$ac_ext <<_ACEOF |
| 3438 | /* end confdefs.h. */ |
| 3439 | #include <stdlib.h> |
| 3440 | |
| 3441 | _ACEOF |
| 3442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3443 | $EGREP "free" >/dev/null 2>&1; then |
| 3444 | : |
| 3445 | else |
| 3446 | ac_cv_header_stdc=no |
| 3447 | fi |
| 3448 | rm -f conftest* |
| 3449 | |
| 3450 | fi |
| 3451 | |
| 3452 | if test $ac_cv_header_stdc = yes; then |
| 3453 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3454 | if test "$cross_compiling" = yes; then |
| 3455 | : |
| 3456 | else |
| 3457 | cat >conftest.$ac_ext <<_ACEOF |
| 3458 | /* confdefs.h. */ |
| 3459 | _ACEOF |
| 3460 | cat confdefs.h >>conftest.$ac_ext |
| 3461 | cat >>conftest.$ac_ext <<_ACEOF |
| 3462 | /* end confdefs.h. */ |
| 3463 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3464 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3465 | #if ((' ' & 0x0FF) == 0x020) |
| 3466 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3467 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3468 | #else |
| 3469 | # define ISLOWER(c) \ |
| 3470 | (('a' <= (c) && (c) <= 'i') \ |
| 3471 | || ('j' <= (c) && (c) <= 'r') \ |
| 3472 | || ('s' <= (c) && (c) <= 'z')) |
| 3473 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3474 | #endif |
| 3475 | |
| 3476 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3477 | int |
| 3478 | main () |
| 3479 | { |
| 3480 | int i; |
| 3481 | for (i = 0; i < 256; i++) |
| 3482 | if (XOR (islower (i), ISLOWER (i)) |
| 3483 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3484 | return 2; |
| 3485 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3486 | } |
| 3487 | _ACEOF |
| 3488 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3489 | if { (ac_try="$ac_link" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
| 3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3495 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3496 | ac_status=$? |
| 3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3499 | { (case "(($ac_try" in |
| 3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3501 | *) ac_try_echo=$ac_try;; |
| 3502 | esac |
| 3503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3504 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3505 | ac_status=$? |
| 3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3507 | (exit $ac_status); }; }; then |
| 3508 | : |
| 3509 | else |
| 3510 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3511 | echo "$as_me: failed program was:" >&5 |
| 3512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3513 | |
| 3514 | ( exit $ac_status ) |
| 3515 | ac_cv_header_stdc=no |
| 3516 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3517 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3518 | fi |
| 3519 | |
| 3520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3521 | fi |
| 3522 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3523 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3524 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3525 | if test $ac_cv_header_stdc = yes; then |
| 3526 | |
| 3527 | cat >>confdefs.h <<\_ACEOF |
| 3528 | #define STDC_HEADERS 1 |
| 3529 | _ACEOF |
| 3530 | |
| 3531 | fi |
| 3532 | |
| 3533 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3544 | inttypes.h stdint.h unistd.h |
| 3545 | do |
| 3546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3551 | else |
| 3552 | cat >conftest.$ac_ext <<_ACEOF |
| 3553 | /* confdefs.h. */ |
| 3554 | _ACEOF |
| 3555 | cat confdefs.h >>conftest.$ac_ext |
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
| 3557 | /* end confdefs.h. */ |
| 3558 | $ac_includes_default |
| 3559 | |
| 3560 | #include <$ac_header> |
| 3561 | _ACEOF |
| 3562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3563 | if { (ac_try="$ac_compile" |
| 3564 | case "(($ac_try" in |
| 3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3566 | *) ac_try_echo=$ac_try;; |
| 3567 | esac |
| 3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3569 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3570 | ac_status=$? |
| 3571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3572 | rm -f conftest.er1 |
| 3573 | cat conftest.err >&5 |
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3575 | (exit $ac_status); } && { |
| 3576 | test -z "$ac_c_werror_flag" || |
| 3577 | test ! -s conftest.err |
| 3578 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3579 | eval "$as_ac_Header=yes" |
| 3580 | else |
| 3581 | echo "$as_me: failed program was:" >&5 |
| 3582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3584 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3586 | |
| 3587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3591 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3593 | cat >>confdefs.h <<_ACEOF |
| 3594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3595 | _ACEOF |
| 3596 | |
| 3597 | fi |
| 3598 | |
| 3599 | done |
| 3600 | |
| 3601 | |
| 3602 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3603 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3604 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3605 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3608 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3609 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3610 | else |
| 3611 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3612 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3613 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3614 | cat >conftest.$ac_ext <<_ACEOF |
| 3615 | /* confdefs.h. */ |
| 3616 | _ACEOF |
| 3617 | cat confdefs.h >>conftest.$ac_ext |
| 3618 | cat >>conftest.$ac_ext <<_ACEOF |
| 3619 | /* end confdefs.h. */ |
| 3620 | $ac_includes_default |
| 3621 | #include <linux/fs.h> |
| 3622 | _ACEOF |
| 3623 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3624 | if { (ac_try="$ac_compile" |
| 3625 | case "(($ac_try" in |
| 3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3627 | *) ac_try_echo=$ac_try;; |
| 3628 | esac |
| 3629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3630 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3631 | ac_status=$? |
| 3632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3633 | rm -f conftest.er1 |
| 3634 | cat conftest.err >&5 |
| 3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3636 | (exit $ac_status); } && { |
| 3637 | test -z "$ac_c_werror_flag" || |
| 3638 | test ! -s conftest.err |
| 3639 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3640 | ac_header_compiler=yes |
| 3641 | else |
| 3642 | echo "$as_me: failed program was:" >&5 |
| 3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3644 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3645 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3647 | |
| 3648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3649 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3650 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3651 | |
| 3652 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3653 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3654 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3655 | cat >conftest.$ac_ext <<_ACEOF |
| 3656 | /* confdefs.h. */ |
| 3657 | _ACEOF |
| 3658 | cat confdefs.h >>conftest.$ac_ext |
| 3659 | cat >>conftest.$ac_ext <<_ACEOF |
| 3660 | /* end confdefs.h. */ |
| 3661 | #include <linux/fs.h> |
| 3662 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3664 | case "(($ac_try" in |
| 3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3666 | *) ac_try_echo=$ac_try;; |
| 3667 | esac |
| 3668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3670 | ac_status=$? |
| 3671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3672 | rm -f conftest.er1 |
| 3673 | cat conftest.err >&5 |
| 3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3675 | (exit $ac_status); } >/dev/null && { |
| 3676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3677 | test ! -s conftest.err |
| 3678 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3679 | ac_header_preproc=yes |
| 3680 | else |
| 3681 | echo "$as_me: failed program was:" >&5 |
| 3682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3683 | |
| 3684 | ac_header_preproc=no |
| 3685 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3686 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3687 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3688 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3689 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3690 | |
| 3691 | # So? What about this header? |
| 3692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3693 | yes:no: ) |
| 3694 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3695 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3696 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3697 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3698 | ac_header_preproc=yes |
| 3699 | ;; |
| 3700 | no:yes:* ) |
| 3701 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3702 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3703 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3704 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3705 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3706 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3707 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3708 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3709 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3710 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3711 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3712 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3713 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3714 | ;; |
| 3715 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3716 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3717 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3718 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3720 | else |
| 3721 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3722 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3723 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3724 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3725 | |
| 3726 | fi |
| 3727 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3728 | linux_headers=yes |
| 3729 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3730 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3731 | fi |
| 3732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3733 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3734 | if test "$linux_headers" != yes; then |
| 3735 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3738 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3739 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3740 | if test "$GCC" = yes |
| 3741 | then |
| 3742 | case "$host_cpu" in |
| 3743 | alpha) addcflags="-mieee" ;; |
| 3744 | esac |
| 3745 | fi |
| 3746 | if test "x$addcflags" != x |
| 3747 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3748 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3749 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3750 | CFLAGS="$addcflags $CFLAGS" |
| 3751 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3752 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3753 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3754 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3755 | LIB_EXT=.a |
| 3756 | STATIC_LIB_EXT=.a |
| 3757 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3759 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3760 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3761 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3762 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3763 | LDFLAGS=$withval |
| 3764 | else |
| 3765 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3766 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3768 | |
| 3769 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3770 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3771 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3772 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3773 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3774 | fi |
| 3775 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3776 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3777 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3778 | then |
| 3779 | MAINTAINER_CMT=# |
| 3780 | echo "Disabling maintainer mode" |
| 3781 | else |
| 3782 | MAINTAINER_CMT= |
| 3783 | echo "Enabling maintainer mode" |
| 3784 | fi |
| 3785 | |
| 3786 | else |
| 3787 | MAINTAINER_CMT=# |
| 3788 | echo "Disabling maintainer mode by default" |
| 3789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3790 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3792 | |
| 3793 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3794 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3795 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3796 | then |
| 3797 | echo "Disabling compression support" |
| 3798 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3799 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3800 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3801 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3802 | |
| 3803 | echo "Enabling compression support" |
| 3804 | echo "WARNING: Compression support is experimental" |
| 3805 | fi |
| 3806 | |
| 3807 | else |
| 3808 | echo "Disabling compression support by default" |
| 3809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3810 | fi |
| 3811 | |
| 3812 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3813 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3814 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3815 | then |
| 3816 | HTREE_CMT=# |
| 3817 | echo "Disabling htree directory support" |
| 3818 | else |
| 3819 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3820 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3821 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3822 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3823 | |
| 3824 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3825 | fi |
| 3826 | |
| 3827 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3828 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3829 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3830 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3831 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3832 | |
| 3833 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3834 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3835 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3837 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3838 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3839 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3840 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3841 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3842 | then |
| 3843 | ELF_CMT=# |
| 3844 | MAKEFILE_ELF=/dev/null |
| 3845 | echo "Disabling ELF shared libraries" |
| 3846 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3847 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3848 | ELF_CMT= |
| 3849 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3850 | case "$host_os" in |
| 3851 | solaris2.*) |
| 3852 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3853 | ;; |
| 3854 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3855 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3856 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3857 | echo "Enabling ELF shared libraries" |
| 3858 | fi |
| 3859 | |
| 3860 | else |
| 3861 | MAKEFILE_ELF=/dev/null |
| 3862 | ELF_CMT=# |
| 3863 | echo "Disabling ELF shared libraries by default" |
| 3864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3865 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3866 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3867 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3868 | |
| 3869 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3870 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3871 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3872 | then |
| 3873 | BSDLIB_CMT=# |
| 3874 | MAKEFILE_BSDLIB=/dev/null |
| 3875 | echo "Disabling BSD shared libraries" |
| 3876 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3877 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3878 | BSDLIB_CMT= |
| 3879 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3880 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3881 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3882 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3883 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3884 | LIB_EXT=.dylib |
| 3885 | ;; |
| 3886 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3887 | echo "Enabling BSD shared libraries" |
| 3888 | fi |
| 3889 | |
| 3890 | else |
| 3891 | MAKEFILE_BSDLIB=/dev/null |
| 3892 | BSDLIB_CMT=# |
| 3893 | echo "Disabling BSD shared libraries by default" |
| 3894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3895 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3896 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3898 | |
| 3899 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3900 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3901 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3902 | then |
| 3903 | PROFILE_CMT=# |
| 3904 | MAKEFILE_PROFILE=/dev/null |
| 3905 | echo "Disabling profiling libraries" |
| 3906 | else |
| 3907 | PROFILE_CMT= |
| 3908 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3909 | PROFILED_LIB_EXT=_p.a |
| 3910 | echo "Building profiling libraries" |
| 3911 | fi |
| 3912 | |
| 3913 | else |
| 3914 | PROFILE_CMT=# |
| 3915 | MAKEFILE_PROFILE=/dev/null |
| 3916 | echo "Disabling profiling libraries by default" |
| 3917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3918 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3919 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3920 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3921 | |
| 3922 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3923 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3924 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3925 | then |
| 3926 | CHECKER_CMT=# |
| 3927 | MAKEFILE_CHECKER=/dev/null |
| 3928 | echo "Disabling checker libraries" |
| 3929 | else |
| 3930 | CHECKER_CMT= |
| 3931 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3932 | echo "Building checker libraries" |
| 3933 | fi |
| 3934 | |
| 3935 | else |
| 3936 | CHECKER_CMT=# |
| 3937 | MAKEFILE_CHECKER=/dev/null |
| 3938 | echo "Disabling checker libraries by default" |
| 3939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3940 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3946 | |
| 3947 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3948 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3949 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3950 | then |
| 3951 | echo "Disabling journal debugging" |
| 3952 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3953 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3954 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3955 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3956 | |
| 3957 | echo "Enabling journal debugging" |
| 3958 | fi |
| 3959 | |
| 3960 | else |
| 3961 | echo "Disabling journal debugging by default" |
| 3962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3963 | fi |
| 3964 | |
| 3965 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3966 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3967 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3968 | then |
| 3969 | echo "Disabling blkid debugging" |
| 3970 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3971 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3972 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3973 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3974 | |
| 3975 | echo "Enabling blkid debugging" |
| 3976 | fi |
| 3977 | |
| 3978 | else |
| 3979 | echo "Disabling blkid debugging by default" |
| 3980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3981 | fi |
| 3982 | |
| 3983 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3984 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3985 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3986 | then |
| 3987 | echo "Disabling testio debugging" |
| 3988 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3989 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3990 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3991 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3992 | |
| 3993 | echo "Enabling testio debugging" |
| 3994 | fi |
| 3995 | |
| 3996 | else |
| 3997 | echo "Disabling testio debugging by default" |
| 3998 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3999 | fi |
| 4000 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4001 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4002 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4003 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4004 | then |
| 4005 | echo "Disabling debugfs support" |
| 4006 | DEBUGFS_CMT="#" |
| 4007 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4008 | DEBUGFS_CMT= |
| 4009 | echo "Enabling debugfs support" |
| 4010 | fi |
| 4011 | |
| 4012 | else |
| 4013 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4014 | DEBUGFS_CMT= |
| 4015 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4016 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4017 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4018 | |
| 4019 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4020 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4021 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4022 | then |
| 4023 | echo "Disabling e2image support" |
| 4024 | IMAGER_CMT="#" |
| 4025 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4026 | IMAGER_CMT= |
| 4027 | echo "Enabling e2image support" |
| 4028 | fi |
| 4029 | |
| 4030 | else |
| 4031 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4032 | IMAGER_CMT= |
| 4033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4034 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4035 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4036 | |
| 4037 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4038 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4039 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4040 | then |
| 4041 | echo "Disabling e2resize support" |
| 4042 | RESIZER_CMT="#" |
| 4043 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4044 | RESIZER_CMT= |
| 4045 | echo "Enabling e2resize support" |
| 4046 | fi |
| 4047 | |
| 4048 | else |
| 4049 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4050 | RESIZER_CMT= |
| 4051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4052 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4055 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4056 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4057 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4058 | then |
| 4059 | FSCK_PROG='' FSCK_MAN='' |
| 4060 | echo "Not building fsck wrapper" |
| 4061 | else |
| 4062 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4063 | echo "Building fsck wrapper" |
| 4064 | fi |
| 4065 | |
| 4066 | else |
| 4067 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4068 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4069 | FSCK_PROG='' FSCK_MAN='' |
| 4070 | echo "Not building fsck wrapper by default" |
| 4071 | ;; |
| 4072 | *) |
| 4073 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4074 | echo "Building fsck wrapper by default" |
| 4075 | esac |
| 4076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4077 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4078 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4079 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4080 | |
| 4081 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4082 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4083 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4084 | then |
| 4085 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4086 | echo "Not building e2initrd helper" |
| 4087 | else |
| 4088 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4089 | echo "Building e2initrd helper" |
| 4090 | fi |
| 4091 | |
| 4092 | else |
| 4093 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4094 | echo "Building e2initrd helper by default" |
| 4095 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4096 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4097 | |
| 4098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4099 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4100 | STATIC_BLKID_DEVMAPPER_LIBS='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4101 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4102 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4103 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4104 | then |
| 4105 | echo "Disabling device-mapper support" |
| 4106 | DEVMAPPER_REQ='' |
| 4107 | DEVMAPPER_LIBS='' |
| 4108 | STATIC_DEVMAPPER_LIBS='' |
| 4109 | else |
| 4110 | cat >>confdefs.h <<\_ACEOF |
| 4111 | #define HAVE_DEVMAPPER 1 |
| 4112 | _ACEOF |
| 4113 | |
| 4114 | echo "Enabling device-mapper support" |
| 4115 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4116 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4117 | |
| 4118 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4119 | if test -n "$ac_tool_prefix"; then |
| 4120 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4121 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4122 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4124 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4126 | else |
| 4127 | case $PKG_CONFIG in |
| 4128 | [\\/]* | ?:[\\/]*) |
| 4129 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4130 | ;; |
| 4131 | *) |
| 4132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4133 | for as_dir in $PATH |
| 4134 | do |
| 4135 | IFS=$as_save_IFS |
| 4136 | test -z "$as_dir" && as_dir=. |
| 4137 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4139 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4141 | break 2 |
| 4142 | fi |
| 4143 | done |
| 4144 | done |
| 4145 | IFS=$as_save_IFS |
| 4146 | |
| 4147 | ;; |
| 4148 | esac |
| 4149 | fi |
| 4150 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4151 | if test -n "$PKG_CONFIG"; then |
| 4152 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4153 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 4154 | else |
| 4155 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4156 | echo "${ECHO_T}no" >&6; } |
| 4157 | fi |
| 4158 | |
| 4159 | |
| 4160 | fi |
| 4161 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4162 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4163 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4164 | set dummy pkg-config; ac_word=$2 |
| 4165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4167 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4169 | else |
| 4170 | case $ac_pt_PKG_CONFIG in |
| 4171 | [\\/]* | ?:[\\/]*) |
| 4172 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4173 | ;; |
| 4174 | *) |
| 4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4176 | for as_dir in $PATH |
| 4177 | do |
| 4178 | IFS=$as_save_IFS |
| 4179 | test -z "$as_dir" && as_dir=. |
| 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4182 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4184 | break 2 |
| 4185 | fi |
| 4186 | done |
| 4187 | done |
| 4188 | IFS=$as_save_IFS |
| 4189 | |
| 4190 | ;; |
| 4191 | esac |
| 4192 | fi |
| 4193 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4194 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4195 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4196 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 4197 | else |
| 4198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4199 | echo "${ECHO_T}no" >&6; } |
| 4200 | fi |
| 4201 | |
| 4202 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4203 | PKG_CONFIG="" |
| 4204 | else |
| 4205 | case $cross_compiling:$ac_tool_warned in |
| 4206 | yes:) |
| 4207 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4208 | whose name does not start with the host triplet. If you think this |
| 4209 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4210 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4211 | whose name does not start with the host triplet. If you think this |
| 4212 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4213 | ac_tool_warned=yes ;; |
| 4214 | esac |
| 4215 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4216 | fi |
| 4217 | else |
| 4218 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4219 | fi |
| 4220 | |
| 4221 | fi |
| 4222 | if test -n "$PKG_CONFIG"; then |
| 4223 | _pkg_min_version=0.9.0 |
| 4224 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4225 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 4226 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4227 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4228 | echo "${ECHO_T}yes" >&6; } |
| 4229 | else |
| 4230 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4231 | echo "${ECHO_T}no" >&6; } |
| 4232 | PKG_CONFIG="" |
| 4233 | fi |
| 4234 | |
| 4235 | fi |
| 4236 | |
| 4237 | if test -z "$PKG_CONFIG"; then |
| 4238 | echo "pkg-config not installed; please install it." |
| 4239 | exit 1; |
| 4240 | fi |
| 4241 | |
| 4242 | { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5 |
| 4243 | echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; } |
| 4244 | if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then |
| 4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4246 | else |
| 4247 | ac_check_lib_save_LIBS=$LIBS |
| 4248 | LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS" |
| 4249 | cat >conftest.$ac_ext <<_ACEOF |
| 4250 | /* confdefs.h. */ |
| 4251 | _ACEOF |
| 4252 | cat confdefs.h >>conftest.$ac_ext |
| 4253 | cat >>conftest.$ac_ext <<_ACEOF |
| 4254 | /* end confdefs.h. */ |
| 4255 | |
| 4256 | /* Override any GCC internal prototype to avoid an error. |
| 4257 | Use char because int might match the return type of a GCC |
| 4258 | builtin and then its argument prototype would still apply. */ |
| 4259 | #ifdef __cplusplus |
| 4260 | extern "C" |
| 4261 | #endif |
| 4262 | char dm_tree_create (); |
| 4263 | int |
| 4264 | main () |
| 4265 | { |
| 4266 | return dm_tree_create (); |
| 4267 | ; |
| 4268 | return 0; |
| 4269 | } |
| 4270 | _ACEOF |
| 4271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4272 | if { (ac_try="$ac_link" |
| 4273 | case "(($ac_try" in |
| 4274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4275 | *) ac_try_echo=$ac_try;; |
| 4276 | esac |
| 4277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4278 | (eval "$ac_link") 2>conftest.er1 |
| 4279 | ac_status=$? |
| 4280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4281 | rm -f conftest.er1 |
| 4282 | cat conftest.err >&5 |
| 4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4284 | (exit $ac_status); } && { |
| 4285 | test -z "$ac_c_werror_flag" || |
| 4286 | test ! -s conftest.err |
| 4287 | } && test -s conftest$ac_exeext && |
| 4288 | $as_test_x conftest$ac_exeext; then |
| 4289 | ac_cv_lib_devmapper_dm_tree_create=yes |
| 4290 | else |
| 4291 | echo "$as_me: failed program was:" >&5 |
| 4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4293 | |
| 4294 | ac_cv_lib_devmapper_dm_tree_create=no |
| 4295 | fi |
| 4296 | |
| 4297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4298 | conftest$ac_exeext conftest.$ac_ext |
| 4299 | LIBS=$ac_check_lib_save_LIBS |
| 4300 | fi |
| 4301 | { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5 |
| 4302 | echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; } |
| 4303 | if test $ac_cv_lib_devmapper_dm_tree_create = yes; then |
| 4304 | DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`; |
| 4305 | STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`; |
| 4306 | DEVMAPPER_REQ="devmapper"; |
| 4307 | DEVMAPPER_PC_LIBS="-ldevmapper" |
| 4308 | else |
| 4309 | { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5 |
| 4310 | echo "$as_me: error: device-mapper library not found" >&2;} |
| 4311 | { (exit 1); exit 1; }; } |
| 4312 | fi |
| 4313 | |
| 4314 | # work around stupid devmapper.pc bug in Debian |
| 4315 | case "$STATIC_DEVMAPPER_LIBS" in |
| 4316 | *pthread*) |
| 4317 | ;; |
| 4318 | *) |
| 4319 | echo "Working around Debian bug #390243..." |
| 4320 | STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS" |
| 4321 | ;; |
| 4322 | esac |
| 4323 | if test "$E2_PKG_CONFIG_STATIC" = "--static"; then |
| 4324 | DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4325 | STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4326 | fi |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4327 | fi |
| 4328 | |
| 4329 | else |
| 4330 | echo "Disabling device-mapper support by default" |
| 4331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4332 | fi |
| 4333 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4334 | |
| 4335 | |
| 4336 | |
| 4337 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4338 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4339 | # Check whether --enable-tls was given. |
| 4340 | if test "${enable_tls+set}" = set; then |
| 4341 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4342 | then |
| 4343 | try_tls="" |
| 4344 | echo "Disabling thread local support" |
| 4345 | else |
| 4346 | try_tls="yes" |
| 4347 | echo "Enabling thread local support" |
| 4348 | fi |
| 4349 | |
| 4350 | else |
| 4351 | try_tls="yes" |
| 4352 | echo "Try using thread local support by default" |
| 4353 | |
| 4354 | fi |
| 4355 | |
| 4356 | if test "$try_tls" = "yes" |
| 4357 | then |
| 4358 | |
| 4359 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4360 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4361 | if test "${ac_cv_tls+set}" = set; then |
| 4362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4363 | else |
| 4364 | |
| 4365 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4366 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4367 | case $ax_tls_keyword in |
| 4368 | none) ac_cv_tls=none ; break ;; |
| 4369 | *) |
| 4370 | cat >conftest.$ac_ext <<_ACEOF |
| 4371 | /* confdefs.h. */ |
| 4372 | _ACEOF |
| 4373 | cat confdefs.h >>conftest.$ac_ext |
| 4374 | cat >>conftest.$ac_ext <<_ACEOF |
| 4375 | /* end confdefs.h. */ |
| 4376 | #include <stdlib.h> |
| 4377 | static void |
| 4378 | foo(void) { |
| 4379 | static $ax_tls_keyword int bar; |
| 4380 | exit(1); |
| 4381 | } |
| 4382 | int |
| 4383 | main () |
| 4384 | { |
| 4385 | |
| 4386 | ; |
| 4387 | return 0; |
| 4388 | } |
| 4389 | _ACEOF |
| 4390 | rm -f conftest.$ac_objext |
| 4391 | if { (ac_try="$ac_compile" |
| 4392 | case "(($ac_try" in |
| 4393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4394 | *) ac_try_echo=$ac_try;; |
| 4395 | esac |
| 4396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4397 | (eval "$ac_compile") 2>conftest.er1 |
| 4398 | ac_status=$? |
| 4399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4400 | rm -f conftest.er1 |
| 4401 | cat conftest.err >&5 |
| 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4403 | (exit $ac_status); } && { |
| 4404 | test -z "$ac_c_werror_flag" || |
| 4405 | test ! -s conftest.err |
| 4406 | } && test -s conftest.$ac_objext; then |
| 4407 | ac_cv_tls=$ax_tls_keyword ; break |
| 4408 | else |
| 4409 | echo "$as_me: failed program was:" >&5 |
| 4410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4411 | |
| 4412 | ac_cv_tls=none |
| 4413 | |
| 4414 | fi |
| 4415 | |
| 4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4417 | esac |
| 4418 | done |
| 4419 | |
| 4420 | fi |
| 4421 | |
| 4422 | |
| 4423 | if test "$ac_cv_tls" != "none"; then |
| 4424 | |
| 4425 | cat >>confdefs.h <<_ACEOF |
| 4426 | #define TLS $ac_cv_tls |
| 4427 | _ACEOF |
| 4428 | |
| 4429 | fi |
| 4430 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4431 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4432 | |
| 4433 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4434 | # Check whether --enable-uuidd was given. |
| 4435 | if test "${enable_uuidd+set}" = set; then |
| 4436 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4437 | then |
| 4438 | echo "Not building uuidd" |
| 4439 | UUIDD_CMT="#" |
| 4440 | else |
| 4441 | cat >>confdefs.h <<\_ACEOF |
| 4442 | #define USE_UUIDD 1 |
| 4443 | _ACEOF |
| 4444 | |
| 4445 | UUIDD_CMT="" |
| 4446 | echo "Building uuidd" |
| 4447 | fi |
| 4448 | |
| 4449 | else |
| 4450 | cat >>confdefs.h <<\_ACEOF |
| 4451 | #define USE_UUIDD 1 |
| 4452 | _ACEOF |
| 4453 | |
| 4454 | UUIDD_CMT="" |
| 4455 | echo "Building uuidd by default" |
| 4456 | |
| 4457 | fi |
| 4458 | |
| 4459 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4460 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4462 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4463 | PACKAGE=e2fsprogs |
| 4464 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4465 | VERSION=0.14.1 |
| 4466 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4467 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4468 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4470 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4471 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4472 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4473 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4478 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4479 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4480 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4481 | 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] | 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4484 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4485 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4486 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4487 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4488 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4489 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4490 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4491 | *@@@%%%=?*=@@@%%%*) |
| 4492 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4493 | *) |
| 4494 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4495 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4496 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4497 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4498 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4499 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4500 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4501 | SET_MAKE= |
| 4502 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4504 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4505 | SET_MAKE="MAKE=${MAKE-make}" |
| 4506 | fi |
| 4507 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4508 | # Find a good install program. We prefer a C program (faster), |
| 4509 | # so one script is as good as another. But avoid the broken or |
| 4510 | # incompatible versions: |
| 4511 | # SysV /etc/install, /usr/sbin/install |
| 4512 | # SunOS /usr/etc/install |
| 4513 | # IRIX /sbin/install |
| 4514 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4515 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4516 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4517 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4518 | # 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] | 4519 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4520 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4521 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4522 | 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] | 4523 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4524 | if test "${ac_cv_path_install+set}" = set; then |
| 4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4526 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4528 | for as_dir in $PATH |
| 4529 | do |
| 4530 | IFS=$as_save_IFS |
| 4531 | test -z "$as_dir" && as_dir=. |
| 4532 | # Account for people who put trailing slashes in PATH elements. |
| 4533 | case $as_dir/ in |
| 4534 | ./ | .// | /cC/* | \ |
| 4535 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4536 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4537 | /usr/ucb/* ) ;; |
| 4538 | *) |
| 4539 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4540 | # Don't use installbsd from OSF since it installs stuff as root |
| 4541 | # by default. |
| 4542 | for ac_prog in ginstall scoinst install; do |
| 4543 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4544 | 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] | 4545 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4546 | 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] | 4547 | # AIX install. It has an incompatible calling convention. |
| 4548 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4549 | elif test $ac_prog = install && |
| 4550 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4551 | # program-specific install script used by HP pwplus--don't use. |
| 4552 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4553 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4554 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4555 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4556 | fi |
| 4557 | fi |
| 4558 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4559 | done |
| 4560 | ;; |
| 4561 | esac |
| 4562 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4563 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4565 | |
| 4566 | fi |
| 4567 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4568 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4569 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4570 | # As a last resort, use the slow shell script. Don't cache a |
| 4571 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4572 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4573 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4574 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4575 | fi |
| 4576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4577 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4578 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4579 | |
| 4580 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4581 | # It thinks the first close brace ends the variable substitution. |
| 4582 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4584 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4585 | |
| 4586 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4587 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4588 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4589 | MKINSTALLDIRS= |
| 4590 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4591 | case "$ac_aux_dir" in |
| 4592 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4593 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4594 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4595 | fi |
| 4596 | if test -z "$MKINSTALLDIRS"; then |
| 4597 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4598 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4600 | |
| 4601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4602 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4603 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4604 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4605 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4606 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4607 | else |
| 4608 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4609 | fi |
| 4610 | |
| 4611 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4612 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | # Prepare PATH_SEPARATOR. |
| 4620 | # The user is always right. |
| 4621 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4622 | echo "#! /bin/sh" >conf$$.sh |
| 4623 | echo "exit 0" >>conf$$.sh |
| 4624 | chmod +x conf$$.sh |
| 4625 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4626 | PATH_SEPARATOR=';' |
| 4627 | else |
| 4628 | PATH_SEPARATOR=: |
| 4629 | fi |
| 4630 | rm -f conf$$.sh |
| 4631 | fi |
| 4632 | |
| 4633 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4634 | # as systems may use methods other than mode bits to determine executability. |
| 4635 | cat >conf$$.file <<_ASEOF |
| 4636 | #! /bin/sh |
| 4637 | exit 0 |
| 4638 | _ASEOF |
| 4639 | chmod +x conf$$.file |
| 4640 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4641 | ac_executable_p="test -x" |
| 4642 | else |
| 4643 | ac_executable_p="test -f" |
| 4644 | fi |
| 4645 | rm -f conf$$.file |
| 4646 | |
| 4647 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4648 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4649 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4651 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4653 | else |
| 4654 | case "$MSGFMT" in |
| 4655 | [\\/]* | ?:[\\/]*) |
| 4656 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4657 | ;; |
| 4658 | *) |
| 4659 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4660 | for ac_dir in $PATH; do |
| 4661 | IFS="$ac_save_IFS" |
| 4662 | test -z "$ac_dir" && ac_dir=. |
| 4663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4664 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4665 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4666 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4667 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4668 | break 2 |
| 4669 | fi |
| 4670 | fi |
| 4671 | done |
| 4672 | done |
| 4673 | IFS="$ac_save_IFS" |
| 4674 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4675 | ;; |
| 4676 | esac |
| 4677 | fi |
| 4678 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4679 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4681 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4682 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4683 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4684 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4685 | fi |
| 4686 | |
| 4687 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4688 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4691 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4693 | else |
| 4694 | case $GMSGFMT in |
| 4695 | [\\/]* | ?:[\\/]*) |
| 4696 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4697 | ;; |
| 4698 | *) |
| 4699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4700 | for as_dir in $PATH |
| 4701 | do |
| 4702 | IFS=$as_save_IFS |
| 4703 | test -z "$as_dir" && as_dir=. |
| 4704 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4705 | 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] | 4706 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4708 | break 2 |
| 4709 | fi |
| 4710 | done |
| 4711 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4712 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4713 | |
| 4714 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4715 | ;; |
| 4716 | esac |
| 4717 | fi |
| 4718 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4719 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4720 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4721 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4722 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4723 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4724 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4725 | fi |
| 4726 | |
| 4727 | |
| 4728 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4730 | # Prepare PATH_SEPARATOR. |
| 4731 | # The user is always right. |
| 4732 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4733 | echo "#! /bin/sh" >conf$$.sh |
| 4734 | echo "exit 0" >>conf$$.sh |
| 4735 | chmod +x conf$$.sh |
| 4736 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4737 | PATH_SEPARATOR=';' |
| 4738 | else |
| 4739 | PATH_SEPARATOR=: |
| 4740 | fi |
| 4741 | rm -f conf$$.sh |
| 4742 | fi |
| 4743 | |
| 4744 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4745 | # as systems may use methods other than mode bits to determine executability. |
| 4746 | cat >conf$$.file <<_ASEOF |
| 4747 | #! /bin/sh |
| 4748 | exit 0 |
| 4749 | _ASEOF |
| 4750 | chmod +x conf$$.file |
| 4751 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4752 | ac_executable_p="test -x" |
| 4753 | else |
| 4754 | ac_executable_p="test -f" |
| 4755 | fi |
| 4756 | rm -f conf$$.file |
| 4757 | |
| 4758 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4759 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4760 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4762 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4764 | else |
| 4765 | case "$XGETTEXT" in |
| 4766 | [\\/]* | ?:[\\/]*) |
| 4767 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4768 | ;; |
| 4769 | *) |
| 4770 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4771 | for ac_dir in $PATH; do |
| 4772 | IFS="$ac_save_IFS" |
| 4773 | test -z "$ac_dir" && ac_dir=. |
| 4774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4775 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4776 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4777 | (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 |
| 4778 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4779 | break 2 |
| 4780 | fi |
| 4781 | fi |
| 4782 | done |
| 4783 | done |
| 4784 | IFS="$ac_save_IFS" |
| 4785 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4786 | ;; |
| 4787 | esac |
| 4788 | fi |
| 4789 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4790 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4791 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4792 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4793 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4794 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4795 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4796 | fi |
| 4797 | |
| 4798 | rm -f messages.po |
| 4799 | |
| 4800 | |
| 4801 | # Prepare PATH_SEPARATOR. |
| 4802 | # The user is always right. |
| 4803 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4804 | echo "#! /bin/sh" >conf$$.sh |
| 4805 | echo "exit 0" >>conf$$.sh |
| 4806 | chmod +x conf$$.sh |
| 4807 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4808 | PATH_SEPARATOR=';' |
| 4809 | else |
| 4810 | PATH_SEPARATOR=: |
| 4811 | fi |
| 4812 | rm -f conf$$.sh |
| 4813 | fi |
| 4814 | |
| 4815 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4816 | # as systems may use methods other than mode bits to determine executability. |
| 4817 | cat >conf$$.file <<_ASEOF |
| 4818 | #! /bin/sh |
| 4819 | exit 0 |
| 4820 | _ASEOF |
| 4821 | chmod +x conf$$.file |
| 4822 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4823 | ac_executable_p="test -x" |
| 4824 | else |
| 4825 | ac_executable_p="test -f" |
| 4826 | fi |
| 4827 | rm -f conf$$.file |
| 4828 | |
| 4829 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4830 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4833 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4835 | else |
| 4836 | case "$MSGMERGE" in |
| 4837 | [\\/]* | ?:[\\/]*) |
| 4838 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4839 | ;; |
| 4840 | *) |
| 4841 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4842 | for ac_dir in $PATH; do |
| 4843 | IFS="$ac_save_IFS" |
| 4844 | test -z "$ac_dir" && ac_dir=. |
| 4845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4846 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4847 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4848 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4849 | break 2 |
| 4850 | fi |
| 4851 | fi |
| 4852 | done |
| 4853 | done |
| 4854 | IFS="$ac_save_IFS" |
| 4855 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4856 | ;; |
| 4857 | esac |
| 4858 | fi |
| 4859 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4860 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4861 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4862 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4863 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4864 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4865 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4866 | fi |
| 4867 | |
| 4868 | |
| 4869 | if test "$GMSGFMT" != ":"; then |
| 4870 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4871 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4872 | : ; |
| 4873 | else |
| 4874 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4875 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4876 | 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] | 4877 | GMSGFMT=":" |
| 4878 | fi |
| 4879 | fi |
| 4880 | |
| 4881 | if test "$XGETTEXT" != ":"; then |
| 4882 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4883 | (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 |
| 4884 | : ; |
| 4885 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4886 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4887 | 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] | 4888 | XGETTEXT=":" |
| 4889 | fi |
| 4890 | rm -f messages.po |
| 4891 | fi |
| 4892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4893 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4894 | |
| 4895 | |
| 4896 | if test -n "$ac_tool_prefix"; then |
| 4897 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4898 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4899 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4901 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4903 | else |
| 4904 | if test -n "$RANLIB"; then |
| 4905 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4906 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4908 | for as_dir in $PATH |
| 4909 | do |
| 4910 | IFS=$as_save_IFS |
| 4911 | test -z "$as_dir" && as_dir=. |
| 4912 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4913 | 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] | 4914 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4916 | break 2 |
| 4917 | fi |
| 4918 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4919 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4920 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4921 | |
| 4922 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4923 | fi |
| 4924 | RANLIB=$ac_cv_prog_RANLIB |
| 4925 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4926 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4927 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4928 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4929 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4930 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4931 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4934 | fi |
| 4935 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4936 | ac_ct_RANLIB=$RANLIB |
| 4937 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4938 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4939 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4941 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4943 | else |
| 4944 | if test -n "$ac_ct_RANLIB"; then |
| 4945 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4946 | else |
| 4947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4948 | for as_dir in $PATH |
| 4949 | do |
| 4950 | IFS=$as_save_IFS |
| 4951 | test -z "$as_dir" && as_dir=. |
| 4952 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4953 | 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] | 4954 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4956 | break 2 |
| 4957 | fi |
| 4958 | done |
| 4959 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4960 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4961 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4962 | fi |
| 4963 | fi |
| 4964 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4965 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4966 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4967 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4968 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4969 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4970 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4971 | fi |
| 4972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4973 | if test "x$ac_ct_RANLIB" = x; then |
| 4974 | RANLIB=":" |
| 4975 | else |
| 4976 | case $cross_compiling:$ac_tool_warned in |
| 4977 | yes:) |
| 4978 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4979 | whose name does not start with the host triplet. If you think this |
| 4980 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4981 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4982 | whose name does not start with the host triplet. If you think this |
| 4983 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4984 | ac_tool_warned=yes ;; |
| 4985 | esac |
| 4986 | RANLIB=$ac_ct_RANLIB |
| 4987 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4988 | else |
| 4989 | RANLIB="$ac_cv_prog_RANLIB" |
| 4990 | fi |
| 4991 | |
| 4992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4993 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4994 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4995 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4997 | else |
| 4998 | ac_check_lib_save_LIBS=$LIBS |
| 4999 | LIBS="-lcposix $LIBS" |
| 5000 | cat >conftest.$ac_ext <<_ACEOF |
| 5001 | /* confdefs.h. */ |
| 5002 | _ACEOF |
| 5003 | cat confdefs.h >>conftest.$ac_ext |
| 5004 | cat >>conftest.$ac_ext <<_ACEOF |
| 5005 | /* end confdefs.h. */ |
| 5006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5007 | /* Override any GCC internal prototype to avoid an error. |
| 5008 | Use char because int might match the return type of a GCC |
| 5009 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5010 | #ifdef __cplusplus |
| 5011 | extern "C" |
| 5012 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5013 | char strerror (); |
| 5014 | int |
| 5015 | main () |
| 5016 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5017 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5018 | ; |
| 5019 | return 0; |
| 5020 | } |
| 5021 | _ACEOF |
| 5022 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5023 | if { (ac_try="$ac_link" |
| 5024 | case "(($ac_try" in |
| 5025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5026 | *) ac_try_echo=$ac_try;; |
| 5027 | esac |
| 5028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5029 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5030 | ac_status=$? |
| 5031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5032 | rm -f conftest.er1 |
| 5033 | cat conftest.err >&5 |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5035 | (exit $ac_status); } && { |
| 5036 | test -z "$ac_c_werror_flag" || |
| 5037 | test ! -s conftest.err |
| 5038 | } && test -s conftest$ac_exeext && |
| 5039 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5040 | ac_cv_lib_cposix_strerror=yes |
| 5041 | else |
| 5042 | echo "$as_me: failed program was:" >&5 |
| 5043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5045 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5046 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5047 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5048 | 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] | 5049 | conftest$ac_exeext conftest.$ac_ext |
| 5050 | LIBS=$ac_check_lib_save_LIBS |
| 5051 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5052 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5053 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5054 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5055 | LIBS="$LIBS -lcposix" |
| 5056 | fi |
| 5057 | |
| 5058 | |
| 5059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5060 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5061 | 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] | 5062 | if test "${ac_cv_c_const+set}" = set; then |
| 5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5064 | else |
| 5065 | cat >conftest.$ac_ext <<_ACEOF |
| 5066 | /* confdefs.h. */ |
| 5067 | _ACEOF |
| 5068 | cat confdefs.h >>conftest.$ac_ext |
| 5069 | cat >>conftest.$ac_ext <<_ACEOF |
| 5070 | /* end confdefs.h. */ |
| 5071 | |
| 5072 | int |
| 5073 | main () |
| 5074 | { |
| 5075 | /* FIXME: Include the comments suggested by Paul. */ |
| 5076 | #ifndef __cplusplus |
| 5077 | /* Ultrix mips cc rejects this. */ |
| 5078 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5079 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5080 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5081 | char const *const *pcpcc; |
| 5082 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5083 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5084 | struct point {int x, y;}; |
| 5085 | static struct point const zero = {0,0}; |
| 5086 | /* AIX XL C 1.02.0.0 rejects this. |
| 5087 | It does not let you subtract one const X* pointer from another in |
| 5088 | an arm of an if-expression whose if-part is not a constant |
| 5089 | expression */ |
| 5090 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5091 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5092 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5093 | ++pcpcc; |
| 5094 | ppc = (char**) pcpcc; |
| 5095 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5096 | { /* SCO 3.2v4 cc rejects this. */ |
| 5097 | char *t; |
| 5098 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5099 | |
| 5100 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5101 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5102 | } |
| 5103 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5104 | int x[] = {25, 17}; |
| 5105 | const int *foo = &x[0]; |
| 5106 | ++foo; |
| 5107 | } |
| 5108 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5109 | typedef const int *iptr; |
| 5110 | iptr p = 0; |
| 5111 | ++p; |
| 5112 | } |
| 5113 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5114 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5115 | struct s { int j; const int *ap[3]; }; |
| 5116 | struct s *b; b->j = 5; |
| 5117 | } |
| 5118 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5119 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5120 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5121 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5122 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5123 | #endif |
| 5124 | |
| 5125 | ; |
| 5126 | return 0; |
| 5127 | } |
| 5128 | _ACEOF |
| 5129 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5130 | if { (ac_try="$ac_compile" |
| 5131 | case "(($ac_try" in |
| 5132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5133 | *) ac_try_echo=$ac_try;; |
| 5134 | esac |
| 5135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5136 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5137 | ac_status=$? |
| 5138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5139 | rm -f conftest.er1 |
| 5140 | cat conftest.err >&5 |
| 5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5142 | (exit $ac_status); } && { |
| 5143 | test -z "$ac_c_werror_flag" || |
| 5144 | test ! -s conftest.err |
| 5145 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5146 | ac_cv_c_const=yes |
| 5147 | else |
| 5148 | echo "$as_me: failed program was:" >&5 |
| 5149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5151 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5153 | |
| 5154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5155 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5156 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5157 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5158 | if test $ac_cv_c_const = no; then |
| 5159 | |
| 5160 | cat >>confdefs.h <<\_ACEOF |
| 5161 | #define const |
| 5162 | _ACEOF |
| 5163 | |
| 5164 | fi |
| 5165 | |
| 5166 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5167 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5168 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5169 | if test "${bh_cv_c_signed+set}" = set; then |
| 5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5171 | else |
| 5172 | cat >conftest.$ac_ext <<_ACEOF |
| 5173 | /* confdefs.h. */ |
| 5174 | _ACEOF |
| 5175 | cat confdefs.h >>conftest.$ac_ext |
| 5176 | cat >>conftest.$ac_ext <<_ACEOF |
| 5177 | /* end confdefs.h. */ |
| 5178 | |
| 5179 | int |
| 5180 | main () |
| 5181 | { |
| 5182 | signed char x; |
| 5183 | ; |
| 5184 | return 0; |
| 5185 | } |
| 5186 | _ACEOF |
| 5187 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5188 | if { (ac_try="$ac_compile" |
| 5189 | case "(($ac_try" in |
| 5190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5191 | *) ac_try_echo=$ac_try;; |
| 5192 | esac |
| 5193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5194 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5195 | ac_status=$? |
| 5196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5197 | rm -f conftest.er1 |
| 5198 | cat conftest.err >&5 |
| 5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5200 | (exit $ac_status); } && { |
| 5201 | test -z "$ac_c_werror_flag" || |
| 5202 | test ! -s conftest.err |
| 5203 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5204 | bh_cv_c_signed=yes |
| 5205 | else |
| 5206 | echo "$as_me: failed program was:" >&5 |
| 5207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5209 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5210 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5211 | |
| 5212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5213 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5214 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5215 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5216 | if test $bh_cv_c_signed = no; then |
| 5217 | |
| 5218 | cat >>confdefs.h <<\_ACEOF |
| 5219 | #define signed |
| 5220 | _ACEOF |
| 5221 | |
| 5222 | fi |
| 5223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5224 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5225 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5226 | if test "${ac_cv_c_inline+set}" = set; then |
| 5227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5228 | else |
| 5229 | ac_cv_c_inline=no |
| 5230 | for ac_kw in inline __inline__ __inline; do |
| 5231 | cat >conftest.$ac_ext <<_ACEOF |
| 5232 | /* confdefs.h. */ |
| 5233 | _ACEOF |
| 5234 | cat confdefs.h >>conftest.$ac_ext |
| 5235 | cat >>conftest.$ac_ext <<_ACEOF |
| 5236 | /* end confdefs.h. */ |
| 5237 | #ifndef __cplusplus |
| 5238 | typedef int foo_t; |
| 5239 | static $ac_kw foo_t static_foo () {return 0; } |
| 5240 | $ac_kw foo_t foo () {return 0; } |
| 5241 | #endif |
| 5242 | |
| 5243 | _ACEOF |
| 5244 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5245 | if { (ac_try="$ac_compile" |
| 5246 | case "(($ac_try" in |
| 5247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5248 | *) ac_try_echo=$ac_try;; |
| 5249 | esac |
| 5250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5251 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5252 | ac_status=$? |
| 5253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5254 | rm -f conftest.er1 |
| 5255 | cat conftest.err >&5 |
| 5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5257 | (exit $ac_status); } && { |
| 5258 | test -z "$ac_c_werror_flag" || |
| 5259 | test ! -s conftest.err |
| 5260 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5261 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5262 | else |
| 5263 | echo "$as_me: failed program was:" >&5 |
| 5264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5266 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5267 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5268 | |
| 5269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5270 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5271 | done |
| 5272 | |
| 5273 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5274 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5275 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5276 | |
| 5277 | |
| 5278 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5279 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5280 | *) |
| 5281 | case $ac_cv_c_inline in |
| 5282 | no) ac_val=;; |
| 5283 | *) ac_val=$ac_cv_c_inline;; |
| 5284 | esac |
| 5285 | cat >>confdefs.h <<_ACEOF |
| 5286 | #ifndef __cplusplus |
| 5287 | #define inline $ac_val |
| 5288 | #endif |
| 5289 | _ACEOF |
| 5290 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5291 | esac |
| 5292 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5293 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5294 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5295 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5297 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5298 | cat >conftest.$ac_ext <<_ACEOF |
| 5299 | /* confdefs.h. */ |
| 5300 | _ACEOF |
| 5301 | cat confdefs.h >>conftest.$ac_ext |
| 5302 | cat >>conftest.$ac_ext <<_ACEOF |
| 5303 | /* end confdefs.h. */ |
| 5304 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5305 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5306 | int |
| 5307 | main () |
| 5308 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5309 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5310 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5311 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5312 | return 0; |
| 5313 | ; |
| 5314 | return 0; |
| 5315 | } |
| 5316 | _ACEOF |
| 5317 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5318 | if { (ac_try="$ac_compile" |
| 5319 | case "(($ac_try" in |
| 5320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5321 | *) ac_try_echo=$ac_try;; |
| 5322 | esac |
| 5323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5324 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5325 | ac_status=$? |
| 5326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5327 | rm -f conftest.er1 |
| 5328 | cat conftest.err >&5 |
| 5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5330 | (exit $ac_status); } && { |
| 5331 | test -z "$ac_c_werror_flag" || |
| 5332 | test ! -s conftest.err |
| 5333 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5334 | ac_cv_type_off_t=yes |
| 5335 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5336 | echo "$as_me: failed program was:" >&5 |
| 5337 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5339 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5340 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5341 | |
| 5342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5343 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5344 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5345 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5346 | if test $ac_cv_type_off_t = yes; then |
| 5347 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5348 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5349 | |
| 5350 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5351 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5352 | _ACEOF |
| 5353 | |
| 5354 | fi |
| 5355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5356 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5357 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5358 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5360 | else |
| 5361 | cat >conftest.$ac_ext <<_ACEOF |
| 5362 | /* confdefs.h. */ |
| 5363 | _ACEOF |
| 5364 | cat confdefs.h >>conftest.$ac_ext |
| 5365 | cat >>conftest.$ac_ext <<_ACEOF |
| 5366 | /* end confdefs.h. */ |
| 5367 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5368 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5369 | int |
| 5370 | main () |
| 5371 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5372 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5373 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5374 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5375 | return 0; |
| 5376 | ; |
| 5377 | return 0; |
| 5378 | } |
| 5379 | _ACEOF |
| 5380 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5381 | if { (ac_try="$ac_compile" |
| 5382 | case "(($ac_try" in |
| 5383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5384 | *) ac_try_echo=$ac_try;; |
| 5385 | esac |
| 5386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5387 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5388 | ac_status=$? |
| 5389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5390 | rm -f conftest.er1 |
| 5391 | cat conftest.err >&5 |
| 5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5393 | (exit $ac_status); } && { |
| 5394 | test -z "$ac_c_werror_flag" || |
| 5395 | test ! -s conftest.err |
| 5396 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5397 | ac_cv_type_size_t=yes |
| 5398 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5399 | echo "$as_me: failed program was:" >&5 |
| 5400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5401 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5402 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5403 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5404 | |
| 5405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5407 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5408 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5409 | if test $ac_cv_type_size_t = yes; then |
| 5410 | : |
| 5411 | else |
| 5412 | |
| 5413 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5414 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5415 | _ACEOF |
| 5416 | |
| 5417 | fi |
| 5418 | |
| 5419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5420 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5421 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5422 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5424 | else |
| 5425 | cat >conftest.$ac_ext <<_ACEOF |
| 5426 | /* confdefs.h. */ |
| 5427 | _ACEOF |
| 5428 | cat confdefs.h >>conftest.$ac_ext |
| 5429 | cat >>conftest.$ac_ext <<_ACEOF |
| 5430 | /* end confdefs.h. */ |
| 5431 | long long ll = 1LL; int i = 63; |
| 5432 | int |
| 5433 | main () |
| 5434 | { |
| 5435 | long long llmax = (long long) -1; |
| 5436 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5437 | ; |
| 5438 | return 0; |
| 5439 | } |
| 5440 | _ACEOF |
| 5441 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5442 | if { (ac_try="$ac_link" |
| 5443 | case "(($ac_try" in |
| 5444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5445 | *) ac_try_echo=$ac_try;; |
| 5446 | esac |
| 5447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5448 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5449 | ac_status=$? |
| 5450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5451 | rm -f conftest.er1 |
| 5452 | cat conftest.err >&5 |
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5454 | (exit $ac_status); } && { |
| 5455 | test -z "$ac_c_werror_flag" || |
| 5456 | test ! -s conftest.err |
| 5457 | } && test -s conftest$ac_exeext && |
| 5458 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5459 | ac_cv_type_long_long=yes |
| 5460 | else |
| 5461 | echo "$as_me: failed program was:" >&5 |
| 5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5463 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5464 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5465 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5466 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5467 | 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] | 5468 | conftest$ac_exeext conftest.$ac_ext |
| 5469 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5470 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5471 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5472 | if test $ac_cv_type_long_long = yes; then |
| 5473 | |
| 5474 | cat >>confdefs.h <<\_ACEOF |
| 5475 | #define HAVE_LONG_LONG 1 |
| 5476 | _ACEOF |
| 5477 | |
| 5478 | fi |
| 5479 | |
| 5480 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5481 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5482 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5483 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5485 | else |
| 5486 | if test "$GCC" = yes; then |
| 5487 | gt_cv_c_long_double=yes |
| 5488 | else |
| 5489 | cat >conftest.$ac_ext <<_ACEOF |
| 5490 | /* confdefs.h. */ |
| 5491 | _ACEOF |
| 5492 | cat confdefs.h >>conftest.$ac_ext |
| 5493 | cat >>conftest.$ac_ext <<_ACEOF |
| 5494 | /* end confdefs.h. */ |
| 5495 | |
| 5496 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5497 | long double foo = 0.0; |
| 5498 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5499 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5500 | |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | |
| 5505 | ; |
| 5506 | return 0; |
| 5507 | } |
| 5508 | _ACEOF |
| 5509 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5510 | if { (ac_try="$ac_compile" |
| 5511 | case "(($ac_try" in |
| 5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5513 | *) ac_try_echo=$ac_try;; |
| 5514 | esac |
| 5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5516 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5517 | ac_status=$? |
| 5518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5519 | rm -f conftest.er1 |
| 5520 | cat conftest.err >&5 |
| 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5522 | (exit $ac_status); } && { |
| 5523 | test -z "$ac_c_werror_flag" || |
| 5524 | test ! -s conftest.err |
| 5525 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5526 | gt_cv_c_long_double=yes |
| 5527 | else |
| 5528 | echo "$as_me: failed program was:" >&5 |
| 5529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5531 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5533 | |
| 5534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5535 | fi |
| 5536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5537 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5538 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5539 | if test $gt_cv_c_long_double = yes; then |
| 5540 | |
| 5541 | cat >>confdefs.h <<\_ACEOF |
| 5542 | #define HAVE_LONG_DOUBLE 1 |
| 5543 | _ACEOF |
| 5544 | |
| 5545 | fi |
| 5546 | |
| 5547 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5548 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5549 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5550 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5552 | else |
| 5553 | cat >conftest.$ac_ext <<_ACEOF |
| 5554 | /* confdefs.h. */ |
| 5555 | _ACEOF |
| 5556 | cat confdefs.h >>conftest.$ac_ext |
| 5557 | cat >>conftest.$ac_ext <<_ACEOF |
| 5558 | /* end confdefs.h. */ |
| 5559 | #include <stddef.h> |
| 5560 | wchar_t foo = (wchar_t)'\0'; |
| 5561 | int |
| 5562 | main () |
| 5563 | { |
| 5564 | |
| 5565 | ; |
| 5566 | return 0; |
| 5567 | } |
| 5568 | _ACEOF |
| 5569 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5570 | if { (ac_try="$ac_compile" |
| 5571 | case "(($ac_try" in |
| 5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5573 | *) ac_try_echo=$ac_try;; |
| 5574 | esac |
| 5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5576 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5577 | ac_status=$? |
| 5578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5579 | rm -f conftest.er1 |
| 5580 | cat conftest.err >&5 |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5582 | (exit $ac_status); } && { |
| 5583 | test -z "$ac_c_werror_flag" || |
| 5584 | test ! -s conftest.err |
| 5585 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5586 | gt_cv_c_wchar_t=yes |
| 5587 | else |
| 5588 | echo "$as_me: failed program was:" >&5 |
| 5589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5590 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5591 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5593 | |
| 5594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5596 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5597 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5598 | if test $gt_cv_c_wchar_t = yes; then |
| 5599 | |
| 5600 | cat >>confdefs.h <<\_ACEOF |
| 5601 | #define HAVE_WCHAR_T 1 |
| 5602 | _ACEOF |
| 5603 | |
| 5604 | fi |
| 5605 | |
| 5606 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5607 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5608 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5609 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5611 | else |
| 5612 | cat >conftest.$ac_ext <<_ACEOF |
| 5613 | /* confdefs.h. */ |
| 5614 | _ACEOF |
| 5615 | cat confdefs.h >>conftest.$ac_ext |
| 5616 | cat >>conftest.$ac_ext <<_ACEOF |
| 5617 | /* end confdefs.h. */ |
| 5618 | #include <wchar.h> |
| 5619 | wint_t foo = (wchar_t)'\0'; |
| 5620 | int |
| 5621 | main () |
| 5622 | { |
| 5623 | |
| 5624 | ; |
| 5625 | return 0; |
| 5626 | } |
| 5627 | _ACEOF |
| 5628 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5629 | if { (ac_try="$ac_compile" |
| 5630 | case "(($ac_try" in |
| 5631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5632 | *) ac_try_echo=$ac_try;; |
| 5633 | esac |
| 5634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5635 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5636 | ac_status=$? |
| 5637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5638 | rm -f conftest.er1 |
| 5639 | cat conftest.err >&5 |
| 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5641 | (exit $ac_status); } && { |
| 5642 | test -z "$ac_c_werror_flag" || |
| 5643 | test ! -s conftest.err |
| 5644 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5645 | gt_cv_c_wint_t=yes |
| 5646 | else |
| 5647 | echo "$as_me: failed program was:" >&5 |
| 5648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5649 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5650 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5651 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5652 | |
| 5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5656 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5657 | if test $gt_cv_c_wint_t = yes; then |
| 5658 | |
| 5659 | cat >>confdefs.h <<\_ACEOF |
| 5660 | #define HAVE_WINT_T 1 |
| 5661 | _ACEOF |
| 5662 | |
| 5663 | fi |
| 5664 | |
| 5665 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5666 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5667 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5668 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5670 | else |
| 5671 | cat >conftest.$ac_ext <<_ACEOF |
| 5672 | /* confdefs.h. */ |
| 5673 | _ACEOF |
| 5674 | cat confdefs.h >>conftest.$ac_ext |
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
| 5676 | /* end confdefs.h. */ |
| 5677 | #include <sys/types.h> |
| 5678 | #include <inttypes.h> |
| 5679 | int |
| 5680 | main () |
| 5681 | { |
| 5682 | uintmax_t i = (uintmax_t) -1; |
| 5683 | ; |
| 5684 | return 0; |
| 5685 | } |
| 5686 | _ACEOF |
| 5687 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5688 | if { (ac_try="$ac_compile" |
| 5689 | case "(($ac_try" in |
| 5690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5691 | *) ac_try_echo=$ac_try;; |
| 5692 | esac |
| 5693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5694 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5695 | ac_status=$? |
| 5696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5697 | rm -f conftest.er1 |
| 5698 | cat conftest.err >&5 |
| 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5700 | (exit $ac_status); } && { |
| 5701 | test -z "$ac_c_werror_flag" || |
| 5702 | test ! -s conftest.err |
| 5703 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5704 | jm_ac_cv_header_inttypes_h=yes |
| 5705 | else |
| 5706 | echo "$as_me: failed program was:" >&5 |
| 5707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5709 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5710 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5711 | |
| 5712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5713 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5715 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5716 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5717 | |
| 5718 | cat >>confdefs.h <<_ACEOF |
| 5719 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5720 | _ACEOF |
| 5721 | |
| 5722 | fi |
| 5723 | |
| 5724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5725 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5726 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5727 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5729 | else |
| 5730 | cat >conftest.$ac_ext <<_ACEOF |
| 5731 | /* confdefs.h. */ |
| 5732 | _ACEOF |
| 5733 | cat confdefs.h >>conftest.$ac_ext |
| 5734 | cat >>conftest.$ac_ext <<_ACEOF |
| 5735 | /* end confdefs.h. */ |
| 5736 | #include <sys/types.h> |
| 5737 | #include <stdint.h> |
| 5738 | int |
| 5739 | main () |
| 5740 | { |
| 5741 | uintmax_t i = (uintmax_t) -1; |
| 5742 | ; |
| 5743 | return 0; |
| 5744 | } |
| 5745 | _ACEOF |
| 5746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5747 | if { (ac_try="$ac_compile" |
| 5748 | case "(($ac_try" in |
| 5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5750 | *) ac_try_echo=$ac_try;; |
| 5751 | esac |
| 5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5754 | ac_status=$? |
| 5755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5756 | rm -f conftest.er1 |
| 5757 | cat conftest.err >&5 |
| 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5759 | (exit $ac_status); } && { |
| 5760 | test -z "$ac_c_werror_flag" || |
| 5761 | test ! -s conftest.err |
| 5762 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5763 | jm_ac_cv_header_stdint_h=yes |
| 5764 | else |
| 5765 | echo "$as_me: failed program was:" >&5 |
| 5766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5768 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5769 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5770 | |
| 5771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5773 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5774 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5775 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5776 | |
| 5777 | cat >>confdefs.h <<_ACEOF |
| 5778 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5779 | _ACEOF |
| 5780 | |
| 5781 | fi |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5786 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5787 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5788 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5790 | else |
| 5791 | cat >conftest.$ac_ext <<_ACEOF |
| 5792 | /* confdefs.h. */ |
| 5793 | _ACEOF |
| 5794 | cat confdefs.h >>conftest.$ac_ext |
| 5795 | cat >>conftest.$ac_ext <<_ACEOF |
| 5796 | /* end confdefs.h. */ |
| 5797 | |
| 5798 | #include <stddef.h> |
| 5799 | #include <stdlib.h> |
| 5800 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5801 | #include <stdint.h> |
| 5802 | #endif |
| 5803 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5804 | #include <inttypes.h> |
| 5805 | #endif |
| 5806 | |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | intmax_t x = -1; |
| 5811 | ; |
| 5812 | return 0; |
| 5813 | } |
| 5814 | _ACEOF |
| 5815 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5816 | if { (ac_try="$ac_compile" |
| 5817 | case "(($ac_try" in |
| 5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5819 | *) ac_try_echo=$ac_try;; |
| 5820 | esac |
| 5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5822 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5823 | ac_status=$? |
| 5824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5825 | rm -f conftest.er1 |
| 5826 | cat conftest.err >&5 |
| 5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5828 | (exit $ac_status); } && { |
| 5829 | test -z "$ac_c_werror_flag" || |
| 5830 | test ! -s conftest.err |
| 5831 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5832 | gt_cv_c_intmax_t=yes |
| 5833 | else |
| 5834 | echo "$as_me: failed program was:" >&5 |
| 5835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5837 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5838 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5839 | |
| 5840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5841 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5842 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5843 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5844 | if test $gt_cv_c_intmax_t = yes; then |
| 5845 | |
| 5846 | cat >>confdefs.h <<\_ACEOF |
| 5847 | #define HAVE_INTMAX_T 1 |
| 5848 | _ACEOF |
| 5849 | |
| 5850 | fi |
| 5851 | |
| 5852 | |
| 5853 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5854 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5855 | 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] | 5856 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5858 | else |
| 5859 | |
| 5860 | if test "$cross_compiling" = yes; then |
| 5861 | |
| 5862 | cat >conftest.$ac_ext <<_ACEOF |
| 5863 | /* confdefs.h. */ |
| 5864 | _ACEOF |
| 5865 | cat confdefs.h >>conftest.$ac_ext |
| 5866 | cat >>conftest.$ac_ext <<_ACEOF |
| 5867 | /* end confdefs.h. */ |
| 5868 | |
| 5869 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5870 | notposix |
| 5871 | #endif |
| 5872 | |
| 5873 | _ACEOF |
| 5874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5875 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5876 | gt_cv_func_printf_posix="guessing no" |
| 5877 | else |
| 5878 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5879 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5880 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5881 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5882 | |
| 5883 | else |
| 5884 | cat >conftest.$ac_ext <<_ACEOF |
| 5885 | /* confdefs.h. */ |
| 5886 | _ACEOF |
| 5887 | cat confdefs.h >>conftest.$ac_ext |
| 5888 | cat >>conftest.$ac_ext <<_ACEOF |
| 5889 | /* end confdefs.h. */ |
| 5890 | |
| 5891 | #include <stdio.h> |
| 5892 | #include <string.h> |
| 5893 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5894 | dollar expansion (possibly an autoconf bug). */ |
| 5895 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5896 | static char buf[100]; |
| 5897 | int main () |
| 5898 | { |
| 5899 | sprintf (buf, format, 33, 55); |
| 5900 | return (strcmp (buf, "55 33") != 0); |
| 5901 | } |
| 5902 | _ACEOF |
| 5903 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5904 | if { (ac_try="$ac_link" |
| 5905 | case "(($ac_try" in |
| 5906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5907 | *) ac_try_echo=$ac_try;; |
| 5908 | esac |
| 5909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5910 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5911 | ac_status=$? |
| 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5914 | { (case "(($ac_try" in |
| 5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5916 | *) ac_try_echo=$ac_try;; |
| 5917 | esac |
| 5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5919 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5920 | ac_status=$? |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5922 | (exit $ac_status); }; }; then |
| 5923 | gt_cv_func_printf_posix=yes |
| 5924 | else |
| 5925 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5926 | echo "$as_me: failed program was:" >&5 |
| 5927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5928 | |
| 5929 | ( exit $ac_status ) |
| 5930 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5931 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5932 | 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] | 5933 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5935 | |
| 5936 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5937 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5939 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5940 | case $gt_cv_func_printf_posix in |
| 5941 | *yes) |
| 5942 | |
| 5943 | cat >>confdefs.h <<\_ACEOF |
| 5944 | #define HAVE_POSIX_PRINTF 1 |
| 5945 | _ACEOF |
| 5946 | |
| 5947 | ;; |
| 5948 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5949 | |
| 5950 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5951 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5952 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5953 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5954 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | /* confdefs.h. */ |
| 5959 | _ACEOF |
| 5960 | cat confdefs.h >>conftest.$ac_ext |
| 5961 | cat >>conftest.$ac_ext <<_ACEOF |
| 5962 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5963 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5964 | int |
| 5965 | main () |
| 5966 | { |
| 5967 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5968 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5969 | ; |
| 5970 | return 0; |
| 5971 | } |
| 5972 | _ACEOF |
| 5973 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5974 | if { (ac_try="$ac_link" |
| 5975 | case "(($ac_try" in |
| 5976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5977 | *) ac_try_echo=$ac_try;; |
| 5978 | esac |
| 5979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5980 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5981 | ac_status=$? |
| 5982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5983 | rm -f conftest.er1 |
| 5984 | cat conftest.err >&5 |
| 5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5986 | (exit $ac_status); } && { |
| 5987 | test -z "$ac_c_werror_flag" || |
| 5988 | test ! -s conftest.err |
| 5989 | } && test -s conftest$ac_exeext && |
| 5990 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5991 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5992 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5993 | echo "$as_me: failed program was:" >&5 |
| 5994 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5996 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5997 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5998 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5999 | 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] | 6000 | conftest$ac_exeext conftest.$ac_ext |
| 6001 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6002 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6003 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6004 | if test $ac_cv_working_alloca_h = yes; then |
| 6005 | |
| 6006 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6007 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6008 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6009 | |
| 6010 | fi |
| 6011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6012 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6013 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6014 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6017 | cat >conftest.$ac_ext <<_ACEOF |
| 6018 | /* confdefs.h. */ |
| 6019 | _ACEOF |
| 6020 | cat confdefs.h >>conftest.$ac_ext |
| 6021 | cat >>conftest.$ac_ext <<_ACEOF |
| 6022 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6023 | #ifdef __GNUC__ |
| 6024 | # define alloca __builtin_alloca |
| 6025 | #else |
| 6026 | # ifdef _MSC_VER |
| 6027 | # include <malloc.h> |
| 6028 | # define alloca _alloca |
| 6029 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6030 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6031 | # include <alloca.h> |
| 6032 | # else |
| 6033 | # ifdef _AIX |
| 6034 | #pragma alloca |
| 6035 | # else |
| 6036 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6037 | char *alloca (); |
| 6038 | # endif |
| 6039 | # endif |
| 6040 | # endif |
| 6041 | # endif |
| 6042 | #endif |
| 6043 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6044 | int |
| 6045 | main () |
| 6046 | { |
| 6047 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6048 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | ; |
| 6050 | return 0; |
| 6051 | } |
| 6052 | _ACEOF |
| 6053 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6054 | if { (ac_try="$ac_link" |
| 6055 | case "(($ac_try" in |
| 6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6057 | *) ac_try_echo=$ac_try;; |
| 6058 | esac |
| 6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6060 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6061 | ac_status=$? |
| 6062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6063 | rm -f conftest.er1 |
| 6064 | cat conftest.err >&5 |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6066 | (exit $ac_status); } && { |
| 6067 | test -z "$ac_c_werror_flag" || |
| 6068 | test ! -s conftest.err |
| 6069 | } && test -s conftest$ac_exeext && |
| 6070 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6071 | ac_cv_func_alloca_works=yes |
| 6072 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6073 | echo "$as_me: failed program was:" >&5 |
| 6074 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6075 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6076 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6077 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6078 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6079 | 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] | 6080 | conftest$ac_exeext conftest.$ac_ext |
| 6081 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6082 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6083 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6084 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6085 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6086 | |
| 6087 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6088 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6090 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6091 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6092 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6093 | # that cause trouble. Some versions do not even contain alloca or |
| 6094 | # contain a buggy version. If you still want to use their alloca, |
| 6095 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6097 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | |
| 6099 | cat >>confdefs.h <<\_ACEOF |
| 6100 | #define C_ALLOCA 1 |
| 6101 | _ACEOF |
| 6102 | |
| 6103 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6104 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6105 | 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] | 6106 | if test "${ac_cv_os_cray+set}" = set; then |
| 6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6108 | else |
| 6109 | cat >conftest.$ac_ext <<_ACEOF |
| 6110 | /* confdefs.h. */ |
| 6111 | _ACEOF |
| 6112 | cat confdefs.h >>conftest.$ac_ext |
| 6113 | cat >>conftest.$ac_ext <<_ACEOF |
| 6114 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6115 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6116 | webecray |
| 6117 | #else |
| 6118 | wenotbecray |
| 6119 | #endif |
| 6120 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6122 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6123 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6124 | ac_cv_os_cray=yes |
| 6125 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6126 | ac_cv_os_cray=no |
| 6127 | fi |
| 6128 | rm -f conftest* |
| 6129 | |
| 6130 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6131 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6132 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6133 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6134 | for ac_func in _getb67 GETB67 getb67; do |
| 6135 | 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] | 6136 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6137 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6138 | 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] | 6139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6140 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6141 | cat >conftest.$ac_ext <<_ACEOF |
| 6142 | /* confdefs.h. */ |
| 6143 | _ACEOF |
| 6144 | cat confdefs.h >>conftest.$ac_ext |
| 6145 | cat >>conftest.$ac_ext <<_ACEOF |
| 6146 | /* end confdefs.h. */ |
| 6147 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6149 | #define $ac_func innocuous_$ac_func |
| 6150 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6151 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6152 | which can conflict with char $ac_func (); below. |
| 6153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6154 | <limits.h> exists even on freestanding compilers. */ |
| 6155 | |
| 6156 | #ifdef __STDC__ |
| 6157 | # include <limits.h> |
| 6158 | #else |
| 6159 | # include <assert.h> |
| 6160 | #endif |
| 6161 | |
| 6162 | #undef $ac_func |
| 6163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6164 | /* Override any GCC internal prototype to avoid an error. |
| 6165 | Use char because int might match the return type of a GCC |
| 6166 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6167 | #ifdef __cplusplus |
| 6168 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6169 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6171 | /* The GNU C library defines this for functions which it implements |
| 6172 | to always fail with ENOSYS. Some functions are actually named |
| 6173 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6174 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6175 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6176 | #endif |
| 6177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6178 | int |
| 6179 | main () |
| 6180 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6181 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | ; |
| 6183 | return 0; |
| 6184 | } |
| 6185 | _ACEOF |
| 6186 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6187 | if { (ac_try="$ac_link" |
| 6188 | case "(($ac_try" in |
| 6189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6190 | *) ac_try_echo=$ac_try;; |
| 6191 | esac |
| 6192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6193 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6194 | ac_status=$? |
| 6195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6196 | rm -f conftest.er1 |
| 6197 | cat conftest.err >&5 |
| 6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6199 | (exit $ac_status); } && { |
| 6200 | test -z "$ac_c_werror_flag" || |
| 6201 | test ! -s conftest.err |
| 6202 | } && test -s conftest$ac_exeext && |
| 6203 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6204 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6205 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6206 | echo "$as_me: failed program was:" >&5 |
| 6207 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6209 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6210 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6211 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6212 | 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] | 6213 | conftest$ac_exeext conftest.$ac_ext |
| 6214 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6215 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6216 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6217 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6218 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6219 | |
| 6220 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6221 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6222 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6223 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6224 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6225 | fi |
| 6226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6227 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6228 | fi |
| 6229 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6230 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6231 | 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] | 6232 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6234 | else |
| 6235 | if test "$cross_compiling" = yes; then |
| 6236 | ac_cv_c_stack_direction=0 |
| 6237 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6238 | cat >conftest.$ac_ext <<_ACEOF |
| 6239 | /* confdefs.h. */ |
| 6240 | _ACEOF |
| 6241 | cat confdefs.h >>conftest.$ac_ext |
| 6242 | cat >>conftest.$ac_ext <<_ACEOF |
| 6243 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6244 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6246 | find_stack_direction () |
| 6247 | { |
| 6248 | static char *addr = 0; |
| 6249 | auto char dummy; |
| 6250 | if (addr == 0) |
| 6251 | { |
| 6252 | addr = &dummy; |
| 6253 | return find_stack_direction (); |
| 6254 | } |
| 6255 | else |
| 6256 | return (&dummy > addr) ? 1 : -1; |
| 6257 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | |
| 6259 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6260 | main () |
| 6261 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6262 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6263 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6264 | _ACEOF |
| 6265 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6266 | if { (ac_try="$ac_link" |
| 6267 | case "(($ac_try" in |
| 6268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6269 | *) ac_try_echo=$ac_try;; |
| 6270 | esac |
| 6271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6272 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6273 | ac_status=$? |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6276 | { (case "(($ac_try" in |
| 6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6278 | *) ac_try_echo=$ac_try;; |
| 6279 | esac |
| 6280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6281 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6282 | ac_status=$? |
| 6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6284 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6285 | ac_cv_c_stack_direction=1 |
| 6286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6287 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6288 | echo "$as_me: failed program was:" >&5 |
| 6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6290 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6291 | ( exit $ac_status ) |
| 6292 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6293 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6294 | 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] | 6295 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6296 | |
| 6297 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6298 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6299 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6300 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6302 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6303 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6304 | _ACEOF |
| 6305 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6306 | |
| 6307 | fi |
| 6308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6309 | |
| 6310 | |
| 6311 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6312 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6313 | 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] | 6314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6317 | 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] | 6318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6319 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6322 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6323 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6324 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6325 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6326 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6327 | cat >conftest.$ac_ext <<_ACEOF |
| 6328 | /* confdefs.h. */ |
| 6329 | _ACEOF |
| 6330 | cat confdefs.h >>conftest.$ac_ext |
| 6331 | cat >>conftest.$ac_ext <<_ACEOF |
| 6332 | /* end confdefs.h. */ |
| 6333 | $ac_includes_default |
| 6334 | #include <$ac_header> |
| 6335 | _ACEOF |
| 6336 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6337 | if { (ac_try="$ac_compile" |
| 6338 | case "(($ac_try" in |
| 6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6340 | *) ac_try_echo=$ac_try;; |
| 6341 | esac |
| 6342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6343 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6344 | ac_status=$? |
| 6345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6346 | rm -f conftest.er1 |
| 6347 | cat conftest.err >&5 |
| 6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6349 | (exit $ac_status); } && { |
| 6350 | test -z "$ac_c_werror_flag" || |
| 6351 | test ! -s conftest.err |
| 6352 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6353 | ac_header_compiler=yes |
| 6354 | else |
| 6355 | echo "$as_me: failed program was:" >&5 |
| 6356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6357 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6358 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6359 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6360 | |
| 6361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6362 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6363 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6364 | |
| 6365 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6366 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6367 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6368 | cat >conftest.$ac_ext <<_ACEOF |
| 6369 | /* confdefs.h. */ |
| 6370 | _ACEOF |
| 6371 | cat confdefs.h >>conftest.$ac_ext |
| 6372 | cat >>conftest.$ac_ext <<_ACEOF |
| 6373 | /* end confdefs.h. */ |
| 6374 | #include <$ac_header> |
| 6375 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6376 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6377 | case "(($ac_try" in |
| 6378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6379 | *) ac_try_echo=$ac_try;; |
| 6380 | esac |
| 6381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6383 | ac_status=$? |
| 6384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6385 | rm -f conftest.er1 |
| 6386 | cat conftest.err >&5 |
| 6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6388 | (exit $ac_status); } >/dev/null && { |
| 6389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6390 | test ! -s conftest.err |
| 6391 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6392 | ac_header_preproc=yes |
| 6393 | else |
| 6394 | echo "$as_me: failed program was:" >&5 |
| 6395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6396 | |
| 6397 | ac_header_preproc=no |
| 6398 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6401 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6402 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6403 | |
| 6404 | # So? What about this header? |
| 6405 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6406 | yes:no: ) |
| 6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6408 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6410 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6411 | ac_header_preproc=yes |
| 6412 | ;; |
| 6413 | no:yes:* ) |
| 6414 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6415 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6416 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6417 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6418 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6419 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6420 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6421 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6424 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6425 | 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] | 6426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6427 | ;; |
| 6428 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6431 | 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] | 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6433 | else |
| 6434 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6435 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6436 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6437 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6438 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6439 | |
| 6440 | fi |
| 6441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6442 | cat >>confdefs.h <<_ACEOF |
| 6443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6444 | _ACEOF |
| 6445 | |
| 6446 | fi |
| 6447 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6448 | done |
| 6449 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6450 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6451 | for ac_func in getpagesize |
| 6452 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | 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] | 6454 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6456 | 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] | 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6458 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6459 | cat >conftest.$ac_ext <<_ACEOF |
| 6460 | /* confdefs.h. */ |
| 6461 | _ACEOF |
| 6462 | cat confdefs.h >>conftest.$ac_ext |
| 6463 | cat >>conftest.$ac_ext <<_ACEOF |
| 6464 | /* end confdefs.h. */ |
| 6465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6467 | #define $ac_func innocuous_$ac_func |
| 6468 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6469 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | which can conflict with char $ac_func (); below. |
| 6471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6472 | <limits.h> exists even on freestanding compilers. */ |
| 6473 | |
| 6474 | #ifdef __STDC__ |
| 6475 | # include <limits.h> |
| 6476 | #else |
| 6477 | # include <assert.h> |
| 6478 | #endif |
| 6479 | |
| 6480 | #undef $ac_func |
| 6481 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6482 | /* Override any GCC internal prototype to avoid an error. |
| 6483 | Use char because int might match the return type of a GCC |
| 6484 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6485 | #ifdef __cplusplus |
| 6486 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6487 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6488 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6489 | /* The GNU C library defines this for functions which it implements |
| 6490 | to always fail with ENOSYS. Some functions are actually named |
| 6491 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6492 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6493 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6494 | #endif |
| 6495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6496 | int |
| 6497 | main () |
| 6498 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6499 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6500 | ; |
| 6501 | return 0; |
| 6502 | } |
| 6503 | _ACEOF |
| 6504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6505 | if { (ac_try="$ac_link" |
| 6506 | case "(($ac_try" in |
| 6507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6508 | *) ac_try_echo=$ac_try;; |
| 6509 | esac |
| 6510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6511 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6512 | ac_status=$? |
| 6513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6514 | rm -f conftest.er1 |
| 6515 | cat conftest.err >&5 |
| 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6517 | (exit $ac_status); } && { |
| 6518 | test -z "$ac_c_werror_flag" || |
| 6519 | test ! -s conftest.err |
| 6520 | } && test -s conftest$ac_exeext && |
| 6521 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6522 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6523 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | echo "$as_me: failed program was:" >&5 |
| 6525 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6527 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6528 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6529 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6530 | 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] | 6531 | conftest$ac_exeext conftest.$ac_ext |
| 6532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6533 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6535 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6537 | cat >>confdefs.h <<_ACEOF |
| 6538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6539 | _ACEOF |
| 6540 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6541 | fi |
| 6542 | done |
| 6543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6544 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6545 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6546 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6548 | else |
| 6549 | if test "$cross_compiling" = yes; then |
| 6550 | ac_cv_func_mmap_fixed_mapped=no |
| 6551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | cat >conftest.$ac_ext <<_ACEOF |
| 6553 | /* confdefs.h. */ |
| 6554 | _ACEOF |
| 6555 | cat confdefs.h >>conftest.$ac_ext |
| 6556 | cat >>conftest.$ac_ext <<_ACEOF |
| 6557 | /* end confdefs.h. */ |
| 6558 | $ac_includes_default |
| 6559 | /* malloc might have been renamed as rpl_malloc. */ |
| 6560 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6561 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6562 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6563 | Here is a matrix of mmap possibilities: |
| 6564 | mmap private not fixed |
| 6565 | mmap private fixed at somewhere currently unmapped |
| 6566 | mmap private fixed at somewhere already mapped |
| 6567 | mmap shared not fixed |
| 6568 | mmap shared fixed at somewhere currently unmapped |
| 6569 | mmap shared fixed at somewhere already mapped |
| 6570 | For private mappings, we should verify that changes cannot be read() |
| 6571 | back from the file, nor mmap's back from the file at a different |
| 6572 | address. (There have been systems where private was not correctly |
| 6573 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6574 | 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] | 6575 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6576 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6577 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6578 | |
| 6579 | Grep wants private fixed already mapped. |
| 6580 | The main things grep needs to know about mmap are: |
| 6581 | * does it exist and is it safe to write into the mmap'd area |
| 6582 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6583 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6584 | #include <fcntl.h> |
| 6585 | #include <sys/mman.h> |
| 6586 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6587 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | char *malloc (); |
| 6589 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6592 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6593 | /* 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] | 6594 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6595 | # define HAVE_SYS_PARAM_H 1 |
| 6596 | # endif |
| 6597 | |
| 6598 | # ifdef _SC_PAGESIZE |
| 6599 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6600 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6601 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6602 | # include <sys/param.h> |
| 6603 | # ifdef EXEC_PAGESIZE |
| 6604 | # define getpagesize() EXEC_PAGESIZE |
| 6605 | # else /* no EXEC_PAGESIZE */ |
| 6606 | # ifdef NBPG |
| 6607 | # define getpagesize() NBPG * CLSIZE |
| 6608 | # ifndef CLSIZE |
| 6609 | # define CLSIZE 1 |
| 6610 | # endif /* no CLSIZE */ |
| 6611 | # else /* no NBPG */ |
| 6612 | # ifdef NBPC |
| 6613 | # define getpagesize() NBPC |
| 6614 | # else /* no NBPC */ |
| 6615 | # ifdef PAGESIZE |
| 6616 | # define getpagesize() PAGESIZE |
| 6617 | # endif /* PAGESIZE */ |
| 6618 | # endif /* no NBPC */ |
| 6619 | # endif /* no NBPG */ |
| 6620 | # endif /* no EXEC_PAGESIZE */ |
| 6621 | # else /* no HAVE_SYS_PARAM_H */ |
| 6622 | # define getpagesize() 8192 /* punt totally */ |
| 6623 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6624 | # endif /* no _SC_PAGESIZE */ |
| 6625 | |
| 6626 | #endif /* no HAVE_GETPAGESIZE */ |
| 6627 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6628 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6629 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6630 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | char *data, *data2, *data3; |
| 6632 | int i, pagesize; |
| 6633 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6636 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6637 | /* First, make a file with some known garbage in it. */ |
| 6638 | data = (char *) malloc (pagesize); |
| 6639 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6640 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6641 | for (i = 0; i < pagesize; ++i) |
| 6642 | *(data + i) = rand (); |
| 6643 | umask (0); |
| 6644 | fd = creat ("conftest.mmap", 0600); |
| 6645 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6646 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6647 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6648 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6649 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6650 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | /* Next, try to mmap the file at a fixed address which already has |
| 6652 | something else allocated at it. If we can, also make sure that |
| 6653 | we see the same garbage. */ |
| 6654 | fd = open ("conftest.mmap", O_RDWR); |
| 6655 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6656 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6657 | data2 = (char *) malloc (2 * pagesize); |
| 6658 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6659 | return 1; |
| 6660 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6661 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6662 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6663 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | for (i = 0; i < pagesize; ++i) |
| 6665 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6666 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | /* Finally, make sure that changes to the mapped area do not |
| 6669 | percolate back to the file as seen by read(). (This is a bug on |
| 6670 | some variants of i386 svr4.0.) */ |
| 6671 | for (i = 0; i < pagesize; ++i) |
| 6672 | *(data2 + i) = *(data2 + i) + 1; |
| 6673 | data3 = (char *) malloc (pagesize); |
| 6674 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6675 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6676 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6677 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6678 | for (i = 0; i < pagesize; ++i) |
| 6679 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6680 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6681 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6682 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6683 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | _ACEOF |
| 6685 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6686 | if { (ac_try="$ac_link" |
| 6687 | case "(($ac_try" in |
| 6688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6689 | *) ac_try_echo=$ac_try;; |
| 6690 | esac |
| 6691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6692 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6693 | ac_status=$? |
| 6694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6696 | { (case "(($ac_try" in |
| 6697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6698 | *) ac_try_echo=$ac_try;; |
| 6699 | esac |
| 6700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6701 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | ac_status=$? |
| 6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6704 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6705 | ac_cv_func_mmap_fixed_mapped=yes |
| 6706 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6707 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6708 | echo "$as_me: failed program was:" >&5 |
| 6709 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6711 | ( exit $ac_status ) |
| 6712 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6713 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6714 | 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] | 6715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6716 | |
| 6717 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6720 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6721 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6722 | |
| 6723 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6724 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6725 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6726 | |
| 6727 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6728 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6729 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6730 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6731 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6732 | 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] | 6733 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6735 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6736 | cat >conftest.$ac_ext <<_ACEOF |
| 6737 | /* confdefs.h. */ |
| 6738 | _ACEOF |
| 6739 | cat confdefs.h >>conftest.$ac_ext |
| 6740 | cat >>conftest.$ac_ext <<_ACEOF |
| 6741 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6742 | |
| 6743 | #include <features.h> |
| 6744 | #ifdef __GNU_LIBRARY__ |
| 6745 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6746 | Lucky GNU user |
| 6747 | #endif |
| 6748 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6749 | |
| 6750 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6752 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6753 | ac_cv_gnu_library_2_1=yes |
| 6754 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6755 | ac_cv_gnu_library_2_1=no |
| 6756 | fi |
| 6757 | rm -f conftest* |
| 6758 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6759 | |
| 6760 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6761 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6763 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6764 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6765 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6766 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6767 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | |
| 6769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6770 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6771 | 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] | 6772 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6774 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6776 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6777 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6778 | # Guess based on the CPU. |
| 6779 | case "$host_cpu" in |
| 6780 | alpha* | i3456786 | m68k | s390*) |
| 6781 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6782 | *) |
| 6783 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6784 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6785 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6786 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | cat >conftest.$ac_ext <<_ACEOF |
| 6788 | /* confdefs.h. */ |
| 6789 | _ACEOF |
| 6790 | cat confdefs.h >>conftest.$ac_ext |
| 6791 | cat >>conftest.$ac_ext <<_ACEOF |
| 6792 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6793 | |
| 6794 | #include <stdlib.h> |
| 6795 | #include <signal.h> |
| 6796 | |
| 6797 | static void |
| 6798 | #ifdef __cplusplus |
| 6799 | sigfpe_handler (int sig) |
| 6800 | #else |
| 6801 | sigfpe_handler (sig) int sig; |
| 6802 | #endif |
| 6803 | { |
| 6804 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6805 | exit (sig != SIGFPE); |
| 6806 | } |
| 6807 | |
| 6808 | int x = 1; |
| 6809 | int y = 0; |
| 6810 | int z; |
| 6811 | int nan; |
| 6812 | |
| 6813 | int main () |
| 6814 | { |
| 6815 | signal (SIGFPE, sigfpe_handler); |
| 6816 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6817 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6818 | signal (SIGTRAP, sigfpe_handler); |
| 6819 | #endif |
| 6820 | /* Linux/SPARC yields signal SIGILL. */ |
| 6821 | #if defined (__sparc__) && defined (__linux__) |
| 6822 | signal (SIGILL, sigfpe_handler); |
| 6823 | #endif |
| 6824 | |
| 6825 | z = x / y; |
| 6826 | nan = y / y; |
| 6827 | exit (1); |
| 6828 | } |
| 6829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | _ACEOF |
| 6831 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6832 | if { (ac_try="$ac_link" |
| 6833 | case "(($ac_try" in |
| 6834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6835 | *) ac_try_echo=$ac_try;; |
| 6836 | esac |
| 6837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6838 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6839 | ac_status=$? |
| 6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6842 | { (case "(($ac_try" in |
| 6843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6844 | *) ac_try_echo=$ac_try;; |
| 6845 | esac |
| 6846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6847 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6851 | gt_cv_int_divbyzero_sigfpe=yes |
| 6852 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6854 | echo "$as_me: failed program was:" >&5 |
| 6855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6856 | |
| 6857 | ( exit $ac_status ) |
| 6858 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6859 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6860 | 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] | 6861 | fi |
| 6862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6863 | |
| 6864 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6865 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6866 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6867 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6868 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6869 | *yes) value=1;; |
| 6870 | *) value=0;; |
| 6871 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6872 | |
| 6873 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6874 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6875 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6876 | |
| 6877 | |
| 6878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6879 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6880 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6881 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6883 | else |
| 6884 | cat >conftest.$ac_ext <<_ACEOF |
| 6885 | /* confdefs.h. */ |
| 6886 | _ACEOF |
| 6887 | cat confdefs.h >>conftest.$ac_ext |
| 6888 | cat >>conftest.$ac_ext <<_ACEOF |
| 6889 | /* end confdefs.h. */ |
| 6890 | unsigned long long ull = 1ULL; int i = 63; |
| 6891 | int |
| 6892 | main () |
| 6893 | { |
| 6894 | unsigned long long ullmax = (unsigned long long) -1; |
| 6895 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6896 | ; |
| 6897 | return 0; |
| 6898 | } |
| 6899 | _ACEOF |
| 6900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6901 | if { (ac_try="$ac_link" |
| 6902 | case "(($ac_try" in |
| 6903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6904 | *) ac_try_echo=$ac_try;; |
| 6905 | esac |
| 6906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6907 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6908 | ac_status=$? |
| 6909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6910 | rm -f conftest.er1 |
| 6911 | cat conftest.err >&5 |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6913 | (exit $ac_status); } && { |
| 6914 | test -z "$ac_c_werror_flag" || |
| 6915 | test ! -s conftest.err |
| 6916 | } && test -s conftest$ac_exeext && |
| 6917 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | ac_cv_type_unsigned_long_long=yes |
| 6919 | else |
| 6920 | echo "$as_me: failed program was:" >&5 |
| 6921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6922 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6923 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6924 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6925 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6926 | 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] | 6927 | conftest$ac_exeext conftest.$ac_ext |
| 6928 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6929 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6930 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6932 | |
| 6933 | cat >>confdefs.h <<\_ACEOF |
| 6934 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6935 | _ACEOF |
| 6936 | |
| 6937 | fi |
| 6938 | |
| 6939 | |
| 6940 | |
| 6941 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6942 | 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] | 6943 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6944 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6945 | && ac_type='unsigned long long' \ |
| 6946 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | |
| 6948 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6949 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | _ACEOF |
| 6951 | |
| 6952 | else |
| 6953 | |
| 6954 | cat >>confdefs.h <<\_ACEOF |
| 6955 | #define HAVE_UINTMAX_T 1 |
| 6956 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6957 | |
| 6958 | fi |
| 6959 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6960 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6961 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6962 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6963 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6965 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6966 | |
| 6967 | cat >conftest.$ac_ext <<_ACEOF |
| 6968 | /* confdefs.h. */ |
| 6969 | _ACEOF |
| 6970 | cat confdefs.h >>conftest.$ac_ext |
| 6971 | cat >>conftest.$ac_ext <<_ACEOF |
| 6972 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6973 | #include <sys/types.h> |
| 6974 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6975 | int |
| 6976 | main () |
| 6977 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | ; |
| 6980 | return 0; |
| 6981 | } |
| 6982 | _ACEOF |
| 6983 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6984 | if { (ac_try="$ac_compile" |
| 6985 | case "(($ac_try" in |
| 6986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6987 | *) ac_try_echo=$ac_try;; |
| 6988 | esac |
| 6989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6990 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | ac_status=$? |
| 6992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6993 | rm -f conftest.er1 |
| 6994 | cat conftest.err >&5 |
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6996 | (exit $ac_status); } && { |
| 6997 | test -z "$ac_c_werror_flag" || |
| 6998 | test ! -s conftest.err |
| 6999 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7000 | gt_cv_header_inttypes_h=yes |
| 7001 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | echo "$as_me: failed program was:" >&5 |
| 7003 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7005 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7006 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7007 | |
| 7008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7009 | |
| 7010 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7011 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7012 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7013 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7014 | |
| 7015 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7016 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7018 | |
| 7019 | fi |
| 7020 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7023 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7024 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7025 | 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] | 7026 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7028 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7029 | |
| 7030 | cat >conftest.$ac_ext <<_ACEOF |
| 7031 | /* confdefs.h. */ |
| 7032 | _ACEOF |
| 7033 | cat confdefs.h >>conftest.$ac_ext |
| 7034 | cat >>conftest.$ac_ext <<_ACEOF |
| 7035 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7036 | #include <inttypes.h> |
| 7037 | #ifdef PRId32 |
| 7038 | char *p = PRId32; |
| 7039 | #endif |
| 7040 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7041 | int |
| 7042 | main () |
| 7043 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7044 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7045 | ; |
| 7046 | return 0; |
| 7047 | } |
| 7048 | _ACEOF |
| 7049 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7050 | if { (ac_try="$ac_compile" |
| 7051 | case "(($ac_try" in |
| 7052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7053 | *) ac_try_echo=$ac_try;; |
| 7054 | esac |
| 7055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7056 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | ac_status=$? |
| 7058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7059 | rm -f conftest.er1 |
| 7060 | cat conftest.err >&5 |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7062 | (exit $ac_status); } && { |
| 7063 | test -z "$ac_c_werror_flag" || |
| 7064 | test ! -s conftest.err |
| 7065 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7066 | gt_cv_inttypes_pri_broken=no |
| 7067 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7068 | echo "$as_me: failed program was:" >&5 |
| 7069 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7071 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7072 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7073 | |
| 7074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7075 | |
| 7076 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7077 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7078 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7079 | fi |
| 7080 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7081 | |
| 7082 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7083 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7084 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7085 | |
| 7086 | fi |
| 7087 | |
| 7088 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7089 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7090 | for ac_header in stdint.h |
| 7091 | do |
| 7092 | 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] | 7093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7094 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7096 | 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] | 7097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7098 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7099 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7101 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | else |
| 7103 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7104 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7105 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7106 | cat >conftest.$ac_ext <<_ACEOF |
| 7107 | /* confdefs.h. */ |
| 7108 | _ACEOF |
| 7109 | cat confdefs.h >>conftest.$ac_ext |
| 7110 | cat >>conftest.$ac_ext <<_ACEOF |
| 7111 | /* end confdefs.h. */ |
| 7112 | $ac_includes_default |
| 7113 | #include <$ac_header> |
| 7114 | _ACEOF |
| 7115 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7116 | if { (ac_try="$ac_compile" |
| 7117 | case "(($ac_try" in |
| 7118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7119 | *) ac_try_echo=$ac_try;; |
| 7120 | esac |
| 7121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7122 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | ac_status=$? |
| 7124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7125 | rm -f conftest.er1 |
| 7126 | cat conftest.err >&5 |
| 7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7128 | (exit $ac_status); } && { |
| 7129 | test -z "$ac_c_werror_flag" || |
| 7130 | test ! -s conftest.err |
| 7131 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | ac_header_compiler=yes |
| 7133 | else |
| 7134 | echo "$as_me: failed program was:" >&5 |
| 7135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7137 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7139 | |
| 7140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7141 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7142 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | |
| 7144 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7145 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7146 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7147 | cat >conftest.$ac_ext <<_ACEOF |
| 7148 | /* confdefs.h. */ |
| 7149 | _ACEOF |
| 7150 | cat confdefs.h >>conftest.$ac_ext |
| 7151 | cat >>conftest.$ac_ext <<_ACEOF |
| 7152 | /* end confdefs.h. */ |
| 7153 | #include <$ac_header> |
| 7154 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7155 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7156 | case "(($ac_try" in |
| 7157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7158 | *) ac_try_echo=$ac_try;; |
| 7159 | esac |
| 7160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7161 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7162 | ac_status=$? |
| 7163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7164 | rm -f conftest.er1 |
| 7165 | cat conftest.err >&5 |
| 7166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7167 | (exit $ac_status); } >/dev/null && { |
| 7168 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7169 | test ! -s conftest.err |
| 7170 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7171 | ac_header_preproc=yes |
| 7172 | else |
| 7173 | echo "$as_me: failed program was:" >&5 |
| 7174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7175 | |
| 7176 | ac_header_preproc=no |
| 7177 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7179 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7180 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7181 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7182 | |
| 7183 | # So? What about this header? |
| 7184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7185 | yes:no: ) |
| 7186 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7187 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7189 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7190 | ac_header_preproc=yes |
| 7191 | ;; |
| 7192 | no:yes:* ) |
| 7193 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7194 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7195 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7196 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7197 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7198 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7199 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7200 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7201 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7202 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7203 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7204 | 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] | 7205 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7206 | ;; |
| 7207 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7208 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7209 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7210 | 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] | 7211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7212 | else |
| 7213 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7214 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7215 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7216 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7217 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | |
| 7219 | fi |
| 7220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7221 | cat >>confdefs.h <<_ACEOF |
| 7222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7223 | _ACEOF |
| 7224 | |
| 7225 | fi |
| 7226 | |
| 7227 | done |
| 7228 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7229 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7230 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | result= |
| 7232 | cat >conftest.$ac_ext <<_ACEOF |
| 7233 | /* confdefs.h. */ |
| 7234 | _ACEOF |
| 7235 | cat confdefs.h >>conftest.$ac_ext |
| 7236 | cat >>conftest.$ac_ext <<_ACEOF |
| 7237 | /* end confdefs.h. */ |
| 7238 | |
| 7239 | #include <limits.h> |
| 7240 | #if HAVE_STDINT_H |
| 7241 | #include <stdint.h> |
| 7242 | #endif |
| 7243 | #ifdef SIZE_MAX |
| 7244 | Found it |
| 7245 | #endif |
| 7246 | |
| 7247 | _ACEOF |
| 7248 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7249 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7250 | result=yes |
| 7251 | fi |
| 7252 | rm -f conftest* |
| 7253 | |
| 7254 | if test -z "$result"; then |
| 7255 | if test "$cross_compiling" = yes; then |
| 7256 | # Depending upon the size, compute the lo and hi bounds. |
| 7257 | cat >conftest.$ac_ext <<_ACEOF |
| 7258 | /* confdefs.h. */ |
| 7259 | _ACEOF |
| 7260 | cat confdefs.h >>conftest.$ac_ext |
| 7261 | cat >>conftest.$ac_ext <<_ACEOF |
| 7262 | /* end confdefs.h. */ |
| 7263 | #include <stddef.h> |
| 7264 | int |
| 7265 | main () |
| 7266 | { |
| 7267 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7268 | test_array [0] = 0 |
| 7269 | |
| 7270 | ; |
| 7271 | return 0; |
| 7272 | } |
| 7273 | _ACEOF |
| 7274 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7275 | if { (ac_try="$ac_compile" |
| 7276 | case "(($ac_try" in |
| 7277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7278 | *) ac_try_echo=$ac_try;; |
| 7279 | esac |
| 7280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7281 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7282 | ac_status=$? |
| 7283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7284 | rm -f conftest.er1 |
| 7285 | cat conftest.err >&5 |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7287 | (exit $ac_status); } && { |
| 7288 | test -z "$ac_c_werror_flag" || |
| 7289 | test ! -s conftest.err |
| 7290 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7291 | ac_lo=0 ac_mid=0 |
| 7292 | while :; do |
| 7293 | cat >conftest.$ac_ext <<_ACEOF |
| 7294 | /* confdefs.h. */ |
| 7295 | _ACEOF |
| 7296 | cat confdefs.h >>conftest.$ac_ext |
| 7297 | cat >>conftest.$ac_ext <<_ACEOF |
| 7298 | /* end confdefs.h. */ |
| 7299 | #include <stddef.h> |
| 7300 | int |
| 7301 | main () |
| 7302 | { |
| 7303 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7304 | test_array [0] = 0 |
| 7305 | |
| 7306 | ; |
| 7307 | return 0; |
| 7308 | } |
| 7309 | _ACEOF |
| 7310 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7311 | if { (ac_try="$ac_compile" |
| 7312 | case "(($ac_try" in |
| 7313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7314 | *) ac_try_echo=$ac_try;; |
| 7315 | esac |
| 7316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7317 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | ac_status=$? |
| 7319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7320 | rm -f conftest.er1 |
| 7321 | cat conftest.err >&5 |
| 7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7323 | (exit $ac_status); } && { |
| 7324 | test -z "$ac_c_werror_flag" || |
| 7325 | test ! -s conftest.err |
| 7326 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | ac_hi=$ac_mid; break |
| 7328 | else |
| 7329 | echo "$as_me: failed program was:" >&5 |
| 7330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7332 | ac_lo=`expr $ac_mid + 1` |
| 7333 | if test $ac_lo -le $ac_mid; then |
| 7334 | ac_lo= ac_hi= |
| 7335 | break |
| 7336 | fi |
| 7337 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7339 | |
| 7340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7341 | done |
| 7342 | else |
| 7343 | echo "$as_me: failed program was:" >&5 |
| 7344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7345 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7346 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7347 | /* confdefs.h. */ |
| 7348 | _ACEOF |
| 7349 | cat confdefs.h >>conftest.$ac_ext |
| 7350 | cat >>conftest.$ac_ext <<_ACEOF |
| 7351 | /* end confdefs.h. */ |
| 7352 | #include <stddef.h> |
| 7353 | int |
| 7354 | main () |
| 7355 | { |
| 7356 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7357 | test_array [0] = 0 |
| 7358 | |
| 7359 | ; |
| 7360 | return 0; |
| 7361 | } |
| 7362 | _ACEOF |
| 7363 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7364 | if { (ac_try="$ac_compile" |
| 7365 | case "(($ac_try" in |
| 7366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7367 | *) ac_try_echo=$ac_try;; |
| 7368 | esac |
| 7369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7370 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7371 | ac_status=$? |
| 7372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7373 | rm -f conftest.er1 |
| 7374 | cat conftest.err >&5 |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7376 | (exit $ac_status); } && { |
| 7377 | test -z "$ac_c_werror_flag" || |
| 7378 | test ! -s conftest.err |
| 7379 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7380 | ac_hi=-1 ac_mid=-1 |
| 7381 | while :; do |
| 7382 | cat >conftest.$ac_ext <<_ACEOF |
| 7383 | /* confdefs.h. */ |
| 7384 | _ACEOF |
| 7385 | cat confdefs.h >>conftest.$ac_ext |
| 7386 | cat >>conftest.$ac_ext <<_ACEOF |
| 7387 | /* end confdefs.h. */ |
| 7388 | #include <stddef.h> |
| 7389 | int |
| 7390 | main () |
| 7391 | { |
| 7392 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7393 | test_array [0] = 0 |
| 7394 | |
| 7395 | ; |
| 7396 | return 0; |
| 7397 | } |
| 7398 | _ACEOF |
| 7399 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7400 | if { (ac_try="$ac_compile" |
| 7401 | case "(($ac_try" in |
| 7402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7403 | *) ac_try_echo=$ac_try;; |
| 7404 | esac |
| 7405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7406 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7407 | ac_status=$? |
| 7408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7409 | rm -f conftest.er1 |
| 7410 | cat conftest.err >&5 |
| 7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7412 | (exit $ac_status); } && { |
| 7413 | test -z "$ac_c_werror_flag" || |
| 7414 | test ! -s conftest.err |
| 7415 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7416 | ac_lo=$ac_mid; break |
| 7417 | else |
| 7418 | echo "$as_me: failed program was:" >&5 |
| 7419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7420 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7421 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7422 | if test $ac_mid -le $ac_hi; then |
| 7423 | ac_lo= ac_hi= |
| 7424 | break |
| 7425 | fi |
| 7426 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7427 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7428 | |
| 7429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7430 | done |
| 7431 | else |
| 7432 | echo "$as_me: failed program was:" >&5 |
| 7433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7434 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7435 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7437 | |
| 7438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7439 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7440 | |
| 7441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7442 | # Binary search between lo and hi bounds. |
| 7443 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7444 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7445 | cat >conftest.$ac_ext <<_ACEOF |
| 7446 | /* confdefs.h. */ |
| 7447 | _ACEOF |
| 7448 | cat confdefs.h >>conftest.$ac_ext |
| 7449 | cat >>conftest.$ac_ext <<_ACEOF |
| 7450 | /* end confdefs.h. */ |
| 7451 | #include <stddef.h> |
| 7452 | int |
| 7453 | main () |
| 7454 | { |
| 7455 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7456 | test_array [0] = 0 |
| 7457 | |
| 7458 | ; |
| 7459 | return 0; |
| 7460 | } |
| 7461 | _ACEOF |
| 7462 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7463 | if { (ac_try="$ac_compile" |
| 7464 | case "(($ac_try" in |
| 7465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7466 | *) ac_try_echo=$ac_try;; |
| 7467 | esac |
| 7468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7469 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7470 | ac_status=$? |
| 7471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7472 | rm -f conftest.er1 |
| 7473 | cat conftest.err >&5 |
| 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7475 | (exit $ac_status); } && { |
| 7476 | test -z "$ac_c_werror_flag" || |
| 7477 | test ! -s conftest.err |
| 7478 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7479 | ac_hi=$ac_mid |
| 7480 | else |
| 7481 | echo "$as_me: failed program was:" >&5 |
| 7482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7484 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7486 | |
| 7487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7488 | done |
| 7489 | case $ac_lo in |
| 7490 | ?*) res_hi=$ac_lo;; |
| 7491 | '') result=? ;; |
| 7492 | esac |
| 7493 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7494 | cat >conftest.$ac_ext <<_ACEOF |
| 7495 | /* confdefs.h. */ |
| 7496 | _ACEOF |
| 7497 | cat confdefs.h >>conftest.$ac_ext |
| 7498 | cat >>conftest.$ac_ext <<_ACEOF |
| 7499 | /* end confdefs.h. */ |
| 7500 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7501 | static long int longval () { return ~(size_t)0 / 10; } |
| 7502 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | #include <stdio.h> |
| 7504 | #include <stdlib.h> |
| 7505 | int |
| 7506 | main () |
| 7507 | { |
| 7508 | |
| 7509 | FILE *f = fopen ("conftest.val", "w"); |
| 7510 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7511 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7512 | if ((~(size_t)0 / 10) < 0) |
| 7513 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7514 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7515 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7516 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7517 | fprintf (f, "%ld\n", i); |
| 7518 | } |
| 7519 | else |
| 7520 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7521 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7523 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7524 | fprintf (f, "%lu\n", i); |
| 7525 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7526 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7527 | |
| 7528 | ; |
| 7529 | return 0; |
| 7530 | } |
| 7531 | _ACEOF |
| 7532 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7533 | if { (ac_try="$ac_link" |
| 7534 | case "(($ac_try" in |
| 7535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7536 | *) ac_try_echo=$ac_try;; |
| 7537 | esac |
| 7538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7539 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7540 | ac_status=$? |
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7543 | { (case "(($ac_try" in |
| 7544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7545 | *) ac_try_echo=$ac_try;; |
| 7546 | esac |
| 7547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7548 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7549 | ac_status=$? |
| 7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7551 | (exit $ac_status); }; }; then |
| 7552 | res_hi=`cat conftest.val` |
| 7553 | else |
| 7554 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7555 | echo "$as_me: failed program was:" >&5 |
| 7556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7557 | |
| 7558 | ( exit $ac_status ) |
| 7559 | result=? |
| 7560 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7561 | 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] | 7562 | fi |
| 7563 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | if test "$cross_compiling" = yes; then |
| 7566 | # Depending upon the size, compute the lo and hi bounds. |
| 7567 | cat >conftest.$ac_ext <<_ACEOF |
| 7568 | /* confdefs.h. */ |
| 7569 | _ACEOF |
| 7570 | cat confdefs.h >>conftest.$ac_ext |
| 7571 | cat >>conftest.$ac_ext <<_ACEOF |
| 7572 | /* end confdefs.h. */ |
| 7573 | #include <stddef.h> |
| 7574 | int |
| 7575 | main () |
| 7576 | { |
| 7577 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7578 | test_array [0] = 0 |
| 7579 | |
| 7580 | ; |
| 7581 | return 0; |
| 7582 | } |
| 7583 | _ACEOF |
| 7584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7585 | if { (ac_try="$ac_compile" |
| 7586 | case "(($ac_try" in |
| 7587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7588 | *) ac_try_echo=$ac_try;; |
| 7589 | esac |
| 7590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7592 | ac_status=$? |
| 7593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7594 | rm -f conftest.er1 |
| 7595 | cat conftest.err >&5 |
| 7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7597 | (exit $ac_status); } && { |
| 7598 | test -z "$ac_c_werror_flag" || |
| 7599 | test ! -s conftest.err |
| 7600 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | ac_lo=0 ac_mid=0 |
| 7602 | while :; do |
| 7603 | cat >conftest.$ac_ext <<_ACEOF |
| 7604 | /* confdefs.h. */ |
| 7605 | _ACEOF |
| 7606 | cat confdefs.h >>conftest.$ac_ext |
| 7607 | cat >>conftest.$ac_ext <<_ACEOF |
| 7608 | /* end confdefs.h. */ |
| 7609 | #include <stddef.h> |
| 7610 | int |
| 7611 | main () |
| 7612 | { |
| 7613 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7614 | test_array [0] = 0 |
| 7615 | |
| 7616 | ; |
| 7617 | return 0; |
| 7618 | } |
| 7619 | _ACEOF |
| 7620 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7621 | if { (ac_try="$ac_compile" |
| 7622 | case "(($ac_try" in |
| 7623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7624 | *) ac_try_echo=$ac_try;; |
| 7625 | esac |
| 7626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7627 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | ac_status=$? |
| 7629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7630 | rm -f conftest.er1 |
| 7631 | cat conftest.err >&5 |
| 7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7633 | (exit $ac_status); } && { |
| 7634 | test -z "$ac_c_werror_flag" || |
| 7635 | test ! -s conftest.err |
| 7636 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7637 | ac_hi=$ac_mid; break |
| 7638 | else |
| 7639 | echo "$as_me: failed program was:" >&5 |
| 7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7642 | ac_lo=`expr $ac_mid + 1` |
| 7643 | if test $ac_lo -le $ac_mid; then |
| 7644 | ac_lo= ac_hi= |
| 7645 | break |
| 7646 | fi |
| 7647 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7648 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7649 | |
| 7650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | done |
| 7652 | else |
| 7653 | echo "$as_me: failed program was:" >&5 |
| 7654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7655 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7656 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7657 | /* confdefs.h. */ |
| 7658 | _ACEOF |
| 7659 | cat confdefs.h >>conftest.$ac_ext |
| 7660 | cat >>conftest.$ac_ext <<_ACEOF |
| 7661 | /* end confdefs.h. */ |
| 7662 | #include <stddef.h> |
| 7663 | int |
| 7664 | main () |
| 7665 | { |
| 7666 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7667 | test_array [0] = 0 |
| 7668 | |
| 7669 | ; |
| 7670 | return 0; |
| 7671 | } |
| 7672 | _ACEOF |
| 7673 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7674 | if { (ac_try="$ac_compile" |
| 7675 | case "(($ac_try" in |
| 7676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7677 | *) ac_try_echo=$ac_try;; |
| 7678 | esac |
| 7679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7680 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7681 | ac_status=$? |
| 7682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7683 | rm -f conftest.er1 |
| 7684 | cat conftest.err >&5 |
| 7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7686 | (exit $ac_status); } && { |
| 7687 | test -z "$ac_c_werror_flag" || |
| 7688 | test ! -s conftest.err |
| 7689 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7690 | ac_hi=-1 ac_mid=-1 |
| 7691 | while :; do |
| 7692 | cat >conftest.$ac_ext <<_ACEOF |
| 7693 | /* confdefs.h. */ |
| 7694 | _ACEOF |
| 7695 | cat confdefs.h >>conftest.$ac_ext |
| 7696 | cat >>conftest.$ac_ext <<_ACEOF |
| 7697 | /* end confdefs.h. */ |
| 7698 | #include <stddef.h> |
| 7699 | int |
| 7700 | main () |
| 7701 | { |
| 7702 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7703 | test_array [0] = 0 |
| 7704 | |
| 7705 | ; |
| 7706 | return 0; |
| 7707 | } |
| 7708 | _ACEOF |
| 7709 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7710 | if { (ac_try="$ac_compile" |
| 7711 | case "(($ac_try" in |
| 7712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7713 | *) ac_try_echo=$ac_try;; |
| 7714 | esac |
| 7715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7716 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7717 | ac_status=$? |
| 7718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7719 | rm -f conftest.er1 |
| 7720 | cat conftest.err >&5 |
| 7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7722 | (exit $ac_status); } && { |
| 7723 | test -z "$ac_c_werror_flag" || |
| 7724 | test ! -s conftest.err |
| 7725 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7726 | ac_lo=$ac_mid; break |
| 7727 | else |
| 7728 | echo "$as_me: failed program was:" >&5 |
| 7729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7730 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7731 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7732 | if test $ac_mid -le $ac_hi; then |
| 7733 | ac_lo= ac_hi= |
| 7734 | break |
| 7735 | fi |
| 7736 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7737 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7738 | |
| 7739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7740 | done |
| 7741 | else |
| 7742 | echo "$as_me: failed program was:" >&5 |
| 7743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7744 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7745 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7746 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7747 | |
| 7748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7750 | |
| 7751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7752 | # Binary search between lo and hi bounds. |
| 7753 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7754 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7755 | cat >conftest.$ac_ext <<_ACEOF |
| 7756 | /* confdefs.h. */ |
| 7757 | _ACEOF |
| 7758 | cat confdefs.h >>conftest.$ac_ext |
| 7759 | cat >>conftest.$ac_ext <<_ACEOF |
| 7760 | /* end confdefs.h. */ |
| 7761 | #include <stddef.h> |
| 7762 | int |
| 7763 | main () |
| 7764 | { |
| 7765 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7766 | test_array [0] = 0 |
| 7767 | |
| 7768 | ; |
| 7769 | return 0; |
| 7770 | } |
| 7771 | _ACEOF |
| 7772 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7773 | if { (ac_try="$ac_compile" |
| 7774 | case "(($ac_try" in |
| 7775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7776 | *) ac_try_echo=$ac_try;; |
| 7777 | esac |
| 7778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7779 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7780 | ac_status=$? |
| 7781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7782 | rm -f conftest.er1 |
| 7783 | cat conftest.err >&5 |
| 7784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7785 | (exit $ac_status); } && { |
| 7786 | test -z "$ac_c_werror_flag" || |
| 7787 | test ! -s conftest.err |
| 7788 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7789 | ac_hi=$ac_mid |
| 7790 | else |
| 7791 | echo "$as_me: failed program was:" >&5 |
| 7792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7794 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7795 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7796 | |
| 7797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7798 | done |
| 7799 | case $ac_lo in |
| 7800 | ?*) res_lo=$ac_lo;; |
| 7801 | '') result=? ;; |
| 7802 | esac |
| 7803 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7804 | cat >conftest.$ac_ext <<_ACEOF |
| 7805 | /* confdefs.h. */ |
| 7806 | _ACEOF |
| 7807 | cat confdefs.h >>conftest.$ac_ext |
| 7808 | cat >>conftest.$ac_ext <<_ACEOF |
| 7809 | /* end confdefs.h. */ |
| 7810 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7811 | static long int longval () { return ~(size_t)0 % 10; } |
| 7812 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7813 | #include <stdio.h> |
| 7814 | #include <stdlib.h> |
| 7815 | int |
| 7816 | main () |
| 7817 | { |
| 7818 | |
| 7819 | FILE *f = fopen ("conftest.val", "w"); |
| 7820 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7821 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7822 | if ((~(size_t)0 % 10) < 0) |
| 7823 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7824 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7825 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7826 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7827 | fprintf (f, "%ld\n", i); |
| 7828 | } |
| 7829 | else |
| 7830 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7831 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7833 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7834 | fprintf (f, "%lu\n", i); |
| 7835 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7836 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7837 | |
| 7838 | ; |
| 7839 | return 0; |
| 7840 | } |
| 7841 | _ACEOF |
| 7842 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7843 | if { (ac_try="$ac_link" |
| 7844 | case "(($ac_try" in |
| 7845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7846 | *) ac_try_echo=$ac_try;; |
| 7847 | esac |
| 7848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7849 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7850 | ac_status=$? |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7853 | { (case "(($ac_try" in |
| 7854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7855 | *) ac_try_echo=$ac_try;; |
| 7856 | esac |
| 7857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7858 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7859 | ac_status=$? |
| 7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7861 | (exit $ac_status); }; }; then |
| 7862 | res_lo=`cat conftest.val` |
| 7863 | else |
| 7864 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7865 | echo "$as_me: failed program was:" >&5 |
| 7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7867 | |
| 7868 | ( exit $ac_status ) |
| 7869 | result=? |
| 7870 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7871 | 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] | 7872 | fi |
| 7873 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7874 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7875 | if test "$cross_compiling" = yes; then |
| 7876 | # Depending upon the size, compute the lo and hi bounds. |
| 7877 | cat >conftest.$ac_ext <<_ACEOF |
| 7878 | /* confdefs.h. */ |
| 7879 | _ACEOF |
| 7880 | cat confdefs.h >>conftest.$ac_ext |
| 7881 | cat >>conftest.$ac_ext <<_ACEOF |
| 7882 | /* end confdefs.h. */ |
| 7883 | #include <stddef.h> |
| 7884 | int |
| 7885 | main () |
| 7886 | { |
| 7887 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7888 | test_array [0] = 0 |
| 7889 | |
| 7890 | ; |
| 7891 | return 0; |
| 7892 | } |
| 7893 | _ACEOF |
| 7894 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7895 | if { (ac_try="$ac_compile" |
| 7896 | case "(($ac_try" in |
| 7897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7898 | *) ac_try_echo=$ac_try;; |
| 7899 | esac |
| 7900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7901 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7902 | ac_status=$? |
| 7903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7904 | rm -f conftest.er1 |
| 7905 | cat conftest.err >&5 |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7907 | (exit $ac_status); } && { |
| 7908 | test -z "$ac_c_werror_flag" || |
| 7909 | test ! -s conftest.err |
| 7910 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7911 | ac_lo=0 ac_mid=0 |
| 7912 | while :; do |
| 7913 | cat >conftest.$ac_ext <<_ACEOF |
| 7914 | /* confdefs.h. */ |
| 7915 | _ACEOF |
| 7916 | cat confdefs.h >>conftest.$ac_ext |
| 7917 | cat >>conftest.$ac_ext <<_ACEOF |
| 7918 | /* end confdefs.h. */ |
| 7919 | #include <stddef.h> |
| 7920 | int |
| 7921 | main () |
| 7922 | { |
| 7923 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7924 | test_array [0] = 0 |
| 7925 | |
| 7926 | ; |
| 7927 | return 0; |
| 7928 | } |
| 7929 | _ACEOF |
| 7930 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7931 | if { (ac_try="$ac_compile" |
| 7932 | case "(($ac_try" in |
| 7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7934 | *) ac_try_echo=$ac_try;; |
| 7935 | esac |
| 7936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7937 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7938 | ac_status=$? |
| 7939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7940 | rm -f conftest.er1 |
| 7941 | cat conftest.err >&5 |
| 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7943 | (exit $ac_status); } && { |
| 7944 | test -z "$ac_c_werror_flag" || |
| 7945 | test ! -s conftest.err |
| 7946 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7947 | ac_hi=$ac_mid; break |
| 7948 | else |
| 7949 | echo "$as_me: failed program was:" >&5 |
| 7950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7951 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7952 | ac_lo=`expr $ac_mid + 1` |
| 7953 | if test $ac_lo -le $ac_mid; then |
| 7954 | ac_lo= ac_hi= |
| 7955 | break |
| 7956 | fi |
| 7957 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7959 | |
| 7960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7961 | done |
| 7962 | else |
| 7963 | echo "$as_me: failed program was:" >&5 |
| 7964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7966 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7967 | /* confdefs.h. */ |
| 7968 | _ACEOF |
| 7969 | cat confdefs.h >>conftest.$ac_ext |
| 7970 | cat >>conftest.$ac_ext <<_ACEOF |
| 7971 | /* end confdefs.h. */ |
| 7972 | #include <stddef.h> |
| 7973 | int |
| 7974 | main () |
| 7975 | { |
| 7976 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7977 | test_array [0] = 0 |
| 7978 | |
| 7979 | ; |
| 7980 | return 0; |
| 7981 | } |
| 7982 | _ACEOF |
| 7983 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7984 | if { (ac_try="$ac_compile" |
| 7985 | case "(($ac_try" in |
| 7986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7987 | *) ac_try_echo=$ac_try;; |
| 7988 | esac |
| 7989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7990 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7991 | ac_status=$? |
| 7992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7993 | rm -f conftest.er1 |
| 7994 | cat conftest.err >&5 |
| 7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7996 | (exit $ac_status); } && { |
| 7997 | test -z "$ac_c_werror_flag" || |
| 7998 | test ! -s conftest.err |
| 7999 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8000 | ac_hi=-1 ac_mid=-1 |
| 8001 | while :; do |
| 8002 | cat >conftest.$ac_ext <<_ACEOF |
| 8003 | /* confdefs.h. */ |
| 8004 | _ACEOF |
| 8005 | cat confdefs.h >>conftest.$ac_ext |
| 8006 | cat >>conftest.$ac_ext <<_ACEOF |
| 8007 | /* end confdefs.h. */ |
| 8008 | #include <stddef.h> |
| 8009 | int |
| 8010 | main () |
| 8011 | { |
| 8012 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8013 | test_array [0] = 0 |
| 8014 | |
| 8015 | ; |
| 8016 | return 0; |
| 8017 | } |
| 8018 | _ACEOF |
| 8019 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8020 | if { (ac_try="$ac_compile" |
| 8021 | case "(($ac_try" in |
| 8022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8023 | *) ac_try_echo=$ac_try;; |
| 8024 | esac |
| 8025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8026 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8027 | ac_status=$? |
| 8028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8029 | rm -f conftest.er1 |
| 8030 | cat conftest.err >&5 |
| 8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8032 | (exit $ac_status); } && { |
| 8033 | test -z "$ac_c_werror_flag" || |
| 8034 | test ! -s conftest.err |
| 8035 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8036 | ac_lo=$ac_mid; break |
| 8037 | else |
| 8038 | echo "$as_me: failed program was:" >&5 |
| 8039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8041 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8042 | if test $ac_mid -le $ac_hi; then |
| 8043 | ac_lo= ac_hi= |
| 8044 | break |
| 8045 | fi |
| 8046 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8048 | |
| 8049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8050 | done |
| 8051 | else |
| 8052 | echo "$as_me: failed program was:" >&5 |
| 8053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8055 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8056 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8057 | |
| 8058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8059 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8060 | |
| 8061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8062 | # Binary search between lo and hi bounds. |
| 8063 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8064 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8065 | cat >conftest.$ac_ext <<_ACEOF |
| 8066 | /* confdefs.h. */ |
| 8067 | _ACEOF |
| 8068 | cat confdefs.h >>conftest.$ac_ext |
| 8069 | cat >>conftest.$ac_ext <<_ACEOF |
| 8070 | /* end confdefs.h. */ |
| 8071 | #include <stddef.h> |
| 8072 | int |
| 8073 | main () |
| 8074 | { |
| 8075 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8076 | test_array [0] = 0 |
| 8077 | |
| 8078 | ; |
| 8079 | return 0; |
| 8080 | } |
| 8081 | _ACEOF |
| 8082 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8083 | if { (ac_try="$ac_compile" |
| 8084 | case "(($ac_try" in |
| 8085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8086 | *) ac_try_echo=$ac_try;; |
| 8087 | esac |
| 8088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8089 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8090 | ac_status=$? |
| 8091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8092 | rm -f conftest.er1 |
| 8093 | cat conftest.err >&5 |
| 8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8095 | (exit $ac_status); } && { |
| 8096 | test -z "$ac_c_werror_flag" || |
| 8097 | test ! -s conftest.err |
| 8098 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8099 | ac_hi=$ac_mid |
| 8100 | else |
| 8101 | echo "$as_me: failed program was:" >&5 |
| 8102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8103 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8104 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8105 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8106 | |
| 8107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8108 | done |
| 8109 | case $ac_lo in |
| 8110 | ?*) fits_in_uint=$ac_lo;; |
| 8111 | '') result=? ;; |
| 8112 | esac |
| 8113 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8114 | cat >conftest.$ac_ext <<_ACEOF |
| 8115 | /* confdefs.h. */ |
| 8116 | _ACEOF |
| 8117 | cat confdefs.h >>conftest.$ac_ext |
| 8118 | cat >>conftest.$ac_ext <<_ACEOF |
| 8119 | /* end confdefs.h. */ |
| 8120 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8121 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8122 | 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] | 8123 | #include <stdio.h> |
| 8124 | #include <stdlib.h> |
| 8125 | int |
| 8126 | main () |
| 8127 | { |
| 8128 | |
| 8129 | FILE *f = fopen ("conftest.val", "w"); |
| 8130 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8131 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8132 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8133 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8134 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8135 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8136 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8137 | fprintf (f, "%ld\n", i); |
| 8138 | } |
| 8139 | else |
| 8140 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8141 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8142 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8143 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8144 | fprintf (f, "%lu\n", i); |
| 8145 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8146 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8147 | |
| 8148 | ; |
| 8149 | return 0; |
| 8150 | } |
| 8151 | _ACEOF |
| 8152 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8153 | if { (ac_try="$ac_link" |
| 8154 | case "(($ac_try" in |
| 8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8156 | *) ac_try_echo=$ac_try;; |
| 8157 | esac |
| 8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8159 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8160 | ac_status=$? |
| 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8163 | { (case "(($ac_try" in |
| 8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8165 | *) ac_try_echo=$ac_try;; |
| 8166 | esac |
| 8167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8168 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8169 | ac_status=$? |
| 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 | (exit $ac_status); }; }; then |
| 8172 | fits_in_uint=`cat conftest.val` |
| 8173 | else |
| 8174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8175 | echo "$as_me: failed program was:" >&5 |
| 8176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8177 | |
| 8178 | ( exit $ac_status ) |
| 8179 | result=? |
| 8180 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8181 | 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] | 8182 | fi |
| 8183 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8184 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8185 | if test "$fits_in_uint" = 1; then |
| 8186 | cat >conftest.$ac_ext <<_ACEOF |
| 8187 | /* confdefs.h. */ |
| 8188 | _ACEOF |
| 8189 | cat confdefs.h >>conftest.$ac_ext |
| 8190 | cat >>conftest.$ac_ext <<_ACEOF |
| 8191 | /* end confdefs.h. */ |
| 8192 | #include <stddef.h> |
| 8193 | extern size_t foo; |
| 8194 | extern unsigned long foo; |
| 8195 | |
| 8196 | int |
| 8197 | main () |
| 8198 | { |
| 8199 | |
| 8200 | ; |
| 8201 | return 0; |
| 8202 | } |
| 8203 | _ACEOF |
| 8204 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8205 | if { (ac_try="$ac_compile" |
| 8206 | case "(($ac_try" in |
| 8207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8208 | *) ac_try_echo=$ac_try;; |
| 8209 | esac |
| 8210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8211 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8212 | ac_status=$? |
| 8213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8214 | rm -f conftest.er1 |
| 8215 | cat conftest.err >&5 |
| 8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8217 | (exit $ac_status); } && { |
| 8218 | test -z "$ac_c_werror_flag" || |
| 8219 | test ! -s conftest.err |
| 8220 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8221 | fits_in_uint=0 |
| 8222 | else |
| 8223 | echo "$as_me: failed program was:" >&5 |
| 8224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8225 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8227 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8228 | |
| 8229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8230 | fi |
| 8231 | if test -z "$result"; then |
| 8232 | if test "$fits_in_uint" = 1; then |
| 8233 | result="$res_hi$res_lo"U |
| 8234 | else |
| 8235 | result="$res_hi$res_lo"UL |
| 8236 | fi |
| 8237 | else |
| 8238 | result='~(size_t)0' |
| 8239 | fi |
| 8240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8241 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8242 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | if test "$result" != yes; then |
| 8244 | |
| 8245 | cat >>confdefs.h <<_ACEOF |
| 8246 | #define SIZE_MAX $result |
| 8247 | _ACEOF |
| 8248 | |
| 8249 | fi |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | for ac_header in stdint.h |
| 8255 | do |
| 8256 | 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] | 8257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8258 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8260 | 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] | 8261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8263 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8264 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8265 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8266 | else |
| 8267 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8268 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8269 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8270 | cat >conftest.$ac_ext <<_ACEOF |
| 8271 | /* confdefs.h. */ |
| 8272 | _ACEOF |
| 8273 | cat confdefs.h >>conftest.$ac_ext |
| 8274 | cat >>conftest.$ac_ext <<_ACEOF |
| 8275 | /* end confdefs.h. */ |
| 8276 | $ac_includes_default |
| 8277 | #include <$ac_header> |
| 8278 | _ACEOF |
| 8279 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8280 | if { (ac_try="$ac_compile" |
| 8281 | case "(($ac_try" in |
| 8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8283 | *) ac_try_echo=$ac_try;; |
| 8284 | esac |
| 8285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8286 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8287 | ac_status=$? |
| 8288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8289 | rm -f conftest.er1 |
| 8290 | cat conftest.err >&5 |
| 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8292 | (exit $ac_status); } && { |
| 8293 | test -z "$ac_c_werror_flag" || |
| 8294 | test ! -s conftest.err |
| 8295 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8296 | ac_header_compiler=yes |
| 8297 | else |
| 8298 | echo "$as_me: failed program was:" >&5 |
| 8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8300 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8301 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8303 | |
| 8304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8305 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8306 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8307 | |
| 8308 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8309 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8310 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8311 | cat >conftest.$ac_ext <<_ACEOF |
| 8312 | /* confdefs.h. */ |
| 8313 | _ACEOF |
| 8314 | cat confdefs.h >>conftest.$ac_ext |
| 8315 | cat >>conftest.$ac_ext <<_ACEOF |
| 8316 | /* end confdefs.h. */ |
| 8317 | #include <$ac_header> |
| 8318 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8320 | case "(($ac_try" in |
| 8321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8322 | *) ac_try_echo=$ac_try;; |
| 8323 | esac |
| 8324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8326 | ac_status=$? |
| 8327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8328 | rm -f conftest.er1 |
| 8329 | cat conftest.err >&5 |
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8331 | (exit $ac_status); } >/dev/null && { |
| 8332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8333 | test ! -s conftest.err |
| 8334 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8335 | ac_header_preproc=yes |
| 8336 | else |
| 8337 | echo "$as_me: failed program was:" >&5 |
| 8338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8339 | |
| 8340 | ac_header_preproc=no |
| 8341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8342 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8343 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8346 | |
| 8347 | # So? What about this header? |
| 8348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8349 | yes:no: ) |
| 8350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8354 | ac_header_preproc=yes |
| 8355 | ;; |
| 8356 | no:yes:* ) |
| 8357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8368 | 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] | 8369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8370 | ;; |
| 8371 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8372 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8374 | 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] | 8375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8376 | else |
| 8377 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8378 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8381 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8382 | |
| 8383 | fi |
| 8384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8385 | cat >>confdefs.h <<_ACEOF |
| 8386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8387 | _ACEOF |
| 8388 | |
| 8389 | fi |
| 8390 | |
| 8391 | done |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | if test "X$prefix" = "XNONE"; then |
| 8396 | acl_final_prefix="$ac_default_prefix" |
| 8397 | else |
| 8398 | acl_final_prefix="$prefix" |
| 8399 | fi |
| 8400 | if test "X$exec_prefix" = "XNONE"; then |
| 8401 | acl_final_exec_prefix='${prefix}' |
| 8402 | else |
| 8403 | acl_final_exec_prefix="$exec_prefix" |
| 8404 | fi |
| 8405 | acl_save_prefix="$prefix" |
| 8406 | prefix="$acl_final_prefix" |
| 8407 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8408 | prefix="$acl_save_prefix" |
| 8409 | |
| 8410 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8411 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8412 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8413 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8414 | else |
| 8415 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8416 | fi |
| 8417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8418 | # Prepare PATH_SEPARATOR. |
| 8419 | # The user is always right. |
| 8420 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8421 | echo "#! /bin/sh" >conf$$.sh |
| 8422 | echo "exit 0" >>conf$$.sh |
| 8423 | chmod +x conf$$.sh |
| 8424 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8425 | PATH_SEPARATOR=';' |
| 8426 | else |
| 8427 | PATH_SEPARATOR=: |
| 8428 | fi |
| 8429 | rm -f conf$$.sh |
| 8430 | fi |
| 8431 | ac_prog=ld |
| 8432 | if test "$GCC" = yes; then |
| 8433 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8434 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8435 | 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] | 8436 | case $host in |
| 8437 | *-*-mingw*) |
| 8438 | # gcc leaves a trailing carriage return which upsets mingw |
| 8439 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8440 | *) |
| 8441 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8442 | esac |
| 8443 | case $ac_prog in |
| 8444 | # Accept absolute paths. |
| 8445 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8446 | re_direlt='/[^/][^/]*/\.\./' |
| 8447 | # Canonicalize the path of ld |
| 8448 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8449 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8450 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8451 | done |
| 8452 | test -z "$LD" && LD="$ac_prog" |
| 8453 | ;; |
| 8454 | "") |
| 8455 | # If it fails, then pretend we aren't using GCC. |
| 8456 | ac_prog=ld |
| 8457 | ;; |
| 8458 | *) |
| 8459 | # If it is relative, then search for the first ld in PATH. |
| 8460 | with_gnu_ld=unknown |
| 8461 | ;; |
| 8462 | esac |
| 8463 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8464 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8465 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8466 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8467 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8468 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8469 | fi |
| 8470 | if test "${acl_cv_path_LD+set}" = set; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8472 | else |
| 8473 | if test -z "$LD"; then |
| 8474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8475 | for ac_dir in $PATH; do |
| 8476 | test -z "$ac_dir" && ac_dir=. |
| 8477 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8478 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8479 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8480 | # but apparently some GNU ld's only accept -v. |
| 8481 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8482 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8483 | *GNU* | *'with BFD'*) |
| 8484 | test "$with_gnu_ld" != no && break ;; |
| 8485 | *) |
| 8486 | test "$with_gnu_ld" != yes && break ;; |
| 8487 | esac |
| 8488 | fi |
| 8489 | done |
| 8490 | IFS="$ac_save_ifs" |
| 8491 | else |
| 8492 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8493 | fi |
| 8494 | fi |
| 8495 | |
| 8496 | LD="$acl_cv_path_LD" |
| 8497 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8498 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8499 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8500 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8502 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8503 | fi |
| 8504 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8505 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8506 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8507 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8508 | 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] | 8509 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8511 | else |
| 8512 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8513 | case `$LD -v 2>&1 </dev/null` in |
| 8514 | *GNU* | *'with BFD'*) |
| 8515 | acl_cv_prog_gnu_ld=yes ;; |
| 8516 | *) |
| 8517 | acl_cv_prog_gnu_ld=no ;; |
| 8518 | esac |
| 8519 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8520 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8521 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8522 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8523 | |
| 8524 | |
| 8525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8526 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8527 | 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] | 8528 | if test "${acl_cv_rpath+set}" = set; then |
| 8529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8530 | else |
| 8531 | |
| 8532 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8533 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8534 | . ./conftest.sh |
| 8535 | rm -f ./conftest.sh |
| 8536 | acl_cv_rpath=done |
| 8537 | |
| 8538 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8539 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8540 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8541 | wl="$acl_cv_wl" |
| 8542 | libext="$acl_cv_libext" |
| 8543 | shlibext="$acl_cv_shlibext" |
| 8544 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8545 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8546 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8547 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8548 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8549 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8550 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8551 | else |
| 8552 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8553 | fi |
| 8554 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8555 | |
| 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8562 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8563 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8564 | acl_save_prefix="$prefix" |
| 8565 | prefix="$acl_final_prefix" |
| 8566 | acl_save_exec_prefix="$exec_prefix" |
| 8567 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8569 | eval additional_includedir=\"$includedir\" |
| 8570 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8571 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8572 | exec_prefix="$acl_save_exec_prefix" |
| 8573 | prefix="$acl_save_prefix" |
| 8574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8575 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8576 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8577 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8578 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8579 | if test "X$withval" = "Xno"; then |
| 8580 | use_additional=no |
| 8581 | else |
| 8582 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8583 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8584 | acl_save_prefix="$prefix" |
| 8585 | prefix="$acl_final_prefix" |
| 8586 | acl_save_exec_prefix="$exec_prefix" |
| 8587 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8588 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8589 | eval additional_includedir=\"$includedir\" |
| 8590 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8591 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8592 | exec_prefix="$acl_save_exec_prefix" |
| 8593 | prefix="$acl_save_prefix" |
| 8594 | |
| 8595 | else |
| 8596 | additional_includedir="$withval/include" |
| 8597 | additional_libdir="$withval/lib" |
| 8598 | fi |
| 8599 | fi |
| 8600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8601 | fi |
| 8602 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8603 | LIBICONV= |
| 8604 | LTLIBICONV= |
| 8605 | INCICONV= |
| 8606 | rpathdirs= |
| 8607 | ltrpathdirs= |
| 8608 | names_already_handled= |
| 8609 | names_next_round='iconv ' |
| 8610 | while test -n "$names_next_round"; do |
| 8611 | names_this_round="$names_next_round" |
| 8612 | names_next_round= |
| 8613 | for name in $names_this_round; do |
| 8614 | already_handled= |
| 8615 | for n in $names_already_handled; do |
| 8616 | if test "$n" = "$name"; then |
| 8617 | already_handled=yes |
| 8618 | break |
| 8619 | fi |
| 8620 | done |
| 8621 | if test -z "$already_handled"; then |
| 8622 | names_already_handled="$names_already_handled $name" |
| 8623 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8624 | eval value=\"\$HAVE_LIB$uppername\" |
| 8625 | if test -n "$value"; then |
| 8626 | if test "$value" = yes; then |
| 8627 | eval value=\"\$LIB$uppername\" |
| 8628 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8629 | eval value=\"\$LTLIB$uppername\" |
| 8630 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8631 | else |
| 8632 | : |
| 8633 | fi |
| 8634 | else |
| 8635 | found_dir= |
| 8636 | found_la= |
| 8637 | found_so= |
| 8638 | found_a= |
| 8639 | if test $use_additional = yes; then |
| 8640 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8641 | found_dir="$additional_libdir" |
| 8642 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8643 | if test -f "$additional_libdir/lib$name.la"; then |
| 8644 | found_la="$additional_libdir/lib$name.la" |
| 8645 | fi |
| 8646 | else |
| 8647 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8648 | found_dir="$additional_libdir" |
| 8649 | found_a="$additional_libdir/lib$name.$libext" |
| 8650 | if test -f "$additional_libdir/lib$name.la"; then |
| 8651 | found_la="$additional_libdir/lib$name.la" |
| 8652 | fi |
| 8653 | fi |
| 8654 | fi |
| 8655 | fi |
| 8656 | if test "X$found_dir" = "X"; then |
| 8657 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8658 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8659 | acl_save_prefix="$prefix" |
| 8660 | prefix="$acl_final_prefix" |
| 8661 | acl_save_exec_prefix="$exec_prefix" |
| 8662 | exec_prefix="$acl_final_exec_prefix" |
| 8663 | eval x=\"$x\" |
| 8664 | exec_prefix="$acl_save_exec_prefix" |
| 8665 | prefix="$acl_save_prefix" |
| 8666 | |
| 8667 | case "$x" in |
| 8668 | -L*) |
| 8669 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8670 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8671 | found_dir="$dir" |
| 8672 | found_so="$dir/lib$name.$shlibext" |
| 8673 | if test -f "$dir/lib$name.la"; then |
| 8674 | found_la="$dir/lib$name.la" |
| 8675 | fi |
| 8676 | else |
| 8677 | if test -f "$dir/lib$name.$libext"; then |
| 8678 | found_dir="$dir" |
| 8679 | found_a="$dir/lib$name.$libext" |
| 8680 | if test -f "$dir/lib$name.la"; then |
| 8681 | found_la="$dir/lib$name.la" |
| 8682 | fi |
| 8683 | fi |
| 8684 | fi |
| 8685 | ;; |
| 8686 | esac |
| 8687 | if test "X$found_dir" != "X"; then |
| 8688 | break |
| 8689 | fi |
| 8690 | done |
| 8691 | fi |
| 8692 | if test "X$found_dir" != "X"; then |
| 8693 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8694 | if test "X$found_so" != "X"; then |
| 8695 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8696 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8697 | else |
| 8698 | haveit= |
| 8699 | for x in $ltrpathdirs; do |
| 8700 | if test "X$x" = "X$found_dir"; then |
| 8701 | haveit=yes |
| 8702 | break |
| 8703 | fi |
| 8704 | done |
| 8705 | if test -z "$haveit"; then |
| 8706 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8707 | fi |
| 8708 | if test "$hardcode_direct" = yes; then |
| 8709 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8710 | else |
| 8711 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8712 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8713 | haveit= |
| 8714 | for x in $rpathdirs; do |
| 8715 | if test "X$x" = "X$found_dir"; then |
| 8716 | haveit=yes |
| 8717 | break |
| 8718 | fi |
| 8719 | done |
| 8720 | if test -z "$haveit"; then |
| 8721 | rpathdirs="$rpathdirs $found_dir" |
| 8722 | fi |
| 8723 | else |
| 8724 | haveit= |
| 8725 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8726 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8727 | acl_save_prefix="$prefix" |
| 8728 | prefix="$acl_final_prefix" |
| 8729 | acl_save_exec_prefix="$exec_prefix" |
| 8730 | exec_prefix="$acl_final_exec_prefix" |
| 8731 | eval x=\"$x\" |
| 8732 | exec_prefix="$acl_save_exec_prefix" |
| 8733 | prefix="$acl_save_prefix" |
| 8734 | |
| 8735 | if test "X$x" = "X-L$found_dir"; then |
| 8736 | haveit=yes |
| 8737 | break |
| 8738 | fi |
| 8739 | done |
| 8740 | if test -z "$haveit"; then |
| 8741 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8742 | fi |
| 8743 | if test "$hardcode_minus_L" != no; then |
| 8744 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8745 | else |
| 8746 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8747 | fi |
| 8748 | fi |
| 8749 | fi |
| 8750 | fi |
| 8751 | else |
| 8752 | if test "X$found_a" != "X"; then |
| 8753 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8754 | else |
| 8755 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8756 | fi |
| 8757 | fi |
| 8758 | additional_includedir= |
| 8759 | case "$found_dir" in |
| 8760 | */lib | */lib/) |
| 8761 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8762 | additional_includedir="$basedir/include" |
| 8763 | ;; |
| 8764 | esac |
| 8765 | if test "X$additional_includedir" != "X"; then |
| 8766 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8767 | haveit= |
| 8768 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8769 | if test -n "$GCC"; then |
| 8770 | case $host_os in |
| 8771 | linux*) haveit=yes;; |
| 8772 | esac |
| 8773 | fi |
| 8774 | fi |
| 8775 | if test -z "$haveit"; then |
| 8776 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8777 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8778 | acl_save_prefix="$prefix" |
| 8779 | prefix="$acl_final_prefix" |
| 8780 | acl_save_exec_prefix="$exec_prefix" |
| 8781 | exec_prefix="$acl_final_exec_prefix" |
| 8782 | eval x=\"$x\" |
| 8783 | exec_prefix="$acl_save_exec_prefix" |
| 8784 | prefix="$acl_save_prefix" |
| 8785 | |
| 8786 | if test "X$x" = "X-I$additional_includedir"; then |
| 8787 | haveit=yes |
| 8788 | break |
| 8789 | fi |
| 8790 | done |
| 8791 | if test -z "$haveit"; then |
| 8792 | if test -d "$additional_includedir"; then |
| 8793 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8794 | fi |
| 8795 | fi |
| 8796 | fi |
| 8797 | fi |
| 8798 | fi |
| 8799 | if test -n "$found_la"; then |
| 8800 | save_libdir="$libdir" |
| 8801 | case "$found_la" in |
| 8802 | */* | *\\*) . "$found_la" ;; |
| 8803 | *) . "./$found_la" ;; |
| 8804 | esac |
| 8805 | libdir="$save_libdir" |
| 8806 | for dep in $dependency_libs; do |
| 8807 | case "$dep" in |
| 8808 | -L*) |
| 8809 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8810 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8811 | haveit= |
| 8812 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8813 | if test -n "$GCC"; then |
| 8814 | case $host_os in |
| 8815 | linux*) haveit=yes;; |
| 8816 | esac |
| 8817 | fi |
| 8818 | fi |
| 8819 | if test -z "$haveit"; then |
| 8820 | haveit= |
| 8821 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8822 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8823 | acl_save_prefix="$prefix" |
| 8824 | prefix="$acl_final_prefix" |
| 8825 | acl_save_exec_prefix="$exec_prefix" |
| 8826 | exec_prefix="$acl_final_exec_prefix" |
| 8827 | eval x=\"$x\" |
| 8828 | exec_prefix="$acl_save_exec_prefix" |
| 8829 | prefix="$acl_save_prefix" |
| 8830 | |
| 8831 | if test "X$x" = "X-L$additional_libdir"; then |
| 8832 | haveit=yes |
| 8833 | break |
| 8834 | fi |
| 8835 | done |
| 8836 | if test -z "$haveit"; then |
| 8837 | if test -d "$additional_libdir"; then |
| 8838 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8839 | fi |
| 8840 | fi |
| 8841 | haveit= |
| 8842 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8843 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8844 | acl_save_prefix="$prefix" |
| 8845 | prefix="$acl_final_prefix" |
| 8846 | acl_save_exec_prefix="$exec_prefix" |
| 8847 | exec_prefix="$acl_final_exec_prefix" |
| 8848 | eval x=\"$x\" |
| 8849 | exec_prefix="$acl_save_exec_prefix" |
| 8850 | prefix="$acl_save_prefix" |
| 8851 | |
| 8852 | if test "X$x" = "X-L$additional_libdir"; then |
| 8853 | haveit=yes |
| 8854 | break |
| 8855 | fi |
| 8856 | done |
| 8857 | if test -z "$haveit"; then |
| 8858 | if test -d "$additional_libdir"; then |
| 8859 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8860 | fi |
| 8861 | fi |
| 8862 | fi |
| 8863 | fi |
| 8864 | ;; |
| 8865 | -R*) |
| 8866 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8867 | if test "$enable_rpath" != no; then |
| 8868 | haveit= |
| 8869 | for x in $rpathdirs; do |
| 8870 | if test "X$x" = "X$dir"; then |
| 8871 | haveit=yes |
| 8872 | break |
| 8873 | fi |
| 8874 | done |
| 8875 | if test -z "$haveit"; then |
| 8876 | rpathdirs="$rpathdirs $dir" |
| 8877 | fi |
| 8878 | haveit= |
| 8879 | for x in $ltrpathdirs; do |
| 8880 | if test "X$x" = "X$dir"; then |
| 8881 | haveit=yes |
| 8882 | break |
| 8883 | fi |
| 8884 | done |
| 8885 | if test -z "$haveit"; then |
| 8886 | ltrpathdirs="$ltrpathdirs $dir" |
| 8887 | fi |
| 8888 | fi |
| 8889 | ;; |
| 8890 | -l*) |
| 8891 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8892 | ;; |
| 8893 | *.la) |
| 8894 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8895 | ;; |
| 8896 | *) |
| 8897 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8898 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8899 | ;; |
| 8900 | esac |
| 8901 | done |
| 8902 | fi |
| 8903 | else |
| 8904 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8905 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8906 | fi |
| 8907 | fi |
| 8908 | fi |
| 8909 | done |
| 8910 | done |
| 8911 | if test "X$rpathdirs" != "X"; then |
| 8912 | if test -n "$hardcode_libdir_separator"; then |
| 8913 | alldirs= |
| 8914 | for found_dir in $rpathdirs; do |
| 8915 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8916 | done |
| 8917 | acl_save_libdir="$libdir" |
| 8918 | libdir="$alldirs" |
| 8919 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8920 | libdir="$acl_save_libdir" |
| 8921 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8922 | else |
| 8923 | for found_dir in $rpathdirs; do |
| 8924 | acl_save_libdir="$libdir" |
| 8925 | libdir="$found_dir" |
| 8926 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8927 | libdir="$acl_save_libdir" |
| 8928 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8929 | done |
| 8930 | fi |
| 8931 | fi |
| 8932 | if test "X$ltrpathdirs" != "X"; then |
| 8933 | for found_dir in $ltrpathdirs; do |
| 8934 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8935 | done |
| 8936 | fi |
| 8937 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8938 | |
| 8939 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8940 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8941 | |
| 8942 | |
| 8943 | |
| 8944 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8945 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8946 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8947 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8949 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8950 | cat >conftest.$ac_ext <<_ACEOF |
| 8951 | /* confdefs.h. */ |
| 8952 | _ACEOF |
| 8953 | cat confdefs.h >>conftest.$ac_ext |
| 8954 | cat >>conftest.$ac_ext <<_ACEOF |
| 8955 | /* end confdefs.h. */ |
| 8956 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8957 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8958 | int |
| 8959 | main () |
| 8960 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8961 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8962 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8963 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8964 | return 0; |
| 8965 | ; |
| 8966 | return 0; |
| 8967 | } |
| 8968 | _ACEOF |
| 8969 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8970 | if { (ac_try="$ac_compile" |
| 8971 | case "(($ac_try" in |
| 8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8973 | *) ac_try_echo=$ac_try;; |
| 8974 | esac |
| 8975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8976 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8977 | ac_status=$? |
| 8978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8979 | rm -f conftest.er1 |
| 8980 | cat conftest.err >&5 |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8982 | (exit $ac_status); } && { |
| 8983 | test -z "$ac_c_werror_flag" || |
| 8984 | test ! -s conftest.err |
| 8985 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8986 | ac_cv_type_ptrdiff_t=yes |
| 8987 | else |
| 8988 | echo "$as_me: failed program was:" >&5 |
| 8989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8990 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8991 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8992 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8993 | |
| 8994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8995 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8996 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8997 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8998 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8999 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9001 | |
| 9002 | cat >>confdefs.h <<\_ACEOF |
| 9003 | #define ptrdiff_t long |
| 9004 | _ACEOF |
| 9005 | |
| 9006 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9007 | fi |
| 9008 | |
| 9009 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9010 | |
| 9011 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9012 | |
| 9013 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9014 | |
| 9015 | |
| 9016 | |
| 9017 | |
| 9018 | |
| 9019 | 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] | 9020 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9021 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9022 | 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] | 9023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9026 | 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] | 9027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9028 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9029 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9030 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9031 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9032 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9034 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9036 | cat >conftest.$ac_ext <<_ACEOF |
| 9037 | /* confdefs.h. */ |
| 9038 | _ACEOF |
| 9039 | cat confdefs.h >>conftest.$ac_ext |
| 9040 | cat >>conftest.$ac_ext <<_ACEOF |
| 9041 | /* end confdefs.h. */ |
| 9042 | $ac_includes_default |
| 9043 | #include <$ac_header> |
| 9044 | _ACEOF |
| 9045 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9046 | if { (ac_try="$ac_compile" |
| 9047 | case "(($ac_try" in |
| 9048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9049 | *) ac_try_echo=$ac_try;; |
| 9050 | esac |
| 9051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9052 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9053 | ac_status=$? |
| 9054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9055 | rm -f conftest.er1 |
| 9056 | cat conftest.err >&5 |
| 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9058 | (exit $ac_status); } && { |
| 9059 | test -z "$ac_c_werror_flag" || |
| 9060 | test ! -s conftest.err |
| 9061 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9062 | ac_header_compiler=yes |
| 9063 | else |
| 9064 | echo "$as_me: failed program was:" >&5 |
| 9065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9067 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9068 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9069 | |
| 9070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9071 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9072 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9073 | |
| 9074 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9075 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9077 | cat >conftest.$ac_ext <<_ACEOF |
| 9078 | /* confdefs.h. */ |
| 9079 | _ACEOF |
| 9080 | cat confdefs.h >>conftest.$ac_ext |
| 9081 | cat >>conftest.$ac_ext <<_ACEOF |
| 9082 | /* end confdefs.h. */ |
| 9083 | #include <$ac_header> |
| 9084 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9085 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9086 | case "(($ac_try" in |
| 9087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9088 | *) ac_try_echo=$ac_try;; |
| 9089 | esac |
| 9090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9091 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9092 | ac_status=$? |
| 9093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9094 | rm -f conftest.er1 |
| 9095 | cat conftest.err >&5 |
| 9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9097 | (exit $ac_status); } >/dev/null && { |
| 9098 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9099 | test ! -s conftest.err |
| 9100 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9101 | ac_header_preproc=yes |
| 9102 | else |
| 9103 | echo "$as_me: failed program was:" >&5 |
| 9104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9105 | |
| 9106 | ac_header_preproc=no |
| 9107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9108 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9109 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9110 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9111 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9112 | |
| 9113 | # So? What about this header? |
| 9114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9115 | yes:no: ) |
| 9116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9119 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9120 | ac_header_preproc=yes |
| 9121 | ;; |
| 9122 | no:yes:* ) |
| 9123 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9124 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9125 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9126 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9127 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9128 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9129 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9130 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9132 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9133 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9134 | 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] | 9135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9136 | ;; |
| 9137 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9140 | 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] | 9141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9142 | else |
| 9143 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9144 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9145 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9147 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9148 | |
| 9149 | fi |
| 9150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9151 | cat >>confdefs.h <<_ACEOF |
| 9152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9153 | _ACEOF |
| 9154 | |
| 9155 | fi |
| 9156 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9157 | done |
| 9158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9159 | |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9183 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9184 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9185 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9186 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9187 | 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] | 9188 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9190 | 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] | 9191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9192 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | cat >conftest.$ac_ext <<_ACEOF |
| 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
| 9199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9201 | #define $ac_func innocuous_$ac_func |
| 9202 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9203 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9204 | which can conflict with char $ac_func (); below. |
| 9205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9206 | <limits.h> exists even on freestanding compilers. */ |
| 9207 | |
| 9208 | #ifdef __STDC__ |
| 9209 | # include <limits.h> |
| 9210 | #else |
| 9211 | # include <assert.h> |
| 9212 | #endif |
| 9213 | |
| 9214 | #undef $ac_func |
| 9215 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9216 | /* Override any GCC internal prototype to avoid an error. |
| 9217 | Use char because int might match the return type of a GCC |
| 9218 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9219 | #ifdef __cplusplus |
| 9220 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9221 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9222 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9223 | /* The GNU C library defines this for functions which it implements |
| 9224 | to always fail with ENOSYS. Some functions are actually named |
| 9225 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9226 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9227 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9228 | #endif |
| 9229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9230 | int |
| 9231 | main () |
| 9232 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9233 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9234 | ; |
| 9235 | return 0; |
| 9236 | } |
| 9237 | _ACEOF |
| 9238 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9239 | if { (ac_try="$ac_link" |
| 9240 | case "(($ac_try" in |
| 9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9242 | *) ac_try_echo=$ac_try;; |
| 9243 | esac |
| 9244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9245 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9246 | ac_status=$? |
| 9247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9248 | rm -f conftest.er1 |
| 9249 | cat conftest.err >&5 |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9251 | (exit $ac_status); } && { |
| 9252 | test -z "$ac_c_werror_flag" || |
| 9253 | test ! -s conftest.err |
| 9254 | } && test -s conftest$ac_exeext && |
| 9255 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9256 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9257 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9258 | echo "$as_me: failed program was:" >&5 |
| 9259 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9260 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9261 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9263 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9264 | 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] | 9265 | conftest$ac_exeext conftest.$ac_ext |
| 9266 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9267 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9268 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9269 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9270 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9271 | cat >>confdefs.h <<_ACEOF |
| 9272 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9273 | _ACEOF |
| 9274 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9275 | fi |
| 9276 | done |
| 9277 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9280 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9281 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9282 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9284 | else |
| 9285 | cat >conftest.$ac_ext <<_ACEOF |
| 9286 | /* confdefs.h. */ |
| 9287 | _ACEOF |
| 9288 | cat confdefs.h >>conftest.$ac_ext |
| 9289 | cat >>conftest.$ac_ext <<_ACEOF |
| 9290 | /* end confdefs.h. */ |
| 9291 | #include <stdio.h> |
| 9292 | int |
| 9293 | main () |
| 9294 | { |
| 9295 | |
| 9296 | #ifndef _snprintf |
| 9297 | char *p = (char *) _snprintf; |
| 9298 | #endif |
| 9299 | |
| 9300 | ; |
| 9301 | return 0; |
| 9302 | } |
| 9303 | _ACEOF |
| 9304 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9305 | if { (ac_try="$ac_compile" |
| 9306 | case "(($ac_try" in |
| 9307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9308 | *) ac_try_echo=$ac_try;; |
| 9309 | esac |
| 9310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9311 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9312 | ac_status=$? |
| 9313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9314 | rm -f conftest.er1 |
| 9315 | cat conftest.err >&5 |
| 9316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9317 | (exit $ac_status); } && { |
| 9318 | test -z "$ac_c_werror_flag" || |
| 9319 | test ! -s conftest.err |
| 9320 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9321 | ac_cv_have_decl__snprintf=yes |
| 9322 | else |
| 9323 | echo "$as_me: failed program was:" >&5 |
| 9324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9325 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9326 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9327 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9328 | |
| 9329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9330 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9331 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9332 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9334 | gt_value=1 |
| 9335 | else |
| 9336 | gt_value=0 |
| 9337 | fi |
| 9338 | |
| 9339 | cat >>confdefs.h <<_ACEOF |
| 9340 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9341 | _ACEOF |
| 9342 | |
| 9343 | |
| 9344 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9345 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9346 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9347 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9349 | else |
| 9350 | cat >conftest.$ac_ext <<_ACEOF |
| 9351 | /* confdefs.h. */ |
| 9352 | _ACEOF |
| 9353 | cat confdefs.h >>conftest.$ac_ext |
| 9354 | cat >>conftest.$ac_ext <<_ACEOF |
| 9355 | /* end confdefs.h. */ |
| 9356 | #include <stdio.h> |
| 9357 | int |
| 9358 | main () |
| 9359 | { |
| 9360 | |
| 9361 | #ifndef _snwprintf |
| 9362 | char *p = (char *) _snwprintf; |
| 9363 | #endif |
| 9364 | |
| 9365 | ; |
| 9366 | return 0; |
| 9367 | } |
| 9368 | _ACEOF |
| 9369 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9370 | if { (ac_try="$ac_compile" |
| 9371 | case "(($ac_try" in |
| 9372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9373 | *) ac_try_echo=$ac_try;; |
| 9374 | esac |
| 9375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9376 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9377 | ac_status=$? |
| 9378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9379 | rm -f conftest.er1 |
| 9380 | cat conftest.err >&5 |
| 9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9382 | (exit $ac_status); } && { |
| 9383 | test -z "$ac_c_werror_flag" || |
| 9384 | test ! -s conftest.err |
| 9385 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9386 | ac_cv_have_decl__snwprintf=yes |
| 9387 | else |
| 9388 | echo "$as_me: failed program was:" >&5 |
| 9389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9390 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9391 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9393 | |
| 9394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9396 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9397 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9398 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9399 | gt_value=1 |
| 9400 | else |
| 9401 | gt_value=0 |
| 9402 | fi |
| 9403 | |
| 9404 | cat >>confdefs.h <<_ACEOF |
| 9405 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9406 | _ACEOF |
| 9407 | |
| 9408 | |
| 9409 | |
| 9410 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9411 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9412 | 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] | 9413 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9415 | else |
| 9416 | cat >conftest.$ac_ext <<_ACEOF |
| 9417 | /* confdefs.h. */ |
| 9418 | _ACEOF |
| 9419 | cat confdefs.h >>conftest.$ac_ext |
| 9420 | cat >>conftest.$ac_ext <<_ACEOF |
| 9421 | /* end confdefs.h. */ |
| 9422 | #include <stdio.h> |
| 9423 | int |
| 9424 | main () |
| 9425 | { |
| 9426 | |
| 9427 | #ifndef feof_unlocked |
| 9428 | char *p = (char *) feof_unlocked; |
| 9429 | #endif |
| 9430 | |
| 9431 | ; |
| 9432 | return 0; |
| 9433 | } |
| 9434 | _ACEOF |
| 9435 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9436 | if { (ac_try="$ac_compile" |
| 9437 | case "(($ac_try" in |
| 9438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9439 | *) ac_try_echo=$ac_try;; |
| 9440 | esac |
| 9441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9442 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | ac_status=$? |
| 9444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9445 | rm -f conftest.er1 |
| 9446 | cat conftest.err >&5 |
| 9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9448 | (exit $ac_status); } && { |
| 9449 | test -z "$ac_c_werror_flag" || |
| 9450 | test ! -s conftest.err |
| 9451 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9452 | ac_cv_have_decl_feof_unlocked=yes |
| 9453 | else |
| 9454 | echo "$as_me: failed program was:" >&5 |
| 9455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9456 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9457 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9458 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9459 | |
| 9460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9461 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9462 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9463 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9464 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9465 | gt_value=1 |
| 9466 | else |
| 9467 | gt_value=0 |
| 9468 | fi |
| 9469 | |
| 9470 | cat >>confdefs.h <<_ACEOF |
| 9471 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9472 | _ACEOF |
| 9473 | |
| 9474 | |
| 9475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9476 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9477 | 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] | 9478 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9480 | else |
| 9481 | cat >conftest.$ac_ext <<_ACEOF |
| 9482 | /* confdefs.h. */ |
| 9483 | _ACEOF |
| 9484 | cat confdefs.h >>conftest.$ac_ext |
| 9485 | cat >>conftest.$ac_ext <<_ACEOF |
| 9486 | /* end confdefs.h. */ |
| 9487 | #include <stdio.h> |
| 9488 | int |
| 9489 | main () |
| 9490 | { |
| 9491 | |
| 9492 | #ifndef fgets_unlocked |
| 9493 | char *p = (char *) fgets_unlocked; |
| 9494 | #endif |
| 9495 | |
| 9496 | ; |
| 9497 | return 0; |
| 9498 | } |
| 9499 | _ACEOF |
| 9500 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9501 | if { (ac_try="$ac_compile" |
| 9502 | case "(($ac_try" in |
| 9503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9504 | *) ac_try_echo=$ac_try;; |
| 9505 | esac |
| 9506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9507 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9508 | ac_status=$? |
| 9509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9510 | rm -f conftest.er1 |
| 9511 | cat conftest.err >&5 |
| 9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9513 | (exit $ac_status); } && { |
| 9514 | test -z "$ac_c_werror_flag" || |
| 9515 | test ! -s conftest.err |
| 9516 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9517 | ac_cv_have_decl_fgets_unlocked=yes |
| 9518 | else |
| 9519 | echo "$as_me: failed program was:" >&5 |
| 9520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9521 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9522 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9523 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9524 | |
| 9525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9526 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9527 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9528 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9529 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9530 | gt_value=1 |
| 9531 | else |
| 9532 | gt_value=0 |
| 9533 | fi |
| 9534 | |
| 9535 | cat >>confdefs.h <<_ACEOF |
| 9536 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9537 | _ACEOF |
| 9538 | |
| 9539 | |
| 9540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9541 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9542 | 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] | 9543 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9545 | else |
| 9546 | cat >conftest.$ac_ext <<_ACEOF |
| 9547 | /* confdefs.h. */ |
| 9548 | _ACEOF |
| 9549 | cat confdefs.h >>conftest.$ac_ext |
| 9550 | cat >>conftest.$ac_ext <<_ACEOF |
| 9551 | /* end confdefs.h. */ |
| 9552 | #include <stdio.h> |
| 9553 | int |
| 9554 | main () |
| 9555 | { |
| 9556 | |
| 9557 | #ifndef getc_unlocked |
| 9558 | char *p = (char *) getc_unlocked; |
| 9559 | #endif |
| 9560 | |
| 9561 | ; |
| 9562 | return 0; |
| 9563 | } |
| 9564 | _ACEOF |
| 9565 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9566 | if { (ac_try="$ac_compile" |
| 9567 | case "(($ac_try" in |
| 9568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9569 | *) ac_try_echo=$ac_try;; |
| 9570 | esac |
| 9571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9572 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9573 | ac_status=$? |
| 9574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9575 | rm -f conftest.er1 |
| 9576 | cat conftest.err >&5 |
| 9577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9578 | (exit $ac_status); } && { |
| 9579 | test -z "$ac_c_werror_flag" || |
| 9580 | test ! -s conftest.err |
| 9581 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | ac_cv_have_decl_getc_unlocked=yes |
| 9583 | else |
| 9584 | echo "$as_me: failed program was:" >&5 |
| 9585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9586 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9587 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9589 | |
| 9590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9592 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9593 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9594 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9595 | gt_value=1 |
| 9596 | else |
| 9597 | gt_value=0 |
| 9598 | fi |
| 9599 | |
| 9600 | cat >>confdefs.h <<_ACEOF |
| 9601 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9602 | _ACEOF |
| 9603 | |
| 9604 | |
| 9605 | |
| 9606 | case $gt_cv_func_printf_posix in |
| 9607 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9608 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9609 | esac |
| 9610 | |
| 9611 | if test "$ac_cv_func_asprintf" = yes; then |
| 9612 | HAVE_ASPRINTF=1 |
| 9613 | else |
| 9614 | HAVE_ASPRINTF=0 |
| 9615 | fi |
| 9616 | |
| 9617 | if test "$ac_cv_func_snprintf" = yes; then |
| 9618 | HAVE_SNPRINTF=1 |
| 9619 | else |
| 9620 | HAVE_SNPRINTF=0 |
| 9621 | fi |
| 9622 | |
| 9623 | if test "$ac_cv_func_wprintf" = yes; then |
| 9624 | HAVE_WPRINTF=1 |
| 9625 | else |
| 9626 | HAVE_WPRINTF=0 |
| 9627 | fi |
| 9628 | |
| 9629 | |
| 9630 | |
| 9631 | |
| 9632 | |
| 9633 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9634 | |
| 9635 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9636 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9637 | for element in $INCICONV; do |
| 9638 | haveit= |
| 9639 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9640 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9641 | acl_save_prefix="$prefix" |
| 9642 | prefix="$acl_final_prefix" |
| 9643 | acl_save_exec_prefix="$exec_prefix" |
| 9644 | exec_prefix="$acl_final_exec_prefix" |
| 9645 | eval x=\"$x\" |
| 9646 | exec_prefix="$acl_save_exec_prefix" |
| 9647 | prefix="$acl_save_prefix" |
| 9648 | |
| 9649 | if test "X$x" = "X$element"; then |
| 9650 | haveit=yes |
| 9651 | break |
| 9652 | fi |
| 9653 | done |
| 9654 | if test -z "$haveit"; then |
| 9655 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9656 | fi |
| 9657 | done |
| 9658 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9660 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9661 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9662 | if test "${am_cv_func_iconv+set}" = set; then |
| 9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9664 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9665 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9666 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9667 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9668 | cat >conftest.$ac_ext <<_ACEOF |
| 9669 | /* confdefs.h. */ |
| 9670 | _ACEOF |
| 9671 | cat confdefs.h >>conftest.$ac_ext |
| 9672 | cat >>conftest.$ac_ext <<_ACEOF |
| 9673 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9674 | #include <stdlib.h> |
| 9675 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9676 | int |
| 9677 | main () |
| 9678 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9679 | iconv_t cd = iconv_open("",""); |
| 9680 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9681 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9682 | ; |
| 9683 | return 0; |
| 9684 | } |
| 9685 | _ACEOF |
| 9686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9687 | if { (ac_try="$ac_link" |
| 9688 | case "(($ac_try" in |
| 9689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9690 | *) ac_try_echo=$ac_try;; |
| 9691 | esac |
| 9692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9693 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | ac_status=$? |
| 9695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9696 | rm -f conftest.er1 |
| 9697 | cat conftest.err >&5 |
| 9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9699 | (exit $ac_status); } && { |
| 9700 | test -z "$ac_c_werror_flag" || |
| 9701 | test ! -s conftest.err |
| 9702 | } && test -s conftest$ac_exeext && |
| 9703 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9704 | am_cv_func_iconv=yes |
| 9705 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9706 | echo "$as_me: failed program was:" >&5 |
| 9707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9709 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9710 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9711 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9712 | 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] | 9713 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9714 | if test "$am_cv_func_iconv" != yes; then |
| 9715 | am_save_LIBS="$LIBS" |
| 9716 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9717 | cat >conftest.$ac_ext <<_ACEOF |
| 9718 | /* confdefs.h. */ |
| 9719 | _ACEOF |
| 9720 | cat confdefs.h >>conftest.$ac_ext |
| 9721 | cat >>conftest.$ac_ext <<_ACEOF |
| 9722 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9723 | #include <stdlib.h> |
| 9724 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9725 | int |
| 9726 | main () |
| 9727 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9728 | iconv_t cd = iconv_open("",""); |
| 9729 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9730 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9731 | ; |
| 9732 | return 0; |
| 9733 | } |
| 9734 | _ACEOF |
| 9735 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9736 | if { (ac_try="$ac_link" |
| 9737 | case "(($ac_try" in |
| 9738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9739 | *) ac_try_echo=$ac_try;; |
| 9740 | esac |
| 9741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9742 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9743 | ac_status=$? |
| 9744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9745 | rm -f conftest.er1 |
| 9746 | cat conftest.err >&5 |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9748 | (exit $ac_status); } && { |
| 9749 | test -z "$ac_c_werror_flag" || |
| 9750 | test ! -s conftest.err |
| 9751 | } && test -s conftest$ac_exeext && |
| 9752 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9753 | am_cv_lib_iconv=yes |
| 9754 | am_cv_func_iconv=yes |
| 9755 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9756 | echo "$as_me: failed program was:" >&5 |
| 9757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9759 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9760 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9761 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9762 | 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] | 9763 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9764 | LIBS="$am_save_LIBS" |
| 9765 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9767 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9768 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9769 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9770 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9771 | |
| 9772 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9773 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9774 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9775 | |
| 9776 | fi |
| 9777 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9778 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9779 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9780 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9781 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9782 | else |
| 9783 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9784 | LIBICONV= |
| 9785 | LTLIBICONV= |
| 9786 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9787 | |
| 9788 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9789 | |
| 9790 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9791 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9792 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9795 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9796 | |
| 9797 | cat >conftest.$ac_ext <<_ACEOF |
| 9798 | /* confdefs.h. */ |
| 9799 | _ACEOF |
| 9800 | cat confdefs.h >>conftest.$ac_ext |
| 9801 | cat >>conftest.$ac_ext <<_ACEOF |
| 9802 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9803 | |
| 9804 | #include <stdlib.h> |
| 9805 | #include <iconv.h> |
| 9806 | extern |
| 9807 | #ifdef __cplusplus |
| 9808 | "C" |
| 9809 | #endif |
| 9810 | #if defined(__STDC__) || defined(__cplusplus) |
| 9811 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9812 | #else |
| 9813 | size_t iconv(); |
| 9814 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9816 | int |
| 9817 | main () |
| 9818 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9819 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | ; |
| 9821 | return 0; |
| 9822 | } |
| 9823 | _ACEOF |
| 9824 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9825 | if { (ac_try="$ac_compile" |
| 9826 | case "(($ac_try" in |
| 9827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9828 | *) ac_try_echo=$ac_try;; |
| 9829 | esac |
| 9830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9831 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9832 | ac_status=$? |
| 9833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9834 | rm -f conftest.er1 |
| 9835 | cat conftest.err >&5 |
| 9836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9837 | (exit $ac_status); } && { |
| 9838 | test -z "$ac_c_werror_flag" || |
| 9839 | test ! -s conftest.err |
| 9840 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9841 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9842 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | echo "$as_me: failed program was:" >&5 |
| 9844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9846 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9848 | |
| 9849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9850 | 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] | 9851 | fi |
| 9852 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9853 | 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] | 9854 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | }$am_cv_proto_iconv" >&5 |
| 9856 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9857 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9858 | |
| 9859 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9860 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9861 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9862 | |
| 9863 | fi |
| 9864 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9866 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9867 | 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] | 9868 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9870 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9871 | cat >conftest.$ac_ext <<_ACEOF |
| 9872 | /* confdefs.h. */ |
| 9873 | _ACEOF |
| 9874 | cat confdefs.h >>conftest.$ac_ext |
| 9875 | cat >>conftest.$ac_ext <<_ACEOF |
| 9876 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9877 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9878 | int |
| 9879 | main () |
| 9880 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9881 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9882 | ; |
| 9883 | return 0; |
| 9884 | } |
| 9885 | _ACEOF |
| 9886 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9887 | if { (ac_try="$ac_link" |
| 9888 | case "(($ac_try" in |
| 9889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9890 | *) ac_try_echo=$ac_try;; |
| 9891 | esac |
| 9892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9893 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9894 | ac_status=$? |
| 9895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9896 | rm -f conftest.er1 |
| 9897 | cat conftest.err >&5 |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9899 | (exit $ac_status); } && { |
| 9900 | test -z "$ac_c_werror_flag" || |
| 9901 | test ! -s conftest.err |
| 9902 | } && test -s conftest$ac_exeext && |
| 9903 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9904 | am_cv_langinfo_codeset=yes |
| 9905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | echo "$as_me: failed program was:" >&5 |
| 9907 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9909 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9911 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9912 | 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] | 9913 | conftest$ac_exeext conftest.$ac_ext |
| 9914 | |
| 9915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9916 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9917 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9918 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9919 | |
| 9920 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9921 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9922 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9923 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9924 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9926 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9928 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9929 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9930 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9932 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9933 | cat >conftest.$ac_ext <<_ACEOF |
| 9934 | /* confdefs.h. */ |
| 9935 | _ACEOF |
| 9936 | cat confdefs.h >>conftest.$ac_ext |
| 9937 | cat >>conftest.$ac_ext <<_ACEOF |
| 9938 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9939 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9940 | int |
| 9941 | main () |
| 9942 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9943 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9944 | ; |
| 9945 | return 0; |
| 9946 | } |
| 9947 | _ACEOF |
| 9948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9949 | if { (ac_try="$ac_link" |
| 9950 | case "(($ac_try" in |
| 9951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9952 | *) ac_try_echo=$ac_try;; |
| 9953 | esac |
| 9954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9955 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9956 | ac_status=$? |
| 9957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9958 | rm -f conftest.er1 |
| 9959 | cat conftest.err >&5 |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9961 | (exit $ac_status); } && { |
| 9962 | test -z "$ac_c_werror_flag" || |
| 9963 | test ! -s conftest.err |
| 9964 | } && test -s conftest$ac_exeext && |
| 9965 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9966 | am_cv_val_LC_MESSAGES=yes |
| 9967 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9968 | echo "$as_me: failed program was:" >&5 |
| 9969 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9970 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9971 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9973 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9974 | 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] | 9975 | conftest$ac_exeext conftest.$ac_ext |
| 9976 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9977 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9978 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9979 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9980 | |
| 9981 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9982 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9983 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9984 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9985 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9986 | |
| 9987 | fi |
| 9988 | |
| 9989 | for ac_prog in bison |
| 9990 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | # 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] | 9992 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9995 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9997 | else |
| 9998 | if test -n "$INTLBISON"; then |
| 9999 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10002 | for as_dir in $PATH |
| 10003 | do |
| 10004 | IFS=$as_save_IFS |
| 10005 | test -z "$as_dir" && as_dir=. |
| 10006 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10007 | 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] | 10008 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10010 | break 2 |
| 10011 | fi |
| 10012 | done |
| 10013 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10014 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10015 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10016 | fi |
| 10017 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10018 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10019 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10020 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10021 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10022 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10023 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10024 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10025 | fi |
| 10026 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10028 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10029 | done |
| 10030 | |
| 10031 | if test -z "$INTLBISON"; then |
| 10032 | ac_verc_fail=yes |
| 10033 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10034 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10035 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10036 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10037 | case $ac_prog_version in |
| 10038 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10039 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10040 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10041 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10042 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10043 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10044 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10045 | fi |
| 10046 | if test $ac_verc_fail = yes; then |
| 10047 | INTLBISON=: |
| 10048 | fi |
| 10049 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10065 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10066 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10067 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10068 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10069 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10070 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10071 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10072 | fi |
| 10073 | |
| 10074 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10075 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10076 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10077 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10078 | |
| 10079 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10080 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10081 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10082 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10083 | LIBINTL= |
| 10084 | LTLIBINTL= |
| 10085 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10086 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10087 | if test "$USE_NLS" = "yes"; then |
| 10088 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10090 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10091 | 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] | 10092 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10093 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10094 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10095 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10096 | else |
| 10097 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10098 | fi |
| 10099 | |
| 10100 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10101 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10102 | |
| 10103 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10104 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10105 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10111 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10112 | 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] | 10113 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10115 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10116 | cat >conftest.$ac_ext <<_ACEOF |
| 10117 | /* confdefs.h. */ |
| 10118 | _ACEOF |
| 10119 | cat confdefs.h >>conftest.$ac_ext |
| 10120 | cat >>conftest.$ac_ext <<_ACEOF |
| 10121 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10122 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10123 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10124 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10125 | int |
| 10126 | main () |
| 10127 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10128 | bindtextdomain ("", ""); |
| 10129 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10130 | ; |
| 10131 | return 0; |
| 10132 | } |
| 10133 | _ACEOF |
| 10134 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10135 | if { (ac_try="$ac_link" |
| 10136 | case "(($ac_try" in |
| 10137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10138 | *) ac_try_echo=$ac_try;; |
| 10139 | esac |
| 10140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10141 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10142 | ac_status=$? |
| 10143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10144 | rm -f conftest.er1 |
| 10145 | cat conftest.err >&5 |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10147 | (exit $ac_status); } && { |
| 10148 | test -z "$ac_c_werror_flag" || |
| 10149 | test ! -s conftest.err |
| 10150 | } && test -s conftest$ac_exeext && |
| 10151 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10152 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10153 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10154 | echo "$as_me: failed program was:" >&5 |
| 10155 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10156 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10157 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10158 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10159 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10160 | 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] | 10161 | conftest$ac_exeext conftest.$ac_ext |
| 10162 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10163 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10164 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10165 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10166 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10167 | |
| 10168 | |
| 10169 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10170 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10171 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10172 | acl_save_prefix="$prefix" |
| 10173 | prefix="$acl_final_prefix" |
| 10174 | acl_save_exec_prefix="$exec_prefix" |
| 10175 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10176 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10177 | eval additional_includedir=\"$includedir\" |
| 10178 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10179 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10180 | exec_prefix="$acl_save_exec_prefix" |
| 10181 | prefix="$acl_save_prefix" |
| 10182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10183 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10184 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10185 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10186 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10187 | if test "X$withval" = "Xno"; then |
| 10188 | use_additional=no |
| 10189 | else |
| 10190 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10191 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10192 | acl_save_prefix="$prefix" |
| 10193 | prefix="$acl_final_prefix" |
| 10194 | acl_save_exec_prefix="$exec_prefix" |
| 10195 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10196 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10197 | eval additional_includedir=\"$includedir\" |
| 10198 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10199 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10200 | exec_prefix="$acl_save_exec_prefix" |
| 10201 | prefix="$acl_save_prefix" |
| 10202 | |
| 10203 | else |
| 10204 | additional_includedir="$withval/include" |
| 10205 | additional_libdir="$withval/lib" |
| 10206 | fi |
| 10207 | fi |
| 10208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10209 | fi |
| 10210 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10211 | LIBINTL= |
| 10212 | LTLIBINTL= |
| 10213 | INCINTL= |
| 10214 | rpathdirs= |
| 10215 | ltrpathdirs= |
| 10216 | names_already_handled= |
| 10217 | names_next_round='intl ' |
| 10218 | while test -n "$names_next_round"; do |
| 10219 | names_this_round="$names_next_round" |
| 10220 | names_next_round= |
| 10221 | for name in $names_this_round; do |
| 10222 | already_handled= |
| 10223 | for n in $names_already_handled; do |
| 10224 | if test "$n" = "$name"; then |
| 10225 | already_handled=yes |
| 10226 | break |
| 10227 | fi |
| 10228 | done |
| 10229 | if test -z "$already_handled"; then |
| 10230 | names_already_handled="$names_already_handled $name" |
| 10231 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10232 | eval value=\"\$HAVE_LIB$uppername\" |
| 10233 | if test -n "$value"; then |
| 10234 | if test "$value" = yes; then |
| 10235 | eval value=\"\$LIB$uppername\" |
| 10236 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10237 | eval value=\"\$LTLIB$uppername\" |
| 10238 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10239 | else |
| 10240 | : |
| 10241 | fi |
| 10242 | else |
| 10243 | found_dir= |
| 10244 | found_la= |
| 10245 | found_so= |
| 10246 | found_a= |
| 10247 | if test $use_additional = yes; then |
| 10248 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10249 | found_dir="$additional_libdir" |
| 10250 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10251 | if test -f "$additional_libdir/lib$name.la"; then |
| 10252 | found_la="$additional_libdir/lib$name.la" |
| 10253 | fi |
| 10254 | else |
| 10255 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10256 | found_dir="$additional_libdir" |
| 10257 | found_a="$additional_libdir/lib$name.$libext" |
| 10258 | if test -f "$additional_libdir/lib$name.la"; then |
| 10259 | found_la="$additional_libdir/lib$name.la" |
| 10260 | fi |
| 10261 | fi |
| 10262 | fi |
| 10263 | fi |
| 10264 | if test "X$found_dir" = "X"; then |
| 10265 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10266 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10267 | acl_save_prefix="$prefix" |
| 10268 | prefix="$acl_final_prefix" |
| 10269 | acl_save_exec_prefix="$exec_prefix" |
| 10270 | exec_prefix="$acl_final_exec_prefix" |
| 10271 | eval x=\"$x\" |
| 10272 | exec_prefix="$acl_save_exec_prefix" |
| 10273 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10274 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10275 | case "$x" in |
| 10276 | -L*) |
| 10277 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10278 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10279 | found_dir="$dir" |
| 10280 | found_so="$dir/lib$name.$shlibext" |
| 10281 | if test -f "$dir/lib$name.la"; then |
| 10282 | found_la="$dir/lib$name.la" |
| 10283 | fi |
| 10284 | else |
| 10285 | if test -f "$dir/lib$name.$libext"; then |
| 10286 | found_dir="$dir" |
| 10287 | found_a="$dir/lib$name.$libext" |
| 10288 | if test -f "$dir/lib$name.la"; then |
| 10289 | found_la="$dir/lib$name.la" |
| 10290 | fi |
| 10291 | fi |
| 10292 | fi |
| 10293 | ;; |
| 10294 | esac |
| 10295 | if test "X$found_dir" != "X"; then |
| 10296 | break |
| 10297 | fi |
| 10298 | done |
| 10299 | fi |
| 10300 | if test "X$found_dir" != "X"; then |
| 10301 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10302 | if test "X$found_so" != "X"; then |
| 10303 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10304 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10305 | else |
| 10306 | haveit= |
| 10307 | for x in $ltrpathdirs; do |
| 10308 | if test "X$x" = "X$found_dir"; then |
| 10309 | haveit=yes |
| 10310 | break |
| 10311 | fi |
| 10312 | done |
| 10313 | if test -z "$haveit"; then |
| 10314 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10315 | fi |
| 10316 | if test "$hardcode_direct" = yes; then |
| 10317 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10318 | else |
| 10319 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10320 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10321 | haveit= |
| 10322 | for x in $rpathdirs; do |
| 10323 | if test "X$x" = "X$found_dir"; then |
| 10324 | haveit=yes |
| 10325 | break |
| 10326 | fi |
| 10327 | done |
| 10328 | if test -z "$haveit"; then |
| 10329 | rpathdirs="$rpathdirs $found_dir" |
| 10330 | fi |
| 10331 | else |
| 10332 | haveit= |
| 10333 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10334 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10335 | acl_save_prefix="$prefix" |
| 10336 | prefix="$acl_final_prefix" |
| 10337 | acl_save_exec_prefix="$exec_prefix" |
| 10338 | exec_prefix="$acl_final_exec_prefix" |
| 10339 | eval x=\"$x\" |
| 10340 | exec_prefix="$acl_save_exec_prefix" |
| 10341 | prefix="$acl_save_prefix" |
| 10342 | |
| 10343 | if test "X$x" = "X-L$found_dir"; then |
| 10344 | haveit=yes |
| 10345 | break |
| 10346 | fi |
| 10347 | done |
| 10348 | if test -z "$haveit"; then |
| 10349 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10350 | fi |
| 10351 | if test "$hardcode_minus_L" != no; then |
| 10352 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10353 | else |
| 10354 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10355 | fi |
| 10356 | fi |
| 10357 | fi |
| 10358 | fi |
| 10359 | else |
| 10360 | if test "X$found_a" != "X"; then |
| 10361 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10362 | else |
| 10363 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10364 | fi |
| 10365 | fi |
| 10366 | additional_includedir= |
| 10367 | case "$found_dir" in |
| 10368 | */lib | */lib/) |
| 10369 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10370 | additional_includedir="$basedir/include" |
| 10371 | ;; |
| 10372 | esac |
| 10373 | if test "X$additional_includedir" != "X"; then |
| 10374 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10375 | haveit= |
| 10376 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10377 | if test -n "$GCC"; then |
| 10378 | case $host_os in |
| 10379 | linux*) haveit=yes;; |
| 10380 | esac |
| 10381 | fi |
| 10382 | fi |
| 10383 | if test -z "$haveit"; then |
| 10384 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10385 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10386 | acl_save_prefix="$prefix" |
| 10387 | prefix="$acl_final_prefix" |
| 10388 | acl_save_exec_prefix="$exec_prefix" |
| 10389 | exec_prefix="$acl_final_exec_prefix" |
| 10390 | eval x=\"$x\" |
| 10391 | exec_prefix="$acl_save_exec_prefix" |
| 10392 | prefix="$acl_save_prefix" |
| 10393 | |
| 10394 | if test "X$x" = "X-I$additional_includedir"; then |
| 10395 | haveit=yes |
| 10396 | break |
| 10397 | fi |
| 10398 | done |
| 10399 | if test -z "$haveit"; then |
| 10400 | if test -d "$additional_includedir"; then |
| 10401 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10402 | fi |
| 10403 | fi |
| 10404 | fi |
| 10405 | fi |
| 10406 | fi |
| 10407 | if test -n "$found_la"; then |
| 10408 | save_libdir="$libdir" |
| 10409 | case "$found_la" in |
| 10410 | */* | *\\*) . "$found_la" ;; |
| 10411 | *) . "./$found_la" ;; |
| 10412 | esac |
| 10413 | libdir="$save_libdir" |
| 10414 | for dep in $dependency_libs; do |
| 10415 | case "$dep" in |
| 10416 | -L*) |
| 10417 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10418 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10419 | haveit= |
| 10420 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10421 | if test -n "$GCC"; then |
| 10422 | case $host_os in |
| 10423 | linux*) haveit=yes;; |
| 10424 | esac |
| 10425 | fi |
| 10426 | fi |
| 10427 | if test -z "$haveit"; then |
| 10428 | haveit= |
| 10429 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10431 | acl_save_prefix="$prefix" |
| 10432 | prefix="$acl_final_prefix" |
| 10433 | acl_save_exec_prefix="$exec_prefix" |
| 10434 | exec_prefix="$acl_final_exec_prefix" |
| 10435 | eval x=\"$x\" |
| 10436 | exec_prefix="$acl_save_exec_prefix" |
| 10437 | prefix="$acl_save_prefix" |
| 10438 | |
| 10439 | if test "X$x" = "X-L$additional_libdir"; then |
| 10440 | haveit=yes |
| 10441 | break |
| 10442 | fi |
| 10443 | done |
| 10444 | if test -z "$haveit"; then |
| 10445 | if test -d "$additional_libdir"; then |
| 10446 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10447 | fi |
| 10448 | fi |
| 10449 | haveit= |
| 10450 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10451 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10452 | acl_save_prefix="$prefix" |
| 10453 | prefix="$acl_final_prefix" |
| 10454 | acl_save_exec_prefix="$exec_prefix" |
| 10455 | exec_prefix="$acl_final_exec_prefix" |
| 10456 | eval x=\"$x\" |
| 10457 | exec_prefix="$acl_save_exec_prefix" |
| 10458 | prefix="$acl_save_prefix" |
| 10459 | |
| 10460 | if test "X$x" = "X-L$additional_libdir"; then |
| 10461 | haveit=yes |
| 10462 | break |
| 10463 | fi |
| 10464 | done |
| 10465 | if test -z "$haveit"; then |
| 10466 | if test -d "$additional_libdir"; then |
| 10467 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10468 | fi |
| 10469 | fi |
| 10470 | fi |
| 10471 | fi |
| 10472 | ;; |
| 10473 | -R*) |
| 10474 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10475 | if test "$enable_rpath" != no; then |
| 10476 | haveit= |
| 10477 | for x in $rpathdirs; do |
| 10478 | if test "X$x" = "X$dir"; then |
| 10479 | haveit=yes |
| 10480 | break |
| 10481 | fi |
| 10482 | done |
| 10483 | if test -z "$haveit"; then |
| 10484 | rpathdirs="$rpathdirs $dir" |
| 10485 | fi |
| 10486 | haveit= |
| 10487 | for x in $ltrpathdirs; do |
| 10488 | if test "X$x" = "X$dir"; then |
| 10489 | haveit=yes |
| 10490 | break |
| 10491 | fi |
| 10492 | done |
| 10493 | if test -z "$haveit"; then |
| 10494 | ltrpathdirs="$ltrpathdirs $dir" |
| 10495 | fi |
| 10496 | fi |
| 10497 | ;; |
| 10498 | -l*) |
| 10499 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10500 | ;; |
| 10501 | *.la) |
| 10502 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10503 | ;; |
| 10504 | *) |
| 10505 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10506 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10507 | ;; |
| 10508 | esac |
| 10509 | done |
| 10510 | fi |
| 10511 | else |
| 10512 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10513 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10514 | fi |
| 10515 | fi |
| 10516 | fi |
| 10517 | done |
| 10518 | done |
| 10519 | if test "X$rpathdirs" != "X"; then |
| 10520 | if test -n "$hardcode_libdir_separator"; then |
| 10521 | alldirs= |
| 10522 | for found_dir in $rpathdirs; do |
| 10523 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10524 | done |
| 10525 | acl_save_libdir="$libdir" |
| 10526 | libdir="$alldirs" |
| 10527 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10528 | libdir="$acl_save_libdir" |
| 10529 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10530 | else |
| 10531 | for found_dir in $rpathdirs; do |
| 10532 | acl_save_libdir="$libdir" |
| 10533 | libdir="$found_dir" |
| 10534 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10535 | libdir="$acl_save_libdir" |
| 10536 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10537 | done |
| 10538 | fi |
| 10539 | fi |
| 10540 | if test "X$ltrpathdirs" != "X"; then |
| 10541 | for found_dir in $ltrpathdirs; do |
| 10542 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10543 | done |
| 10544 | fi |
| 10545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10546 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10547 | 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] | 10548 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10550 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10551 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10552 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10553 | gt_save_LIBS="$LIBS" |
| 10554 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10555 | cat >conftest.$ac_ext <<_ACEOF |
| 10556 | /* confdefs.h. */ |
| 10557 | _ACEOF |
| 10558 | cat confdefs.h >>conftest.$ac_ext |
| 10559 | cat >>conftest.$ac_ext <<_ACEOF |
| 10560 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10561 | #include <libintl.h> |
| 10562 | extern int _nl_msg_cat_cntr; |
| 10563 | extern |
| 10564 | #ifdef __cplusplus |
| 10565 | "C" |
| 10566 | #endif |
| 10567 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | int |
| 10569 | main () |
| 10570 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10571 | bindtextdomain ("", ""); |
| 10572 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10573 | ; |
| 10574 | return 0; |
| 10575 | } |
| 10576 | _ACEOF |
| 10577 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10578 | if { (ac_try="$ac_link" |
| 10579 | case "(($ac_try" in |
| 10580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10581 | *) ac_try_echo=$ac_try;; |
| 10582 | esac |
| 10583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10584 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10585 | ac_status=$? |
| 10586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10587 | rm -f conftest.er1 |
| 10588 | cat conftest.err >&5 |
| 10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10590 | (exit $ac_status); } && { |
| 10591 | test -z "$ac_c_werror_flag" || |
| 10592 | test ! -s conftest.err |
| 10593 | } && test -s conftest$ac_exeext && |
| 10594 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10595 | gt_cv_func_gnugettext1_libintl=yes |
| 10596 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10597 | echo "$as_me: failed program was:" >&5 |
| 10598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10599 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10600 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10601 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10602 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10603 | 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] | 10604 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10605 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10606 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10607 | cat >conftest.$ac_ext <<_ACEOF |
| 10608 | /* confdefs.h. */ |
| 10609 | _ACEOF |
| 10610 | cat confdefs.h >>conftest.$ac_ext |
| 10611 | cat >>conftest.$ac_ext <<_ACEOF |
| 10612 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10613 | #include <libintl.h> |
| 10614 | extern int _nl_msg_cat_cntr; |
| 10615 | extern |
| 10616 | #ifdef __cplusplus |
| 10617 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10618 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10619 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10620 | int |
| 10621 | main () |
| 10622 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10623 | bindtextdomain ("", ""); |
| 10624 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10625 | ; |
| 10626 | return 0; |
| 10627 | } |
| 10628 | _ACEOF |
| 10629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10630 | if { (ac_try="$ac_link" |
| 10631 | case "(($ac_try" in |
| 10632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10633 | *) ac_try_echo=$ac_try;; |
| 10634 | esac |
| 10635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10636 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10637 | ac_status=$? |
| 10638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10639 | rm -f conftest.er1 |
| 10640 | cat conftest.err >&5 |
| 10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10642 | (exit $ac_status); } && { |
| 10643 | test -z "$ac_c_werror_flag" || |
| 10644 | test ! -s conftest.err |
| 10645 | } && test -s conftest$ac_exeext && |
| 10646 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10647 | LIBINTL="$LIBINTL $LIBICONV" |
| 10648 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10649 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10650 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10651 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10652 | echo "$as_me: failed program was:" >&5 |
| 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10655 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10656 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10657 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10658 | 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] | 10659 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10660 | fi |
| 10661 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10662 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10664 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10665 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10666 | fi |
| 10667 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10668 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10669 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10670 | && test "$PACKAGE" != gettext-runtime \ |
| 10671 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10672 | gt_use_preinstalled_gnugettext=yes |
| 10673 | else |
| 10674 | LIBINTL= |
| 10675 | LTLIBINTL= |
| 10676 | INCINTL= |
| 10677 | fi |
| 10678 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10679 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10680 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10681 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10682 | fi |
| 10683 | fi |
| 10684 | |
| 10685 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10686 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10687 | USE_INCLUDED_LIBINTL=yes |
| 10688 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10689 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10690 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10691 | fi |
| 10692 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10693 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10694 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10695 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10696 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10697 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10698 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10699 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10700 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10701 | |
| 10702 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10703 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10704 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10705 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10706 | else |
| 10707 | USE_NLS=no |
| 10708 | fi |
| 10709 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10710 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10711 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10712 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10713 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10714 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10715 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10716 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10717 | 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] | 10718 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10719 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10720 | gt_source="external libintl" |
| 10721 | else |
| 10722 | gt_source="libc" |
| 10723 | fi |
| 10724 | else |
| 10725 | gt_source="included intl directory" |
| 10726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10727 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10728 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10729 | fi |
| 10730 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10731 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10732 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10733 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10734 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10735 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10736 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10737 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10738 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10739 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10740 | for element in $INCINTL; do |
| 10741 | haveit= |
| 10742 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10744 | acl_save_prefix="$prefix" |
| 10745 | prefix="$acl_final_prefix" |
| 10746 | acl_save_exec_prefix="$exec_prefix" |
| 10747 | exec_prefix="$acl_final_exec_prefix" |
| 10748 | eval x=\"$x\" |
| 10749 | exec_prefix="$acl_save_exec_prefix" |
| 10750 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10751 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10752 | if test "X$x" = "X$element"; then |
| 10753 | haveit=yes |
| 10754 | break |
| 10755 | fi |
| 10756 | done |
| 10757 | if test -z "$haveit"; then |
| 10758 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10759 | fi |
| 10760 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10761 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10762 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10763 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10764 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10765 | cat >>confdefs.h <<\_ACEOF |
| 10766 | #define HAVE_GETTEXT 1 |
| 10767 | _ACEOF |
| 10768 | |
| 10769 | |
| 10770 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10771 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10772 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10773 | |
| 10774 | fi |
| 10775 | |
| 10776 | POSUB=po |
| 10777 | fi |
| 10778 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10779 | |
| 10780 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10781 | BUILD_INCLUDED_LIBINTL=yes |
| 10782 | fi |
| 10783 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10784 | |
| 10785 | |
| 10786 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10787 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10788 | nls_cv_header_intl= |
| 10789 | nls_cv_header_libgt= |
| 10790 | |
| 10791 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10792 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10793 | |
| 10794 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10796 | |
| 10797 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10798 | |
| 10799 | |
| 10800 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10801 | INTLOBJS="\$(GETTOBJS)" |
| 10802 | fi |
| 10803 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10804 | |
| 10805 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10806 | |
| 10807 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10808 | |
| 10809 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10810 | |
| 10811 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10817 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10818 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10819 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10820 | 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] | 10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10822 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10823 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10824 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10825 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10826 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10827 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10828 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10829 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10830 | *@@@%%%=?*=@@@%%%*) |
| 10831 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10832 | *) |
| 10833 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10834 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10835 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10836 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10837 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10838 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10839 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10840 | SET_MAKE= |
| 10841 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10843 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10844 | SET_MAKE="MAKE=${MAKE-make}" |
| 10845 | fi |
| 10846 | |
| 10847 | # Extract the first word of "ln", so it can be a program name with args. |
| 10848 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10851 | if test "${ac_cv_path_LN+set}" = set; then |
| 10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10853 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10854 | case $LN in |
| 10855 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10856 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10857 | ;; |
| 10858 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10860 | for as_dir in $PATH |
| 10861 | do |
| 10862 | IFS=$as_save_IFS |
| 10863 | test -z "$as_dir" && as_dir=. |
| 10864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10866 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10868 | break 2 |
| 10869 | fi |
| 10870 | done |
| 10871 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10872 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10873 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10874 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10875 | ;; |
| 10876 | esac |
| 10877 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10878 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10879 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10880 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10881 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10882 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10884 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10885 | fi |
| 10886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10887 | |
| 10888 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10889 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10890 | LN_S=$as_ln_s |
| 10891 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10892 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10893 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10894 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10895 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10896 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10897 | fi |
| 10898 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10899 | # Extract the first word of "mv", so it can be a program name with args. |
| 10900 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10903 | if test "${ac_cv_path_MV+set}" = set; then |
| 10904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10906 | case $MV in |
| 10907 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10908 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10909 | ;; |
| 10910 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10912 | for as_dir in $PATH |
| 10913 | do |
| 10914 | IFS=$as_save_IFS |
| 10915 | test -z "$as_dir" && as_dir=. |
| 10916 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10917 | 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] | 10918 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10920 | break 2 |
| 10921 | fi |
| 10922 | done |
| 10923 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10924 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10925 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10926 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10927 | ;; |
| 10928 | esac |
| 10929 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10930 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10931 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10932 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10933 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10934 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10936 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10937 | fi |
| 10938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10939 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10940 | # Extract the first word of "cp", so it can be a program name with args. |
| 10941 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10944 | if test "${ac_cv_path_CP+set}" = set; then |
| 10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10947 | case $CP in |
| 10948 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10949 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10950 | ;; |
| 10951 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10953 | for as_dir in $PATH |
| 10954 | do |
| 10955 | IFS=$as_save_IFS |
| 10956 | test -z "$as_dir" && as_dir=. |
| 10957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10958 | 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] | 10959 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10961 | break 2 |
| 10962 | fi |
| 10963 | done |
| 10964 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10965 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10966 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10967 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10968 | ;; |
| 10969 | esac |
| 10970 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10971 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10972 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10973 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10974 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10975 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10977 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10978 | fi |
| 10979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10980 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10981 | # Extract the first word of "rm", so it can be a program name with args. |
| 10982 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10985 | if test "${ac_cv_path_RM+set}" = set; then |
| 10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10987 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10988 | case $RM in |
| 10989 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10990 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10991 | ;; |
| 10992 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10994 | for as_dir in $PATH |
| 10995 | do |
| 10996 | IFS=$as_save_IFS |
| 10997 | test -z "$as_dir" && as_dir=. |
| 10998 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10999 | 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] | 11000 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11002 | break 2 |
| 11003 | fi |
| 11004 | done |
| 11005 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11006 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11007 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11008 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11009 | ;; |
| 11010 | esac |
| 11011 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11012 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11013 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11014 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11015 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11016 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11018 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11019 | fi |
| 11020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11021 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11022 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11023 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11024 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11026 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11028 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11029 | case $CHMOD in |
| 11030 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11031 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11032 | ;; |
| 11033 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11035 | for as_dir in $PATH |
| 11036 | do |
| 11037 | IFS=$as_save_IFS |
| 11038 | test -z "$as_dir" && as_dir=. |
| 11039 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11040 | 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] | 11041 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11043 | break 2 |
| 11044 | fi |
| 11045 | done |
| 11046 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11047 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11048 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11049 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11050 | ;; |
| 11051 | esac |
| 11052 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11053 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11054 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11055 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11056 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11057 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11058 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11059 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11060 | fi |
| 11061 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11062 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11063 | for ac_prog in gawk mawk nawk awk |
| 11064 | do |
| 11065 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11066 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11067 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11069 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11071 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11072 | if test -n "$AWK"; then |
| 11073 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11074 | else |
| 11075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11076 | for as_dir in $PATH |
| 11077 | do |
| 11078 | IFS=$as_save_IFS |
| 11079 | test -z "$as_dir" && as_dir=. |
| 11080 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11081 | 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] | 11082 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11084 | break 2 |
| 11085 | fi |
| 11086 | done |
| 11087 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11088 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11089 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11090 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11091 | fi |
| 11092 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11093 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11094 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11095 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11096 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11097 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11098 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11099 | fi |
| 11100 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11101 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11102 | test -n "$AWK" && break |
| 11103 | done |
| 11104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11105 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11106 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11107 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11109 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11110 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11111 | then ac_cv_path_EGREP="$GREP -E" |
| 11112 | else |
| 11113 | # Extract the first word of "egrep" to use in msg output |
| 11114 | if test -z "$EGREP"; then |
| 11115 | set dummy egrep; ac_prog_name=$2 |
| 11116 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11118 | else |
| 11119 | ac_path_EGREP_found=false |
| 11120 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11122 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11123 | do |
| 11124 | IFS=$as_save_IFS |
| 11125 | test -z "$as_dir" && as_dir=. |
| 11126 | for ac_prog in egrep; do |
| 11127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11128 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11129 | { 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] | 11130 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11131 | # Check for GNU $ac_path_EGREP |
| 11132 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11133 | *GNU*) |
| 11134 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11135 | *) |
| 11136 | ac_count=0 |
| 11137 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11138 | while : |
| 11139 | do |
| 11140 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11141 | mv "conftest.tmp" "conftest.in" |
| 11142 | cp "conftest.in" "conftest.nl" |
| 11143 | echo 'EGREP' >> "conftest.nl" |
| 11144 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11145 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11146 | ac_count=`expr $ac_count + 1` |
| 11147 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11148 | # Best one so far, save it but keep looking for a better one |
| 11149 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11150 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11151 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11152 | # 10*(2^10) chars as input seems more than enough |
| 11153 | test $ac_count -gt 10 && break |
| 11154 | done |
| 11155 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11156 | esac |
| 11157 | |
| 11158 | |
| 11159 | $ac_path_EGREP_found && break 3 |
| 11160 | done |
| 11161 | done |
| 11162 | |
| 11163 | done |
| 11164 | IFS=$as_save_IFS |
| 11165 | |
| 11166 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11167 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11168 | |
| 11169 | EGREP="$ac_cv_path_EGREP" |
| 11170 | if test -z "$EGREP"; then |
| 11171 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11172 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11173 | { (exit 1); exit 1; }; } |
| 11174 | fi |
| 11175 | |
| 11176 | else |
| 11177 | ac_cv_path_EGREP=$EGREP |
| 11178 | fi |
| 11179 | |
| 11180 | |
| 11181 | fi |
| 11182 | fi |
| 11183 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11184 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11185 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11186 | |
| 11187 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11188 | # Extract the first word of "sed", so it can be a program name with args. |
| 11189 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11190 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11192 | if test "${ac_cv_path_SED+set}" = set; then |
| 11193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11194 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11195 | case $SED in |
| 11196 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11197 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11198 | ;; |
| 11199 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11201 | for as_dir in $PATH |
| 11202 | do |
| 11203 | IFS=$as_save_IFS |
| 11204 | test -z "$as_dir" && as_dir=. |
| 11205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11206 | 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] | 11207 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11209 | break 2 |
| 11210 | fi |
| 11211 | done |
| 11212 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11213 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11214 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11215 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11216 | ;; |
| 11217 | esac |
| 11218 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11219 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11220 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11221 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11222 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11223 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11224 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11225 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11226 | fi |
| 11227 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11228 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11229 | # Extract the first word of "perl", so it can be a program name with args. |
| 11230 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11233 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11236 | case $PERL in |
| 11237 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11238 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11239 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11240 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11242 | for as_dir in $PATH |
| 11243 | do |
| 11244 | IFS=$as_save_IFS |
| 11245 | test -z "$as_dir" && as_dir=. |
| 11246 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11247 | 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] | 11248 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11250 | break 2 |
| 11251 | fi |
| 11252 | done |
| 11253 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11254 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11255 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11256 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11257 | ;; |
| 11258 | esac |
| 11259 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11260 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11261 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11262 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11263 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11264 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11266 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11267 | fi |
| 11268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11269 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11270 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11271 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11274 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11276 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | case $LDCONFIG in |
| 11278 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11279 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11280 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11281 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11283 | for as_dir in $PATH |
| 11284 | do |
| 11285 | IFS=$as_save_IFS |
| 11286 | test -z "$as_dir" && as_dir=. |
| 11287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11288 | 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] | 11289 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11291 | break 2 |
| 11292 | fi |
| 11293 | done |
| 11294 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11295 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11296 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11297 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11298 | ;; |
| 11299 | esac |
| 11300 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11301 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11302 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11303 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11304 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11305 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11307 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11308 | fi |
| 11309 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11310 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11311 | if test -n "$ac_tool_prefix"; then |
| 11312 | # 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] | 11313 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11316 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11318 | else |
| 11319 | if test -n "$AR"; then |
| 11320 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11321 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11323 | for as_dir in $PATH |
| 11324 | do |
| 11325 | IFS=$as_save_IFS |
| 11326 | test -z "$as_dir" && as_dir=. |
| 11327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11328 | 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] | 11329 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11331 | break 2 |
| 11332 | fi |
| 11333 | done |
| 11334 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11335 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11336 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11337 | fi |
| 11338 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11339 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11340 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11341 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11342 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11343 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11344 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11345 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11346 | fi |
| 11347 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11348 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11349 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11350 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11351 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11352 | # Extract the first word of "ar", so it can be a program name with args. |
| 11353 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11354 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11356 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | if test -n "$ac_ct_AR"; then |
| 11360 | 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] | 11361 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11363 | for as_dir in $PATH |
| 11364 | do |
| 11365 | IFS=$as_save_IFS |
| 11366 | test -z "$as_dir" && as_dir=. |
| 11367 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11368 | 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] | 11369 | ac_cv_prog_ac_ct_AR="ar" |
| 11370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11371 | break 2 |
| 11372 | fi |
| 11373 | done |
| 11374 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11375 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11377 | fi |
| 11378 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11379 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11380 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11381 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11382 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11383 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11384 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11385 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11386 | fi |
| 11387 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11388 | if test "x$ac_ct_AR" = x; then |
| 11389 | AR="ar" |
| 11390 | else |
| 11391 | case $cross_compiling:$ac_tool_warned in |
| 11392 | yes:) |
| 11393 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11394 | whose name does not start with the host triplet. If you think this |
| 11395 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11396 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11397 | whose name does not start with the host triplet. If you think this |
| 11398 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11399 | ac_tool_warned=yes ;; |
| 11400 | esac |
| 11401 | AR=$ac_ct_AR |
| 11402 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11403 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11405 | fi |
| 11406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11407 | if test -n "$ac_tool_prefix"; then |
| 11408 | # 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] | 11409 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11412 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11414 | else |
| 11415 | if test -n "$RANLIB"; then |
| 11416 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11417 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11419 | for as_dir in $PATH |
| 11420 | do |
| 11421 | IFS=$as_save_IFS |
| 11422 | test -z "$as_dir" && as_dir=. |
| 11423 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11424 | 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] | 11425 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11427 | break 2 |
| 11428 | fi |
| 11429 | done |
| 11430 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11431 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11432 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11433 | fi |
| 11434 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11435 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11436 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11437 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11438 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11439 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11440 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11441 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11442 | fi |
| 11443 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11444 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11445 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11446 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11447 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11448 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11449 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11450 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11452 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11454 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | if test -n "$ac_ct_RANLIB"; then |
| 11456 | 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] | 11457 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11459 | for as_dir in $PATH |
| 11460 | do |
| 11461 | IFS=$as_save_IFS |
| 11462 | test -z "$as_dir" && as_dir=. |
| 11463 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11464 | 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] | 11465 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11467 | break 2 |
| 11468 | fi |
| 11469 | done |
| 11470 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11471 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11472 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11473 | fi |
| 11474 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11475 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11476 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11477 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11478 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11479 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11480 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11481 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11482 | fi |
| 11483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11484 | if test "x$ac_ct_RANLIB" = x; then |
| 11485 | RANLIB=":" |
| 11486 | else |
| 11487 | case $cross_compiling:$ac_tool_warned in |
| 11488 | yes:) |
| 11489 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11490 | whose name does not start with the host triplet. If you think this |
| 11491 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11492 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11493 | whose name does not start with the host triplet. If you think this |
| 11494 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11495 | ac_tool_warned=yes ;; |
| 11496 | esac |
| 11497 | RANLIB=$ac_ct_RANLIB |
| 11498 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11499 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11500 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11501 | fi |
| 11502 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11503 | if test -n "$ac_tool_prefix"; then |
| 11504 | # 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] | 11505 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11506 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | else |
| 11511 | if test -n "$STRIP"; then |
| 11512 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11513 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11515 | for as_dir in $PATH |
| 11516 | do |
| 11517 | IFS=$as_save_IFS |
| 11518 | test -z "$as_dir" && as_dir=. |
| 11519 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11520 | 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] | 11521 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11523 | break 2 |
| 11524 | fi |
| 11525 | done |
| 11526 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11527 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11528 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11529 | fi |
| 11530 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11531 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11532 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11533 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11534 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11535 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11536 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11537 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11538 | fi |
| 11539 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11540 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11541 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11542 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11543 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11544 | # Extract the first word of "strip", so it can be a program name with args. |
| 11545 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11546 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11548 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11551 | if test -n "$ac_ct_STRIP"; then |
| 11552 | 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] | 11553 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11555 | for as_dir in $PATH |
| 11556 | do |
| 11557 | IFS=$as_save_IFS |
| 11558 | test -z "$as_dir" && as_dir=. |
| 11559 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11560 | 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] | 11561 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11563 | break 2 |
| 11564 | fi |
| 11565 | done |
| 11566 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11567 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11568 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11569 | fi |
| 11570 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11571 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11572 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11573 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11574 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11575 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11576 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11577 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11578 | fi |
| 11579 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11580 | if test "x$ac_ct_STRIP" = x; then |
| 11581 | STRIP=":" |
| 11582 | else |
| 11583 | case $cross_compiling:$ac_tool_warned in |
| 11584 | yes:) |
| 11585 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11586 | whose name does not start with the host triplet. If you think this |
| 11587 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11588 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11589 | whose name does not start with the host triplet. If you think this |
| 11590 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11591 | ac_tool_warned=yes ;; |
| 11592 | esac |
| 11593 | STRIP=$ac_ct_STRIP |
| 11594 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11595 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11597 | fi |
| 11598 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11599 | # Find a good install program. We prefer a C program (faster), |
| 11600 | # so one script is as good as another. But avoid the broken or |
| 11601 | # incompatible versions: |
| 11602 | # SysV /etc/install, /usr/sbin/install |
| 11603 | # SunOS /usr/etc/install |
| 11604 | # IRIX /sbin/install |
| 11605 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11606 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11607 | # 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] | 11608 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11609 | # 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] | 11610 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11611 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11612 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11613 | 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] | 11614 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11615 | if test "${ac_cv_path_install+set}" = set; then |
| 11616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11617 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11619 | for as_dir in $PATH |
| 11620 | do |
| 11621 | IFS=$as_save_IFS |
| 11622 | test -z "$as_dir" && as_dir=. |
| 11623 | # Account for people who put trailing slashes in PATH elements. |
| 11624 | case $as_dir/ in |
| 11625 | ./ | .// | /cC/* | \ |
| 11626 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11627 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11628 | /usr/ucb/* ) ;; |
| 11629 | *) |
| 11630 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11631 | # Don't use installbsd from OSF since it installs stuff as root |
| 11632 | # by default. |
| 11633 | for ac_prog in ginstall scoinst install; do |
| 11634 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11635 | 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] | 11636 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11637 | 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] | 11638 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11639 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11640 | elif test $ac_prog = install && |
| 11641 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11642 | # program-specific install script used by HP pwplus--don't use. |
| 11643 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11644 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11645 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11646 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11647 | fi |
| 11648 | fi |
| 11649 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11650 | done |
| 11651 | ;; |
| 11652 | esac |
| 11653 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11654 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11655 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11656 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11657 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11658 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11659 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11660 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11661 | # As a last resort, use the slow shell script. Don't cache a |
| 11662 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11663 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11664 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11665 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11666 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11668 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11669 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11670 | |
| 11671 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11672 | # It thinks the first close brace ends the variable substitution. |
| 11673 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11674 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11675 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11676 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11677 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11678 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11679 | # See if we need a separate native compiler. |
| 11680 | if test $cross_compiling = no; then |
| 11681 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11682 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11683 | else |
| 11684 | for ac_prog in gcc cc |
| 11685 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11686 | # 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] | 11687 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11690 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11692 | else |
| 11693 | if test -n "$BUILD_CC"; then |
| 11694 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11695 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11697 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11698 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11699 | IFS=$as_save_IFS |
| 11700 | test -z "$as_dir" && as_dir=. |
| 11701 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11702 | 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] | 11703 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11704 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11705 | break 2 |
| 11706 | fi |
| 11707 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11708 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11709 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11711 | fi |
| 11712 | fi |
| 11713 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11714 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11715 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11716 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11717 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11718 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11719 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11720 | fi |
| 11721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11722 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11723 | test -n "$BUILD_CC" && break |
| 11724 | done |
| 11725 | |
| 11726 | fi |
| 11727 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 11728 | |
| 11729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
| 11748 | |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
| 11756 | |
| 11757 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11758 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11759 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 11760 | |
| 11761 | |
| 11762 | 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] | 11763 | do |
| 11764 | 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] | 11765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11766 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11768 | 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] | 11769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11770 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11771 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11772 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11773 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11774 | else |
| 11775 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11776 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11777 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11778 | cat >conftest.$ac_ext <<_ACEOF |
| 11779 | /* confdefs.h. */ |
| 11780 | _ACEOF |
| 11781 | cat confdefs.h >>conftest.$ac_ext |
| 11782 | cat >>conftest.$ac_ext <<_ACEOF |
| 11783 | /* end confdefs.h. */ |
| 11784 | $ac_includes_default |
| 11785 | #include <$ac_header> |
| 11786 | _ACEOF |
| 11787 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11788 | if { (ac_try="$ac_compile" |
| 11789 | case "(($ac_try" in |
| 11790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11791 | *) ac_try_echo=$ac_try;; |
| 11792 | esac |
| 11793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11794 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11795 | ac_status=$? |
| 11796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11797 | rm -f conftest.er1 |
| 11798 | cat conftest.err >&5 |
| 11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11800 | (exit $ac_status); } && { |
| 11801 | test -z "$ac_c_werror_flag" || |
| 11802 | test ! -s conftest.err |
| 11803 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11804 | ac_header_compiler=yes |
| 11805 | else |
| 11806 | echo "$as_me: failed program was:" >&5 |
| 11807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11808 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11809 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11810 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11811 | |
| 11812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11813 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11814 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11815 | |
| 11816 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11817 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11819 | cat >conftest.$ac_ext <<_ACEOF |
| 11820 | /* confdefs.h. */ |
| 11821 | _ACEOF |
| 11822 | cat confdefs.h >>conftest.$ac_ext |
| 11823 | cat >>conftest.$ac_ext <<_ACEOF |
| 11824 | /* end confdefs.h. */ |
| 11825 | #include <$ac_header> |
| 11826 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11827 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11828 | case "(($ac_try" in |
| 11829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11830 | *) ac_try_echo=$ac_try;; |
| 11831 | esac |
| 11832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11833 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11834 | ac_status=$? |
| 11835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11836 | rm -f conftest.er1 |
| 11837 | cat conftest.err >&5 |
| 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11839 | (exit $ac_status); } >/dev/null && { |
| 11840 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11841 | test ! -s conftest.err |
| 11842 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11843 | ac_header_preproc=yes |
| 11844 | else |
| 11845 | echo "$as_me: failed program was:" >&5 |
| 11846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11847 | |
| 11848 | ac_header_preproc=no |
| 11849 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11850 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11851 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11852 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11853 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11854 | |
| 11855 | # So? What about this header? |
| 11856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11857 | yes:no: ) |
| 11858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11862 | ac_header_preproc=yes |
| 11863 | ;; |
| 11864 | no:yes:* ) |
| 11865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11876 | 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] | 11877 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11878 | ;; |
| 11879 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11882 | 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] | 11883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11884 | else |
| 11885 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11886 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11887 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11888 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11889 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11890 | |
| 11891 | fi |
| 11892 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11893 | cat >>confdefs.h <<_ACEOF |
| 11894 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11895 | _ACEOF |
| 11896 | |
| 11897 | fi |
| 11898 | |
| 11899 | done |
| 11900 | |
| 11901 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11902 | |
| 11903 | for ac_header in sys/disk.h sys/mount.h |
| 11904 | do |
| 11905 | 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] | 11906 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11908 | 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] | 11909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11910 | else |
| 11911 | cat >conftest.$ac_ext <<_ACEOF |
| 11912 | /* confdefs.h. */ |
| 11913 | _ACEOF |
| 11914 | cat confdefs.h >>conftest.$ac_ext |
| 11915 | cat >>conftest.$ac_ext <<_ACEOF |
| 11916 | /* end confdefs.h. */ |
| 11917 | |
| 11918 | #if HAVE_SYS_QUEUE_H |
| 11919 | #include <sys/queue.h> |
| 11920 | #endif |
| 11921 | |
| 11922 | |
| 11923 | #include <$ac_header> |
| 11924 | _ACEOF |
| 11925 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11926 | if { (ac_try="$ac_compile" |
| 11927 | case "(($ac_try" in |
| 11928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11929 | *) ac_try_echo=$ac_try;; |
| 11930 | esac |
| 11931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11932 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11933 | ac_status=$? |
| 11934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11935 | rm -f conftest.er1 |
| 11936 | cat conftest.err >&5 |
| 11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11938 | (exit $ac_status); } && { |
| 11939 | test -z "$ac_c_werror_flag" || |
| 11940 | test ! -s conftest.err |
| 11941 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11942 | eval "$as_ac_Header=yes" |
| 11943 | else |
| 11944 | echo "$as_me: failed program was:" >&5 |
| 11945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11947 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11948 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11949 | |
| 11950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11951 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11952 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11954 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11956 | cat >>confdefs.h <<_ACEOF |
| 11957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11958 | _ACEOF |
| 11959 | |
| 11960 | fi |
| 11961 | |
| 11962 | done |
| 11963 | |
| 11964 | |
| 11965 | for ac_header in net/if.h |
| 11966 | do |
| 11967 | 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] | 11968 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11970 | 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] | 11971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11972 | else |
| 11973 | cat >conftest.$ac_ext <<_ACEOF |
| 11974 | /* confdefs.h. */ |
| 11975 | _ACEOF |
| 11976 | cat confdefs.h >>conftest.$ac_ext |
| 11977 | cat >>conftest.$ac_ext <<_ACEOF |
| 11978 | /* end confdefs.h. */ |
| 11979 | |
| 11980 | #if HAVE_SYS_TYPES_H |
| 11981 | #include <sys/types.h> |
| 11982 | #endif |
| 11983 | #if HAVE_SYS_SOCKET |
| 11984 | #include <sys/socket.h> |
| 11985 | #endif |
| 11986 | |
| 11987 | |
| 11988 | #include <$ac_header> |
| 11989 | _ACEOF |
| 11990 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11991 | if { (ac_try="$ac_compile" |
| 11992 | case "(($ac_try" in |
| 11993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11994 | *) ac_try_echo=$ac_try;; |
| 11995 | esac |
| 11996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11997 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11998 | ac_status=$? |
| 11999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12000 | rm -f conftest.er1 |
| 12001 | cat conftest.err >&5 |
| 12002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12003 | (exit $ac_status); } && { |
| 12004 | test -z "$ac_c_werror_flag" || |
| 12005 | test ! -s conftest.err |
| 12006 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12007 | eval "$as_ac_Header=yes" |
| 12008 | else |
| 12009 | echo "$as_me: failed program was:" >&5 |
| 12010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12012 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12013 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12014 | |
| 12015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12017 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12019 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12020 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12021 | cat >>confdefs.h <<_ACEOF |
| 12022 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12023 | _ACEOF |
| 12024 | |
| 12025 | fi |
| 12026 | |
| 12027 | done |
| 12028 | |
| 12029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12030 | for ac_func in vprintf |
| 12031 | do |
| 12032 | 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] | 12033 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12035 | 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] | 12036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12037 | else |
| 12038 | cat >conftest.$ac_ext <<_ACEOF |
| 12039 | /* confdefs.h. */ |
| 12040 | _ACEOF |
| 12041 | cat confdefs.h >>conftest.$ac_ext |
| 12042 | cat >>conftest.$ac_ext <<_ACEOF |
| 12043 | /* end confdefs.h. */ |
| 12044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12046 | #define $ac_func innocuous_$ac_func |
| 12047 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12048 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12049 | which can conflict with char $ac_func (); below. |
| 12050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12051 | <limits.h> exists even on freestanding compilers. */ |
| 12052 | |
| 12053 | #ifdef __STDC__ |
| 12054 | # include <limits.h> |
| 12055 | #else |
| 12056 | # include <assert.h> |
| 12057 | #endif |
| 12058 | |
| 12059 | #undef $ac_func |
| 12060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12061 | /* Override any GCC internal prototype to avoid an error. |
| 12062 | Use char because int might match the return type of a GCC |
| 12063 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | #ifdef __cplusplus |
| 12065 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12066 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12067 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12068 | /* The GNU C library defines this for functions which it implements |
| 12069 | to always fail with ENOSYS. Some functions are actually named |
| 12070 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12071 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12072 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12073 | #endif |
| 12074 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12075 | int |
| 12076 | main () |
| 12077 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12078 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12079 | ; |
| 12080 | return 0; |
| 12081 | } |
| 12082 | _ACEOF |
| 12083 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12084 | if { (ac_try="$ac_link" |
| 12085 | case "(($ac_try" in |
| 12086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12087 | *) ac_try_echo=$ac_try;; |
| 12088 | esac |
| 12089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12090 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12091 | ac_status=$? |
| 12092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12093 | rm -f conftest.er1 |
| 12094 | cat conftest.err >&5 |
| 12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12096 | (exit $ac_status); } && { |
| 12097 | test -z "$ac_c_werror_flag" || |
| 12098 | test ! -s conftest.err |
| 12099 | } && test -s conftest$ac_exeext && |
| 12100 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12101 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12103 | echo "$as_me: failed program was:" >&5 |
| 12104 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12106 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12108 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12109 | 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] | 12110 | conftest$ac_exeext conftest.$ac_ext |
| 12111 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12112 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12114 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12115 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12116 | cat >>confdefs.h <<_ACEOF |
| 12117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12118 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12120 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12121 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12122 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12124 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12125 | cat >conftest.$ac_ext <<_ACEOF |
| 12126 | /* confdefs.h. */ |
| 12127 | _ACEOF |
| 12128 | cat confdefs.h >>conftest.$ac_ext |
| 12129 | cat >>conftest.$ac_ext <<_ACEOF |
| 12130 | /* end confdefs.h. */ |
| 12131 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12133 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12134 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12135 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12136 | which can conflict with char _doprnt (); below. |
| 12137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12138 | <limits.h> exists even on freestanding compilers. */ |
| 12139 | |
| 12140 | #ifdef __STDC__ |
| 12141 | # include <limits.h> |
| 12142 | #else |
| 12143 | # include <assert.h> |
| 12144 | #endif |
| 12145 | |
| 12146 | #undef _doprnt |
| 12147 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12148 | /* Override any GCC internal prototype to avoid an error. |
| 12149 | Use char because int might match the return type of a GCC |
| 12150 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12151 | #ifdef __cplusplus |
| 12152 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12153 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12154 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12155 | /* The GNU C library defines this for functions which it implements |
| 12156 | to always fail with ENOSYS. Some functions are actually named |
| 12157 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12158 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12159 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12160 | #endif |
| 12161 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12162 | int |
| 12163 | main () |
| 12164 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12165 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12166 | ; |
| 12167 | return 0; |
| 12168 | } |
| 12169 | _ACEOF |
| 12170 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12171 | if { (ac_try="$ac_link" |
| 12172 | case "(($ac_try" in |
| 12173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12174 | *) ac_try_echo=$ac_try;; |
| 12175 | esac |
| 12176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12177 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12178 | ac_status=$? |
| 12179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12180 | rm -f conftest.er1 |
| 12181 | cat conftest.err >&5 |
| 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12183 | (exit $ac_status); } && { |
| 12184 | test -z "$ac_c_werror_flag" || |
| 12185 | test ! -s conftest.err |
| 12186 | } && test -s conftest$ac_exeext && |
| 12187 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12188 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | echo "$as_me: failed program was:" >&5 |
| 12191 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12193 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12195 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12196 | 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] | 12197 | conftest$ac_exeext conftest.$ac_ext |
| 12198 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12199 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12200 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12201 | if test $ac_cv_func__doprnt = yes; then |
| 12202 | |
| 12203 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12204 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12205 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12206 | |
| 12207 | fi |
| 12208 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12209 | fi |
| 12210 | done |
| 12211 | |
| 12212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12214 | 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] | 12215 | 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] | 12216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12218 | cat >conftest.$ac_ext <<_ACEOF |
| 12219 | /* confdefs.h. */ |
| 12220 | _ACEOF |
| 12221 | cat confdefs.h >>conftest.$ac_ext |
| 12222 | cat >>conftest.$ac_ext <<_ACEOF |
| 12223 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12224 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12225 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12226 | int |
| 12227 | main () |
| 12228 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12229 | static struct dirent ac_aggr; |
| 12230 | if (ac_aggr.d_reclen) |
| 12231 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | ; |
| 12233 | return 0; |
| 12234 | } |
| 12235 | _ACEOF |
| 12236 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12237 | if { (ac_try="$ac_compile" |
| 12238 | case "(($ac_try" in |
| 12239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12240 | *) ac_try_echo=$ac_try;; |
| 12241 | esac |
| 12242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12243 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12244 | ac_status=$? |
| 12245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12246 | rm -f conftest.er1 |
| 12247 | cat conftest.err >&5 |
| 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12249 | (exit $ac_status); } && { |
| 12250 | test -z "$ac_c_werror_flag" || |
| 12251 | test ! -s conftest.err |
| 12252 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12253 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12254 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12255 | echo "$as_me: failed program was:" >&5 |
| 12256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12257 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12258 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12259 | /* confdefs.h. */ |
| 12260 | _ACEOF |
| 12261 | cat confdefs.h >>conftest.$ac_ext |
| 12262 | cat >>conftest.$ac_ext <<_ACEOF |
| 12263 | /* end confdefs.h. */ |
| 12264 | #include <dirent.h> |
| 12265 | |
| 12266 | int |
| 12267 | main () |
| 12268 | { |
| 12269 | static struct dirent ac_aggr; |
| 12270 | if (sizeof ac_aggr.d_reclen) |
| 12271 | return 0; |
| 12272 | ; |
| 12273 | return 0; |
| 12274 | } |
| 12275 | _ACEOF |
| 12276 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12277 | if { (ac_try="$ac_compile" |
| 12278 | case "(($ac_try" in |
| 12279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12280 | *) ac_try_echo=$ac_try;; |
| 12281 | esac |
| 12282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12283 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12284 | ac_status=$? |
| 12285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12286 | rm -f conftest.er1 |
| 12287 | cat conftest.err >&5 |
| 12288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12289 | (exit $ac_status); } && { |
| 12290 | test -z "$ac_c_werror_flag" || |
| 12291 | test ! -s conftest.err |
| 12292 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12293 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12294 | else |
| 12295 | echo "$as_me: failed program was:" >&5 |
| 12296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12297 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12298 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12299 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12300 | |
| 12301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12303 | |
| 12304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12305 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12306 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12307 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12308 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12309 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12310 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12311 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12312 | |
| 12313 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12314 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12315 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12316 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12317 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12319 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | /* confdefs.h. */ |
| 12322 | _ACEOF |
| 12323 | cat confdefs.h >>conftest.$ac_ext |
| 12324 | cat >>conftest.$ac_ext <<_ACEOF |
| 12325 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12326 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12327 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12328 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12329 | int |
| 12330 | main () |
| 12331 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12332 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12333 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12334 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12335 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12336 | ; |
| 12337 | return 0; |
| 12338 | } |
| 12339 | _ACEOF |
| 12340 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12341 | if { (ac_try="$ac_compile" |
| 12342 | case "(($ac_try" in |
| 12343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12344 | *) ac_try_echo=$ac_try;; |
| 12345 | esac |
| 12346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12347 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12348 | ac_status=$? |
| 12349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12350 | rm -f conftest.er1 |
| 12351 | cat conftest.err >&5 |
| 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12353 | (exit $ac_status); } && { |
| 12354 | test -z "$ac_c_werror_flag" || |
| 12355 | test ! -s conftest.err |
| 12356 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12357 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12359 | echo "$as_me: failed program was:" >&5 |
| 12360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12362 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12363 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12364 | |
| 12365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12366 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12367 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12368 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12369 | if test $ac_cv_type_ssize_t = yes; then |
| 12370 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12371 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12372 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12373 | |
| 12374 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12376 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12377 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12378 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12380 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12381 | cat >conftest.$ac_ext <<_ACEOF |
| 12382 | /* confdefs.h. */ |
| 12383 | _ACEOF |
| 12384 | cat confdefs.h >>conftest.$ac_ext |
| 12385 | cat >>conftest.$ac_ext <<_ACEOF |
| 12386 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12387 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12388 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12389 | int |
| 12390 | main () |
| 12391 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12392 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12393 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12394 | #endif |
| 12395 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12396 | ; |
| 12397 | return 0; |
| 12398 | } |
| 12399 | _ACEOF |
| 12400 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12401 | if { (ac_try="$ac_compile" |
| 12402 | case "(($ac_try" in |
| 12403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12404 | *) ac_try_echo=$ac_try;; |
| 12405 | esac |
| 12406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12407 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12408 | ac_status=$? |
| 12409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12410 | rm -f conftest.er1 |
| 12411 | cat conftest.err >&5 |
| 12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12413 | (exit $ac_status); } && { |
| 12414 | test -z "$ac_c_werror_flag" || |
| 12415 | test ! -s conftest.err |
| 12416 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12417 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12418 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12419 | echo "$as_me: failed program was:" >&5 |
| 12420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12422 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12423 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12424 | |
| 12425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12427 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12428 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12429 | if test $ac_cv_have_decl_llseek = yes; then |
| 12430 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12431 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12432 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12433 | |
| 12434 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12436 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12437 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12438 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12440 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12441 | cat >conftest.$ac_ext <<_ACEOF |
| 12442 | /* confdefs.h. */ |
| 12443 | _ACEOF |
| 12444 | cat confdefs.h >>conftest.$ac_ext |
| 12445 | cat >>conftest.$ac_ext <<_ACEOF |
| 12446 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12447 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12448 | #define _LARGEFILE64_SOURCE |
| 12449 | #include <unistd.h> |
| 12450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12451 | int |
| 12452 | main () |
| 12453 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12454 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12455 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12456 | #endif |
| 12457 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12458 | ; |
| 12459 | return 0; |
| 12460 | } |
| 12461 | _ACEOF |
| 12462 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12463 | if { (ac_try="$ac_compile" |
| 12464 | case "(($ac_try" in |
| 12465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12466 | *) ac_try_echo=$ac_try;; |
| 12467 | esac |
| 12468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12469 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12470 | ac_status=$? |
| 12471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12472 | rm -f conftest.er1 |
| 12473 | cat conftest.err >&5 |
| 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12475 | (exit $ac_status); } && { |
| 12476 | test -z "$ac_c_werror_flag" || |
| 12477 | test ! -s conftest.err |
| 12478 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12479 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12480 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12481 | echo "$as_me: failed program was:" >&5 |
| 12482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12484 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12486 | |
| 12487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12489 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12490 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12491 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12492 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12493 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12494 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12495 | |
| 12496 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12497 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12498 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12499 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12500 | ac_cv_sizeof_short=2 |
| 12501 | ac_cv_sizeof_int=4 |
| 12502 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12503 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12504 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 12505 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12507 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12508 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12509 | if test "${ac_cv_type_short+set}" = set; then |
| 12510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12511 | else |
| 12512 | cat >conftest.$ac_ext <<_ACEOF |
| 12513 | /* confdefs.h. */ |
| 12514 | _ACEOF |
| 12515 | cat confdefs.h >>conftest.$ac_ext |
| 12516 | cat >>conftest.$ac_ext <<_ACEOF |
| 12517 | /* end confdefs.h. */ |
| 12518 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12519 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12520 | int |
| 12521 | main () |
| 12522 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12523 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12524 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12525 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12526 | return 0; |
| 12527 | ; |
| 12528 | return 0; |
| 12529 | } |
| 12530 | _ACEOF |
| 12531 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12532 | if { (ac_try="$ac_compile" |
| 12533 | case "(($ac_try" in |
| 12534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12535 | *) ac_try_echo=$ac_try;; |
| 12536 | esac |
| 12537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12538 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12539 | ac_status=$? |
| 12540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12541 | rm -f conftest.er1 |
| 12542 | cat conftest.err >&5 |
| 12543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12544 | (exit $ac_status); } && { |
| 12545 | test -z "$ac_c_werror_flag" || |
| 12546 | test ! -s conftest.err |
| 12547 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12548 | ac_cv_type_short=yes |
| 12549 | else |
| 12550 | echo "$as_me: failed program was:" >&5 |
| 12551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12553 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12554 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12557 | fi |
| 12558 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12559 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12560 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12561 | # The cast to long int works around a bug in the HP C Compiler |
| 12562 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12563 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12564 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12565 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12566 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12567 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12569 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12570 | if test "$cross_compiling" = yes; then |
| 12571 | # Depending upon the size, compute the lo and hi bounds. |
| 12572 | cat >conftest.$ac_ext <<_ACEOF |
| 12573 | /* confdefs.h. */ |
| 12574 | _ACEOF |
| 12575 | cat confdefs.h >>conftest.$ac_ext |
| 12576 | cat >>conftest.$ac_ext <<_ACEOF |
| 12577 | /* end confdefs.h. */ |
| 12578 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12579 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12580 | int |
| 12581 | main () |
| 12582 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12583 | 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] | 12584 | test_array [0] = 0 |
| 12585 | |
| 12586 | ; |
| 12587 | return 0; |
| 12588 | } |
| 12589 | _ACEOF |
| 12590 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12591 | if { (ac_try="$ac_compile" |
| 12592 | case "(($ac_try" in |
| 12593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12594 | *) ac_try_echo=$ac_try;; |
| 12595 | esac |
| 12596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12597 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12598 | ac_status=$? |
| 12599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12600 | rm -f conftest.er1 |
| 12601 | cat conftest.err >&5 |
| 12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12603 | (exit $ac_status); } && { |
| 12604 | test -z "$ac_c_werror_flag" || |
| 12605 | test ! -s conftest.err |
| 12606 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | ac_lo=0 ac_mid=0 |
| 12608 | while :; do |
| 12609 | cat >conftest.$ac_ext <<_ACEOF |
| 12610 | /* confdefs.h. */ |
| 12611 | _ACEOF |
| 12612 | cat confdefs.h >>conftest.$ac_ext |
| 12613 | cat >>conftest.$ac_ext <<_ACEOF |
| 12614 | /* end confdefs.h. */ |
| 12615 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12616 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12617 | int |
| 12618 | main () |
| 12619 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12620 | 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] | 12621 | test_array [0] = 0 |
| 12622 | |
| 12623 | ; |
| 12624 | return 0; |
| 12625 | } |
| 12626 | _ACEOF |
| 12627 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12628 | if { (ac_try="$ac_compile" |
| 12629 | case "(($ac_try" in |
| 12630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12631 | *) ac_try_echo=$ac_try;; |
| 12632 | esac |
| 12633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12634 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | ac_status=$? |
| 12636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12637 | rm -f conftest.er1 |
| 12638 | cat conftest.err >&5 |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12640 | (exit $ac_status); } && { |
| 12641 | test -z "$ac_c_werror_flag" || |
| 12642 | test ! -s conftest.err |
| 12643 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12644 | ac_hi=$ac_mid; break |
| 12645 | else |
| 12646 | echo "$as_me: failed program was:" >&5 |
| 12647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12649 | ac_lo=`expr $ac_mid + 1` |
| 12650 | if test $ac_lo -le $ac_mid; then |
| 12651 | ac_lo= ac_hi= |
| 12652 | break |
| 12653 | fi |
| 12654 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12655 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12656 | |
| 12657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12658 | done |
| 12659 | else |
| 12660 | echo "$as_me: failed program was:" >&5 |
| 12661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12662 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12663 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12664 | /* confdefs.h. */ |
| 12665 | _ACEOF |
| 12666 | cat confdefs.h >>conftest.$ac_ext |
| 12667 | cat >>conftest.$ac_ext <<_ACEOF |
| 12668 | /* end confdefs.h. */ |
| 12669 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12670 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12671 | int |
| 12672 | main () |
| 12673 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12674 | 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] | 12675 | test_array [0] = 0 |
| 12676 | |
| 12677 | ; |
| 12678 | return 0; |
| 12679 | } |
| 12680 | _ACEOF |
| 12681 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12682 | if { (ac_try="$ac_compile" |
| 12683 | case "(($ac_try" in |
| 12684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12685 | *) ac_try_echo=$ac_try;; |
| 12686 | esac |
| 12687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12688 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12689 | ac_status=$? |
| 12690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12691 | rm -f conftest.er1 |
| 12692 | cat conftest.err >&5 |
| 12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12694 | (exit $ac_status); } && { |
| 12695 | test -z "$ac_c_werror_flag" || |
| 12696 | test ! -s conftest.err |
| 12697 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12698 | ac_hi=-1 ac_mid=-1 |
| 12699 | while :; do |
| 12700 | cat >conftest.$ac_ext <<_ACEOF |
| 12701 | /* confdefs.h. */ |
| 12702 | _ACEOF |
| 12703 | cat confdefs.h >>conftest.$ac_ext |
| 12704 | cat >>conftest.$ac_ext <<_ACEOF |
| 12705 | /* end confdefs.h. */ |
| 12706 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12707 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12708 | int |
| 12709 | main () |
| 12710 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12711 | 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] | 12712 | test_array [0] = 0 |
| 12713 | |
| 12714 | ; |
| 12715 | return 0; |
| 12716 | } |
| 12717 | _ACEOF |
| 12718 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12719 | if { (ac_try="$ac_compile" |
| 12720 | case "(($ac_try" in |
| 12721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12722 | *) ac_try_echo=$ac_try;; |
| 12723 | esac |
| 12724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12725 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12726 | ac_status=$? |
| 12727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12728 | rm -f conftest.er1 |
| 12729 | cat conftest.err >&5 |
| 12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12731 | (exit $ac_status); } && { |
| 12732 | test -z "$ac_c_werror_flag" || |
| 12733 | test ! -s conftest.err |
| 12734 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12735 | ac_lo=$ac_mid; break |
| 12736 | else |
| 12737 | echo "$as_me: failed program was:" >&5 |
| 12738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12739 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12740 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12741 | if test $ac_mid -le $ac_hi; then |
| 12742 | ac_lo= ac_hi= |
| 12743 | break |
| 12744 | fi |
| 12745 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12746 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12747 | |
| 12748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12749 | done |
| 12750 | else |
| 12751 | echo "$as_me: failed program was:" >&5 |
| 12752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12753 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12754 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12755 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12756 | |
| 12757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12758 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12759 | |
| 12760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12761 | # Binary search between lo and hi bounds. |
| 12762 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12763 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12764 | cat >conftest.$ac_ext <<_ACEOF |
| 12765 | /* confdefs.h. */ |
| 12766 | _ACEOF |
| 12767 | cat confdefs.h >>conftest.$ac_ext |
| 12768 | cat >>conftest.$ac_ext <<_ACEOF |
| 12769 | /* end confdefs.h. */ |
| 12770 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12771 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12772 | int |
| 12773 | main () |
| 12774 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12775 | 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] | 12776 | test_array [0] = 0 |
| 12777 | |
| 12778 | ; |
| 12779 | return 0; |
| 12780 | } |
| 12781 | _ACEOF |
| 12782 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12783 | if { (ac_try="$ac_compile" |
| 12784 | case "(($ac_try" in |
| 12785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12786 | *) ac_try_echo=$ac_try;; |
| 12787 | esac |
| 12788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12789 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12790 | ac_status=$? |
| 12791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12792 | rm -f conftest.er1 |
| 12793 | cat conftest.err >&5 |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12795 | (exit $ac_status); } && { |
| 12796 | test -z "$ac_c_werror_flag" || |
| 12797 | test ! -s conftest.err |
| 12798 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12799 | ac_hi=$ac_mid |
| 12800 | else |
| 12801 | echo "$as_me: failed program was:" >&5 |
| 12802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12804 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12806 | |
| 12807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12808 | done |
| 12809 | case $ac_lo in |
| 12810 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12811 | '') if test "$ac_cv_type_short" = yes; then |
| 12812 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12813 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12814 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12815 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12816 | { (exit 77); exit 77; }; } |
| 12817 | else |
| 12818 | ac_cv_sizeof_short=0 |
| 12819 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12821 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12822 | cat >conftest.$ac_ext <<_ACEOF |
| 12823 | /* confdefs.h. */ |
| 12824 | _ACEOF |
| 12825 | cat confdefs.h >>conftest.$ac_ext |
| 12826 | cat >>conftest.$ac_ext <<_ACEOF |
| 12827 | /* end confdefs.h. */ |
| 12828 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12829 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12830 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12831 | 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] | 12832 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12833 | #include <stdlib.h> |
| 12834 | int |
| 12835 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12836 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12837 | |
| 12838 | FILE *f = fopen ("conftest.val", "w"); |
| 12839 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12840 | return 1; |
| 12841 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12842 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12843 | long int i = longval (); |
| 12844 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12845 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12846 | fprintf (f, "%ld\n", i); |
| 12847 | } |
| 12848 | else |
| 12849 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12850 | unsigned long int i = ulongval (); |
| 12851 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12852 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12853 | fprintf (f, "%lu\n", i); |
| 12854 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12855 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12856 | |
| 12857 | ; |
| 12858 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12859 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12860 | _ACEOF |
| 12861 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12862 | if { (ac_try="$ac_link" |
| 12863 | case "(($ac_try" in |
| 12864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12865 | *) ac_try_echo=$ac_try;; |
| 12866 | esac |
| 12867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12868 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12869 | ac_status=$? |
| 12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12872 | { (case "(($ac_try" in |
| 12873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12874 | *) ac_try_echo=$ac_try;; |
| 12875 | esac |
| 12876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12877 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12878 | ac_status=$? |
| 12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12880 | (exit $ac_status); }; }; then |
| 12881 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12882 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12883 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12884 | echo "$as_me: failed program was:" >&5 |
| 12885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12886 | |
| 12887 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12888 | if test "$ac_cv_type_short" = yes; then |
| 12889 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12890 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12891 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12892 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12893 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12894 | else |
| 12895 | ac_cv_sizeof_short=0 |
| 12896 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12897 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12898 | 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] | 12899 | fi |
| 12900 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12901 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12902 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12903 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12904 | |
| 12905 | |
| 12906 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12907 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12908 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12909 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12910 | |
| 12911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12912 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12913 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12914 | if test "${ac_cv_type_int+set}" = set; then |
| 12915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12916 | else |
| 12917 | cat >conftest.$ac_ext <<_ACEOF |
| 12918 | /* confdefs.h. */ |
| 12919 | _ACEOF |
| 12920 | cat confdefs.h >>conftest.$ac_ext |
| 12921 | cat >>conftest.$ac_ext <<_ACEOF |
| 12922 | /* end confdefs.h. */ |
| 12923 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12924 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12925 | int |
| 12926 | main () |
| 12927 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12928 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12929 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12930 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12931 | return 0; |
| 12932 | ; |
| 12933 | return 0; |
| 12934 | } |
| 12935 | _ACEOF |
| 12936 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12937 | if { (ac_try="$ac_compile" |
| 12938 | case "(($ac_try" in |
| 12939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12940 | *) ac_try_echo=$ac_try;; |
| 12941 | esac |
| 12942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12943 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12944 | ac_status=$? |
| 12945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12946 | rm -f conftest.er1 |
| 12947 | cat conftest.err >&5 |
| 12948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12949 | (exit $ac_status); } && { |
| 12950 | test -z "$ac_c_werror_flag" || |
| 12951 | test ! -s conftest.err |
| 12952 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | ac_cv_type_int=yes |
| 12954 | else |
| 12955 | echo "$as_me: failed program was:" >&5 |
| 12956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12958 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12959 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12960 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12962 | fi |
| 12963 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12964 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12965 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12966 | # The cast to long int works around a bug in the HP C Compiler |
| 12967 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12968 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12969 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12970 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12971 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12972 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12974 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12975 | if test "$cross_compiling" = yes; then |
| 12976 | # Depending upon the size, compute the lo and hi bounds. |
| 12977 | cat >conftest.$ac_ext <<_ACEOF |
| 12978 | /* confdefs.h. */ |
| 12979 | _ACEOF |
| 12980 | cat confdefs.h >>conftest.$ac_ext |
| 12981 | cat >>conftest.$ac_ext <<_ACEOF |
| 12982 | /* end confdefs.h. */ |
| 12983 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12984 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12985 | int |
| 12986 | main () |
| 12987 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12988 | 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] | 12989 | test_array [0] = 0 |
| 12990 | |
| 12991 | ; |
| 12992 | return 0; |
| 12993 | } |
| 12994 | _ACEOF |
| 12995 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12996 | if { (ac_try="$ac_compile" |
| 12997 | case "(($ac_try" in |
| 12998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12999 | *) ac_try_echo=$ac_try;; |
| 13000 | esac |
| 13001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13002 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13003 | ac_status=$? |
| 13004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13005 | rm -f conftest.er1 |
| 13006 | cat conftest.err >&5 |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13008 | (exit $ac_status); } && { |
| 13009 | test -z "$ac_c_werror_flag" || |
| 13010 | test ! -s conftest.err |
| 13011 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13012 | ac_lo=0 ac_mid=0 |
| 13013 | while :; do |
| 13014 | cat >conftest.$ac_ext <<_ACEOF |
| 13015 | /* confdefs.h. */ |
| 13016 | _ACEOF |
| 13017 | cat confdefs.h >>conftest.$ac_ext |
| 13018 | cat >>conftest.$ac_ext <<_ACEOF |
| 13019 | /* end confdefs.h. */ |
| 13020 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13021 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | int |
| 13023 | main () |
| 13024 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13025 | 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] | 13026 | test_array [0] = 0 |
| 13027 | |
| 13028 | ; |
| 13029 | return 0; |
| 13030 | } |
| 13031 | _ACEOF |
| 13032 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13033 | if { (ac_try="$ac_compile" |
| 13034 | case "(($ac_try" in |
| 13035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13036 | *) ac_try_echo=$ac_try;; |
| 13037 | esac |
| 13038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13039 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13040 | ac_status=$? |
| 13041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13042 | rm -f conftest.er1 |
| 13043 | cat conftest.err >&5 |
| 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13045 | (exit $ac_status); } && { |
| 13046 | test -z "$ac_c_werror_flag" || |
| 13047 | test ! -s conftest.err |
| 13048 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13049 | ac_hi=$ac_mid; break |
| 13050 | else |
| 13051 | echo "$as_me: failed program was:" >&5 |
| 13052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13054 | ac_lo=`expr $ac_mid + 1` |
| 13055 | if test $ac_lo -le $ac_mid; then |
| 13056 | ac_lo= ac_hi= |
| 13057 | break |
| 13058 | fi |
| 13059 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13060 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13061 | |
| 13062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13063 | done |
| 13064 | else |
| 13065 | echo "$as_me: failed program was:" >&5 |
| 13066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13068 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13069 | /* confdefs.h. */ |
| 13070 | _ACEOF |
| 13071 | cat confdefs.h >>conftest.$ac_ext |
| 13072 | cat >>conftest.$ac_ext <<_ACEOF |
| 13073 | /* end confdefs.h. */ |
| 13074 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13075 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13076 | int |
| 13077 | main () |
| 13078 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13079 | 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] | 13080 | test_array [0] = 0 |
| 13081 | |
| 13082 | ; |
| 13083 | return 0; |
| 13084 | } |
| 13085 | _ACEOF |
| 13086 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13087 | if { (ac_try="$ac_compile" |
| 13088 | case "(($ac_try" in |
| 13089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13090 | *) ac_try_echo=$ac_try;; |
| 13091 | esac |
| 13092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13093 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13094 | ac_status=$? |
| 13095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13096 | rm -f conftest.er1 |
| 13097 | cat conftest.err >&5 |
| 13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13099 | (exit $ac_status); } && { |
| 13100 | test -z "$ac_c_werror_flag" || |
| 13101 | test ! -s conftest.err |
| 13102 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13103 | ac_hi=-1 ac_mid=-1 |
| 13104 | while :; do |
| 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | /* confdefs.h. */ |
| 13107 | _ACEOF |
| 13108 | cat confdefs.h >>conftest.$ac_ext |
| 13109 | cat >>conftest.$ac_ext <<_ACEOF |
| 13110 | /* end confdefs.h. */ |
| 13111 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13112 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13113 | int |
| 13114 | main () |
| 13115 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13116 | 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] | 13117 | test_array [0] = 0 |
| 13118 | |
| 13119 | ; |
| 13120 | return 0; |
| 13121 | } |
| 13122 | _ACEOF |
| 13123 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13124 | if { (ac_try="$ac_compile" |
| 13125 | case "(($ac_try" in |
| 13126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13127 | *) ac_try_echo=$ac_try;; |
| 13128 | esac |
| 13129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13130 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13131 | ac_status=$? |
| 13132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13133 | rm -f conftest.er1 |
| 13134 | cat conftest.err >&5 |
| 13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13136 | (exit $ac_status); } && { |
| 13137 | test -z "$ac_c_werror_flag" || |
| 13138 | test ! -s conftest.err |
| 13139 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13140 | ac_lo=$ac_mid; break |
| 13141 | else |
| 13142 | echo "$as_me: failed program was:" >&5 |
| 13143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13145 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13146 | if test $ac_mid -le $ac_hi; then |
| 13147 | ac_lo= ac_hi= |
| 13148 | break |
| 13149 | fi |
| 13150 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13151 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13152 | |
| 13153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13154 | done |
| 13155 | else |
| 13156 | echo "$as_me: failed program was:" >&5 |
| 13157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13159 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13160 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13161 | |
| 13162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13164 | |
| 13165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13166 | # Binary search between lo and hi bounds. |
| 13167 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13168 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13169 | cat >conftest.$ac_ext <<_ACEOF |
| 13170 | /* confdefs.h. */ |
| 13171 | _ACEOF |
| 13172 | cat confdefs.h >>conftest.$ac_ext |
| 13173 | cat >>conftest.$ac_ext <<_ACEOF |
| 13174 | /* end confdefs.h. */ |
| 13175 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13176 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13177 | int |
| 13178 | main () |
| 13179 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13180 | 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] | 13181 | test_array [0] = 0 |
| 13182 | |
| 13183 | ; |
| 13184 | return 0; |
| 13185 | } |
| 13186 | _ACEOF |
| 13187 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13188 | if { (ac_try="$ac_compile" |
| 13189 | case "(($ac_try" in |
| 13190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13191 | *) ac_try_echo=$ac_try;; |
| 13192 | esac |
| 13193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13194 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13195 | ac_status=$? |
| 13196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13197 | rm -f conftest.er1 |
| 13198 | cat conftest.err >&5 |
| 13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13200 | (exit $ac_status); } && { |
| 13201 | test -z "$ac_c_werror_flag" || |
| 13202 | test ! -s conftest.err |
| 13203 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13204 | ac_hi=$ac_mid |
| 13205 | else |
| 13206 | echo "$as_me: failed program was:" >&5 |
| 13207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13209 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13210 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13211 | |
| 13212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13213 | done |
| 13214 | case $ac_lo in |
| 13215 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13216 | '') if test "$ac_cv_type_int" = yes; then |
| 13217 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13218 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13219 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13220 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13221 | { (exit 77); exit 77; }; } |
| 13222 | else |
| 13223 | ac_cv_sizeof_int=0 |
| 13224 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13225 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13226 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13227 | cat >conftest.$ac_ext <<_ACEOF |
| 13228 | /* confdefs.h. */ |
| 13229 | _ACEOF |
| 13230 | cat confdefs.h >>conftest.$ac_ext |
| 13231 | cat >>conftest.$ac_ext <<_ACEOF |
| 13232 | /* end confdefs.h. */ |
| 13233 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13234 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13235 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13236 | 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] | 13237 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13238 | #include <stdlib.h> |
| 13239 | int |
| 13240 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13241 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13242 | |
| 13243 | FILE *f = fopen ("conftest.val", "w"); |
| 13244 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13245 | return 1; |
| 13246 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13247 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13248 | long int i = longval (); |
| 13249 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13250 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13251 | fprintf (f, "%ld\n", i); |
| 13252 | } |
| 13253 | else |
| 13254 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13255 | unsigned long int i = ulongval (); |
| 13256 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13257 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13258 | fprintf (f, "%lu\n", i); |
| 13259 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13260 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13261 | |
| 13262 | ; |
| 13263 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13264 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13265 | _ACEOF |
| 13266 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13267 | if { (ac_try="$ac_link" |
| 13268 | case "(($ac_try" in |
| 13269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13270 | *) ac_try_echo=$ac_try;; |
| 13271 | esac |
| 13272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13273 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13274 | ac_status=$? |
| 13275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13277 | { (case "(($ac_try" in |
| 13278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13279 | *) ac_try_echo=$ac_try;; |
| 13280 | esac |
| 13281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13282 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13283 | ac_status=$? |
| 13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); }; }; then |
| 13286 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13287 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13289 | echo "$as_me: failed program was:" >&5 |
| 13290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13291 | |
| 13292 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13293 | if test "$ac_cv_type_int" = yes; then |
| 13294 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13295 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13296 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13297 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13298 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13299 | else |
| 13300 | ac_cv_sizeof_int=0 |
| 13301 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13303 | 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] | 13304 | fi |
| 13305 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13306 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13307 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13308 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13309 | |
| 13310 | |
| 13311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13312 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13313 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13314 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13315 | |
| 13316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13317 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13318 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13319 | if test "${ac_cv_type_long+set}" = set; then |
| 13320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13321 | else |
| 13322 | cat >conftest.$ac_ext <<_ACEOF |
| 13323 | /* confdefs.h. */ |
| 13324 | _ACEOF |
| 13325 | cat confdefs.h >>conftest.$ac_ext |
| 13326 | cat >>conftest.$ac_ext <<_ACEOF |
| 13327 | /* end confdefs.h. */ |
| 13328 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13329 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13330 | int |
| 13331 | main () |
| 13332 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13333 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13334 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13335 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13336 | return 0; |
| 13337 | ; |
| 13338 | return 0; |
| 13339 | } |
| 13340 | _ACEOF |
| 13341 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13342 | if { (ac_try="$ac_compile" |
| 13343 | case "(($ac_try" in |
| 13344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13345 | *) ac_try_echo=$ac_try;; |
| 13346 | esac |
| 13347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13348 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13349 | ac_status=$? |
| 13350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13351 | rm -f conftest.er1 |
| 13352 | cat conftest.err >&5 |
| 13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13354 | (exit $ac_status); } && { |
| 13355 | test -z "$ac_c_werror_flag" || |
| 13356 | test ! -s conftest.err |
| 13357 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | ac_cv_type_long=yes |
| 13359 | else |
| 13360 | echo "$as_me: failed program was:" >&5 |
| 13361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13363 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13364 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13367 | fi |
| 13368 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13369 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13370 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13371 | # The cast to long int works around a bug in the HP C Compiler |
| 13372 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13373 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13374 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13375 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13376 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13377 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13380 | if test "$cross_compiling" = yes; then |
| 13381 | # Depending upon the size, compute the lo and hi bounds. |
| 13382 | cat >conftest.$ac_ext <<_ACEOF |
| 13383 | /* confdefs.h. */ |
| 13384 | _ACEOF |
| 13385 | cat confdefs.h >>conftest.$ac_ext |
| 13386 | cat >>conftest.$ac_ext <<_ACEOF |
| 13387 | /* end confdefs.h. */ |
| 13388 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13389 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13390 | int |
| 13391 | main () |
| 13392 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13393 | 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] | 13394 | test_array [0] = 0 |
| 13395 | |
| 13396 | ; |
| 13397 | return 0; |
| 13398 | } |
| 13399 | _ACEOF |
| 13400 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13401 | if { (ac_try="$ac_compile" |
| 13402 | case "(($ac_try" in |
| 13403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13404 | *) ac_try_echo=$ac_try;; |
| 13405 | esac |
| 13406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13407 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13408 | ac_status=$? |
| 13409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13410 | rm -f conftest.er1 |
| 13411 | cat conftest.err >&5 |
| 13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13413 | (exit $ac_status); } && { |
| 13414 | test -z "$ac_c_werror_flag" || |
| 13415 | test ! -s conftest.err |
| 13416 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13417 | ac_lo=0 ac_mid=0 |
| 13418 | while :; do |
| 13419 | cat >conftest.$ac_ext <<_ACEOF |
| 13420 | /* confdefs.h. */ |
| 13421 | _ACEOF |
| 13422 | cat confdefs.h >>conftest.$ac_ext |
| 13423 | cat >>conftest.$ac_ext <<_ACEOF |
| 13424 | /* end confdefs.h. */ |
| 13425 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13426 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13427 | int |
| 13428 | main () |
| 13429 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13430 | 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] | 13431 | test_array [0] = 0 |
| 13432 | |
| 13433 | ; |
| 13434 | return 0; |
| 13435 | } |
| 13436 | _ACEOF |
| 13437 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13438 | if { (ac_try="$ac_compile" |
| 13439 | case "(($ac_try" in |
| 13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13441 | *) ac_try_echo=$ac_try;; |
| 13442 | esac |
| 13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13444 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13445 | ac_status=$? |
| 13446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13447 | rm -f conftest.er1 |
| 13448 | cat conftest.err >&5 |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13450 | (exit $ac_status); } && { |
| 13451 | test -z "$ac_c_werror_flag" || |
| 13452 | test ! -s conftest.err |
| 13453 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13454 | ac_hi=$ac_mid; break |
| 13455 | else |
| 13456 | echo "$as_me: failed program was:" >&5 |
| 13457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13459 | ac_lo=`expr $ac_mid + 1` |
| 13460 | if test $ac_lo -le $ac_mid; then |
| 13461 | ac_lo= ac_hi= |
| 13462 | break |
| 13463 | fi |
| 13464 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13465 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13466 | |
| 13467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13468 | done |
| 13469 | else |
| 13470 | echo "$as_me: failed program was:" >&5 |
| 13471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13472 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13473 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13474 | /* confdefs.h. */ |
| 13475 | _ACEOF |
| 13476 | cat confdefs.h >>conftest.$ac_ext |
| 13477 | cat >>conftest.$ac_ext <<_ACEOF |
| 13478 | /* end confdefs.h. */ |
| 13479 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13480 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13481 | int |
| 13482 | main () |
| 13483 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13484 | 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] | 13485 | test_array [0] = 0 |
| 13486 | |
| 13487 | ; |
| 13488 | return 0; |
| 13489 | } |
| 13490 | _ACEOF |
| 13491 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13492 | if { (ac_try="$ac_compile" |
| 13493 | case "(($ac_try" in |
| 13494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13495 | *) ac_try_echo=$ac_try;; |
| 13496 | esac |
| 13497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13498 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13499 | ac_status=$? |
| 13500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13501 | rm -f conftest.er1 |
| 13502 | cat conftest.err >&5 |
| 13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13504 | (exit $ac_status); } && { |
| 13505 | test -z "$ac_c_werror_flag" || |
| 13506 | test ! -s conftest.err |
| 13507 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13508 | ac_hi=-1 ac_mid=-1 |
| 13509 | while :; do |
| 13510 | cat >conftest.$ac_ext <<_ACEOF |
| 13511 | /* confdefs.h. */ |
| 13512 | _ACEOF |
| 13513 | cat confdefs.h >>conftest.$ac_ext |
| 13514 | cat >>conftest.$ac_ext <<_ACEOF |
| 13515 | /* end confdefs.h. */ |
| 13516 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13517 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13518 | int |
| 13519 | main () |
| 13520 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13521 | 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] | 13522 | test_array [0] = 0 |
| 13523 | |
| 13524 | ; |
| 13525 | return 0; |
| 13526 | } |
| 13527 | _ACEOF |
| 13528 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13529 | if { (ac_try="$ac_compile" |
| 13530 | case "(($ac_try" in |
| 13531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13532 | *) ac_try_echo=$ac_try;; |
| 13533 | esac |
| 13534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13535 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13536 | ac_status=$? |
| 13537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13538 | rm -f conftest.er1 |
| 13539 | cat conftest.err >&5 |
| 13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13541 | (exit $ac_status); } && { |
| 13542 | test -z "$ac_c_werror_flag" || |
| 13543 | test ! -s conftest.err |
| 13544 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13545 | ac_lo=$ac_mid; break |
| 13546 | else |
| 13547 | echo "$as_me: failed program was:" >&5 |
| 13548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13550 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13551 | if test $ac_mid -le $ac_hi; then |
| 13552 | ac_lo= ac_hi= |
| 13553 | break |
| 13554 | fi |
| 13555 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13557 | |
| 13558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13559 | done |
| 13560 | else |
| 13561 | echo "$as_me: failed program was:" >&5 |
| 13562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13563 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13564 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13565 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13566 | |
| 13567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13569 | |
| 13570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13571 | # Binary search between lo and hi bounds. |
| 13572 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13573 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13574 | cat >conftest.$ac_ext <<_ACEOF |
| 13575 | /* confdefs.h. */ |
| 13576 | _ACEOF |
| 13577 | cat confdefs.h >>conftest.$ac_ext |
| 13578 | cat >>conftest.$ac_ext <<_ACEOF |
| 13579 | /* end confdefs.h. */ |
| 13580 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13581 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13582 | int |
| 13583 | main () |
| 13584 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13585 | 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] | 13586 | test_array [0] = 0 |
| 13587 | |
| 13588 | ; |
| 13589 | return 0; |
| 13590 | } |
| 13591 | _ACEOF |
| 13592 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13593 | if { (ac_try="$ac_compile" |
| 13594 | case "(($ac_try" in |
| 13595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13596 | *) ac_try_echo=$ac_try;; |
| 13597 | esac |
| 13598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13599 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13600 | ac_status=$? |
| 13601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13602 | rm -f conftest.er1 |
| 13603 | cat conftest.err >&5 |
| 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13605 | (exit $ac_status); } && { |
| 13606 | test -z "$ac_c_werror_flag" || |
| 13607 | test ! -s conftest.err |
| 13608 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13609 | ac_hi=$ac_mid |
| 13610 | else |
| 13611 | echo "$as_me: failed program was:" >&5 |
| 13612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13614 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13616 | |
| 13617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13618 | done |
| 13619 | case $ac_lo in |
| 13620 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13621 | '') if test "$ac_cv_type_long" = yes; then |
| 13622 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13623 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13624 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13625 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13626 | { (exit 77); exit 77; }; } |
| 13627 | else |
| 13628 | ac_cv_sizeof_long=0 |
| 13629 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13630 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13631 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13632 | cat >conftest.$ac_ext <<_ACEOF |
| 13633 | /* confdefs.h. */ |
| 13634 | _ACEOF |
| 13635 | cat confdefs.h >>conftest.$ac_ext |
| 13636 | cat >>conftest.$ac_ext <<_ACEOF |
| 13637 | /* end confdefs.h. */ |
| 13638 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13639 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13640 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13641 | 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] | 13642 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13643 | #include <stdlib.h> |
| 13644 | int |
| 13645 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13646 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13647 | |
| 13648 | FILE *f = fopen ("conftest.val", "w"); |
| 13649 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13650 | return 1; |
| 13651 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13652 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13653 | long int i = longval (); |
| 13654 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13655 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13656 | fprintf (f, "%ld\n", i); |
| 13657 | } |
| 13658 | else |
| 13659 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13660 | unsigned long int i = ulongval (); |
| 13661 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13662 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13663 | fprintf (f, "%lu\n", i); |
| 13664 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13665 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13666 | |
| 13667 | ; |
| 13668 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13669 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13670 | _ACEOF |
| 13671 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13672 | if { (ac_try="$ac_link" |
| 13673 | case "(($ac_try" in |
| 13674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13675 | *) ac_try_echo=$ac_try;; |
| 13676 | esac |
| 13677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13678 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13679 | ac_status=$? |
| 13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13681 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13682 | { (case "(($ac_try" in |
| 13683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13684 | *) ac_try_echo=$ac_try;; |
| 13685 | esac |
| 13686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13687 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13688 | ac_status=$? |
| 13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13690 | (exit $ac_status); }; }; then |
| 13691 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13693 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13694 | echo "$as_me: failed program was:" >&5 |
| 13695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13696 | |
| 13697 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13698 | if test "$ac_cv_type_long" = yes; then |
| 13699 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13700 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13701 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13702 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13703 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13704 | else |
| 13705 | ac_cv_sizeof_long=0 |
| 13706 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13707 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13708 | 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] | 13709 | fi |
| 13710 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13712 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13713 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13714 | |
| 13715 | |
| 13716 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13717 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13718 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13719 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13720 | |
| 13721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13722 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13723 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13724 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13726 | else |
| 13727 | cat >conftest.$ac_ext <<_ACEOF |
| 13728 | /* confdefs.h. */ |
| 13729 | _ACEOF |
| 13730 | cat confdefs.h >>conftest.$ac_ext |
| 13731 | cat >>conftest.$ac_ext <<_ACEOF |
| 13732 | /* end confdefs.h. */ |
| 13733 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13734 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13735 | int |
| 13736 | main () |
| 13737 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13738 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13739 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13740 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13741 | return 0; |
| 13742 | ; |
| 13743 | return 0; |
| 13744 | } |
| 13745 | _ACEOF |
| 13746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13747 | if { (ac_try="$ac_compile" |
| 13748 | case "(($ac_try" in |
| 13749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13750 | *) ac_try_echo=$ac_try;; |
| 13751 | esac |
| 13752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13754 | ac_status=$? |
| 13755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13756 | rm -f conftest.er1 |
| 13757 | cat conftest.err >&5 |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13759 | (exit $ac_status); } && { |
| 13760 | test -z "$ac_c_werror_flag" || |
| 13761 | test ! -s conftest.err |
| 13762 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13763 | ac_cv_type_long_long=yes |
| 13764 | else |
| 13765 | echo "$as_me: failed program was:" >&5 |
| 13766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13768 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13769 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13772 | fi |
| 13773 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13774 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13775 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13776 | # The cast to long int works around a bug in the HP C Compiler |
| 13777 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13778 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13779 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13780 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13781 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13782 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13784 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13785 | if test "$cross_compiling" = yes; then |
| 13786 | # Depending upon the size, compute the lo and hi bounds. |
| 13787 | cat >conftest.$ac_ext <<_ACEOF |
| 13788 | /* confdefs.h. */ |
| 13789 | _ACEOF |
| 13790 | cat confdefs.h >>conftest.$ac_ext |
| 13791 | cat >>conftest.$ac_ext <<_ACEOF |
| 13792 | /* end confdefs.h. */ |
| 13793 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13794 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13795 | int |
| 13796 | main () |
| 13797 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13798 | 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] | 13799 | test_array [0] = 0 |
| 13800 | |
| 13801 | ; |
| 13802 | return 0; |
| 13803 | } |
| 13804 | _ACEOF |
| 13805 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13806 | if { (ac_try="$ac_compile" |
| 13807 | case "(($ac_try" in |
| 13808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13809 | *) ac_try_echo=$ac_try;; |
| 13810 | esac |
| 13811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13812 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | ac_status=$? |
| 13814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13815 | rm -f conftest.er1 |
| 13816 | cat conftest.err >&5 |
| 13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13818 | (exit $ac_status); } && { |
| 13819 | test -z "$ac_c_werror_flag" || |
| 13820 | test ! -s conftest.err |
| 13821 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13822 | ac_lo=0 ac_mid=0 |
| 13823 | while :; do |
| 13824 | cat >conftest.$ac_ext <<_ACEOF |
| 13825 | /* confdefs.h. */ |
| 13826 | _ACEOF |
| 13827 | cat confdefs.h >>conftest.$ac_ext |
| 13828 | cat >>conftest.$ac_ext <<_ACEOF |
| 13829 | /* end confdefs.h. */ |
| 13830 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13831 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13832 | int |
| 13833 | main () |
| 13834 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13835 | 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] | 13836 | test_array [0] = 0 |
| 13837 | |
| 13838 | ; |
| 13839 | return 0; |
| 13840 | } |
| 13841 | _ACEOF |
| 13842 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13843 | if { (ac_try="$ac_compile" |
| 13844 | case "(($ac_try" in |
| 13845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13846 | *) ac_try_echo=$ac_try;; |
| 13847 | esac |
| 13848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13849 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13850 | ac_status=$? |
| 13851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13852 | rm -f conftest.er1 |
| 13853 | cat conftest.err >&5 |
| 13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13855 | (exit $ac_status); } && { |
| 13856 | test -z "$ac_c_werror_flag" || |
| 13857 | test ! -s conftest.err |
| 13858 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13859 | ac_hi=$ac_mid; break |
| 13860 | else |
| 13861 | echo "$as_me: failed program was:" >&5 |
| 13862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13863 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13864 | ac_lo=`expr $ac_mid + 1` |
| 13865 | if test $ac_lo -le $ac_mid; then |
| 13866 | ac_lo= ac_hi= |
| 13867 | break |
| 13868 | fi |
| 13869 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13870 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13871 | |
| 13872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13873 | done |
| 13874 | else |
| 13875 | echo "$as_me: failed program was:" >&5 |
| 13876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13877 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13878 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13879 | /* confdefs.h. */ |
| 13880 | _ACEOF |
| 13881 | cat confdefs.h >>conftest.$ac_ext |
| 13882 | cat >>conftest.$ac_ext <<_ACEOF |
| 13883 | /* end confdefs.h. */ |
| 13884 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13885 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13886 | int |
| 13887 | main () |
| 13888 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13889 | 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] | 13890 | test_array [0] = 0 |
| 13891 | |
| 13892 | ; |
| 13893 | return 0; |
| 13894 | } |
| 13895 | _ACEOF |
| 13896 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13897 | if { (ac_try="$ac_compile" |
| 13898 | case "(($ac_try" in |
| 13899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13900 | *) ac_try_echo=$ac_try;; |
| 13901 | esac |
| 13902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13903 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13904 | ac_status=$? |
| 13905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13906 | rm -f conftest.er1 |
| 13907 | cat conftest.err >&5 |
| 13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13909 | (exit $ac_status); } && { |
| 13910 | test -z "$ac_c_werror_flag" || |
| 13911 | test ! -s conftest.err |
| 13912 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13913 | ac_hi=-1 ac_mid=-1 |
| 13914 | while :; do |
| 13915 | cat >conftest.$ac_ext <<_ACEOF |
| 13916 | /* confdefs.h. */ |
| 13917 | _ACEOF |
| 13918 | cat confdefs.h >>conftest.$ac_ext |
| 13919 | cat >>conftest.$ac_ext <<_ACEOF |
| 13920 | /* end confdefs.h. */ |
| 13921 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13922 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13923 | int |
| 13924 | main () |
| 13925 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13926 | 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] | 13927 | test_array [0] = 0 |
| 13928 | |
| 13929 | ; |
| 13930 | return 0; |
| 13931 | } |
| 13932 | _ACEOF |
| 13933 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13934 | if { (ac_try="$ac_compile" |
| 13935 | case "(($ac_try" in |
| 13936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13937 | *) ac_try_echo=$ac_try;; |
| 13938 | esac |
| 13939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13940 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13941 | ac_status=$? |
| 13942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13943 | rm -f conftest.er1 |
| 13944 | cat conftest.err >&5 |
| 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13946 | (exit $ac_status); } && { |
| 13947 | test -z "$ac_c_werror_flag" || |
| 13948 | test ! -s conftest.err |
| 13949 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13950 | ac_lo=$ac_mid; break |
| 13951 | else |
| 13952 | echo "$as_me: failed program was:" >&5 |
| 13953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13954 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13955 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13956 | if test $ac_mid -le $ac_hi; then |
| 13957 | ac_lo= ac_hi= |
| 13958 | break |
| 13959 | fi |
| 13960 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13961 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13962 | |
| 13963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13964 | done |
| 13965 | else |
| 13966 | echo "$as_me: failed program was:" >&5 |
| 13967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13969 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13970 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13971 | |
| 13972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13973 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13974 | |
| 13975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13976 | # Binary search between lo and hi bounds. |
| 13977 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13978 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13979 | cat >conftest.$ac_ext <<_ACEOF |
| 13980 | /* confdefs.h. */ |
| 13981 | _ACEOF |
| 13982 | cat confdefs.h >>conftest.$ac_ext |
| 13983 | cat >>conftest.$ac_ext <<_ACEOF |
| 13984 | /* end confdefs.h. */ |
| 13985 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13986 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13987 | int |
| 13988 | main () |
| 13989 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13990 | 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] | 13991 | test_array [0] = 0 |
| 13992 | |
| 13993 | ; |
| 13994 | return 0; |
| 13995 | } |
| 13996 | _ACEOF |
| 13997 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13998 | if { (ac_try="$ac_compile" |
| 13999 | case "(($ac_try" in |
| 14000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14001 | *) ac_try_echo=$ac_try;; |
| 14002 | esac |
| 14003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14004 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14005 | ac_status=$? |
| 14006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14007 | rm -f conftest.er1 |
| 14008 | cat conftest.err >&5 |
| 14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14010 | (exit $ac_status); } && { |
| 14011 | test -z "$ac_c_werror_flag" || |
| 14012 | test ! -s conftest.err |
| 14013 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14014 | ac_hi=$ac_mid |
| 14015 | else |
| 14016 | echo "$as_me: failed program was:" >&5 |
| 14017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14019 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14020 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14021 | |
| 14022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14023 | done |
| 14024 | case $ac_lo in |
| 14025 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14026 | '') if test "$ac_cv_type_long_long" = yes; then |
| 14027 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14028 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14029 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14030 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14031 | { (exit 77); exit 77; }; } |
| 14032 | else |
| 14033 | ac_cv_sizeof_long_long=0 |
| 14034 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14035 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14036 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14037 | cat >conftest.$ac_ext <<_ACEOF |
| 14038 | /* confdefs.h. */ |
| 14039 | _ACEOF |
| 14040 | cat confdefs.h >>conftest.$ac_ext |
| 14041 | cat >>conftest.$ac_ext <<_ACEOF |
| 14042 | /* end confdefs.h. */ |
| 14043 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14044 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14045 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14046 | 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] | 14047 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14048 | #include <stdlib.h> |
| 14049 | int |
| 14050 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14051 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14052 | |
| 14053 | FILE *f = fopen ("conftest.val", "w"); |
| 14054 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14055 | return 1; |
| 14056 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14057 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14058 | long int i = longval (); |
| 14059 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14060 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14061 | fprintf (f, "%ld\n", i); |
| 14062 | } |
| 14063 | else |
| 14064 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14065 | unsigned long int i = ulongval (); |
| 14066 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14067 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14068 | fprintf (f, "%lu\n", i); |
| 14069 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14070 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14071 | |
| 14072 | ; |
| 14073 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14074 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14075 | _ACEOF |
| 14076 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14077 | if { (ac_try="$ac_link" |
| 14078 | case "(($ac_try" in |
| 14079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14080 | *) ac_try_echo=$ac_try;; |
| 14081 | esac |
| 14082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14083 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14084 | ac_status=$? |
| 14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14087 | { (case "(($ac_try" in |
| 14088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14089 | *) ac_try_echo=$ac_try;; |
| 14090 | esac |
| 14091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14092 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14093 | ac_status=$? |
| 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14095 | (exit $ac_status); }; }; then |
| 14096 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14097 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14098 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14099 | echo "$as_me: failed program was:" >&5 |
| 14100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14101 | |
| 14102 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14103 | if test "$ac_cv_type_long_long" = yes; then |
| 14104 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14105 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14106 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14107 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14108 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14109 | else |
| 14110 | ac_cv_sizeof_long_long=0 |
| 14111 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14113 | 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] | 14114 | fi |
| 14115 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14116 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14117 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14118 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14119 | |
| 14120 | |
| 14121 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14122 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14123 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14124 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14125 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14126 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14127 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14128 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14129 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14130 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14131 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14132 | |
| 14133 | |
| 14134 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14135 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14136 | 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] | 14137 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14140 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14141 | cat >conftest.$ac_ext <<_ACEOF |
| 14142 | /* confdefs.h. */ |
| 14143 | _ACEOF |
| 14144 | cat confdefs.h >>conftest.$ac_ext |
| 14145 | cat >>conftest.$ac_ext <<_ACEOF |
| 14146 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14147 | #include <sys/types.h> |
| 14148 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14149 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14150 | int |
| 14151 | main () |
| 14152 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14153 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14154 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14155 | bogus endian macros |
| 14156 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14157 | |
| 14158 | ; |
| 14159 | return 0; |
| 14160 | } |
| 14161 | _ACEOF |
| 14162 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14163 | if { (ac_try="$ac_compile" |
| 14164 | case "(($ac_try" in |
| 14165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14166 | *) ac_try_echo=$ac_try;; |
| 14167 | esac |
| 14168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14169 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14170 | ac_status=$? |
| 14171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14172 | rm -f conftest.er1 |
| 14173 | cat conftest.err >&5 |
| 14174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14175 | (exit $ac_status); } && { |
| 14176 | test -z "$ac_c_werror_flag" || |
| 14177 | test ! -s conftest.err |
| 14178 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14179 | # 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] | 14180 | cat >conftest.$ac_ext <<_ACEOF |
| 14181 | /* confdefs.h. */ |
| 14182 | _ACEOF |
| 14183 | cat confdefs.h >>conftest.$ac_ext |
| 14184 | cat >>conftest.$ac_ext <<_ACEOF |
| 14185 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14186 | #include <sys/types.h> |
| 14187 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14188 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14189 | int |
| 14190 | main () |
| 14191 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14192 | #if BYTE_ORDER != BIG_ENDIAN |
| 14193 | not big endian |
| 14194 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14195 | |
| 14196 | ; |
| 14197 | return 0; |
| 14198 | } |
| 14199 | _ACEOF |
| 14200 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14201 | if { (ac_try="$ac_compile" |
| 14202 | case "(($ac_try" in |
| 14203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14204 | *) ac_try_echo=$ac_try;; |
| 14205 | esac |
| 14206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14207 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14208 | ac_status=$? |
| 14209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14210 | rm -f conftest.er1 |
| 14211 | cat conftest.err >&5 |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14213 | (exit $ac_status); } && { |
| 14214 | test -z "$ac_c_werror_flag" || |
| 14215 | test ! -s conftest.err |
| 14216 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14217 | ac_cv_c_bigendian=yes |
| 14218 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14219 | echo "$as_me: failed program was:" >&5 |
| 14220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14221 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14222 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14223 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14224 | |
| 14225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14226 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14227 | echo "$as_me: failed program was:" >&5 |
| 14228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14229 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14230 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14231 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14232 | # try to guess the endianness by grepping values into an object file |
| 14233 | ac_cv_c_bigendian=unknown |
| 14234 | cat >conftest.$ac_ext <<_ACEOF |
| 14235 | /* confdefs.h. */ |
| 14236 | _ACEOF |
| 14237 | cat confdefs.h >>conftest.$ac_ext |
| 14238 | cat >>conftest.$ac_ext <<_ACEOF |
| 14239 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14240 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14241 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14242 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14243 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14244 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14245 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14246 | int |
| 14247 | main () |
| 14248 | { |
| 14249 | _ascii (); _ebcdic (); |
| 14250 | ; |
| 14251 | return 0; |
| 14252 | } |
| 14253 | _ACEOF |
| 14254 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14255 | if { (ac_try="$ac_compile" |
| 14256 | case "(($ac_try" in |
| 14257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14258 | *) ac_try_echo=$ac_try;; |
| 14259 | esac |
| 14260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14261 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14262 | ac_status=$? |
| 14263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14264 | rm -f conftest.er1 |
| 14265 | cat conftest.err >&5 |
| 14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14267 | (exit $ac_status); } && { |
| 14268 | test -z "$ac_c_werror_flag" || |
| 14269 | test ! -s conftest.err |
| 14270 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14271 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14272 | ac_cv_c_bigendian=yes |
| 14273 | fi |
| 14274 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14275 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14276 | ac_cv_c_bigendian=no |
| 14277 | else |
| 14278 | # finding both strings is unlikely to happen, but who knows? |
| 14279 | ac_cv_c_bigendian=unknown |
| 14280 | fi |
| 14281 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14282 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14283 | echo "$as_me: failed program was:" >&5 |
| 14284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14286 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14287 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14288 | |
| 14289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14290 | else |
| 14291 | cat >conftest.$ac_ext <<_ACEOF |
| 14292 | /* confdefs.h. */ |
| 14293 | _ACEOF |
| 14294 | cat confdefs.h >>conftest.$ac_ext |
| 14295 | cat >>conftest.$ac_ext <<_ACEOF |
| 14296 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14297 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14298 | int |
| 14299 | main () |
| 14300 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14301 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14302 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14303 | union |
| 14304 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14305 | long int l; |
| 14306 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14307 | } u; |
| 14308 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14309 | return u.c[sizeof (long int) - 1] == 1; |
| 14310 | |
| 14311 | ; |
| 14312 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14313 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14314 | _ACEOF |
| 14315 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14316 | if { (ac_try="$ac_link" |
| 14317 | case "(($ac_try" in |
| 14318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14319 | *) ac_try_echo=$ac_try;; |
| 14320 | esac |
| 14321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14322 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14323 | ac_status=$? |
| 14324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14325 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14326 | { (case "(($ac_try" in |
| 14327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14328 | *) ac_try_echo=$ac_try;; |
| 14329 | esac |
| 14330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14331 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14332 | ac_status=$? |
| 14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14334 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14335 | ac_cv_c_bigendian=no |
| 14336 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14337 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14338 | echo "$as_me: failed program was:" >&5 |
| 14339 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14340 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14341 | ( exit $ac_status ) |
| 14342 | ac_cv_c_bigendian=yes |
| 14343 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14344 | 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] | 14345 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14346 | |
| 14347 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14349 | |
| 14350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14351 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14352 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14353 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14354 | case $ac_cv_c_bigendian in |
| 14355 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14357 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14358 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14359 | _ACEOF |
| 14360 | ;; |
| 14361 | no) |
| 14362 | ;; |
| 14363 | *) |
| 14364 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14365 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14366 | echo "$as_me: error: unknown endianness |
| 14367 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14368 | { (exit 1); exit 1; }; } ;; |
| 14369 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14370 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14371 | 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] | 14372 | ASM_TYPES_HEADER=./asm_types.h |
| 14373 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14374 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14375 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14376 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14377 | 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] | 14378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14379 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14381 | 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] | 14382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14383 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14386 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14387 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14388 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14389 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14391 | cat >conftest.$ac_ext <<_ACEOF |
| 14392 | /* confdefs.h. */ |
| 14393 | _ACEOF |
| 14394 | cat confdefs.h >>conftest.$ac_ext |
| 14395 | cat >>conftest.$ac_ext <<_ACEOF |
| 14396 | /* end confdefs.h. */ |
| 14397 | $ac_includes_default |
| 14398 | #include <$ac_header> |
| 14399 | _ACEOF |
| 14400 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14401 | if { (ac_try="$ac_compile" |
| 14402 | case "(($ac_try" in |
| 14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14404 | *) ac_try_echo=$ac_try;; |
| 14405 | esac |
| 14406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14407 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14408 | ac_status=$? |
| 14409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14410 | rm -f conftest.er1 |
| 14411 | cat conftest.err >&5 |
| 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14413 | (exit $ac_status); } && { |
| 14414 | test -z "$ac_c_werror_flag" || |
| 14415 | test ! -s conftest.err |
| 14416 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14417 | ac_header_compiler=yes |
| 14418 | else |
| 14419 | echo "$as_me: failed program was:" >&5 |
| 14420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14422 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14423 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14424 | |
| 14425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14426 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14427 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14428 | |
| 14429 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14430 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14431 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14432 | cat >conftest.$ac_ext <<_ACEOF |
| 14433 | /* confdefs.h. */ |
| 14434 | _ACEOF |
| 14435 | cat confdefs.h >>conftest.$ac_ext |
| 14436 | cat >>conftest.$ac_ext <<_ACEOF |
| 14437 | /* end confdefs.h. */ |
| 14438 | #include <$ac_header> |
| 14439 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14440 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14441 | case "(($ac_try" in |
| 14442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14443 | *) ac_try_echo=$ac_try;; |
| 14444 | esac |
| 14445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14446 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14447 | ac_status=$? |
| 14448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14449 | rm -f conftest.er1 |
| 14450 | cat conftest.err >&5 |
| 14451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14452 | (exit $ac_status); } >/dev/null && { |
| 14453 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14454 | test ! -s conftest.err |
| 14455 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14456 | ac_header_preproc=yes |
| 14457 | else |
| 14458 | echo "$as_me: failed program was:" >&5 |
| 14459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14460 | |
| 14461 | ac_header_preproc=no |
| 14462 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14464 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14465 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14466 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14467 | |
| 14468 | # So? What about this header? |
| 14469 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14470 | yes:no: ) |
| 14471 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14472 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14473 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14474 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14475 | ac_header_preproc=yes |
| 14476 | ;; |
| 14477 | no:yes:* ) |
| 14478 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14479 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14480 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14481 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14482 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14483 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14484 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14485 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14487 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14488 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14489 | 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] | 14490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | ;; |
| 14492 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14493 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14495 | 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] | 14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14497 | else |
| 14498 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14499 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14500 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14502 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14503 | |
| 14504 | fi |
| 14505 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14506 | cat >>confdefs.h <<_ACEOF |
| 14507 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14508 | _ACEOF |
| 14509 | |
| 14510 | fi |
| 14511 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14512 | done |
| 14513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14514 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14515 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14516 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14518 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14519 | cat >conftest.$ac_ext <<_ACEOF |
| 14520 | /* confdefs.h. */ |
| 14521 | _ACEOF |
| 14522 | cat confdefs.h >>conftest.$ac_ext |
| 14523 | cat >>conftest.$ac_ext <<_ACEOF |
| 14524 | /* end confdefs.h. */ |
| 14525 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14526 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14527 | int |
| 14528 | main () |
| 14529 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14530 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14531 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14532 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14533 | return 0; |
| 14534 | ; |
| 14535 | return 0; |
| 14536 | } |
| 14537 | _ACEOF |
| 14538 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14539 | if { (ac_try="$ac_compile" |
| 14540 | case "(($ac_try" in |
| 14541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14542 | *) ac_try_echo=$ac_try;; |
| 14543 | esac |
| 14544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14545 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14546 | ac_status=$? |
| 14547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14548 | rm -f conftest.er1 |
| 14549 | cat conftest.err >&5 |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14551 | (exit $ac_status); } && { |
| 14552 | test -z "$ac_c_werror_flag" || |
| 14553 | test ! -s conftest.err |
| 14554 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14555 | ac_cv_type_intptr_t=yes |
| 14556 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | echo "$as_me: failed program was:" >&5 |
| 14558 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14559 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14560 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14561 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14562 | |
| 14563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14564 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14565 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14566 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14567 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14568 | |
| 14569 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14570 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14571 | _ACEOF |
| 14572 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14574 | fi |
| 14575 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14576 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14577 | 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] | 14578 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14580 | else |
| 14581 | cat >conftest.$ac_ext <<_ACEOF |
| 14582 | /* confdefs.h. */ |
| 14583 | _ACEOF |
| 14584 | cat confdefs.h >>conftest.$ac_ext |
| 14585 | cat >>conftest.$ac_ext <<_ACEOF |
| 14586 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14587 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14588 | int |
| 14589 | main () |
| 14590 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14591 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | ; |
| 14593 | return 0; |
| 14594 | } |
| 14595 | _ACEOF |
| 14596 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14597 | if { (ac_try="$ac_compile" |
| 14598 | case "(($ac_try" in |
| 14599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14600 | *) ac_try_echo=$ac_try;; |
| 14601 | esac |
| 14602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14603 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14604 | ac_status=$? |
| 14605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14606 | rm -f conftest.er1 |
| 14607 | cat conftest.err >&5 |
| 14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14609 | (exit $ac_status); } && { |
| 14610 | test -z "$ac_c_werror_flag" || |
| 14611 | test ! -s conftest.err |
| 14612 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14613 | e2fsprogs_cv_struct_st_flags=yes |
| 14614 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14615 | echo "$as_me: failed program was:" >&5 |
| 14616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14618 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14619 | fi |
| 14620 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14622 | fi |
| 14623 | |
| 14624 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14625 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14626 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14627 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14628 | 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] | 14629 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14631 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14632 | cat >conftest.$ac_ext <<_ACEOF |
| 14633 | /* confdefs.h. */ |
| 14634 | _ACEOF |
| 14635 | cat confdefs.h >>conftest.$ac_ext |
| 14636 | cat >>conftest.$ac_ext <<_ACEOF |
| 14637 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14638 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14639 | int |
| 14640 | main () |
| 14641 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14642 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14643 | ; |
| 14644 | return 0; |
| 14645 | } |
| 14646 | _ACEOF |
| 14647 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14648 | if { (ac_try="$ac_compile" |
| 14649 | case "(($ac_try" in |
| 14650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14651 | *) ac_try_echo=$ac_try;; |
| 14652 | esac |
| 14653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14654 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14655 | ac_status=$? |
| 14656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14657 | rm -f conftest.er1 |
| 14658 | cat conftest.err >&5 |
| 14659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14660 | (exit $ac_status); } && { |
| 14661 | test -z "$ac_c_werror_flag" || |
| 14662 | test ! -s conftest.err |
| 14663 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14664 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14665 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14666 | echo "$as_me: failed program was:" >&5 |
| 14667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14668 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14669 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14670 | fi |
| 14671 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14673 | fi |
| 14674 | |
| 14675 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14676 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14677 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14678 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14679 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14680 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14681 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14682 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14684 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14685 | 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] | 14686 | 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] | 14687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14688 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14689 | cat >conftest.$ac_ext <<_ACEOF |
| 14690 | /* confdefs.h. */ |
| 14691 | _ACEOF |
| 14692 | cat confdefs.h >>conftest.$ac_ext |
| 14693 | cat >>conftest.$ac_ext <<_ACEOF |
| 14694 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14695 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14696 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14697 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14698 | int |
| 14699 | main () |
| 14700 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14701 | static struct sockaddr ac_aggr; |
| 14702 | if (ac_aggr.sa_len) |
| 14703 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14704 | ; |
| 14705 | return 0; |
| 14706 | } |
| 14707 | _ACEOF |
| 14708 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14709 | if { (ac_try="$ac_compile" |
| 14710 | case "(($ac_try" in |
| 14711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14712 | *) ac_try_echo=$ac_try;; |
| 14713 | esac |
| 14714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14715 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14716 | ac_status=$? |
| 14717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14718 | rm -f conftest.er1 |
| 14719 | cat conftest.err >&5 |
| 14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14721 | (exit $ac_status); } && { |
| 14722 | test -z "$ac_c_werror_flag" || |
| 14723 | test ! -s conftest.err |
| 14724 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14725 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14726 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14727 | echo "$as_me: failed program was:" >&5 |
| 14728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14730 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14731 | /* confdefs.h. */ |
| 14732 | _ACEOF |
| 14733 | cat confdefs.h >>conftest.$ac_ext |
| 14734 | cat >>conftest.$ac_ext <<_ACEOF |
| 14735 | /* end confdefs.h. */ |
| 14736 | #include <sys/types.h> |
| 14737 | #include <sys/socket.h> |
| 14738 | |
| 14739 | int |
| 14740 | main () |
| 14741 | { |
| 14742 | static struct sockaddr ac_aggr; |
| 14743 | if (sizeof ac_aggr.sa_len) |
| 14744 | return 0; |
| 14745 | ; |
| 14746 | return 0; |
| 14747 | } |
| 14748 | _ACEOF |
| 14749 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14750 | if { (ac_try="$ac_compile" |
| 14751 | case "(($ac_try" in |
| 14752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14753 | *) ac_try_echo=$ac_try;; |
| 14754 | esac |
| 14755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14756 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14757 | ac_status=$? |
| 14758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14759 | rm -f conftest.er1 |
| 14760 | cat conftest.err >&5 |
| 14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14762 | (exit $ac_status); } && { |
| 14763 | test -z "$ac_c_werror_flag" || |
| 14764 | test ! -s conftest.err |
| 14765 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14766 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14767 | else |
| 14768 | echo "$as_me: failed program was:" >&5 |
| 14769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14771 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14773 | |
| 14774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14775 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14776 | |
| 14777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14778 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14779 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14780 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14781 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14782 | |
| 14783 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14784 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14785 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14786 | |
| 14787 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14788 | |
| 14789 | |
| 14790 | |
| 14791 | |
| 14792 | |
| 14793 | |
| 14794 | |
| 14795 | |
| 14796 | |
| 14797 | |
| 14798 | |
| 14799 | |
| 14800 | |
| 14801 | |
| 14802 | |
| 14803 | |
| 14804 | |
| 14805 | |
| 14806 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14807 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14808 | |
| 14809 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14810 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14811 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14812 | |
| 14813 | |
| 14814 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14815 | |
| 14816 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14817 | |
| 14818 | 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] | 14819 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14820 | 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] | 14821 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14823 | 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] | 14824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14825 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14826 | cat >conftest.$ac_ext <<_ACEOF |
| 14827 | /* confdefs.h. */ |
| 14828 | _ACEOF |
| 14829 | cat confdefs.h >>conftest.$ac_ext |
| 14830 | cat >>conftest.$ac_ext <<_ACEOF |
| 14831 | /* end confdefs.h. */ |
| 14832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14834 | #define $ac_func innocuous_$ac_func |
| 14835 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14836 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14837 | which can conflict with char $ac_func (); below. |
| 14838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14839 | <limits.h> exists even on freestanding compilers. */ |
| 14840 | |
| 14841 | #ifdef __STDC__ |
| 14842 | # include <limits.h> |
| 14843 | #else |
| 14844 | # include <assert.h> |
| 14845 | #endif |
| 14846 | |
| 14847 | #undef $ac_func |
| 14848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14849 | /* Override any GCC internal prototype to avoid an error. |
| 14850 | Use char because int might match the return type of a GCC |
| 14851 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14852 | #ifdef __cplusplus |
| 14853 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14854 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14855 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14856 | /* The GNU C library defines this for functions which it implements |
| 14857 | to always fail with ENOSYS. Some functions are actually named |
| 14858 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14859 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14860 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14861 | #endif |
| 14862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14863 | int |
| 14864 | main () |
| 14865 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14866 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14867 | ; |
| 14868 | return 0; |
| 14869 | } |
| 14870 | _ACEOF |
| 14871 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14872 | if { (ac_try="$ac_link" |
| 14873 | case "(($ac_try" in |
| 14874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14875 | *) ac_try_echo=$ac_try;; |
| 14876 | esac |
| 14877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14878 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14879 | ac_status=$? |
| 14880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14881 | rm -f conftest.er1 |
| 14882 | cat conftest.err >&5 |
| 14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14884 | (exit $ac_status); } && { |
| 14885 | test -z "$ac_c_werror_flag" || |
| 14886 | test ! -s conftest.err |
| 14887 | } && test -s conftest$ac_exeext && |
| 14888 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14889 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14890 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14891 | echo "$as_me: failed program was:" >&5 |
| 14892 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14894 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14895 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14896 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14897 | 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] | 14898 | conftest$ac_exeext conftest.$ac_ext |
| 14899 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14900 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14902 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14903 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14904 | cat >>confdefs.h <<_ACEOF |
| 14905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14906 | _ACEOF |
| 14907 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14908 | fi |
| 14909 | done |
| 14910 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14911 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14912 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14913 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14914 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14916 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14917 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14918 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14919 | cat >conftest.$ac_ext <<_ACEOF |
| 14920 | /* confdefs.h. */ |
| 14921 | _ACEOF |
| 14922 | cat confdefs.h >>conftest.$ac_ext |
| 14923 | cat >>conftest.$ac_ext <<_ACEOF |
| 14924 | /* end confdefs.h. */ |
| 14925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14926 | /* Override any GCC internal prototype to avoid an error. |
| 14927 | Use char because int might match the return type of a GCC |
| 14928 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14929 | #ifdef __cplusplus |
| 14930 | extern "C" |
| 14931 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14932 | char socket (); |
| 14933 | int |
| 14934 | main () |
| 14935 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14936 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14937 | ; |
| 14938 | return 0; |
| 14939 | } |
| 14940 | _ACEOF |
| 14941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14942 | if { (ac_try="$ac_link" |
| 14943 | case "(($ac_try" in |
| 14944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14945 | *) ac_try_echo=$ac_try;; |
| 14946 | esac |
| 14947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14948 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14949 | ac_status=$? |
| 14950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14951 | rm -f conftest.er1 |
| 14952 | cat conftest.err >&5 |
| 14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14954 | (exit $ac_status); } && { |
| 14955 | test -z "$ac_c_werror_flag" || |
| 14956 | test ! -s conftest.err |
| 14957 | } && test -s conftest$ac_exeext && |
| 14958 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14959 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14960 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14961 | echo "$as_me: failed program was:" >&5 |
| 14962 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14964 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14965 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14966 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14967 | 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] | 14968 | conftest$ac_exeext conftest.$ac_ext |
| 14969 | LIBS=$ac_check_lib_save_LIBS |
| 14970 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14971 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14972 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14973 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14974 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14975 | fi |
| 14976 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14977 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14978 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14979 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14980 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14981 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14983 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14984 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14985 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14986 | cat >conftest.$ac_ext <<_ACEOF |
| 14987 | /* confdefs.h. */ |
| 14988 | _ACEOF |
| 14989 | cat confdefs.h >>conftest.$ac_ext |
| 14990 | cat >>conftest.$ac_ext <<_ACEOF |
| 14991 | /* end confdefs.h. */ |
| 14992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14993 | /* Override any GCC internal prototype to avoid an error. |
| 14994 | Use char because int might match the return type of a GCC |
| 14995 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14996 | #ifdef __cplusplus |
| 14997 | extern "C" |
| 14998 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14999 | char dlopen (); |
| 15000 | int |
| 15001 | main () |
| 15002 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15003 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15004 | ; |
| 15005 | return 0; |
| 15006 | } |
| 15007 | _ACEOF |
| 15008 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15009 | if { (ac_try="$ac_link" |
| 15010 | case "(($ac_try" in |
| 15011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15012 | *) ac_try_echo=$ac_try;; |
| 15013 | esac |
| 15014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15015 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15016 | ac_status=$? |
| 15017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15018 | rm -f conftest.er1 |
| 15019 | cat conftest.err >&5 |
| 15020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15021 | (exit $ac_status); } && { |
| 15022 | test -z "$ac_c_werror_flag" || |
| 15023 | test ! -s conftest.err |
| 15024 | } && test -s conftest$ac_exeext && |
| 15025 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15026 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15027 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15028 | echo "$as_me: failed program was:" >&5 |
| 15029 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15030 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15031 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15032 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15033 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15034 | 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] | 15035 | conftest$ac_exeext conftest.$ac_ext |
| 15036 | LIBS=$ac_check_lib_save_LIBS |
| 15037 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15038 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15039 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15040 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15041 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15042 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15043 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15044 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15045 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15046 | fi |
| 15047 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15049 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 15050 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15051 | if test "${ac_cv_have_optreset+set}" = set; then |
| 15052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15053 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15054 | cat >conftest.$ac_ext <<_ACEOF |
| 15055 | /* confdefs.h. */ |
| 15056 | _ACEOF |
| 15057 | cat confdefs.h >>conftest.$ac_ext |
| 15058 | cat >>conftest.$ac_ext <<_ACEOF |
| 15059 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15060 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15061 | |
| 15062 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15064 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15065 | ac_cv_have_optreset=yes |
| 15066 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15067 | ac_cv_have_optreset=no |
| 15068 | fi |
| 15069 | rm -f conftest* |
| 15070 | |
| 15071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15072 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 15073 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15074 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15075 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15076 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15077 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15078 | |
| 15079 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15080 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 15081 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 15082 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15083 | UNI_DIFF_OPTS=-u |
| 15084 | else |
| 15085 | UNI_DIFF_OPTS=-c |
| 15086 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15087 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 15088 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15089 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15090 | case "$host_os" in |
| 15091 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15092 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15093 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15094 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15095 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15096 | ;; |
| 15097 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15098 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15099 | CYGWIN_CMT="#" |
| 15100 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15101 | case "$host_os" in |
| 15102 | linux*) |
| 15103 | LINUX_CMT= |
| 15104 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15105 | cygwin) |
| 15106 | CYGWIN_CMT= |
| 15107 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15108 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15109 | esac |
| 15110 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15111 | |
| 15112 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15113 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15114 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15115 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 15116 | root_prefix=""; |
| 15117 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15118 | fi |
| 15119 | ;; |
| 15120 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15121 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15122 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15123 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15124 | prefix="/usr"; |
| 15125 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15126 | if test "$mandir" = '${prefix}/man' ; then |
| 15127 | echo "...and mandir defaults to /usr/share/man" |
| 15128 | mandir=/usr/share/man |
| 15129 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15130 | fi |
| 15131 | ;; |
| 15132 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15133 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15134 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15135 | root_prefix="$ac_default_prefix" |
| 15136 | else |
| 15137 | root_prefix="$prefix" |
| 15138 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15139 | root_bindir=$bindir |
| 15140 | root_sbindir=$sbindir |
| 15141 | root_libdir=$libdir |
| 15142 | root_sysconfdir=$sysconfdir |
| 15143 | else |
| 15144 | root_bindir='${root_prefix}/bin' |
| 15145 | root_sbindir='${root_prefix}/sbin' |
| 15146 | root_libdir='${root_prefix}/lib' |
| 15147 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15148 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15149 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15150 | root_bindir=$bindir |
| 15151 | echo "Setting root_bindir to $root_bindir" |
| 15152 | fi |
| 15153 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15154 | root_sbindir=$sbindir |
| 15155 | echo "Setting root_sbindir to $root_sbindir" |
| 15156 | fi |
| 15157 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15158 | root_libdir=$libdir |
| 15159 | echo "Setting root_libdir to $root_libdir" |
| 15160 | fi |
| 15161 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15162 | root_sysconfdir=$sysconfdir |
| 15163 | echo "Setting root_sysconfdir to $root_sysconfdir" |
| 15164 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15165 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15166 | |
| 15167 | |
| 15168 | |
| 15169 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15170 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15171 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15172 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15174 | else |
| 15175 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15176 | cat >conftest.$ac_ext <<_ACEOF |
| 15177 | /* confdefs.h. */ |
| 15178 | _ACEOF |
| 15179 | cat confdefs.h >>conftest.$ac_ext |
| 15180 | cat >>conftest.$ac_ext <<_ACEOF |
| 15181 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15182 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15183 | int |
| 15184 | main () |
| 15185 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15186 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15187 | ; |
| 15188 | return 0; |
| 15189 | } |
| 15190 | _ACEOF |
| 15191 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15192 | if { (ac_try="$ac_link" |
| 15193 | case "(($ac_try" in |
| 15194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15195 | *) ac_try_echo=$ac_try;; |
| 15196 | esac |
| 15197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15198 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15199 | ac_status=$? |
| 15200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15201 | rm -f conftest.er1 |
| 15202 | cat conftest.err >&5 |
| 15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15204 | (exit $ac_status); } && { |
| 15205 | test -z "$ac_c_werror_flag" || |
| 15206 | test ! -s conftest.err |
| 15207 | } && test -s conftest$ac_exeext && |
| 15208 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15209 | ac_cv_e2fsprogs_use_static=yes |
| 15210 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15211 | echo "$as_me: failed program was:" >&5 |
| 15212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15213 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15214 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15215 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15216 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15217 | 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] | 15218 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15219 | LDFLAGS=$SAVE_LDFLAGS |
| 15220 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15221 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15222 | case "$host_os" in |
| 15223 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15224 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15225 | ;; |
| 15226 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15227 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15228 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15229 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15230 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15231 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15232 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15233 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15234 | case "$host_os" in |
| 15235 | darwin*) |
| 15236 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15237 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15238 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15239 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15240 | |
| 15241 | ;; |
| 15242 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15243 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15244 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15245 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15246 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15247 | if test "$cross_compiling" = yes ; then |
| 15248 | DO_TEST_SUITE= |
| 15249 | else |
| 15250 | DO_TEST_SUITE=check |
| 15251 | fi |
| 15252 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15253 | INTL_FLAGS= |
| 15254 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15255 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15256 | fi |
| 15257 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15258 | if test $cross_compiling = no; then |
| 15259 | BUILD_CFLAGS="$CFLAGS" |
| 15260 | BUILD_LDFLAGS="$LDFLAGS" |
| 15261 | else |
| 15262 | BUILD_CFLAGS= |
| 15263 | BUILD_LDFLAGS= |
| 15264 | fi |
| 15265 | |
| 15266 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15267 | test -d lib || mkdir lib |
| 15268 | test -d include || mkdir include |
| 15269 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15270 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15271 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15272 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15273 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15274 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15275 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15276 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15277 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15278 | 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] | 15279 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15280 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15281 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15282 | if test -d `dirname ${srcdir}/$i` ; then |
| 15283 | outlist="$outlist $i" |
| 15284 | fi |
| 15285 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15286 | ac_config_files="$ac_config_files $outlist" |
| 15287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15288 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15289 | # This file is a shell script that caches the results of configure |
| 15290 | # 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] | 15291 | # scripts and configure runs, see configure's option --config-cache. |
| 15292 | # It is not useful on other systems. If it contains results you don't |
| 15293 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15294 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15295 | # config.status only pays attention to the cache file if you give it |
| 15296 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15297 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15298 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15299 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15300 | # following values. |
| 15301 | |
| 15302 | _ACEOF |
| 15303 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15304 | # The following way of writing the cache mishandles newlines in values, |
| 15305 | # 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] | 15306 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15307 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15308 | # 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] | 15309 | ( |
| 15310 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15311 | eval ac_val=\$$ac_var |
| 15312 | case $ac_val in #( |
| 15313 | *${as_nl}*) |
| 15314 | case $ac_var in #( |
| 15315 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15316 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15317 | esac |
| 15318 | case $ac_var in #( |
| 15319 | _ | IFS | as_nl) ;; #( |
| 15320 | *) $as_unset $ac_var ;; |
| 15321 | esac ;; |
| 15322 | esac |
| 15323 | done |
| 15324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15325 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15326 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15327 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15328 | # `set' does not quote correctly, so add quotes (double-quote |
| 15329 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15330 | sed -n \ |
| 15331 | "s/'/'\\\\''/g; |
| 15332 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15333 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15334 | *) |
| 15335 | # `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] | 15336 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15337 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15338 | esac | |
| 15339 | sort |
| 15340 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15341 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15342 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15343 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15344 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15345 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15346 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15347 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15348 | :end' >>confcache |
| 15349 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15350 | if test -w "$cache_file"; then |
| 15351 | test "x$cache_file" != "x/dev/null" && |
| 15352 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15353 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15354 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15355 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15356 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15357 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15358 | fi |
| 15359 | fi |
| 15360 | rm -f confcache |
| 15361 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15362 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15363 | # Let make expand exec_prefix. |
| 15364 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15365 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15366 | # Transform confdefs.h into DEFS. |
| 15367 | # Protect against shell expansion while executing Makefile rules. |
| 15368 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15369 | # |
| 15370 | # 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] | 15371 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15372 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15373 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15374 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15375 | :clear |
| 15376 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15377 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15378 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15379 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15380 | b any |
| 15381 | :quote |
| 15382 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15383 | s/\[/\\&/g |
| 15384 | s/\]/\\&/g |
| 15385 | s/\$/$$/g |
| 15386 | H |
| 15387 | :any |
| 15388 | ${ |
| 15389 | g |
| 15390 | s/^\n// |
| 15391 | s/\n/ /g |
| 15392 | p |
| 15393 | } |
| 15394 | ' |
| 15395 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15396 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15397 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15398 | ac_libobjs= |
| 15399 | ac_ltlibobjs= |
| 15400 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15401 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15402 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15403 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15404 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15405 | # will be set to the directory where LIBOBJS objects are built. |
| 15406 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15407 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15408 | done |
| 15409 | LIBOBJS=$ac_libobjs |
| 15410 | |
| 15411 | LTLIBOBJS=$ac_ltlibobjs |
| 15412 | |
| 15413 | |
| 15414 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15415 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15416 | ac_clean_files_save=$ac_clean_files |
| 15417 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15418 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15419 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15420 | cat >$CONFIG_STATUS <<_ACEOF |
| 15421 | #! $SHELL |
| 15422 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15423 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15424 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15425 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15427 | debug=false |
| 15428 | ac_cs_recheck=false |
| 15429 | ac_cs_silent=false |
| 15430 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15431 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15433 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15434 | ## --------------------- ## |
| 15435 | ## M4sh Initialization. ## |
| 15436 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15437 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15438 | # Be more Bourne compatible |
| 15439 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15440 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15441 | emulate sh |
| 15442 | NULLCMD=: |
| 15443 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15444 | # is contrary to our usage. Disable this feature. |
| 15445 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15446 | setopt NO_GLOB_SUBST |
| 15447 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15448 | case `(set -o) 2>/dev/null` in |
| 15449 | *posix*) set -o posix ;; |
| 15450 | esac |
| 15451 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15452 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15453 | |
| 15454 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15455 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15456 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15457 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15458 | # Avoid depending upon Character Ranges. |
| 15459 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15460 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15461 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15462 | as_cr_digits='0123456789' |
| 15463 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15464 | |
| 15465 | # The user is always right. |
| 15466 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15467 | echo "#! /bin/sh" >conf$$.sh |
| 15468 | echo "exit 0" >>conf$$.sh |
| 15469 | chmod +x conf$$.sh |
| 15470 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15471 | PATH_SEPARATOR=';' |
| 15472 | else |
| 15473 | PATH_SEPARATOR=: |
| 15474 | fi |
| 15475 | rm -f conf$$.sh |
| 15476 | fi |
| 15477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15478 | # Support unset when possible. |
| 15479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15480 | as_unset=unset |
| 15481 | else |
| 15482 | as_unset=false |
| 15483 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15485 | |
| 15486 | # IFS |
| 15487 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15488 | # there to prevent editors from complaining about space-tab. |
| 15489 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15490 | # splitting by setting IFS to empty value.) |
| 15491 | as_nl=' |
| 15492 | ' |
| 15493 | IFS=" "" $as_nl" |
| 15494 | |
| 15495 | # Find who we are. Look in the path if we contain no directory separator. |
| 15496 | case $0 in |
| 15497 | *[\\/]* ) as_myself=$0 ;; |
| 15498 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15499 | for as_dir in $PATH |
| 15500 | do |
| 15501 | IFS=$as_save_IFS |
| 15502 | test -z "$as_dir" && as_dir=. |
| 15503 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15504 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15505 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15507 | ;; |
| 15508 | esac |
| 15509 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15510 | # in which case we are not to be found in the path. |
| 15511 | if test "x$as_myself" = x; then |
| 15512 | as_myself=$0 |
| 15513 | fi |
| 15514 | if test ! -f "$as_myself"; then |
| 15515 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15516 | { (exit 1); exit 1; } |
| 15517 | fi |
| 15518 | |
| 15519 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15520 | for as_var in ENV MAIL MAILPATH |
| 15521 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15522 | done |
| 15523 | PS1='$ ' |
| 15524 | PS2='> ' |
| 15525 | PS4='+ ' |
| 15526 | |
| 15527 | # NLS nuisances. |
| 15528 | for as_var in \ |
| 15529 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15530 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15531 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15532 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15533 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15534 | eval $as_var=C; export $as_var |
| 15535 | else |
| 15536 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15537 | fi |
| 15538 | done |
| 15539 | |
| 15540 | # Required to use basename. |
| 15541 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15542 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15543 | as_expr=expr |
| 15544 | else |
| 15545 | as_expr=false |
| 15546 | fi |
| 15547 | |
| 15548 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15549 | as_basename=basename |
| 15550 | else |
| 15551 | as_basename=false |
| 15552 | fi |
| 15553 | |
| 15554 | |
| 15555 | # Name of the executable. |
| 15556 | as_me=`$as_basename -- "$0" || |
| 15557 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15558 | X"$0" : 'X\(//\)$' \| \ |
| 15559 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15560 | echo X/"$0" | |
| 15561 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15562 | s//\1/ |
| 15563 | q |
| 15564 | } |
| 15565 | /^X\/\(\/\/\)$/{ |
| 15566 | s//\1/ |
| 15567 | q |
| 15568 | } |
| 15569 | /^X\/\(\/\).*/{ |
| 15570 | s//\1/ |
| 15571 | q |
| 15572 | } |
| 15573 | s/.*/./; q'` |
| 15574 | |
| 15575 | # CDPATH. |
| 15576 | $as_unset CDPATH |
| 15577 | |
| 15578 | |
| 15579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15580 | as_lineno_1=$LINENO |
| 15581 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15582 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15583 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15584 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15585 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15586 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15587 | # line-number line after each line using $LINENO; the second 'sed' |
| 15588 | # does the real work. The second script uses 'N' to pair each |
| 15589 | # line-number line with the line containing $LINENO, and appends |
| 15590 | # trailing '-' during substitution so that $LINENO is not a special |
| 15591 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15592 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15593 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15594 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15595 | sed -n ' |
| 15596 | p |
| 15597 | /[$]LINENO/= |
| 15598 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15599 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15600 | s/[$]LINENO.*/&-/ |
| 15601 | t lineno |
| 15602 | b |
| 15603 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15604 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15605 | :loop |
| 15606 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15607 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15608 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15609 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15610 | chmod +x "$as_me.lineno" || |
| 15611 | { 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] | 15612 | { (exit 1); exit 1; }; } |
| 15613 | |
| 15614 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15615 | # (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] | 15616 | # original and so on. Autoconf is especially sensitive to this). |
| 15617 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15618 | # Exit status is that of the last command. |
| 15619 | exit |
| 15620 | } |
| 15621 | |
| 15622 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15623 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15624 | as_dirname=dirname |
| 15625 | else |
| 15626 | as_dirname=false |
| 15627 | fi |
| 15628 | |
| 15629 | ECHO_C= ECHO_N= ECHO_T= |
| 15630 | case `echo -n x` in |
| 15631 | -n*) |
| 15632 | case `echo 'x\c'` in |
| 15633 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15634 | *) ECHO_C='\c';; |
| 15635 | esac;; |
| 15636 | *) |
| 15637 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15638 | esac |
| 15639 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15640 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15641 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15642 | as_expr=expr |
| 15643 | else |
| 15644 | as_expr=false |
| 15645 | fi |
| 15646 | |
| 15647 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15648 | if test -d conf$$.dir; then |
| 15649 | rm -f conf$$.dir/conf$$.file |
| 15650 | else |
| 15651 | rm -f conf$$.dir |
| 15652 | mkdir conf$$.dir |
| 15653 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15654 | echo >conf$$.file |
| 15655 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15656 | as_ln_s='ln -s' |
| 15657 | # ... but there are two gotchas: |
| 15658 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15659 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15660 | # In both cases, we have to default to `cp -p'. |
| 15661 | 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] | 15662 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15663 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15664 | as_ln_s=ln |
| 15665 | else |
| 15666 | as_ln_s='cp -p' |
| 15667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15668 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15669 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15670 | |
| 15671 | if mkdir -p . 2>/dev/null; then |
| 15672 | as_mkdir_p=: |
| 15673 | else |
| 15674 | test -d ./-p && rmdir ./-p |
| 15675 | as_mkdir_p=false |
| 15676 | fi |
| 15677 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15678 | if test -x / >/dev/null 2>&1; then |
| 15679 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15680 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15681 | if ls -dL / >/dev/null 2>&1; then |
| 15682 | as_ls_L_option=L |
| 15683 | else |
| 15684 | as_ls_L_option= |
| 15685 | fi |
| 15686 | as_test_x=' |
| 15687 | eval sh -c '\'' |
| 15688 | if test -d "$1"; then |
| 15689 | test -d "$1/."; |
| 15690 | else |
| 15691 | case $1 in |
| 15692 | -*)set "./$1";; |
| 15693 | esac; |
| 15694 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15695 | ???[sx]*):;;*)false;;esac;fi |
| 15696 | '\'' sh |
| 15697 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15698 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15699 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15700 | |
| 15701 | # Sed expression to map a string onto a valid CPP name. |
| 15702 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15703 | |
| 15704 | # Sed expression to map a string onto a valid variable name. |
| 15705 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15706 | |
| 15707 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15708 | exec 6>&1 |
| 15709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15710 | # 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] | 15711 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15712 | # values after options handling. |
| 15713 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15714 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15715 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15716 | |
| 15717 | CONFIG_FILES = $CONFIG_FILES |
| 15718 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15719 | CONFIG_LINKS = $CONFIG_LINKS |
| 15720 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15721 | $ $0 $@ |
| 15722 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15723 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15724 | " |
| 15725 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15726 | _ACEOF |
| 15727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15728 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15729 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15730 | config_files="$ac_config_files" |
| 15731 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15732 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15733 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15734 | |
| 15735 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15736 | ac_cs_usage="\ |
| 15737 | \`$as_me' instantiates files from templates according to the |
| 15738 | current configuration. |
| 15739 | |
| 15740 | Usage: $0 [OPTIONS] [FILE]... |
| 15741 | |
| 15742 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15743 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15744 | -q, --quiet do not print progress messages |
| 15745 | -d, --debug don't remove temporary files |
| 15746 | --recheck update $as_me by reconfiguring in the same conditions |
| 15747 | --file=FILE[:TEMPLATE] |
| 15748 | instantiate the configuration file FILE |
| 15749 | |
| 15750 | Configuration files: |
| 15751 | $config_files |
| 15752 | |
| 15753 | Configuration commands: |
| 15754 | $config_commands |
| 15755 | |
| 15756 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15757 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15758 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15759 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15760 | ac_cs_version="\\ |
| 15761 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15762 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15763 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15765 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15766 | This config.status script is free software; the Free Software Foundation |
| 15767 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15768 | |
| 15769 | ac_pwd='$ac_pwd' |
| 15770 | srcdir='$srcdir' |
| 15771 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15772 | _ACEOF |
| 15773 | |
| 15774 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15775 | # If no file are specified by the user, then we need to provide default |
| 15776 | # value. By we need to know if files were specified by the user. |
| 15777 | ac_need_defaults=: |
| 15778 | while test $# != 0 |
| 15779 | do |
| 15780 | case $1 in |
| 15781 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15782 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15783 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15784 | ac_shift=: |
| 15785 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15786 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15787 | ac_option=$1 |
| 15788 | ac_optarg=$2 |
| 15789 | ac_shift=shift |
| 15790 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15791 | esac |
| 15792 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15793 | case $ac_option in |
| 15794 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15795 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15796 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15797 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15798 | echo "$ac_cs_version"; exit ;; |
| 15799 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15800 | debug=: ;; |
| 15801 | --file | --fil | --fi | --f ) |
| 15802 | $ac_shift |
| 15803 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15804 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15805 | --he | --h | --help | --hel | -h ) |
| 15806 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15807 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15808 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15809 | ac_cs_silent=: ;; |
| 15810 | |
| 15811 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15812 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15813 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15814 | { (exit 1); exit 1; }; } ;; |
| 15815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15816 | *) ac_config_targets="$ac_config_targets $1" |
| 15817 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15818 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15819 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15820 | shift |
| 15821 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15822 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15823 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15824 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15825 | if $ac_cs_silent; then |
| 15826 | exec 6>/dev/null |
| 15827 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15828 | fi |
| 15829 | |
| 15830 | _ACEOF |
| 15831 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15832 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15833 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15834 | CONFIG_SHELL=$SHELL |
| 15835 | export CONFIG_SHELL |
| 15836 | 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] | 15837 | fi |
| 15838 | |
| 15839 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15840 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15841 | exec 5>>config.log |
| 15842 | { |
| 15843 | echo |
| 15844 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15845 | ## Running $as_me. ## |
| 15846 | _ASBOX |
| 15847 | echo "$ac_log" |
| 15848 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15850 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15851 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15852 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15853 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15854 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15855 | # 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] | 15856 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15857 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15858 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15859 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15860 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15861 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15863 | _ACEOF |
| 15864 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15865 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15866 | |
| 15867 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15868 | for ac_config_target in $ac_config_targets |
| 15869 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15870 | case $ac_config_target in |
| 15871 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15872 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15873 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15874 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15875 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15876 | { (exit 1); exit 1; }; };; |
| 15877 | esac |
| 15878 | done |
| 15879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15880 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15881 | # If the user did not use the arguments to specify the items to instantiate, |
| 15882 | # then the envvar interface is used. Set only those that are not. |
| 15883 | # We use the long form for the default assignment because of an extremely |
| 15884 | # bizarre bug on SunOS 4.1.3. |
| 15885 | if $ac_need_defaults; then |
| 15886 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15887 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15888 | fi |
| 15889 | |
| 15890 | # 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] | 15891 | # 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] | 15892 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15893 | # Hook for its removal unless debugging. |
| 15894 | # Note that there is a small window in which the directory will not be cleaned: |
| 15895 | # 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] | 15896 | $debug || |
| 15897 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15898 | tmp= |
| 15899 | trap 'exit_status=$? |
| 15900 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15901 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15902 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15903 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15904 | # Create a (secure) tmp directory for tmp files. |
| 15905 | |
| 15906 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15907 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15908 | test -n "$tmp" && test -d "$tmp" |
| 15909 | } || |
| 15910 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15911 | tmp=./conf$$-$RANDOM |
| 15912 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15913 | } || |
| 15914 | { |
| 15915 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15916 | { (exit 1); exit 1; } |
| 15917 | } |
| 15918 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15919 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15920 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15921 | # |
| 15922 | |
| 15923 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15924 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15925 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15926 | |
| 15927 | _ACEOF |
| 15928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15929 | # Create sed commands to just substitute file output variables. |
| 15930 | |
| 15931 | # Remaining file output variables are in a fragment that also has non-file |
| 15932 | # output varibles. |
| 15933 | |
| 15934 | |
| 15935 | |
| 15936 | ac_delim='%!_!# ' |
| 15937 | for ac_last_try in false false false false false :; do |
| 15938 | cat >conf$$subs.sed <<_ACEOF |
| 15939 | SHELL!$SHELL$ac_delim |
| 15940 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15941 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15942 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15943 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15944 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15945 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15946 | exec_prefix!$exec_prefix$ac_delim |
| 15947 | prefix!$prefix$ac_delim |
| 15948 | program_transform_name!$program_transform_name$ac_delim |
| 15949 | bindir!$bindir$ac_delim |
| 15950 | sbindir!$sbindir$ac_delim |
| 15951 | libexecdir!$libexecdir$ac_delim |
| 15952 | datarootdir!$datarootdir$ac_delim |
| 15953 | datadir!$datadir$ac_delim |
| 15954 | sysconfdir!$sysconfdir$ac_delim |
| 15955 | sharedstatedir!$sharedstatedir$ac_delim |
| 15956 | localstatedir!$localstatedir$ac_delim |
| 15957 | includedir!$includedir$ac_delim |
| 15958 | oldincludedir!$oldincludedir$ac_delim |
| 15959 | docdir!$docdir$ac_delim |
| 15960 | infodir!$infodir$ac_delim |
| 15961 | htmldir!$htmldir$ac_delim |
| 15962 | dvidir!$dvidir$ac_delim |
| 15963 | pdfdir!$pdfdir$ac_delim |
| 15964 | psdir!$psdir$ac_delim |
| 15965 | libdir!$libdir$ac_delim |
| 15966 | localedir!$localedir$ac_delim |
| 15967 | mandir!$mandir$ac_delim |
| 15968 | DEFS!$DEFS$ac_delim |
| 15969 | ECHO_C!$ECHO_C$ac_delim |
| 15970 | ECHO_N!$ECHO_N$ac_delim |
| 15971 | ECHO_T!$ECHO_T$ac_delim |
| 15972 | LIBS!$LIBS$ac_delim |
| 15973 | build_alias!$build_alias$ac_delim |
| 15974 | host_alias!$host_alias$ac_delim |
| 15975 | target_alias!$target_alias$ac_delim |
| 15976 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15977 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15978 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15979 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15980 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15981 | build!$build$ac_delim |
| 15982 | build_cpu!$build_cpu$ac_delim |
| 15983 | build_vendor!$build_vendor$ac_delim |
| 15984 | build_os!$build_os$ac_delim |
| 15985 | host!$host$ac_delim |
| 15986 | host_cpu!$host_cpu$ac_delim |
| 15987 | host_vendor!$host_vendor$ac_delim |
| 15988 | host_os!$host_os$ac_delim |
| 15989 | CC!$CC$ac_delim |
| 15990 | CFLAGS!$CFLAGS$ac_delim |
| 15991 | LDFLAGS!$LDFLAGS$ac_delim |
| 15992 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15993 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15994 | EXEEXT!$EXEEXT$ac_delim |
| 15995 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15996 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15997 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15998 | GREP!$GREP$ac_delim |
| 15999 | EGREP!$EGREP$ac_delim |
| 16000 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 16001 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 16002 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 16003 | ELF_CMT!$ELF_CMT$ac_delim |
| 16004 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 16005 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 16006 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 16007 | LIB_EXT!$LIB_EXT$ac_delim |
| 16008 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 16009 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16010 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 16011 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 16012 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
Theodore Ts'o | a5dda05 | 2007-08-11 03:11:12 -0400 | [diff] [blame] | 16013 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | 428f6b3 | 2008-01-27 20:09:05 -0500 | [diff] [blame] | 16014 | FSCK_MAN!$FSCK_MAN$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16015 | _ACEOF |
| 16016 | |
| 16017 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 16018 | break |
| 16019 | elif $ac_last_try; then |
| 16020 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16021 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16022 | { (exit 1); exit 1; }; } |
| 16023 | else |
| 16024 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16025 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16026 | done |
| 16027 | |
| 16028 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16029 | if test -n "$ac_eof"; then |
| 16030 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16031 | ac_eof=`expr $ac_eof + 1` |
| 16032 | fi |
| 16033 | |
| 16034 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16035 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 16036 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16037 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 16038 | r $MCONFIG |
| 16039 | d |
| 16040 | } |
| 16041 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 16042 | r $MAKEFILE_ELF |
| 16043 | d |
| 16044 | } |
| 16045 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 16046 | r $MAKEFILE_BSDLIB |
| 16047 | d |
| 16048 | } |
| 16049 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 16050 | r $MAKEFILE_PROFILE |
| 16051 | d |
| 16052 | } |
| 16053 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 16054 | r $MAKEFILE_CHECKER |
| 16055 | d |
| 16056 | } |
| 16057 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 16058 | r $MAKEFILE_LIBRARY |
| 16059 | d |
| 16060 | } |
| 16061 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 16062 | r $ASM_TYPES_HEADER |
| 16063 | d |
| 16064 | } |
| 16065 | _ACEOF |
| 16066 | sed ' |
| 16067 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16068 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16069 | :n |
| 16070 | t n |
| 16071 | s/'"$ac_delim"'$/,g/; t |
| 16072 | s/$/\\/; p |
| 16073 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16074 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16075 | rm -f conf$$subs.sed |
| 16076 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16077 | CEOF$ac_eof |
| 16078 | _ACEOF |
| 16079 | |
| 16080 | |
| 16081 | ac_delim='%!_!# ' |
| 16082 | for ac_last_try in false false false false false :; do |
| 16083 | cat >conf$$subs.sed <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16084 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 16085 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16086 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16087 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 16088 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 16089 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 16090 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16091 | STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 16092 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16093 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 16094 | PACKAGE!$PACKAGE$ac_delim |
| 16095 | VERSION!$VERSION$ac_delim |
| 16096 | SET_MAKE!$SET_MAKE$ac_delim |
| 16097 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 16098 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 16099 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 16100 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 16101 | USE_NLS!$USE_NLS$ac_delim |
| 16102 | MSGFMT!$MSGFMT$ac_delim |
| 16103 | GMSGFMT!$GMSGFMT$ac_delim |
| 16104 | XGETTEXT!$XGETTEXT$ac_delim |
| 16105 | MSGMERGE!$MSGMERGE$ac_delim |
| 16106 | RANLIB!$RANLIB$ac_delim |
| 16107 | ALLOCA!$ALLOCA$ac_delim |
| 16108 | GLIBC21!$GLIBC21$ac_delim |
| 16109 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 16110 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 16111 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 16112 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 16113 | LIBICONV!$LIBICONV$ac_delim |
| 16114 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 16115 | INTLBISON!$INTLBISON$ac_delim |
| 16116 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16117 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16118 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16119 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16120 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16121 | GENCAT!$GENCAT$ac_delim |
| 16122 | INTLOBJS!$INTLOBJS$ac_delim |
| 16123 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16124 | INTLLIBS!$INTLLIBS$ac_delim |
| 16125 | LIBINTL!$LIBINTL$ac_delim |
| 16126 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16127 | POSUB!$POSUB$ac_delim |
| 16128 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16129 | LN!$LN$ac_delim |
| 16130 | LN_S!$LN_S$ac_delim |
| 16131 | MV!$MV$ac_delim |
| 16132 | CP!$CP$ac_delim |
| 16133 | RM!$RM$ac_delim |
| 16134 | CHMOD!$CHMOD$ac_delim |
| 16135 | AWK!$AWK$ac_delim |
| 16136 | SED!$SED$ac_delim |
| 16137 | PERL!$PERL$ac_delim |
| 16138 | LDCONFIG!$LDCONFIG$ac_delim |
| 16139 | AR!$AR$ac_delim |
| 16140 | STRIP!$STRIP$ac_delim |
| 16141 | BUILD_CC!$BUILD_CC$ac_delim |
| 16142 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16143 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16144 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16145 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16146 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16147 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 16148 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16149 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16150 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16151 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16152 | root_prefix!$root_prefix$ac_delim |
| 16153 | root_bindir!$root_bindir$ac_delim |
| 16154 | root_sbindir!$root_sbindir$ac_delim |
| 16155 | root_libdir!$root_libdir$ac_delim |
| 16156 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16157 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16158 | SS_DIR!$SS_DIR$ac_delim |
| 16159 | ET_DIR!$ET_DIR$ac_delim |
| 16160 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16161 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16162 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16163 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16164 | LIBOBJS!$LIBOBJS$ac_delim |
| 16165 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16166 | _ACEOF |
| 16167 | |
Theodore Ts'o | 428f6b3 | 2008-01-27 20:09:05 -0500 | [diff] [blame] | 16168 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16169 | break |
| 16170 | elif $ac_last_try; then |
| 16171 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16172 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16173 | { (exit 1); exit 1; }; } |
| 16174 | else |
| 16175 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16176 | fi |
| 16177 | done |
| 16178 | |
| 16179 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16180 | if test -n "$ac_eof"; then |
| 16181 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16182 | ac_eof=`expr $ac_eof + 1` |
| 16183 | fi |
| 16184 | |
| 16185 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16186 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16187 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16188 | _ACEOF |
| 16189 | sed ' |
| 16190 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16191 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16192 | :n |
| 16193 | t n |
| 16194 | s/'"$ac_delim"'$/,g/; t |
| 16195 | s/$/\\/; p |
| 16196 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16197 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16198 | rm -f conf$$subs.sed |
| 16199 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16200 | :end |
| 16201 | s/|#_!!_#|//g |
| 16202 | CEOF$ac_eof |
| 16203 | _ACEOF |
| 16204 | |
| 16205 | |
| 16206 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16207 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16208 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16209 | # (actually we leave an empty line to preserve line numbers). |
| 16210 | if test "x$srcdir" = x.; then |
| 16211 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16212 | s/:*\$(srcdir):*/:/ |
| 16213 | s/:*\${srcdir}:*/:/ |
| 16214 | s/:*@srcdir@:*/:/ |
| 16215 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16216 | s/:*$// |
| 16217 | s/^[^=]*=[ ]*$// |
| 16218 | }' |
| 16219 | fi |
| 16220 | |
| 16221 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16222 | fi # test -n "$CONFIG_FILES" |
| 16223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16224 | |
| 16225 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16226 | do |
| 16227 | case $ac_tag in |
| 16228 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16229 | esac |
| 16230 | case $ac_mode$ac_tag in |
| 16231 | :[FHL]*:*);; |
| 16232 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16233 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16234 | { (exit 1); exit 1; }; };; |
| 16235 | :[FH]-) ac_tag=-:-;; |
| 16236 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16237 | esac |
| 16238 | ac_save_IFS=$IFS |
| 16239 | IFS=: |
| 16240 | set x $ac_tag |
| 16241 | IFS=$ac_save_IFS |
| 16242 | shift |
| 16243 | ac_file=$1 |
| 16244 | shift |
| 16245 | |
| 16246 | case $ac_mode in |
| 16247 | :L) ac_source=$1;; |
| 16248 | :[FH]) |
| 16249 | ac_file_inputs= |
| 16250 | for ac_f |
| 16251 | do |
| 16252 | case $ac_f in |
| 16253 | -) ac_f="$tmp/stdin";; |
| 16254 | *) # Look for the file first in the build tree, then in the source tree |
| 16255 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16256 | # because $ac_f cannot contain `:'. |
| 16257 | test -f "$ac_f" || |
| 16258 | case $ac_f in |
| 16259 | [\\/$]*) false;; |
| 16260 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16261 | esac || |
| 16262 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16263 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16264 | { (exit 1); exit 1; }; };; |
| 16265 | esac |
| 16266 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16267 | done |
| 16268 | |
| 16269 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16270 | # use $as_me), people would be surprised to read: |
| 16271 | # /* config.h. Generated by config.status. */ |
| 16272 | configure_input="Generated from "`IFS=: |
| 16273 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16274 | if test x"$ac_file" != x-; then |
| 16275 | configure_input="$ac_file. $configure_input" |
| 16276 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16277 | echo "$as_me: creating $ac_file" >&6;} |
| 16278 | fi |
| 16279 | |
| 16280 | case $ac_tag in |
| 16281 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16282 | esac |
| 16283 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16284 | esac |
| 16285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16286 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16287 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16288 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16289 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16290 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16291 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16293 | s//\1/ |
| 16294 | q |
| 16295 | } |
| 16296 | /^X\(\/\/\)[^/].*/{ |
| 16297 | s//\1/ |
| 16298 | q |
| 16299 | } |
| 16300 | /^X\(\/\/\)$/{ |
| 16301 | s//\1/ |
| 16302 | q |
| 16303 | } |
| 16304 | /^X\(\/\).*/{ |
| 16305 | s//\1/ |
| 16306 | q |
| 16307 | } |
| 16308 | s/.*/./; q'` |
| 16309 | { as_dir="$ac_dir" |
| 16310 | case $as_dir in #( |
| 16311 | -*) as_dir=./$as_dir;; |
| 16312 | esac |
| 16313 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16314 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16315 | while :; do |
| 16316 | case $as_dir in #( |
| 16317 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16318 | *) as_qdir=$as_dir;; |
| 16319 | esac |
| 16320 | as_dirs="'$as_qdir' $as_dirs" |
| 16321 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16323 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16324 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16325 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16326 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16328 | s//\1/ |
| 16329 | q |
| 16330 | } |
| 16331 | /^X\(\/\/\)[^/].*/{ |
| 16332 | s//\1/ |
| 16333 | q |
| 16334 | } |
| 16335 | /^X\(\/\/\)$/{ |
| 16336 | s//\1/ |
| 16337 | q |
| 16338 | } |
| 16339 | /^X\(\/\).*/{ |
| 16340 | s//\1/ |
| 16341 | q |
| 16342 | } |
| 16343 | s/.*/./; q'` |
| 16344 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16345 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16346 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16347 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16348 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16349 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16350 | ac_builddir=. |
| 16351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16352 | case "$ac_dir" in |
| 16353 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16354 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16355 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16356 | # A ".." for each directory in $ac_dir_suffix. |
| 16357 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16358 | case $ac_top_builddir_sub in |
| 16359 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16360 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16361 | esac ;; |
| 16362 | esac |
| 16363 | ac_abs_top_builddir=$ac_pwd |
| 16364 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16365 | # for backward compatibility: |
| 16366 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16367 | |
| 16368 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16369 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16370 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16371 | ac_top_srcdir=$ac_top_builddir_sub |
| 16372 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16373 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16374 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16375 | ac_top_srcdir=$srcdir |
| 16376 | ac_abs_top_srcdir=$srcdir ;; |
| 16377 | *) # Relative name. |
| 16378 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16379 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16380 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16381 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16382 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16384 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16385 | case $ac_mode in |
| 16386 | :F) |
| 16387 | # |
| 16388 | # CONFIG_FILE |
| 16389 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16390 | |
| 16391 | case $INSTALL in |
| 16392 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16393 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16394 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16395 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16396 | |
| 16397 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16398 | # If the template does not know about datarootdir, expand it. |
| 16399 | # FIXME: This hack should be removed a few years after 2.60. |
| 16400 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16401 | |
| 16402 | case `sed -n '/datarootdir/ { |
| 16403 | p |
| 16404 | q |
| 16405 | } |
| 16406 | /@datadir@/p |
| 16407 | /@docdir@/p |
| 16408 | /@infodir@/p |
| 16409 | /@localedir@/p |
| 16410 | /@mandir@/p |
| 16411 | ' $ac_file_inputs` in |
| 16412 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16413 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16414 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16415 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16416 | _ACEOF |
| 16417 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16418 | ac_datarootdir_hack=' |
| 16419 | s&@datadir@&$datadir&g |
| 16420 | s&@docdir@&$docdir&g |
| 16421 | s&@infodir@&$infodir&g |
| 16422 | s&@localedir@&$localedir&g |
| 16423 | s&@mandir@&$mandir&g |
| 16424 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16425 | esac |
| 16426 | _ACEOF |
| 16427 | |
| 16428 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16429 | # Shell code in configure.ac might set extrasub. |
| 16430 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16431 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16432 | sed "$ac_vpsub |
| 16433 | $extrasub |
| 16434 | _ACEOF |
| 16435 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16436 | :t |
| 16437 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16438 | s&@configure_input@&$configure_input&;t t |
| 16439 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16440 | s&@srcdir@&$ac_srcdir&;t t |
| 16441 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16442 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16443 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16444 | s&@builddir@&$ac_builddir&;t t |
| 16445 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16446 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16447 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16448 | $ac_datarootdir_hack |
| 16449 | " $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] | 16450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16451 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16452 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16453 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16454 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16455 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16456 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16457 | 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] | 16458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16459 | rm -f "$tmp/stdin" |
| 16460 | case $ac_file in |
| 16461 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16462 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16463 | esac |
| 16464 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16465 | |
| 16466 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16467 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16468 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16469 | ;; |
| 16470 | esac |
| 16471 | |
| 16472 | |
| 16473 | case $ac_file$ac_mode in |
| 16474 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16475 | for ac_file in $CONFIG_FILES; do |
| 16476 | # Support "outfile[:infile[:infile...]]" |
| 16477 | case "$ac_file" in |
| 16478 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16479 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16480 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16481 | case "$ac_file" in */Makefile.in) |
| 16482 | # Adjust a relative srcdir. |
| 16483 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16484 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16485 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16486 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16487 | # In autoconf-2.50 it is called $srcdir. |
| 16488 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16489 | case "$ac_given_srcdir" in |
| 16490 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16491 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16492 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16493 | esac |
| 16494 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16495 | rm -f "$ac_dir/POTFILES" |
| 16496 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16497 | 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] | 16498 | POMAKEFILEDEPS="POTFILES.in" |
| 16499 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16500 | # on $ac_dir but don't depend on user-specified configuration |
| 16501 | # parameters. |
| 16502 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16503 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16504 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16505 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16506 | fi |
| 16507 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16508 | # Hide the ALL_LINGUAS assigment from automake. |
| 16509 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16510 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16511 | else |
| 16512 | # The set of available languages was given in configure.in. |
| 16513 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16514 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16515 | # Compute POFILES |
| 16516 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16517 | # Compute UPDATEPOFILES |
| 16518 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16519 | # Compute DUMMYPOFILES |
| 16520 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16521 | # Compute GMOFILES |
| 16522 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16523 | case "$ac_given_srcdir" in |
| 16524 | .) srcdirpre= ;; |
| 16525 | *) srcdirpre='$(srcdir)/' ;; |
| 16526 | esac |
| 16527 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16528 | UPDATEPOFILES= |
| 16529 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16530 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16531 | for lang in $ALL_LINGUAS; do |
| 16532 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16533 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16534 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16535 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16536 | done |
| 16537 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16538 | # environment variable. |
| 16539 | INST_LINGUAS= |
| 16540 | if test -n "$ALL_LINGUAS"; then |
| 16541 | for presentlang in $ALL_LINGUAS; do |
| 16542 | useit=no |
| 16543 | if test "%UNSET%" != "$LINGUAS"; then |
| 16544 | desiredlanguages="$LINGUAS" |
| 16545 | else |
| 16546 | desiredlanguages="$ALL_LINGUAS" |
| 16547 | fi |
| 16548 | for desiredlang in $desiredlanguages; do |
| 16549 | # Use the presentlang catalog if desiredlang is |
| 16550 | # a. equal to presentlang, or |
| 16551 | # b. a variant of presentlang (because in this case, |
| 16552 | # presentlang can be used as a fallback for messages |
| 16553 | # which are not translated in the desiredlang catalog). |
| 16554 | case "$desiredlang" in |
| 16555 | "$presentlang"*) useit=yes;; |
| 16556 | esac |
| 16557 | done |
| 16558 | if test $useit = yes; then |
| 16559 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16560 | fi |
| 16561 | done |
| 16562 | fi |
| 16563 | CATALOGS= |
| 16564 | if test -n "$INST_LINGUAS"; then |
| 16565 | for lang in $INST_LINGUAS; do |
| 16566 | CATALOGS="$CATALOGS $lang.gmo" |
| 16567 | done |
| 16568 | fi |
| 16569 | 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] | 16570 | 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] | 16571 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16572 | if test -f "$f"; then |
| 16573 | case "$f" in |
| 16574 | *.orig | *.bak | *~) ;; |
| 16575 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16576 | esac |
| 16577 | fi |
| 16578 | done |
| 16579 | fi |
| 16580 | ;; |
| 16581 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16582 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16584 | esac |
| 16585 | done # for ac_tag |
| 16586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16587 | |
| 16588 | { (exit 0); exit 0; } |
| 16589 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16590 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16591 | ac_clean_files=$ac_clean_files_save |
| 16592 | |
| 16593 | |
| 16594 | # configure is writing to config.log, and then calls config.status. |
| 16595 | # config.status does its own redirection, appending to config.log. |
| 16596 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16597 | # by configure, so config.status won't be able to write to it; its |
| 16598 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16599 | # effectively closing config.log, so it can be properly (re)opened and |
| 16600 | # appended to by config.status. When coming back to configure, we |
| 16601 | # need to make the FD available again. |
| 16602 | if test "$no_create" != yes; then |
| 16603 | ac_cs_success=: |
| 16604 | ac_config_status_args= |
| 16605 | test "$silent" = yes && |
| 16606 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16607 | exec 5>/dev/null |
| 16608 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16609 | exec 5>>config.log |
| 16610 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16611 | # would make configure fail if this is the last instruction. |
| 16612 | $ac_cs_success || { (exit 1); exit 1; } |
| 16613 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16614 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16615 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16616 | |