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 | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.65. |
| 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 34 | |
| 35 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 60 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | fi |
| 82 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 92 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 112 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | fi |
| 114 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 132 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 398 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | |
| 420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 430 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (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] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 453 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 454 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 455 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 463 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 470 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 471 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 485 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 501 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 510 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 511 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 512 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 513 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 514 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 520 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 540 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 543 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME= |
| 551 | PACKAGE_TARNAME= |
| 552 | PACKAGE_VERSION= |
| 553 | PACKAGE_STRING= |
| 554 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 555 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 556 | |
| 557 | ac_unique_file="version.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 561 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # include <sys/types.h> |
| 563 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # include <sys/stat.h> |
| 566 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 567 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 571 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 581 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 582 | # include <strings.h> |
| 583 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 584 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 585 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 586 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 587 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 588 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 589 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 590 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 594 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 595 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 596 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 597 | BUILD_LDFLAGS |
| 598 | BUILD_CFLAGS |
| 599 | INTL_FLAGS |
| 600 | DO_TEST_SUITE |
| 601 | ET_DIR |
| 602 | SS_DIR |
| 603 | LDFLAG_STATIC |
| 604 | root_sysconfdir |
| 605 | root_libdir |
| 606 | root_sbindir |
| 607 | root_bindir |
| 608 | root_prefix |
| 609 | UNIX_CMT |
| 610 | CYGWIN_CMT |
| 611 | LINUX_CMT |
| 612 | UNI_DIFF_OPTS |
| 613 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 614 | SOCKET_LIB |
| 615 | SIZEOF_LONG_LONG |
| 616 | SIZEOF_LONG |
| 617 | SIZEOF_INT |
| 618 | SIZEOF_SHORT |
| 619 | BUILD_CC |
| 620 | MAKEINFO |
| 621 | STRIP |
| 622 | AR |
| 623 | LDCONFIG |
| 624 | PERL |
| 625 | SED |
| 626 | AWK |
| 627 | CHMOD |
| 628 | RM |
| 629 | CP |
| 630 | MV |
| 631 | LN_S |
| 632 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 633 | ifNotGNUmake |
| 634 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | BINARY_TYPE |
| 636 | POSUB |
| 637 | LTLIBINTL |
| 638 | LIBINTL |
| 639 | INTLLIBS |
| 640 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 641 | INTLOBJS |
| 642 | GENCAT |
| 643 | INSTOBJEXT |
| 644 | DATADIRNAME |
| 645 | CATOBJEXT |
| 646 | USE_INCLUDED_LIBINTL |
| 647 | BUILD_INCLUDED_LIBINTL |
| 648 | INTLBISON |
| 649 | LTLIBICONV |
| 650 | LIBICONV |
| 651 | HAVE_WPRINTF |
| 652 | HAVE_SNPRINTF |
| 653 | HAVE_ASPRINTF |
| 654 | HAVE_POSIX_PRINTF |
| 655 | GLIBC21 |
| 656 | ALLOCA |
| 657 | RANLIB |
| 658 | MSGMERGE |
| 659 | XGETTEXT |
| 660 | GMSGFMT |
| 661 | MSGFMT |
| 662 | USE_NLS |
| 663 | MKINSTALLDIRS |
| 664 | INSTALL_DATA |
| 665 | INSTALL_SCRIPT |
| 666 | INSTALL_PROGRAM |
| 667 | SET_MAKE |
| 668 | VERSION |
| 669 | PACKAGE |
| 670 | GETTEXT_PACKAGE |
| 671 | UUIDD_CMT |
| 672 | E2INITRD_MAN |
| 673 | E2INITRD_PROG |
| 674 | FSCK_MAN |
| 675 | FSCK_PROG |
| 676 | RESIZER_CMT |
| 677 | IMAGER_CMT |
| 678 | DEBUGFS_CMT |
| 679 | BLKID_CMT |
| 680 | DEPPROFILED_LIBBLKID |
| 681 | PROFILED_LIBBLKID |
| 682 | DEPSTATIC_LIBBLKID |
| 683 | STATIC_LIBBLKID |
| 684 | DEPLIBBLKID |
| 685 | LIBBLKID |
| 686 | UUID_CMT |
| 687 | DEPPROFILED_LIBUUID |
| 688 | PROFILED_LIBUUID |
| 689 | DEPSTATIC_LIBUUID |
| 690 | STATIC_LIBUUID |
| 691 | DEPLIBUUID |
| 692 | LIBUUID |
| 693 | PKG_CONFIG |
| 694 | TEST_IO_CMT |
| 695 | PRIVATE_LIBS_CMT |
| 696 | LDFLAG_DYNAMIC |
| 697 | PROFILED_LIB_EXT |
| 698 | STATIC_LIB_EXT |
| 699 | LIB_EXT |
| 700 | CHECKER_CMT |
| 701 | PROFILE_CMT |
| 702 | BSDLIB_CMT |
| 703 | ELF_CMT |
| 704 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 705 | Q |
| 706 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 707 | LINK_BUILD_FLAGS |
| 708 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 709 | MAINTAINER_CMT |
| 710 | LINUX_INCLUDE |
| 711 | EGREP |
| 712 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 713 | CPP |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 714 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 715 | OBJEXT |
| 716 | EXEEXT |
| 717 | ac_ct_CC |
| 718 | CPPFLAGS |
| 719 | LDFLAGS |
| 720 | CFLAGS |
| 721 | CC |
| 722 | host_os |
| 723 | host_vendor |
| 724 | host_cpu |
| 725 | host |
| 726 | build_os |
| 727 | build_vendor |
| 728 | build_cpu |
| 729 | build |
| 730 | E2FSPROGS_PKGVER |
| 731 | E2FSPROGS_VERSION |
| 732 | E2FSPROGS_DAY |
| 733 | E2FSPROGS_MONTH |
| 734 | E2FSPROGS_YEAR |
| 735 | target_alias |
| 736 | host_alias |
| 737 | build_alias |
| 738 | LIBS |
| 739 | ECHO_T |
| 740 | ECHO_N |
| 741 | ECHO_C |
| 742 | DEFS |
| 743 | mandir |
| 744 | localedir |
| 745 | libdir |
| 746 | psdir |
| 747 | pdfdir |
| 748 | dvidir |
| 749 | htmldir |
| 750 | infodir |
| 751 | docdir |
| 752 | oldincludedir |
| 753 | includedir |
| 754 | localstatedir |
| 755 | sharedstatedir |
| 756 | sysconfdir |
| 757 | datadir |
| 758 | datarootdir |
| 759 | libexecdir |
| 760 | sbindir |
| 761 | bindir |
| 762 | program_transform_name |
| 763 | prefix |
| 764 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 765 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 766 | PACKAGE_BUGREPORT |
| 767 | PACKAGE_STRING |
| 768 | PACKAGE_VERSION |
| 769 | PACKAGE_TARNAME |
| 770 | PACKAGE_NAME |
| 771 | PATH_SEPARATOR |
| 772 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 773 | ac_subst_files='MCONFIG |
| 774 | MAKEFILE_ELF |
| 775 | MAKEFILE_BSDLIB |
| 776 | MAKEFILE_PROFILE |
| 777 | MAKEFILE_CHECKER |
| 778 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 779 | ASM_TYPES_HEADER |
| 780 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 781 | ac_user_opts=' |
| 782 | enable_option_checking |
| 783 | with_diet_libc |
| 784 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 785 | with_ccopts |
| 786 | with_ldopts |
| 787 | with_root_prefix |
| 788 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 789 | enable_symlink_install |
| 790 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 791 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 792 | enable_compression |
| 793 | enable_htree |
| 794 | enable_elf_shlibs |
| 795 | enable_bsd_shlibs |
| 796 | enable_profile |
| 797 | enable_checker |
| 798 | enable_jbd_debug |
| 799 | enable_blkid_debug |
| 800 | enable_testio_debug |
| 801 | enable_libuuid |
| 802 | enable_libblkid |
| 803 | enable_debugfs |
| 804 | enable_imager |
| 805 | enable_resizer |
| 806 | enable_fsck |
| 807 | enable_e2initrd_helper |
| 808 | enable_tls |
| 809 | enable_uuidd |
| 810 | enable_nls |
| 811 | with_gnu_ld |
| 812 | enable_rpath |
| 813 | with_libiconv_prefix |
| 814 | with_included_gettext |
| 815 | with_libintl_prefix |
| 816 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 817 | ac_precious_vars='build_alias |
| 818 | host_alias |
| 819 | target_alias |
| 820 | CC |
| 821 | CFLAGS |
| 822 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 823 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 824 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 825 | CPP |
| 826 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 827 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 828 | |
| 829 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 830 | ac_init_help= |
| 831 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 832 | ac_unrecognized_opts= |
| 833 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 834 | # The variables have the same names as the options, with |
| 835 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 836 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 837 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 838 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | no_recursion= |
| 840 | prefix=NONE |
| 841 | program_prefix=NONE |
| 842 | program_suffix=NONE |
| 843 | program_transform_name=s,x,x, |
| 844 | silent= |
| 845 | site= |
| 846 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 847 | verbose= |
| 848 | x_includes=NONE |
| 849 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 850 | |
| 851 | # Installation directory options. |
| 852 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 853 | # and all the variables that are supposed to be based on exec_prefix |
| 854 | # by default will actually change. |
| 855 | # 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] | 856 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 857 | bindir='${exec_prefix}/bin' |
| 858 | sbindir='${exec_prefix}/sbin' |
| 859 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 860 | datarootdir='${prefix}/share' |
| 861 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 862 | sysconfdir='${prefix}/etc' |
| 863 | sharedstatedir='${prefix}/com' |
| 864 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 865 | includedir='${prefix}/include' |
| 866 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 867 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 868 | infodir='${datarootdir}/info' |
| 869 | htmldir='${docdir}' |
| 870 | dvidir='${docdir}' |
| 871 | pdfdir='${docdir}' |
| 872 | psdir='${docdir}' |
| 873 | libdir='${exec_prefix}/lib' |
| 874 | localedir='${datarootdir}/locale' |
| 875 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 876 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 877 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 878 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 879 | for ac_option |
| 880 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 881 | # If the previous option needs an argument, assign it. |
| 882 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 883 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 884 | ac_prev= |
| 885 | continue |
| 886 | fi |
| 887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 888 | case $ac_option in |
| 889 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 890 | *) ac_optarg=yes ;; |
| 891 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 892 | |
| 893 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 895 | case $ac_dashdash$ac_option in |
| 896 | --) |
| 897 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 898 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 899 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 900 | ac_prev=bindir ;; |
| 901 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 902 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 903 | |
| 904 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 905 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 906 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 907 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 908 | |
| 909 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 910 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 911 | ac_prev=cache_file ;; |
| 912 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 913 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 914 | cache_file=$ac_optarg ;; |
| 915 | |
| 916 | --config-cache | -C) |
| 917 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 919 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 920 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 921 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 922 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 924 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 925 | | --dataroo | --dataro | --datar) |
| 926 | ac_prev=datarootdir ;; |
| 927 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 928 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 929 | datarootdir=$ac_optarg ;; |
| 930 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 931 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 932 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 933 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 934 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 935 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 936 | ac_useropt_orig=$ac_useropt |
| 937 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 938 | case $ac_user_opts in |
| 939 | *" |
| 940 | "enable_$ac_useropt" |
| 941 | "*) ;; |
| 942 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 943 | ac_unrecognized_sep=', ';; |
| 944 | esac |
| 945 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 946 | |
| 947 | -docdir | --docdir | --docdi | --doc | --do) |
| 948 | ac_prev=docdir ;; |
| 949 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 950 | docdir=$ac_optarg ;; |
| 951 | |
| 952 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 953 | ac_prev=dvidir ;; |
| 954 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 955 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 956 | |
| 957 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 958 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 959 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 960 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 961 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 962 | ac_useropt_orig=$ac_useropt |
| 963 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 964 | case $ac_user_opts in |
| 965 | *" |
| 966 | "enable_$ac_useropt" |
| 967 | "*) ;; |
| 968 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 969 | ac_unrecognized_sep=', ';; |
| 970 | esac |
| 971 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 972 | |
| 973 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 974 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 975 | | --exec | --exe | --ex) |
| 976 | ac_prev=exec_prefix ;; |
| 977 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 978 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 979 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 980 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 981 | |
| 982 | -gas | --gas | --ga | --g) |
| 983 | # Obsolete; use --with-gas. |
| 984 | with_gas=yes ;; |
| 985 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 986 | -help | --help | --hel | --he | -h) |
| 987 | ac_init_help=long ;; |
| 988 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 989 | ac_init_help=recursive ;; |
| 990 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 991 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | |
| 993 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 996 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 997 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 998 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 999 | ac_prev=htmldir ;; |
| 1000 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1001 | | --ht=*) |
| 1002 | htmldir=$ac_optarg ;; |
| 1003 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1004 | -includedir | --includedir | --includedi | --included | --include \ |
| 1005 | | --includ | --inclu | --incl | --inc) |
| 1006 | ac_prev=includedir ;; |
| 1007 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1008 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1009 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1010 | |
| 1011 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1012 | ac_prev=infodir ;; |
| 1013 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1014 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1015 | |
| 1016 | -libdir | --libdir | --libdi | --libd) |
| 1017 | ac_prev=libdir ;; |
| 1018 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1019 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1020 | |
| 1021 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1022 | | --libexe | --libex | --libe) |
| 1023 | ac_prev=libexecdir ;; |
| 1024 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1025 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1026 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1028 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1029 | ac_prev=localedir ;; |
| 1030 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1031 | localedir=$ac_optarg ;; |
| 1032 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1033 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1034 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1035 | ac_prev=localstatedir ;; |
| 1036 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1037 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1038 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1039 | |
| 1040 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1041 | ac_prev=mandir ;; |
| 1042 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1043 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1044 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1045 | -nfp | --nfp | --nf) |
| 1046 | # Obsolete; use --without-fp. |
| 1047 | with_fp=no ;; |
| 1048 | |
| 1049 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1050 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1051 | no_create=yes ;; |
| 1052 | |
| 1053 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1054 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1055 | no_recursion=yes ;; |
| 1056 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1057 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1058 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1059 | | --oldin | --oldi | --old | --ol | --o) |
| 1060 | ac_prev=oldincludedir ;; |
| 1061 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1062 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1063 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1064 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1065 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1066 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1067 | ac_prev=prefix ;; |
| 1068 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1069 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1070 | |
| 1071 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1072 | | --program-pre | --program-pr | --program-p) |
| 1073 | ac_prev=program_prefix ;; |
| 1074 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1075 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1076 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 | |
| 1078 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1079 | | --program-suf | --program-su | --program-s) |
| 1080 | ac_prev=program_suffix ;; |
| 1081 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1082 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1083 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1084 | |
| 1085 | -program-transform-name | --program-transform-name \ |
| 1086 | | --program-transform-nam | --program-transform-na \ |
| 1087 | | --program-transform-n | --program-transform- \ |
| 1088 | | --program-transform | --program-transfor \ |
| 1089 | | --program-transfo | --program-transf \ |
| 1090 | | --program-trans | --program-tran \ |
| 1091 | | --progr-tra | --program-tr | --program-t) |
| 1092 | ac_prev=program_transform_name ;; |
| 1093 | -program-transform-name=* | --program-transform-name=* \ |
| 1094 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1095 | | --program-transform-n=* | --program-transform-=* \ |
| 1096 | | --program-transform=* | --program-transfor=* \ |
| 1097 | | --program-transfo=* | --program-transf=* \ |
| 1098 | | --program-trans=* | --program-tran=* \ |
| 1099 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1100 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1102 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1103 | ac_prev=pdfdir ;; |
| 1104 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1105 | pdfdir=$ac_optarg ;; |
| 1106 | |
| 1107 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1108 | ac_prev=psdir ;; |
| 1109 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1110 | psdir=$ac_optarg ;; |
| 1111 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1113 | | -silent | --silent | --silen | --sile | --sil) |
| 1114 | silent=yes ;; |
| 1115 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1116 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1117 | ac_prev=sbindir ;; |
| 1118 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1119 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1121 | |
| 1122 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1123 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1124 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1125 | | --sha | --sh) |
| 1126 | ac_prev=sharedstatedir ;; |
| 1127 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1128 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1129 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1130 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1132 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1133 | -site | --site | --sit) |
| 1134 | ac_prev=site ;; |
| 1135 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1136 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1137 | |
| 1138 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1139 | ac_prev=srcdir ;; |
| 1140 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1141 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1142 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1143 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1144 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1145 | ac_prev=sysconfdir ;; |
| 1146 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1147 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1149 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1151 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1152 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1154 | |
| 1155 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1156 | verbose=yes ;; |
| 1157 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1158 | -version | --version | --versio | --versi | --vers | -V) |
| 1159 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1160 | |
| 1161 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1162 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1163 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1165 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1166 | ac_useropt_orig=$ac_useropt |
| 1167 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1168 | case $ac_user_opts in |
| 1169 | *" |
| 1170 | "with_$ac_useropt" |
| 1171 | "*) ;; |
| 1172 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1173 | ac_unrecognized_sep=', ';; |
| 1174 | esac |
| 1175 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1176 | |
| 1177 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1178 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1180 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1181 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1182 | ac_useropt_orig=$ac_useropt |
| 1183 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1184 | case $ac_user_opts in |
| 1185 | *" |
| 1186 | "with_$ac_useropt" |
| 1187 | "*) ;; |
| 1188 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1189 | ac_unrecognized_sep=', ';; |
| 1190 | esac |
| 1191 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | |
| 1193 | --x) |
| 1194 | # Obsolete; use --with-x. |
| 1195 | with_x=yes ;; |
| 1196 | |
| 1197 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1198 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1199 | ac_prev=x_includes ;; |
| 1200 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1201 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1202 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1203 | |
| 1204 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1205 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1206 | ac_prev=x_libraries ;; |
| 1207 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1208 | | --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] | 1209 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1210 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1211 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1212 | Try \`$0 --help' for more information." |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1213 | ;; |
| 1214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1215 | *=*) |
| 1216 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1217 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1218 | case $ac_envvar in #( |
| 1219 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1220 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1221 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1222 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1223 | export $ac_envvar ;; |
| 1224 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1225 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1227 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1228 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1229 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1230 | : ${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] | 1231 | ;; |
| 1232 | |
| 1233 | esac |
| 1234 | done |
| 1235 | |
| 1236 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1238 | as_fn_error "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1239 | fi |
| 1240 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1241 | if test -n "$ac_unrecognized_opts"; then |
| 1242 | case $enable_option_checking in |
| 1243 | no) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1244 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1245 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1246 | esac |
| 1247 | fi |
| 1248 | |
| 1249 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1250 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1251 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1252 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1253 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1255 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1256 | # Remove trailing slashes. |
| 1257 | case $ac_val in |
| 1258 | */ ) |
| 1259 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1260 | eval $ac_var=\$ac_val;; |
| 1261 | esac |
| 1262 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1263 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1264 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1265 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1266 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1267 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1268 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1270 | # There might be people who depend on the old broken behavior: `$host' |
| 1271 | # used to hold the argument of --host etc. |
| 1272 | # FIXME: To remove some day. |
| 1273 | build=$build_alias |
| 1274 | host=$host_alias |
| 1275 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1276 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1277 | # FIXME: To remove some day. |
| 1278 | if test "x$host_alias" != x; then |
| 1279 | if test "x$build_alias" = x; then |
| 1280 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1281 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1282 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1283 | elif test "x$build_alias" != "x$host_alias"; then |
| 1284 | cross_compiling=yes |
| 1285 | fi |
| 1286 | fi |
| 1287 | |
| 1288 | ac_tool_prefix= |
| 1289 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1290 | |
| 1291 | test "$silent" = yes && exec 6>/dev/null |
| 1292 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1293 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1294 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1295 | ac_ls_di=`ls -di .` && |
| 1296 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1297 | as_fn_error "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1298 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1299 | as_fn_error "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1300 | |
| 1301 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1302 | # Find the source files, if location was not specified. |
| 1303 | if test -z "$srcdir"; then |
| 1304 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1305 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1306 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1307 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1308 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1309 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1310 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1311 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1313 | s//\1/ |
| 1314 | q |
| 1315 | } |
| 1316 | /^X\(\/\/\)[^/].*/{ |
| 1317 | s//\1/ |
| 1318 | q |
| 1319 | } |
| 1320 | /^X\(\/\/\)$/{ |
| 1321 | s//\1/ |
| 1322 | q |
| 1323 | } |
| 1324 | /^X\(\/\).*/{ |
| 1325 | s//\1/ |
| 1326 | q |
| 1327 | } |
| 1328 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1329 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1330 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1331 | srcdir=.. |
| 1332 | fi |
| 1333 | else |
| 1334 | ac_srcdir_defaulted=no |
| 1335 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1336 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1337 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1338 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1340 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1341 | ac_abs_confdir=`( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1342 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1343 | pwd)` |
| 1344 | # When building in place, set srcdir=. |
| 1345 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1346 | srcdir=. |
| 1347 | fi |
| 1348 | # Remove unnecessary trailing slashes from srcdir. |
| 1349 | # Double slashes in file names in object file debugging info |
| 1350 | # mess up M-x gdb in Emacs. |
| 1351 | case $srcdir in |
| 1352 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1353 | esac |
| 1354 | for ac_var in $ac_precious_vars; do |
| 1355 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1356 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1357 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1358 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1359 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1360 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1361 | # |
| 1362 | # Report the --help message. |
| 1363 | # |
| 1364 | if test "$ac_init_help" = "long"; then |
| 1365 | # Omit some internal or obsolete options to make the list less imposing. |
| 1366 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1367 | cat <<_ACEOF |
| 1368 | \`configure' configures this package to adapt to many kinds of systems. |
| 1369 | |
| 1370 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1371 | |
| 1372 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1373 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1374 | |
| 1375 | Defaults for the options are specified in brackets. |
| 1376 | |
| 1377 | Configuration: |
| 1378 | -h, --help display this help and exit |
| 1379 | --help=short display options specific to this package |
| 1380 | --help=recursive display the short help of all the included packages |
| 1381 | -V, --version display version information and exit |
| 1382 | -q, --quiet, --silent do not print \`checking...' messages |
| 1383 | --cache-file=FILE cache test results in FILE [disabled] |
| 1384 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1385 | -n, --no-create do not create output files |
| 1386 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1387 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1388 | Installation directories: |
| 1389 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1390 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1391 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1392 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1393 | |
| 1394 | By default, \`make install' will install all the files in |
| 1395 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1396 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1397 | for instance \`--prefix=\$HOME'. |
| 1398 | |
| 1399 | For better control, use the options below. |
| 1400 | |
| 1401 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1402 | --bindir=DIR user executables [EPREFIX/bin] |
| 1403 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1404 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1405 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1406 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1407 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1408 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1409 | --includedir=DIR C header files [PREFIX/include] |
| 1410 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1411 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1412 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1413 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1414 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1415 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1416 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1417 | --htmldir=DIR html documentation [DOCDIR] |
| 1418 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1419 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1420 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1421 | _ACEOF |
| 1422 | |
| 1423 | cat <<\_ACEOF |
| 1424 | |
| 1425 | System types: |
| 1426 | --build=BUILD configure for building on BUILD [guessed] |
| 1427 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1428 | _ACEOF |
| 1429 | fi |
| 1430 | |
| 1431 | if test -n "$ac_init_help"; then |
| 1432 | |
| 1433 | cat <<\_ACEOF |
| 1434 | |
| 1435 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1436 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1438 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1439 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1440 | --enable-symlink-install use symlinks when installing instead of hard links |
| 1441 | --enable-symlink-build use symlinks while building instead of hard links |
| 1442 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1443 | --enable-compression enable EXPERIMENTAL compression support |
| 1444 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1445 | --enable-elf-shlibs select ELF shared libraries |
| 1446 | --enable-bsd-shlibs select BSD shared libraries |
| 1447 | --enable-profile build profiling libraries |
| 1448 | --enable-checker build checker libraries |
| 1449 | --enable-jbd-debug enable journal debugging |
| 1450 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1451 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1452 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1453 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1454 | --disable-debugfs disable support of debugfs program |
| 1455 | --disable-imager disable support of e2image program |
| 1456 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1457 | --enable-fsck build fsck wrapper program |
| 1458 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1459 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1460 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1461 | --disable-nls do not use Native Language Support |
| 1462 | --disable-rpath do not hardcode runtime library paths |
| 1463 | |
| 1464 | Optional Packages: |
| 1465 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1466 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1467 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1468 | --with-cc no longer supported, use CC= instead |
| 1469 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1470 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1471 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1472 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1473 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1474 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1475 | --with-included-gettext use the GNU gettext library included here |
| 1476 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1477 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1478 | |
| 1479 | Some influential environment variables: |
| 1480 | CC C compiler command |
| 1481 | CFLAGS C compiler flags |
| 1482 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1483 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1484 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1485 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1486 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1487 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1488 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1489 | |
| 1490 | Use these variables to override the choices made by `configure' or to help |
| 1491 | it to find libraries and programs with nonstandard names/locations. |
| 1492 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1493 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1494 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1495 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1496 | fi |
| 1497 | |
| 1498 | if test "$ac_init_help" = "recursive"; then |
| 1499 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1500 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1501 | test -d "$ac_dir" || |
| 1502 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1503 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1504 | ac_builddir=. |
| 1505 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1506 | case "$ac_dir" in |
| 1507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1508 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1509 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1510 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1511 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1512 | case $ac_top_builddir_sub in |
| 1513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1515 | esac ;; |
| 1516 | esac |
| 1517 | ac_abs_top_builddir=$ac_pwd |
| 1518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1519 | # for backward compatibility: |
| 1520 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1521 | |
| 1522 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1523 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1524 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1525 | ac_top_srcdir=$ac_top_builddir_sub |
| 1526 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1527 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1529 | ac_top_srcdir=$srcdir |
| 1530 | ac_abs_top_srcdir=$srcdir ;; |
| 1531 | *) # Relative name. |
| 1532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1533 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1535 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1537 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1538 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1539 | # Check for guested configure. |
| 1540 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1541 | echo && |
| 1542 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1543 | elif test -f "$ac_srcdir/configure"; then |
| 1544 | echo && |
| 1545 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1547 | $as_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] | 1548 | fi || ac_status=$? |
| 1549 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1550 | done |
| 1551 | fi |
| 1552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1553 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | if $ac_init_version; then |
| 1555 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1556 | configure |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1557 | generated by GNU Autoconf 2.65 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1558 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1559 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | This configure script is free software; the Free Software Foundation |
| 1561 | gives unlimited permission to copy, distribute and modify it. |
| 1562 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1563 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1565 | |
| 1566 | ## ------------------------ ## |
| 1567 | ## Autoconf initialization. ## |
| 1568 | ## ------------------------ ## |
| 1569 | |
| 1570 | # ac_fn_c_try_compile LINENO |
| 1571 | # -------------------------- |
| 1572 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1573 | ac_fn_c_try_compile () |
| 1574 | { |
| 1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1576 | rm -f conftest.$ac_objext |
| 1577 | if { { ac_try="$ac_compile" |
| 1578 | case "(($ac_try" in |
| 1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1580 | *) ac_try_echo=$ac_try;; |
| 1581 | esac |
| 1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1583 | $as_echo "$ac_try_echo"; } >&5 |
| 1584 | (eval "$ac_compile") 2>conftest.err |
| 1585 | ac_status=$? |
| 1586 | if test -s conftest.err; then |
| 1587 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1588 | cat conftest.er1 >&5 |
| 1589 | mv -f conftest.er1 conftest.err |
| 1590 | fi |
| 1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1592 | test $ac_status = 0; } && { |
| 1593 | test -z "$ac_c_werror_flag" || |
| 1594 | test ! -s conftest.err |
| 1595 | } && test -s conftest.$ac_objext; then : |
| 1596 | ac_retval=0 |
| 1597 | else |
| 1598 | $as_echo "$as_me: failed program was:" >&5 |
| 1599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1600 | |
| 1601 | ac_retval=1 |
| 1602 | fi |
| 1603 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1604 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1605 | |
| 1606 | } # ac_fn_c_try_compile |
| 1607 | |
| 1608 | # ac_fn_c_try_link LINENO |
| 1609 | # ----------------------- |
| 1610 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1611 | ac_fn_c_try_link () |
| 1612 | { |
| 1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1615 | if { { ac_try="$ac_link" |
| 1616 | case "(($ac_try" in |
| 1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1618 | *) ac_try_echo=$ac_try;; |
| 1619 | esac |
| 1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1621 | $as_echo "$ac_try_echo"; } >&5 |
| 1622 | (eval "$ac_link") 2>conftest.err |
| 1623 | ac_status=$? |
| 1624 | if test -s conftest.err; then |
| 1625 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1626 | cat conftest.er1 >&5 |
| 1627 | mv -f conftest.er1 conftest.err |
| 1628 | fi |
| 1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1630 | test $ac_status = 0; } && { |
| 1631 | test -z "$ac_c_werror_flag" || |
| 1632 | test ! -s conftest.err |
| 1633 | } && test -s conftest$ac_exeext && { |
| 1634 | test "$cross_compiling" = yes || |
| 1635 | $as_test_x conftest$ac_exeext |
| 1636 | }; then : |
| 1637 | ac_retval=0 |
| 1638 | else |
| 1639 | $as_echo "$as_me: failed program was:" >&5 |
| 1640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1641 | |
| 1642 | ac_retval=1 |
| 1643 | fi |
| 1644 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1645 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1646 | # interfere with the next link command; also delete a directory that is |
| 1647 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1648 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1649 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1650 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1651 | |
| 1652 | } # ac_fn_c_try_link |
| 1653 | |
| 1654 | # ac_fn_c_try_cpp LINENO |
| 1655 | # ---------------------- |
| 1656 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1657 | ac_fn_c_try_cpp () |
| 1658 | { |
| 1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1660 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1661 | case "(($ac_try" in |
| 1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1663 | *) ac_try_echo=$ac_try;; |
| 1664 | esac |
| 1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1666 | $as_echo "$ac_try_echo"; } >&5 |
| 1667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1668 | ac_status=$? |
| 1669 | if test -s conftest.err; then |
| 1670 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1671 | cat conftest.er1 >&5 |
| 1672 | mv -f conftest.er1 conftest.err |
| 1673 | fi |
| 1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1675 | test $ac_status = 0; } >/dev/null && { |
| 1676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1677 | test ! -s conftest.err |
| 1678 | }; then : |
| 1679 | ac_retval=0 |
| 1680 | else |
| 1681 | $as_echo "$as_me: failed program was:" >&5 |
| 1682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1683 | |
| 1684 | ac_retval=1 |
| 1685 | fi |
| 1686 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1687 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1688 | |
| 1689 | } # ac_fn_c_try_cpp |
| 1690 | |
| 1691 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1692 | # ------------------------------------------------------- |
| 1693 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1694 | # the include files in INCLUDES and setting the cache variable VAR |
| 1695 | # accordingly. |
| 1696 | ac_fn_c_check_header_mongrel () |
| 1697 | { |
| 1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1699 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1701 | $as_echo_n "checking for $2... " >&6; } |
| 1702 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1703 | $as_echo_n "(cached) " >&6 |
| 1704 | fi |
| 1705 | eval ac_res=\$$3 |
| 1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1707 | $as_echo "$ac_res" >&6; } |
| 1708 | else |
| 1709 | # Is the header compilable? |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1711 | $as_echo_n "checking $2 usability... " >&6; } |
| 1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1713 | /* end confdefs.h. */ |
| 1714 | $4 |
| 1715 | #include <$2> |
| 1716 | _ACEOF |
| 1717 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1718 | ac_header_compiler=yes |
| 1719 | else |
| 1720 | ac_header_compiler=no |
| 1721 | fi |
| 1722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1724 | $as_echo "$ac_header_compiler" >&6; } |
| 1725 | |
| 1726 | # Is the header present? |
| 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1728 | $as_echo_n "checking $2 presence... " >&6; } |
| 1729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1730 | /* end confdefs.h. */ |
| 1731 | #include <$2> |
| 1732 | _ACEOF |
| 1733 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1734 | ac_header_preproc=yes |
| 1735 | else |
| 1736 | ac_header_preproc=no |
| 1737 | fi |
| 1738 | rm -f conftest.err conftest.$ac_ext |
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1740 | $as_echo "$ac_header_preproc" >&6; } |
| 1741 | |
| 1742 | # So? What about this header? |
| 1743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1744 | yes:no: ) |
| 1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1746 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1748 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1749 | ;; |
| 1750 | no:yes:* ) |
| 1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1752 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1754 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1756 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1758 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1760 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1761 | ;; |
| 1762 | esac |
| 1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1764 | $as_echo_n "checking for $2... " >&6; } |
| 1765 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1766 | $as_echo_n "(cached) " >&6 |
| 1767 | else |
| 1768 | eval "$3=\$ac_header_compiler" |
| 1769 | fi |
| 1770 | eval ac_res=\$$3 |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1772 | $as_echo "$ac_res" >&6; } |
| 1773 | fi |
| 1774 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1775 | |
| 1776 | } # ac_fn_c_check_header_mongrel |
| 1777 | |
| 1778 | # ac_fn_c_try_run LINENO |
| 1779 | # ---------------------- |
| 1780 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1781 | # that executables *can* be run. |
| 1782 | ac_fn_c_try_run () |
| 1783 | { |
| 1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1785 | if { { ac_try="$ac_link" |
| 1786 | case "(($ac_try" in |
| 1787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1788 | *) ac_try_echo=$ac_try;; |
| 1789 | esac |
| 1790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1791 | $as_echo "$ac_try_echo"; } >&5 |
| 1792 | (eval "$ac_link") 2>&5 |
| 1793 | ac_status=$? |
| 1794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1795 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1796 | { { case "(($ac_try" in |
| 1797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1798 | *) ac_try_echo=$ac_try;; |
| 1799 | esac |
| 1800 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1801 | $as_echo "$ac_try_echo"; } >&5 |
| 1802 | (eval "$ac_try") 2>&5 |
| 1803 | ac_status=$? |
| 1804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1805 | test $ac_status = 0; }; }; then : |
| 1806 | ac_retval=0 |
| 1807 | else |
| 1808 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1809 | $as_echo "$as_me: failed program was:" >&5 |
| 1810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1811 | |
| 1812 | ac_retval=$ac_status |
| 1813 | fi |
| 1814 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1815 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 1816 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1817 | |
| 1818 | } # ac_fn_c_try_run |
| 1819 | |
| 1820 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1821 | # ------------------------------------------------------- |
| 1822 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1823 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1824 | ac_fn_c_check_header_compile () |
| 1825 | { |
| 1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1828 | $as_echo_n "checking for $2... " >&6; } |
| 1829 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1830 | $as_echo_n "(cached) " >&6 |
| 1831 | else |
| 1832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1833 | /* end confdefs.h. */ |
| 1834 | $4 |
| 1835 | #include <$2> |
| 1836 | _ACEOF |
| 1837 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1838 | eval "$3=yes" |
| 1839 | else |
| 1840 | eval "$3=no" |
| 1841 | fi |
| 1842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1843 | fi |
| 1844 | eval ac_res=\$$3 |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1846 | $as_echo "$ac_res" >&6; } |
| 1847 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1848 | |
| 1849 | } # ac_fn_c_check_header_compile |
| 1850 | |
| 1851 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1852 | # ------------------------------------------- |
| 1853 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1854 | # variable VAR accordingly. |
| 1855 | ac_fn_c_check_type () |
| 1856 | { |
| 1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1859 | $as_echo_n "checking for $2... " >&6; } |
| 1860 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1861 | $as_echo_n "(cached) " >&6 |
| 1862 | else |
| 1863 | eval "$3=no" |
| 1864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1865 | /* end confdefs.h. */ |
| 1866 | $4 |
| 1867 | int |
| 1868 | main () |
| 1869 | { |
| 1870 | if (sizeof ($2)) |
| 1871 | return 0; |
| 1872 | ; |
| 1873 | return 0; |
| 1874 | } |
| 1875 | _ACEOF |
| 1876 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1878 | /* end confdefs.h. */ |
| 1879 | $4 |
| 1880 | int |
| 1881 | main () |
| 1882 | { |
| 1883 | if (sizeof (($2))) |
| 1884 | return 0; |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1890 | |
| 1891 | else |
| 1892 | eval "$3=yes" |
| 1893 | fi |
| 1894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1895 | fi |
| 1896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1897 | fi |
| 1898 | eval ac_res=\$$3 |
| 1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1900 | $as_echo "$ac_res" >&6; } |
| 1901 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1902 | |
| 1903 | } # ac_fn_c_check_type |
| 1904 | |
| 1905 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1906 | # ---------------------------------- |
| 1907 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1908 | ac_fn_c_check_func () |
| 1909 | { |
| 1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1912 | $as_echo_n "checking for $2... " >&6; } |
| 1913 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1914 | $as_echo_n "(cached) " >&6 |
| 1915 | else |
| 1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1917 | /* end confdefs.h. */ |
| 1918 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1920 | #define $2 innocuous_$2 |
| 1921 | |
| 1922 | /* System header to define __stub macros and hopefully few prototypes, |
| 1923 | which can conflict with char $2 (); below. |
| 1924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1925 | <limits.h> exists even on freestanding compilers. */ |
| 1926 | |
| 1927 | #ifdef __STDC__ |
| 1928 | # include <limits.h> |
| 1929 | #else |
| 1930 | # include <assert.h> |
| 1931 | #endif |
| 1932 | |
| 1933 | #undef $2 |
| 1934 | |
| 1935 | /* Override any GCC internal prototype to avoid an error. |
| 1936 | Use char because int might match the return type of a GCC |
| 1937 | builtin and then its argument prototype would still apply. */ |
| 1938 | #ifdef __cplusplus |
| 1939 | extern "C" |
| 1940 | #endif |
| 1941 | char $2 (); |
| 1942 | /* The GNU C library defines this for functions which it implements |
| 1943 | to always fail with ENOSYS. Some functions are actually named |
| 1944 | something starting with __ and the normal name is an alias. */ |
| 1945 | #if defined __stub_$2 || defined __stub___$2 |
| 1946 | choke me |
| 1947 | #endif |
| 1948 | |
| 1949 | int |
| 1950 | main () |
| 1951 | { |
| 1952 | return $2 (); |
| 1953 | ; |
| 1954 | return 0; |
| 1955 | } |
| 1956 | _ACEOF |
| 1957 | if ac_fn_c_try_link "$LINENO"; then : |
| 1958 | eval "$3=yes" |
| 1959 | else |
| 1960 | eval "$3=no" |
| 1961 | fi |
| 1962 | rm -f core conftest.err conftest.$ac_objext \ |
| 1963 | conftest$ac_exeext conftest.$ac_ext |
| 1964 | fi |
| 1965 | eval ac_res=\$$3 |
| 1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1967 | $as_echo "$ac_res" >&6; } |
| 1968 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1969 | |
| 1970 | } # ac_fn_c_check_func |
| 1971 | |
| 1972 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1973 | # -------------------------------------------- |
| 1974 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1975 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1976 | # computed |
| 1977 | ac_fn_c_compute_int () |
| 1978 | { |
| 1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1980 | if test "$cross_compiling" = yes; then |
| 1981 | # Depending upon the size, compute the lo and hi bounds. |
| 1982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1983 | /* end confdefs.h. */ |
| 1984 | $4 |
| 1985 | int |
| 1986 | main () |
| 1987 | { |
| 1988 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1989 | test_array [0] = 0 |
| 1990 | |
| 1991 | ; |
| 1992 | return 0; |
| 1993 | } |
| 1994 | _ACEOF |
| 1995 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1996 | ac_lo=0 ac_mid=0 |
| 1997 | while :; do |
| 1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1999 | /* end confdefs.h. */ |
| 2000 | $4 |
| 2001 | int |
| 2002 | main () |
| 2003 | { |
| 2004 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2005 | test_array [0] = 0 |
| 2006 | |
| 2007 | ; |
| 2008 | return 0; |
| 2009 | } |
| 2010 | _ACEOF |
| 2011 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2012 | ac_hi=$ac_mid; break |
| 2013 | else |
| 2014 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2015 | if test $ac_lo -le $ac_mid; then |
| 2016 | ac_lo= ac_hi= |
| 2017 | break |
| 2018 | fi |
| 2019 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2020 | fi |
| 2021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2022 | done |
| 2023 | else |
| 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2025 | /* end confdefs.h. */ |
| 2026 | $4 |
| 2027 | int |
| 2028 | main () |
| 2029 | { |
| 2030 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2031 | test_array [0] = 0 |
| 2032 | |
| 2033 | ; |
| 2034 | return 0; |
| 2035 | } |
| 2036 | _ACEOF |
| 2037 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2038 | ac_hi=-1 ac_mid=-1 |
| 2039 | while :; do |
| 2040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2041 | /* end confdefs.h. */ |
| 2042 | $4 |
| 2043 | int |
| 2044 | main () |
| 2045 | { |
| 2046 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2047 | test_array [0] = 0 |
| 2048 | |
| 2049 | ; |
| 2050 | return 0; |
| 2051 | } |
| 2052 | _ACEOF |
| 2053 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2054 | ac_lo=$ac_mid; break |
| 2055 | else |
| 2056 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2057 | if test $ac_mid -le $ac_hi; then |
| 2058 | ac_lo= ac_hi= |
| 2059 | break |
| 2060 | fi |
| 2061 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2062 | fi |
| 2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2064 | done |
| 2065 | else |
| 2066 | ac_lo= ac_hi= |
| 2067 | fi |
| 2068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2069 | fi |
| 2070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2071 | # Binary search between lo and hi bounds. |
| 2072 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2073 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2075 | /* end confdefs.h. */ |
| 2076 | $4 |
| 2077 | int |
| 2078 | main () |
| 2079 | { |
| 2080 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2081 | test_array [0] = 0 |
| 2082 | |
| 2083 | ; |
| 2084 | return 0; |
| 2085 | } |
| 2086 | _ACEOF |
| 2087 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2088 | ac_hi=$ac_mid |
| 2089 | else |
| 2090 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2091 | fi |
| 2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2093 | done |
| 2094 | case $ac_lo in #(( |
| 2095 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2096 | '') ac_retval=1 ;; |
| 2097 | esac |
| 2098 | else |
| 2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2100 | /* end confdefs.h. */ |
| 2101 | $4 |
| 2102 | static long int longval () { return $2; } |
| 2103 | static unsigned long int ulongval () { return $2; } |
| 2104 | #include <stdio.h> |
| 2105 | #include <stdlib.h> |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | |
| 2110 | FILE *f = fopen ("conftest.val", "w"); |
| 2111 | if (! f) |
| 2112 | return 1; |
| 2113 | if (($2) < 0) |
| 2114 | { |
| 2115 | long int i = longval (); |
| 2116 | if (i != ($2)) |
| 2117 | return 1; |
| 2118 | fprintf (f, "%ld", i); |
| 2119 | } |
| 2120 | else |
| 2121 | { |
| 2122 | unsigned long int i = ulongval (); |
| 2123 | if (i != ($2)) |
| 2124 | return 1; |
| 2125 | fprintf (f, "%lu", i); |
| 2126 | } |
| 2127 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2128 | on some platforms. */ |
| 2129 | return ferror (f) || fclose (f) != 0; |
| 2130 | |
| 2131 | ; |
| 2132 | return 0; |
| 2133 | } |
| 2134 | _ACEOF |
| 2135 | if ac_fn_c_try_run "$LINENO"; then : |
| 2136 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2137 | else |
| 2138 | ac_retval=1 |
| 2139 | fi |
| 2140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2141 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2142 | rm -f conftest.val |
| 2143 | |
| 2144 | fi |
| 2145 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 2146 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2147 | |
| 2148 | } # ac_fn_c_compute_int |
| 2149 | |
| 2150 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2151 | # ---------------------------------------------------- |
| 2152 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2153 | # INCLUDES, setting cache variable VAR accordingly. |
| 2154 | ac_fn_c_check_member () |
| 2155 | { |
| 2156 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2158 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2159 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2160 | $as_echo_n "(cached) " >&6 |
| 2161 | else |
| 2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2163 | /* end confdefs.h. */ |
| 2164 | $5 |
| 2165 | int |
| 2166 | main () |
| 2167 | { |
| 2168 | static $2 ac_aggr; |
| 2169 | if (ac_aggr.$3) |
| 2170 | return 0; |
| 2171 | ; |
| 2172 | return 0; |
| 2173 | } |
| 2174 | _ACEOF |
| 2175 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2176 | eval "$4=yes" |
| 2177 | else |
| 2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2179 | /* end confdefs.h. */ |
| 2180 | $5 |
| 2181 | int |
| 2182 | main () |
| 2183 | { |
| 2184 | static $2 ac_aggr; |
| 2185 | if (sizeof ac_aggr.$3) |
| 2186 | return 0; |
| 2187 | ; |
| 2188 | return 0; |
| 2189 | } |
| 2190 | _ACEOF |
| 2191 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2192 | eval "$4=yes" |
| 2193 | else |
| 2194 | eval "$4=no" |
| 2195 | fi |
| 2196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2197 | fi |
| 2198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2199 | fi |
| 2200 | eval ac_res=\$$4 |
| 2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2202 | $as_echo "$ac_res" >&6; } |
| 2203 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2204 | |
| 2205 | } # ac_fn_c_check_member |
| 2206 | |
| 2207 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2208 | # ------------------------------------ |
| 2209 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2210 | ac_fn_c_check_decl () |
| 2211 | { |
| 2212 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2214 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2215 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2216 | $as_echo_n "(cached) " >&6 |
| 2217 | else |
| 2218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2219 | /* end confdefs.h. */ |
| 2220 | $4 |
| 2221 | int |
| 2222 | main () |
| 2223 | { |
| 2224 | #ifndef $2 |
| 2225 | (void) $2; |
| 2226 | #endif |
| 2227 | |
| 2228 | ; |
| 2229 | return 0; |
| 2230 | } |
| 2231 | _ACEOF |
| 2232 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2233 | eval "$3=yes" |
| 2234 | else |
| 2235 | eval "$3=no" |
| 2236 | fi |
| 2237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2238 | fi |
| 2239 | eval ac_res=\$$3 |
| 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2241 | $as_echo "$ac_res" >&6; } |
| 2242 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2243 | |
| 2244 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2245 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2246 | This file contains any messages produced by compilers while |
| 2247 | running configure, to aid debugging if configure makes a mistake. |
| 2248 | |
| 2249 | It was created by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 2250 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2251 | |
| 2252 | $ $0 $@ |
| 2253 | |
| 2254 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2255 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2256 | { |
| 2257 | cat <<_ASUNAME |
| 2258 | ## --------- ## |
| 2259 | ## Platform. ## |
| 2260 | ## --------- ## |
| 2261 | |
| 2262 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2263 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2264 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2265 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2266 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2267 | |
| 2268 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2269 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2270 | |
| 2271 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2272 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2273 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2274 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2275 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2276 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2277 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2278 | |
| 2279 | _ASUNAME |
| 2280 | |
| 2281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2282 | for as_dir in $PATH |
| 2283 | do |
| 2284 | IFS=$as_save_IFS |
| 2285 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2286 | $as_echo "PATH: $as_dir" |
| 2287 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2288 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2289 | |
| 2290 | } >&5 |
| 2291 | |
| 2292 | cat >&5 <<_ACEOF |
| 2293 | |
| 2294 | |
| 2295 | ## ----------- ## |
| 2296 | ## Core tests. ## |
| 2297 | ## ----------- ## |
| 2298 | |
| 2299 | _ACEOF |
| 2300 | |
| 2301 | |
| 2302 | # Keep a trace of the command line. |
| 2303 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2304 | # Strip out --silent because we don't want to record it for future runs. |
| 2305 | # Also quote any args containing shell meta-characters. |
| 2306 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2307 | ac_configure_args= |
| 2308 | ac_configure_args0= |
| 2309 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2310 | ac_must_keep_next=false |
| 2311 | for ac_pass in 1 2 |
| 2312 | do |
| 2313 | for ac_arg |
| 2314 | do |
| 2315 | case $ac_arg in |
| 2316 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2318 | | -silent | --silent | --silen | --sile | --sil) |
| 2319 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2320 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2321 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2322 | esac |
| 2323 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2324 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2325 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2326 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2327 | if test $ac_must_keep_next = true; then |
| 2328 | ac_must_keep_next=false # Got value, back to normal. |
| 2329 | else |
| 2330 | case $ac_arg in |
| 2331 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2332 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2333 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2334 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2335 | case "$ac_configure_args0 " in |
| 2336 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2337 | esac |
| 2338 | ;; |
| 2339 | -* ) ac_must_keep_next=true ;; |
| 2340 | esac |
| 2341 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2342 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2343 | ;; |
| 2344 | esac |
| 2345 | done |
| 2346 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2347 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2348 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2349 | |
| 2350 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2351 | # config.log. We remove comments because anyway the quotes in there |
| 2352 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2353 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2354 | # 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] | 2355 | trap 'exit_status=$? |
| 2356 | # Save into config.log some information that might help in debugging. |
| 2357 | { |
| 2358 | echo |
| 2359 | |
| 2360 | cat <<\_ASBOX |
| 2361 | ## ---------------- ## |
| 2362 | ## Cache variables. ## |
| 2363 | ## ---------------- ## |
| 2364 | _ASBOX |
| 2365 | echo |
| 2366 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2367 | ( |
| 2368 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2369 | eval ac_val=\$$ac_var |
| 2370 | case $ac_val in #( |
| 2371 | *${as_nl}*) |
| 2372 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2373 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2374 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2375 | esac |
| 2376 | case $ac_var in #( |
| 2377 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2378 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2379 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2380 | esac ;; |
| 2381 | esac |
| 2382 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2383 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2384 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2385 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2386 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2387 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2388 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2389 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2390 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2391 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2393 | esac | |
| 2394 | sort |
| 2395 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2396 | echo |
| 2397 | |
| 2398 | cat <<\_ASBOX |
| 2399 | ## ----------------- ## |
| 2400 | ## Output variables. ## |
| 2401 | ## ----------------- ## |
| 2402 | _ASBOX |
| 2403 | echo |
| 2404 | for ac_var in $ac_subst_vars |
| 2405 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2406 | eval ac_val=\$$ac_var |
| 2407 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2408 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2409 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2410 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2411 | done | sort |
| 2412 | echo |
| 2413 | |
| 2414 | if test -n "$ac_subst_files"; then |
| 2415 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2416 | ## ------------------- ## |
| 2417 | ## File substitutions. ## |
| 2418 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2419 | _ASBOX |
| 2420 | echo |
| 2421 | for ac_var in $ac_subst_files |
| 2422 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2423 | eval ac_val=\$$ac_var |
| 2424 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2425 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2426 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2427 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2428 | done | sort |
| 2429 | echo |
| 2430 | fi |
| 2431 | |
| 2432 | if test -s confdefs.h; then |
| 2433 | cat <<\_ASBOX |
| 2434 | ## ----------- ## |
| 2435 | ## confdefs.h. ## |
| 2436 | ## ----------- ## |
| 2437 | _ASBOX |
| 2438 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2439 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2440 | echo |
| 2441 | fi |
| 2442 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2443 | $as_echo "$as_me: caught signal $ac_signal" |
| 2444 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2445 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2446 | rm -f core *.core core.conftest.* && |
| 2447 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2448 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2449 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2450 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2451 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2452 | done |
| 2453 | ac_signal=0 |
| 2454 | |
| 2455 | # 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] | 2456 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2457 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2458 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | # Predefined preprocessor variables. |
| 2461 | |
| 2462 | cat >>confdefs.h <<_ACEOF |
| 2463 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2464 | _ACEOF |
| 2465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | cat >>confdefs.h <<_ACEOF |
| 2467 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2468 | _ACEOF |
| 2469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | cat >>confdefs.h <<_ACEOF |
| 2471 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2472 | _ACEOF |
| 2473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2474 | cat >>confdefs.h <<_ACEOF |
| 2475 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2476 | _ACEOF |
| 2477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2478 | cat >>confdefs.h <<_ACEOF |
| 2479 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2480 | _ACEOF |
| 2481 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2482 | cat >>confdefs.h <<_ACEOF |
| 2483 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2484 | _ACEOF |
| 2485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | |
| 2487 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2488 | # Prefer an explicitly selected file to automatically selected ones. |
| 2489 | ac_site_file1=NONE |
| 2490 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2491 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2492 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2493 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2494 | ac_site_file1=$prefix/share/config.site |
| 2495 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2496 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2497 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2498 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2499 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2500 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2501 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2502 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 2503 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2505 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2506 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2507 | . "$ac_site_file" |
| 2508 | fi |
| 2509 | done |
| 2510 | |
| 2511 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 2512 | # Some versions of bash will fail to source /dev/null (special files |
| 2513 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2514 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2516 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2517 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2518 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2519 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2520 | esac |
| 2521 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2522 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2524 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | >$cache_file |
| 2526 | fi |
| 2527 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 2528 | as_fn_append ac_header_list " stdlib.h" |
| 2529 | as_fn_append ac_header_list " unistd.h" |
| 2530 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | # Check that the precious variables saved in the cache have kept the same |
| 2532 | # value. |
| 2533 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2534 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2535 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2536 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2537 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2538 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2539 | case $ac_old_set,$ac_new_set in |
| 2540 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2542 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | ac_cache_corrupted=: ;; |
| 2544 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2546 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2547 | ac_cache_corrupted=: ;; |
| 2548 | ,);; |
| 2549 | *) |
| 2550 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2551 | # differences in whitespace do not lead to failure. |
| 2552 | ac_old_val_w=`echo x $ac_old_val` |
| 2553 | ac_new_val_w=`echo x $ac_new_val` |
| 2554 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2556 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2557 | ac_cache_corrupted=: |
| 2558 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2560 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2561 | eval $ac_var=\$ac_old_val |
| 2562 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2564 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2566 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2567 | fi;; |
| 2568 | esac |
| 2569 | # Pass precious variables to config.status. |
| 2570 | if test "$ac_new_set" = set; then |
| 2571 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2572 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2573 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2574 | esac |
| 2575 | case " $ac_configure_args " in |
| 2576 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2577 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2578 | esac |
| 2579 | fi |
| 2580 | done |
| 2581 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2585 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2586 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2587 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2588 | ## -------------------- ## |
| 2589 | ## Main body of script. ## |
| 2590 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2591 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2592 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2593 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2597 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2598 | |
| 2599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2600 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2601 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2602 | for ac_t in install-sh install.sh shtool; do |
| 2603 | if test -f "$ac_dir/$ac_t"; then |
| 2604 | ac_aux_dir=$ac_dir |
| 2605 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2606 | break 2 |
| 2607 | fi |
| 2608 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2609 | done |
| 2610 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2611 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2613 | |
| 2614 | # These three variables are undocumented and unsupported, |
| 2615 | # and are intended to be withdrawn in a future Autoconf release. |
| 2616 | # They can cause serious problems if a builder's source tree is in a directory |
| 2617 | # whose full name contains unusual characters. |
| 2618 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2619 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2620 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2621 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2622 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2623 | MCONFIG=./MCONFIG |
| 2624 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2625 | BINARY_TYPE=bin |
| 2626 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2627 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2628 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2629 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2630 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2631 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2632 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2633 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2634 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2635 | E2FSPROGS_YEAR=$YEAR |
| 2636 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2637 | E2FSPROGS_YEAR=19$YEAR |
| 2638 | else |
| 2639 | E2FSPROGS_YEAR=20$YEAR |
| 2640 | fi |
| 2641 | |
| 2642 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2643 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2644 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2645 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2646 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2647 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2648 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2649 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2650 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2651 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2652 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2653 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2654 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2655 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2656 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2657 | esac |
| 2658 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2659 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2660 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2661 | |
| 2662 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2663 | |
| 2664 | case $E2FSPROGS_VERSION in |
| 2665 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2666 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2667 | ;; |
| 2668 | *) |
| 2669 | E2FSPROGS_PKGVER="$base_ver" |
| 2670 | ;; |
| 2671 | esac |
| 2672 | |
| 2673 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2675 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2677 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2678 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2679 | |
| 2680 | |
| 2681 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2682 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2683 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2684 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2685 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2686 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2688 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2689 | if test "${ac_cv_build+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2690 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2691 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2692 | ac_build_alias=$build_alias |
| 2693 | test "x$ac_build_alias" = x && |
| 2694 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2695 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2696 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2697 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2698 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2699 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2700 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2702 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2703 | case $ac_cv_build in |
| 2704 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2705 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2706 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2707 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2708 | ac_save_IFS=$IFS; IFS='-' |
| 2709 | set x $ac_cv_build |
| 2710 | shift |
| 2711 | build_cpu=$1 |
| 2712 | build_vendor=$2 |
| 2713 | shift; shift |
| 2714 | # Remember, the first character of IFS is used to create $*, |
| 2715 | # except with old shells: |
| 2716 | build_os=$* |
| 2717 | IFS=$ac_save_IFS |
| 2718 | 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] | 2719 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2720 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2722 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2723 | if test "${ac_cv_host+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2724 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2725 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2726 | if test "x$host_alias" = x; then |
| 2727 | ac_cv_host=$ac_cv_build |
| 2728 | else |
| 2729 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2730 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2731 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2733 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2735 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2736 | case $ac_cv_host in |
| 2737 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2738 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2739 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2740 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2741 | ac_save_IFS=$IFS; IFS='-' |
| 2742 | set x $ac_cv_host |
| 2743 | shift |
| 2744 | host_cpu=$1 |
| 2745 | host_vendor=$2 |
| 2746 | shift; shift |
| 2747 | # Remember, the first character of IFS is used to create $*, |
| 2748 | # except with old shells: |
| 2749 | host_os=$* |
| 2750 | IFS=$ac_save_IFS |
| 2751 | 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] | 2752 | |
| 2753 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2754 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2755 | ac_ext=c |
| 2756 | ac_cpp='$CPP $CPPFLAGS' |
| 2757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2760 | if test -n "$ac_tool_prefix"; then |
| 2761 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2762 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2764 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2765 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2766 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2767 | else |
| 2768 | if test -n "$CC"; then |
| 2769 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2770 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2772 | for as_dir in $PATH |
| 2773 | do |
| 2774 | IFS=$as_save_IFS |
| 2775 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2776 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2777 | 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] | 2778 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2780 | break 2 |
| 2781 | fi |
| 2782 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2783 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2784 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2785 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2786 | fi |
| 2787 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2788 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2789 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2791 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2792 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2794 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2795 | fi |
| 2796 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2798 | fi |
| 2799 | if test -z "$ac_cv_prog_CC"; then |
| 2800 | ac_ct_CC=$CC |
| 2801 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2802 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2804 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2805 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2806 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2807 | else |
| 2808 | if test -n "$ac_ct_CC"; then |
| 2809 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2810 | else |
| 2811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2812 | for as_dir in $PATH |
| 2813 | do |
| 2814 | IFS=$as_save_IFS |
| 2815 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2816 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2817 | 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] | 2818 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2820 | break 2 |
| 2821 | fi |
| 2822 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2823 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2824 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2825 | |
| 2826 | fi |
| 2827 | fi |
| 2828 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2829 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2831 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2832 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2834 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2835 | fi |
| 2836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2837 | if test "x$ac_ct_CC" = x; then |
| 2838 | CC="" |
| 2839 | else |
| 2840 | case $cross_compiling:$ac_tool_warned in |
| 2841 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2843 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2844 | ac_tool_warned=yes ;; |
| 2845 | esac |
| 2846 | CC=$ac_ct_CC |
| 2847 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2848 | else |
| 2849 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2850 | fi |
| 2851 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2852 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2853 | if test -n "$ac_tool_prefix"; then |
| 2854 | # 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] | 2855 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2857 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2858 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2859 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2860 | else |
| 2861 | if test -n "$CC"; then |
| 2862 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2863 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2865 | for as_dir in $PATH |
| 2866 | do |
| 2867 | IFS=$as_save_IFS |
| 2868 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2869 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2870 | 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] | 2871 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2873 | break 2 |
| 2874 | fi |
| 2875 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2876 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2877 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2878 | |
| 2879 | fi |
| 2880 | fi |
| 2881 | CC=$ac_cv_prog_CC |
| 2882 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2884 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2887 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2888 | fi |
| 2889 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2890 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2891 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2892 | fi |
| 2893 | if test -z "$CC"; then |
| 2894 | # Extract the first word of "cc", so it can be a program name with args. |
| 2895 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2897 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2898 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2899 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2900 | else |
| 2901 | if test -n "$CC"; then |
| 2902 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2903 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2904 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2906 | for as_dir in $PATH |
| 2907 | do |
| 2908 | IFS=$as_save_IFS |
| 2909 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2910 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2911 | 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] | 2912 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2913 | ac_prog_rejected=yes |
| 2914 | continue |
| 2915 | fi |
| 2916 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | break 2 |
| 2919 | fi |
| 2920 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2921 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2922 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2923 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2924 | if test $ac_prog_rejected = yes; then |
| 2925 | # We found a bogon in the path, so make sure we never use it. |
| 2926 | set dummy $ac_cv_prog_CC |
| 2927 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2928 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2929 | # We chose a different compiler from the bogus one. |
| 2930 | # However, it has the same basename, so the bogon will be chosen |
| 2931 | # first if we set CC to just the basename; use the full file name. |
| 2932 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2934 | fi |
| 2935 | fi |
| 2936 | fi |
| 2937 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2938 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2939 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2941 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2942 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2944 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2945 | fi |
| 2946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2947 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2948 | fi |
| 2949 | if test -z "$CC"; then |
| 2950 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2951 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2952 | do |
| 2953 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2954 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2956 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2957 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2958 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2959 | else |
| 2960 | if test -n "$CC"; then |
| 2961 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2962 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2964 | for as_dir in $PATH |
| 2965 | do |
| 2966 | IFS=$as_save_IFS |
| 2967 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2968 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2969 | 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] | 2970 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2972 | break 2 |
| 2973 | fi |
| 2974 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2975 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2976 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2977 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2978 | fi |
| 2979 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2981 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2983 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2986 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2987 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2989 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2990 | test -n "$CC" && break |
| 2991 | done |
| 2992 | fi |
| 2993 | if test -z "$CC"; then |
| 2994 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2995 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2996 | do |
| 2997 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2998 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3000 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3001 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3002 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | else |
| 3004 | if test -n "$ac_ct_CC"; then |
| 3005 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3006 | else |
| 3007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3008 | for as_dir in $PATH |
| 3009 | do |
| 3010 | IFS=$as_save_IFS |
| 3011 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3013 | 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] | 3014 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3016 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3017 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3018 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3019 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | |
| 3022 | fi |
| 3023 | fi |
| 3024 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3025 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3027 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3030 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3031 | fi |
| 3032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3034 | test -n "$ac_ct_CC" && break |
| 3035 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3037 | if test "x$ac_ct_CC" = x; then |
| 3038 | CC="" |
| 3039 | else |
| 3040 | case $cross_compiling:$ac_tool_warned in |
| 3041 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3044 | ac_tool_warned=yes ;; |
| 3045 | esac |
| 3046 | CC=$ac_ct_CC |
| 3047 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3048 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3050 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3051 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3052 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3053 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3055 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3056 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3057 | |
| 3058 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3060 | set X $ac_compile |
| 3061 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3062 | for ac_option in --version -v -V -qversion; do |
| 3063 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3064 | case "(($ac_try" in |
| 3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3066 | *) ac_try_echo=$ac_try;; |
| 3067 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3069 | $as_echo "$ac_try_echo"; } >&5 |
| 3070 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3071 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | if test -s conftest.err; then |
| 3073 | sed '10a\ |
| 3074 | ... rest of stderr output deleted ... |
| 3075 | 10q' conftest.err >conftest.er1 |
| 3076 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3077 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3078 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3080 | test $ac_status = 0; } |
| 3081 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3082 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3084 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3085 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3086 | int |
| 3087 | main () |
| 3088 | { |
| 3089 | |
| 3090 | ; |
| 3091 | return 0; |
| 3092 | } |
| 3093 | _ACEOF |
| 3094 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3095 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3096 | # Try to create an executable without -o first, disregard a.out. |
| 3097 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3098 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3100 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3101 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3102 | |
| 3103 | # The possible output files: |
| 3104 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3106 | ac_rmfiles= |
| 3107 | for ac_file in $ac_files |
| 3108 | do |
| 3109 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3110 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3111 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3112 | esac |
| 3113 | done |
| 3114 | rm -f $ac_rmfiles |
| 3115 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3116 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3117 | case "(($ac_try" in |
| 3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3119 | *) ac_try_echo=$ac_try;; |
| 3120 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3121 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3122 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3123 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3124 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3126 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3127 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3128 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3129 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3130 | # so that the user can short-circuit this test for compilers unknown to |
| 3131 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3132 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3133 | do |
| 3134 | test -f "$ac_file" || continue |
| 3135 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3136 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3137 | ;; |
| 3138 | [ab].out ) |
| 3139 | # We found the default executable, but exeext='' is most |
| 3140 | # certainly right. |
| 3141 | break;; |
| 3142 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3143 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3144 | then :; else |
| 3145 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3146 | fi |
| 3147 | # We set ac_cv_exeext here because the later test for it is not |
| 3148 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3149 | # argument, so we may need to know it at that point already. |
| 3150 | # Even if this section looks crufty: it has the advantage of |
| 3151 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3152 | break;; |
| 3153 | * ) |
| 3154 | break;; |
| 3155 | esac |
| 3156 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3157 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3159 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3160 | ac_file='' |
| 3161 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3162 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3164 | $as_echo "no" >&6; } |
| 3165 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3168 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3169 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3170 | { as_fn_set_status 77 |
| 3171 | as_fn_error "C compiler cannot create executables |
| 3172 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3173 | else |
| 3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3175 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3176 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3178 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3180 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3181 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3182 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3183 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3184 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3186 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3187 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3188 | case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3192 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3193 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3194 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3195 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3197 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3199 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3200 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3201 | # `rm'. |
| 3202 | for ac_file in conftest.exe conftest conftest.*; do |
| 3203 | test -f "$ac_file" || continue |
| 3204 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3205 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3206 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3207 | break;; |
| 3208 | * ) break;; |
| 3209 | esac |
| 3210 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3211 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3212 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3214 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3215 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3216 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3217 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3219 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3220 | |
| 3221 | rm -f conftest.$ac_ext |
| 3222 | EXEEXT=$ac_cv_exeext |
| 3223 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3225 | /* end confdefs.h. */ |
| 3226 | #include <stdio.h> |
| 3227 | int |
| 3228 | main () |
| 3229 | { |
| 3230 | FILE *f = fopen ("conftest.out", "w"); |
| 3231 | return ferror (f) || fclose (f) != 0; |
| 3232 | |
| 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | _ACEOF |
| 3237 | ac_clean_files="$ac_clean_files conftest.out" |
| 3238 | # Check that the compiler produces executables we can run. If not, either |
| 3239 | # the compiler is broken, or we cross compile. |
| 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3241 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3242 | if test "$cross_compiling" != yes; then |
| 3243 | { { ac_try="$ac_link" |
| 3244 | case "(($ac_try" in |
| 3245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3246 | *) ac_try_echo=$ac_try;; |
| 3247 | esac |
| 3248 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3249 | $as_echo "$ac_try_echo"; } >&5 |
| 3250 | (eval "$ac_link") 2>&5 |
| 3251 | ac_status=$? |
| 3252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3253 | test $ac_status = 0; } |
| 3254 | if { ac_try='./conftest$ac_cv_exeext' |
| 3255 | { { case "(($ac_try" in |
| 3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3257 | *) ac_try_echo=$ac_try;; |
| 3258 | esac |
| 3259 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3260 | $as_echo "$ac_try_echo"; } >&5 |
| 3261 | (eval "$ac_try") 2>&5 |
| 3262 | ac_status=$? |
| 3263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3264 | test $ac_status = 0; }; }; then |
| 3265 | cross_compiling=no |
| 3266 | else |
| 3267 | if test "$cross_compiling" = maybe; then |
| 3268 | cross_compiling=yes |
| 3269 | else |
| 3270 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3271 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3272 | as_fn_error "cannot run C compiled programs. |
| 3273 | If you meant to cross compile, use \`--host'. |
| 3274 | See \`config.log' for more details." "$LINENO" 5; } |
| 3275 | fi |
| 3276 | fi |
| 3277 | fi |
| 3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3279 | $as_echo "$cross_compiling" >&6; } |
| 3280 | |
| 3281 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3282 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3284 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3285 | if test "${ac_cv_objext+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3286 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3287 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3289 | /* end confdefs.h. */ |
| 3290 | |
| 3291 | int |
| 3292 | main () |
| 3293 | { |
| 3294 | |
| 3295 | ; |
| 3296 | return 0; |
| 3297 | } |
| 3298 | _ACEOF |
| 3299 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3300 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3301 | case "(($ac_try" in |
| 3302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3303 | *) ac_try_echo=$ac_try;; |
| 3304 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3305 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3306 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3307 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3308 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3310 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3311 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3312 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3313 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3314 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3315 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3316 | break;; |
| 3317 | esac |
| 3318 | done |
| 3319 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3320 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3323 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3324 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3325 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3326 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3327 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3328 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3329 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3331 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3332 | OBJEXT=$ac_cv_objext |
| 3333 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3335 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3336 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3337 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3338 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3340 | /* end confdefs.h. */ |
| 3341 | |
| 3342 | int |
| 3343 | main () |
| 3344 | { |
| 3345 | #ifndef __GNUC__ |
| 3346 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3347 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3348 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3349 | ; |
| 3350 | return 0; |
| 3351 | } |
| 3352 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3353 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3354 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3355 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3356 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3357 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3359 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3360 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3361 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3363 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3364 | if test $ac_compiler_gnu = yes; then |
| 3365 | GCC=yes |
| 3366 | else |
| 3367 | GCC= |
| 3368 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3369 | ac_test_CFLAGS=${CFLAGS+set} |
| 3370 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3372 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3373 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3374 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3375 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3376 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3377 | ac_c_werror_flag=yes |
| 3378 | ac_cv_prog_cc_g=no |
| 3379 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3381 | /* end confdefs.h. */ |
| 3382 | |
| 3383 | int |
| 3384 | main () |
| 3385 | { |
| 3386 | |
| 3387 | ; |
| 3388 | return 0; |
| 3389 | } |
| 3390 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3391 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3392 | ac_cv_prog_cc_g=yes |
| 3393 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3394 | CFLAGS="" |
| 3395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3396 | /* end confdefs.h. */ |
| 3397 | |
| 3398 | int |
| 3399 | main () |
| 3400 | { |
| 3401 | |
| 3402 | ; |
| 3403 | return 0; |
| 3404 | } |
| 3405 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3406 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3407 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3408 | else |
| 3409 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3410 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3412 | /* end confdefs.h. */ |
| 3413 | |
| 3414 | int |
| 3415 | main () |
| 3416 | { |
| 3417 | |
| 3418 | ; |
| 3419 | return 0; |
| 3420 | } |
| 3421 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3422 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3423 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3428 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3430 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3431 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3433 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3434 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3435 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3436 | elif test $ac_cv_prog_cc_g = yes; then |
| 3437 | if test "$GCC" = yes; then |
| 3438 | CFLAGS="-g -O2" |
| 3439 | else |
| 3440 | CFLAGS="-g" |
| 3441 | fi |
| 3442 | else |
| 3443 | if test "$GCC" = yes; then |
| 3444 | CFLAGS="-O2" |
| 3445 | else |
| 3446 | CFLAGS= |
| 3447 | fi |
| 3448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3450 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3451 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3452 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3453 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3454 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3455 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3457 | /* end confdefs.h. */ |
| 3458 | #include <stdarg.h> |
| 3459 | #include <stdio.h> |
| 3460 | #include <sys/types.h> |
| 3461 | #include <sys/stat.h> |
| 3462 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3463 | struct buf { int x; }; |
| 3464 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3465 | static char *e (p, i) |
| 3466 | char **p; |
| 3467 | int i; |
| 3468 | { |
| 3469 | return p[i]; |
| 3470 | } |
| 3471 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3472 | { |
| 3473 | char *s; |
| 3474 | va_list v; |
| 3475 | va_start (v,p); |
| 3476 | s = g (p, va_arg (v,int)); |
| 3477 | va_end (v); |
| 3478 | return s; |
| 3479 | } |
| 3480 | |
| 3481 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3482 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3483 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3484 | 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] | 3485 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3486 | 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] | 3487 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3488 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3489 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3490 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3491 | inside strings and character constants. */ |
| 3492 | #define FOO(x) 'x' |
| 3493 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3495 | int test (int i, double x); |
| 3496 | struct s1 {int (*f) (int a);}; |
| 3497 | struct s2 {int (*f) (double a);}; |
| 3498 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3499 | int argc; |
| 3500 | char **argv; |
| 3501 | int |
| 3502 | main () |
| 3503 | { |
| 3504 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3505 | ; |
| 3506 | return 0; |
| 3507 | } |
| 3508 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3509 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3510 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3511 | do |
| 3512 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3513 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3516 | rm -f core conftest.err conftest.$ac_objext |
| 3517 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3518 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3519 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3520 | CC=$ac_save_CC |
| 3521 | |
| 3522 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3523 | # AC_CACHE_VAL |
| 3524 | case "x$ac_cv_prog_cc_c89" in |
| 3525 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3527 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3528 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3530 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3531 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3532 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3534 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3535 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3536 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3538 | fi |
| 3539 | |
| 3540 | ac_ext=c |
| 3541 | ac_cpp='$CPP $CPPFLAGS' |
| 3542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3545 | |
| 3546 | |
| 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3548 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 3549 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 3550 | $as_echo_n "(cached) " >&6 |
| 3551 | else |
| 3552 | ac_check_lib_save_LIBS=$LIBS |
| 3553 | LIBS="-ldl $LIBS" |
| 3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3555 | /* end confdefs.h. */ |
| 3556 | |
| 3557 | /* Override any GCC internal prototype to avoid an error. |
| 3558 | Use char because int might match the return type of a GCC |
| 3559 | builtin and then its argument prototype would still apply. */ |
| 3560 | #ifdef __cplusplus |
| 3561 | extern "C" |
| 3562 | #endif |
| 3563 | char dlopen (); |
| 3564 | int |
| 3565 | main () |
| 3566 | { |
| 3567 | return dlopen (); |
| 3568 | ; |
| 3569 | return 0; |
| 3570 | } |
| 3571 | _ACEOF |
| 3572 | if ac_fn_c_try_link "$LINENO"; then : |
| 3573 | ac_cv_lib_dl_dlopen=yes |
| 3574 | else |
| 3575 | ac_cv_lib_dl_dlopen=no |
| 3576 | fi |
| 3577 | rm -f core conftest.err conftest.$ac_objext \ |
| 3578 | conftest$ac_exeext conftest.$ac_ext |
| 3579 | LIBS=$ac_check_lib_save_LIBS |
| 3580 | fi |
| 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3582 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 3583 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 3584 | DLOPEN_LIB=-ldl |
| 3585 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3586 | |
| 3587 | fi |
| 3588 | |
| 3589 | |
| 3590 | WITH_DIET_LIBC= |
| 3591 | |
| 3592 | # Check whether --with-diet-libc was given. |
| 3593 | if test "${with_diet_libc+set}" = set; then : |
| 3594 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3595 | WITH_DIET_LIBC=yes |
| 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3597 | $as_echo "CC=$CC" >&6; } |
| 3598 | fi |
| 3599 | |
| 3600 | # Check whether --with-cc was given. |
| 3601 | if test "${with_cc+set}" = set; then : |
| 3602 | withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
| 3603 | fi |
| 3604 | |
| 3605 | |
| 3606 | # Check whether --with-ccopts was given. |
| 3607 | if test "${with_ccopts+set}" = set; then : |
| 3608 | withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
| 3609 | fi |
| 3610 | |
| 3611 | |
| 3612 | # Check whether --with-ldopts was given. |
| 3613 | if test "${with_ldopts+set}" = set; then : |
| 3614 | withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
| 3615 | fi |
| 3616 | |
| 3617 | ac_ext=c |
| 3618 | ac_cpp='$CPP $CPPFLAGS' |
| 3619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3622 | if test -n "$ac_tool_prefix"; then |
| 3623 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3624 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3626 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3627 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3628 | $as_echo_n "(cached) " >&6 |
| 3629 | else |
| 3630 | if test -n "$CC"; then |
| 3631 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3632 | else |
| 3633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3634 | for as_dir in $PATH |
| 3635 | do |
| 3636 | IFS=$as_save_IFS |
| 3637 | test -z "$as_dir" && as_dir=. |
| 3638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3640 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3642 | break 2 |
| 3643 | fi |
| 3644 | done |
| 3645 | done |
| 3646 | IFS=$as_save_IFS |
| 3647 | |
| 3648 | fi |
| 3649 | fi |
| 3650 | CC=$ac_cv_prog_CC |
| 3651 | if test -n "$CC"; then |
| 3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3653 | $as_echo "$CC" >&6; } |
| 3654 | else |
| 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3656 | $as_echo "no" >&6; } |
| 3657 | fi |
| 3658 | |
| 3659 | |
| 3660 | fi |
| 3661 | if test -z "$ac_cv_prog_CC"; then |
| 3662 | ac_ct_CC=$CC |
| 3663 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3664 | set dummy gcc; ac_word=$2 |
| 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3666 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3668 | $as_echo_n "(cached) " >&6 |
| 3669 | else |
| 3670 | if test -n "$ac_ct_CC"; then |
| 3671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3672 | else |
| 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | test -z "$as_dir" && as_dir=. |
| 3678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3680 | ac_cv_prog_ac_ct_CC="gcc" |
| 3681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3682 | break 2 |
| 3683 | fi |
| 3684 | done |
| 3685 | done |
| 3686 | IFS=$as_save_IFS |
| 3687 | |
| 3688 | fi |
| 3689 | fi |
| 3690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3691 | if test -n "$ac_ct_CC"; then |
| 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3693 | $as_echo "$ac_ct_CC" >&6; } |
| 3694 | else |
| 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3696 | $as_echo "no" >&6; } |
| 3697 | fi |
| 3698 | |
| 3699 | if test "x$ac_ct_CC" = x; then |
| 3700 | CC="" |
| 3701 | else |
| 3702 | case $cross_compiling:$ac_tool_warned in |
| 3703 | yes:) |
| 3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3706 | ac_tool_warned=yes ;; |
| 3707 | esac |
| 3708 | CC=$ac_ct_CC |
| 3709 | fi |
| 3710 | else |
| 3711 | CC="$ac_cv_prog_CC" |
| 3712 | fi |
| 3713 | |
| 3714 | if test -z "$CC"; then |
| 3715 | if test -n "$ac_tool_prefix"; then |
| 3716 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3717 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3719 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3720 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3721 | $as_echo_n "(cached) " >&6 |
| 3722 | else |
| 3723 | if test -n "$CC"; then |
| 3724 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3725 | else |
| 3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3727 | for as_dir in $PATH |
| 3728 | do |
| 3729 | IFS=$as_save_IFS |
| 3730 | test -z "$as_dir" && as_dir=. |
| 3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3733 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3735 | break 2 |
| 3736 | fi |
| 3737 | done |
| 3738 | done |
| 3739 | IFS=$as_save_IFS |
| 3740 | |
| 3741 | fi |
| 3742 | fi |
| 3743 | CC=$ac_cv_prog_CC |
| 3744 | if test -n "$CC"; then |
| 3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3746 | $as_echo "$CC" >&6; } |
| 3747 | else |
| 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3749 | $as_echo "no" >&6; } |
| 3750 | fi |
| 3751 | |
| 3752 | |
| 3753 | fi |
| 3754 | fi |
| 3755 | if test -z "$CC"; then |
| 3756 | # Extract the first word of "cc", so it can be a program name with args. |
| 3757 | set dummy cc; ac_word=$2 |
| 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3759 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3760 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3761 | $as_echo_n "(cached) " >&6 |
| 3762 | else |
| 3763 | if test -n "$CC"; then |
| 3764 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3765 | else |
| 3766 | ac_prog_rejected=no |
| 3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3768 | for as_dir in $PATH |
| 3769 | do |
| 3770 | IFS=$as_save_IFS |
| 3771 | test -z "$as_dir" && as_dir=. |
| 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3774 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3775 | ac_prog_rejected=yes |
| 3776 | continue |
| 3777 | fi |
| 3778 | ac_cv_prog_CC="cc" |
| 3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3780 | break 2 |
| 3781 | fi |
| 3782 | done |
| 3783 | done |
| 3784 | IFS=$as_save_IFS |
| 3785 | |
| 3786 | if test $ac_prog_rejected = yes; then |
| 3787 | # We found a bogon in the path, so make sure we never use it. |
| 3788 | set dummy $ac_cv_prog_CC |
| 3789 | shift |
| 3790 | if test $# != 0; then |
| 3791 | # We chose a different compiler from the bogus one. |
| 3792 | # However, it has the same basename, so the bogon will be chosen |
| 3793 | # first if we set CC to just the basename; use the full file name. |
| 3794 | shift |
| 3795 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3796 | fi |
| 3797 | fi |
| 3798 | fi |
| 3799 | fi |
| 3800 | CC=$ac_cv_prog_CC |
| 3801 | if test -n "$CC"; then |
| 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3803 | $as_echo "$CC" >&6; } |
| 3804 | else |
| 3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3806 | $as_echo "no" >&6; } |
| 3807 | fi |
| 3808 | |
| 3809 | |
| 3810 | fi |
| 3811 | if test -z "$CC"; then |
| 3812 | if test -n "$ac_tool_prefix"; then |
| 3813 | for ac_prog in cl.exe |
| 3814 | do |
| 3815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3818 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3819 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3820 | $as_echo_n "(cached) " >&6 |
| 3821 | else |
| 3822 | if test -n "$CC"; then |
| 3823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3824 | else |
| 3825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3826 | for as_dir in $PATH |
| 3827 | do |
| 3828 | IFS=$as_save_IFS |
| 3829 | test -z "$as_dir" && as_dir=. |
| 3830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3832 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3834 | break 2 |
| 3835 | fi |
| 3836 | done |
| 3837 | done |
| 3838 | IFS=$as_save_IFS |
| 3839 | |
| 3840 | fi |
| 3841 | fi |
| 3842 | CC=$ac_cv_prog_CC |
| 3843 | if test -n "$CC"; then |
| 3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3845 | $as_echo "$CC" >&6; } |
| 3846 | else |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3848 | $as_echo "no" >&6; } |
| 3849 | fi |
| 3850 | |
| 3851 | |
| 3852 | test -n "$CC" && break |
| 3853 | done |
| 3854 | fi |
| 3855 | if test -z "$CC"; then |
| 3856 | ac_ct_CC=$CC |
| 3857 | for ac_prog in cl.exe |
| 3858 | do |
| 3859 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3860 | set dummy $ac_prog; ac_word=$2 |
| 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3862 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3863 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3864 | $as_echo_n "(cached) " >&6 |
| 3865 | else |
| 3866 | if test -n "$ac_ct_CC"; then |
| 3867 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3868 | else |
| 3869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3870 | for as_dir in $PATH |
| 3871 | do |
| 3872 | IFS=$as_save_IFS |
| 3873 | test -z "$as_dir" && as_dir=. |
| 3874 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3876 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3878 | break 2 |
| 3879 | fi |
| 3880 | done |
| 3881 | done |
| 3882 | IFS=$as_save_IFS |
| 3883 | |
| 3884 | fi |
| 3885 | fi |
| 3886 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3887 | if test -n "$ac_ct_CC"; then |
| 3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3889 | $as_echo "$ac_ct_CC" >&6; } |
| 3890 | else |
| 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3892 | $as_echo "no" >&6; } |
| 3893 | fi |
| 3894 | |
| 3895 | |
| 3896 | test -n "$ac_ct_CC" && break |
| 3897 | done |
| 3898 | |
| 3899 | if test "x$ac_ct_CC" = x; then |
| 3900 | CC="" |
| 3901 | else |
| 3902 | case $cross_compiling:$ac_tool_warned in |
| 3903 | yes:) |
| 3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3906 | ac_tool_warned=yes ;; |
| 3907 | esac |
| 3908 | CC=$ac_ct_CC |
| 3909 | fi |
| 3910 | fi |
| 3911 | |
| 3912 | fi |
| 3913 | |
| 3914 | |
| 3915 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3917 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3918 | See \`config.log' for more details." "$LINENO" 5; } |
| 3919 | |
| 3920 | # Provide some information about the compiler. |
| 3921 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3922 | set X $ac_compile |
| 3923 | ac_compiler=$2 |
| 3924 | for ac_option in --version -v -V -qversion; do |
| 3925 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3926 | case "(($ac_try" in |
| 3927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3928 | *) ac_try_echo=$ac_try;; |
| 3929 | esac |
| 3930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3931 | $as_echo "$ac_try_echo"; } >&5 |
| 3932 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3933 | ac_status=$? |
| 3934 | if test -s conftest.err; then |
| 3935 | sed '10a\ |
| 3936 | ... rest of stderr output deleted ... |
| 3937 | 10q' conftest.err >conftest.er1 |
| 3938 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3939 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 3940 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3942 | test $ac_status = 0; } |
| 3943 | done |
| 3944 | |
| 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3946 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3947 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3948 | $as_echo_n "(cached) " >&6 |
| 3949 | else |
| 3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3951 | /* end confdefs.h. */ |
| 3952 | |
| 3953 | int |
| 3954 | main () |
| 3955 | { |
| 3956 | #ifndef __GNUC__ |
| 3957 | choke me |
| 3958 | #endif |
| 3959 | |
| 3960 | ; |
| 3961 | return 0; |
| 3962 | } |
| 3963 | _ACEOF |
| 3964 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3965 | ac_compiler_gnu=yes |
| 3966 | else |
| 3967 | ac_compiler_gnu=no |
| 3968 | fi |
| 3969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3970 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3971 | |
| 3972 | fi |
| 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3974 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3975 | if test $ac_compiler_gnu = yes; then |
| 3976 | GCC=yes |
| 3977 | else |
| 3978 | GCC= |
| 3979 | fi |
| 3980 | ac_test_CFLAGS=${CFLAGS+set} |
| 3981 | ac_save_CFLAGS=$CFLAGS |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3983 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3984 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3985 | $as_echo_n "(cached) " >&6 |
| 3986 | else |
| 3987 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3988 | ac_c_werror_flag=yes |
| 3989 | ac_cv_prog_cc_g=no |
| 3990 | CFLAGS="-g" |
| 3991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3992 | /* end confdefs.h. */ |
| 3993 | |
| 3994 | int |
| 3995 | main () |
| 3996 | { |
| 3997 | |
| 3998 | ; |
| 3999 | return 0; |
| 4000 | } |
| 4001 | _ACEOF |
| 4002 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4003 | ac_cv_prog_cc_g=yes |
| 4004 | else |
| 4005 | CFLAGS="" |
| 4006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4007 | /* end confdefs.h. */ |
| 4008 | |
| 4009 | int |
| 4010 | main () |
| 4011 | { |
| 4012 | |
| 4013 | ; |
| 4014 | return 0; |
| 4015 | } |
| 4016 | _ACEOF |
| 4017 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4018 | |
| 4019 | else |
| 4020 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4021 | CFLAGS="-g" |
| 4022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4023 | /* end confdefs.h. */ |
| 4024 | |
| 4025 | int |
| 4026 | main () |
| 4027 | { |
| 4028 | |
| 4029 | ; |
| 4030 | return 0; |
| 4031 | } |
| 4032 | _ACEOF |
| 4033 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4034 | ac_cv_prog_cc_g=yes |
| 4035 | fi |
| 4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4037 | fi |
| 4038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4039 | fi |
| 4040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4041 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4042 | fi |
| 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4044 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4045 | if test "$ac_test_CFLAGS" = set; then |
| 4046 | CFLAGS=$ac_save_CFLAGS |
| 4047 | elif test $ac_cv_prog_cc_g = yes; then |
| 4048 | if test "$GCC" = yes; then |
| 4049 | CFLAGS="-g -O2" |
| 4050 | else |
| 4051 | CFLAGS="-g" |
| 4052 | fi |
| 4053 | else |
| 4054 | if test "$GCC" = yes; then |
| 4055 | CFLAGS="-O2" |
| 4056 | else |
| 4057 | CFLAGS= |
| 4058 | fi |
| 4059 | fi |
| 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4061 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4062 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4063 | $as_echo_n "(cached) " >&6 |
| 4064 | else |
| 4065 | ac_cv_prog_cc_c89=no |
| 4066 | ac_save_CC=$CC |
| 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4068 | /* end confdefs.h. */ |
| 4069 | #include <stdarg.h> |
| 4070 | #include <stdio.h> |
| 4071 | #include <sys/types.h> |
| 4072 | #include <sys/stat.h> |
| 4073 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4074 | struct buf { int x; }; |
| 4075 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4076 | static char *e (p, i) |
| 4077 | char **p; |
| 4078 | int i; |
| 4079 | { |
| 4080 | return p[i]; |
| 4081 | } |
| 4082 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4083 | { |
| 4084 | char *s; |
| 4085 | va_list v; |
| 4086 | va_start (v,p); |
| 4087 | s = g (p, va_arg (v,int)); |
| 4088 | va_end (v); |
| 4089 | return s; |
| 4090 | } |
| 4091 | |
| 4092 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4093 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4094 | These don't provoke an error unfortunately, instead are silently treated |
| 4095 | as 'x'. The following induces an error, until -std is added to get |
| 4096 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4097 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4098 | that's true only with -std. */ |
| 4099 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4100 | |
| 4101 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4102 | inside strings and character constants. */ |
| 4103 | #define FOO(x) 'x' |
| 4104 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4105 | |
| 4106 | int test (int i, double x); |
| 4107 | struct s1 {int (*f) (int a);}; |
| 4108 | struct s2 {int (*f) (double a);}; |
| 4109 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4110 | int argc; |
| 4111 | char **argv; |
| 4112 | int |
| 4113 | main () |
| 4114 | { |
| 4115 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4116 | ; |
| 4117 | return 0; |
| 4118 | } |
| 4119 | _ACEOF |
| 4120 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4121 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4122 | do |
| 4123 | CC="$ac_save_CC $ac_arg" |
| 4124 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4125 | ac_cv_prog_cc_c89=$ac_arg |
| 4126 | fi |
| 4127 | rm -f core conftest.err conftest.$ac_objext |
| 4128 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4129 | done |
| 4130 | rm -f conftest.$ac_ext |
| 4131 | CC=$ac_save_CC |
| 4132 | |
| 4133 | fi |
| 4134 | # AC_CACHE_VAL |
| 4135 | case "x$ac_cv_prog_cc_c89" in |
| 4136 | x) |
| 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4138 | $as_echo "none needed" >&6; } ;; |
| 4139 | xno) |
| 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4141 | $as_echo "unsupported" >&6; } ;; |
| 4142 | *) |
| 4143 | CC="$CC $ac_cv_prog_cc_c89" |
| 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4145 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4146 | esac |
| 4147 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4148 | |
| 4149 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4150 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4151 | ac_ext=c |
| 4152 | ac_cpp='$CPP $CPPFLAGS' |
| 4153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4156 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4157 | ac_ext=c |
| 4158 | ac_cpp='$CPP $CPPFLAGS' |
| 4159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4163 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4164 | # On Suns, sometimes $CPP names a directory. |
| 4165 | if test -n "$CPP" && test -d "$CPP"; then |
| 4166 | CPP= |
| 4167 | fi |
| 4168 | if test -z "$CPP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4169 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4170 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4171 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4172 | # Double quotes because CPP needs to be expanded |
| 4173 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4174 | do |
| 4175 | ac_preproc_ok=false |
| 4176 | for ac_c_preproc_warn_flag in '' yes |
| 4177 | do |
| 4178 | # Use a header file that comes with gcc, so configuring glibc |
| 4179 | # with a fresh cross-compiler works. |
| 4180 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4181 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4182 | # 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] | 4183 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4185 | /* end confdefs.h. */ |
| 4186 | #ifdef __STDC__ |
| 4187 | # include <limits.h> |
| 4188 | #else |
| 4189 | # include <assert.h> |
| 4190 | #endif |
| 4191 | Syntax error |
| 4192 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4193 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4194 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4195 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4196 | # Broken: fails on valid input. |
| 4197 | continue |
| 4198 | fi |
| 4199 | rm -f conftest.err conftest.$ac_ext |
| 4200 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4201 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4202 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4204 | /* end confdefs.h. */ |
| 4205 | #include <ac_nonexistent.h> |
| 4206 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4207 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4208 | # Broken: success on invalid input. |
| 4209 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4210 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4211 | # Passes both tests. |
| 4212 | ac_preproc_ok=: |
| 4213 | break |
| 4214 | fi |
| 4215 | rm -f conftest.err conftest.$ac_ext |
| 4216 | |
| 4217 | done |
| 4218 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4219 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4220 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4221 | break |
| 4222 | fi |
| 4223 | |
| 4224 | done |
| 4225 | ac_cv_prog_CPP=$CPP |
| 4226 | |
| 4227 | fi |
| 4228 | CPP=$ac_cv_prog_CPP |
| 4229 | else |
| 4230 | ac_cv_prog_CPP=$CPP |
| 4231 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4233 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4234 | ac_preproc_ok=false |
| 4235 | for ac_c_preproc_warn_flag in '' yes |
| 4236 | do |
| 4237 | # Use a header file that comes with gcc, so configuring glibc |
| 4238 | # with a fresh cross-compiler works. |
| 4239 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4240 | # <limits.h> exists even on freestanding compilers. |
| 4241 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4242 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4244 | /* end confdefs.h. */ |
| 4245 | #ifdef __STDC__ |
| 4246 | # include <limits.h> |
| 4247 | #else |
| 4248 | # include <assert.h> |
| 4249 | #endif |
| 4250 | Syntax error |
| 4251 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4252 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4253 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4254 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4255 | # Broken: fails on valid input. |
| 4256 | continue |
| 4257 | fi |
| 4258 | rm -f conftest.err conftest.$ac_ext |
| 4259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4260 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4261 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4263 | /* end confdefs.h. */ |
| 4264 | #include <ac_nonexistent.h> |
| 4265 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4266 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4267 | # Broken: success on invalid input. |
| 4268 | continue |
| 4269 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4270 | # Passes both tests. |
| 4271 | ac_preproc_ok=: |
| 4272 | break |
| 4273 | fi |
| 4274 | rm -f conftest.err conftest.$ac_ext |
| 4275 | |
| 4276 | done |
| 4277 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4278 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4279 | if $ac_preproc_ok; then : |
| 4280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4281 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4284 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4285 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4286 | fi |
| 4287 | |
| 4288 | ac_ext=c |
| 4289 | ac_cpp='$CPP $CPPFLAGS' |
| 4290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4293 | |
| 4294 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4296 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4297 | if test "${ac_cv_path_GREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4298 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4299 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4300 | if test -z "$GREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4301 | ac_path_GREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4302 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4304 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4305 | do |
| 4306 | IFS=$as_save_IFS |
| 4307 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4308 | for ac_prog in grep ggrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4311 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4312 | # Check for GNU ac_path_GREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4313 | # Check for GNU $ac_path_GREP |
| 4314 | case `"$ac_path_GREP" --version 2>&1` in |
| 4315 | *GNU*) |
| 4316 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4317 | *) |
| 4318 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4319 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4320 | while : |
| 4321 | do |
| 4322 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4323 | mv "conftest.tmp" "conftest.in" |
| 4324 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4325 | $as_echo 'GREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4326 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4327 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4328 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4329 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4330 | # Best one so far, save it but keep looking for a better one |
| 4331 | ac_cv_path_GREP="$ac_path_GREP" |
| 4332 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4333 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4334 | # 10*(2^10) chars as input seems more than enough |
| 4335 | test $ac_count -gt 10 && break |
| 4336 | done |
| 4337 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4338 | esac |
| 4339 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4340 | $ac_path_GREP_found && break 3 |
| 4341 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4342 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4343 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4344 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4345 | if test -z "$ac_cv_path_GREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4346 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4347 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4348 | else |
| 4349 | ac_cv_path_GREP=$GREP |
| 4350 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4352 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4354 | $as_echo "$ac_cv_path_GREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4355 | GREP="$ac_cv_path_GREP" |
| 4356 | |
| 4357 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4359 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4360 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4361 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4362 | else |
| 4363 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4364 | then ac_cv_path_EGREP="$GREP -E" |
| 4365 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4366 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4367 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4368 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4370 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4371 | do |
| 4372 | IFS=$as_save_IFS |
| 4373 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4374 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4375 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4376 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4377 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4378 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4379 | # Check for GNU $ac_path_EGREP |
| 4380 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4381 | *GNU*) |
| 4382 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4383 | *) |
| 4384 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4385 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4386 | while : |
| 4387 | do |
| 4388 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4389 | mv "conftest.tmp" "conftest.in" |
| 4390 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4391 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4392 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4393 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4394 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4395 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4396 | # Best one so far, save it but keep looking for a better one |
| 4397 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4398 | ac_path_EGREP_max=$ac_count |
| 4399 | fi |
| 4400 | # 10*(2^10) chars as input seems more than enough |
| 4401 | test $ac_count -gt 10 && break |
| 4402 | done |
| 4403 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4404 | esac |
| 4405 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4406 | $ac_path_EGREP_found && break 3 |
| 4407 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4408 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4409 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4410 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4411 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4412 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4413 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4414 | else |
| 4415 | ac_cv_path_EGREP=$EGREP |
| 4416 | fi |
| 4417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4418 | fi |
| 4419 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4421 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4422 | EGREP="$ac_cv_path_EGREP" |
| 4423 | |
| 4424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4426 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4427 | if test "${ac_cv_header_stdc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4428 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4431 | /* end confdefs.h. */ |
| 4432 | #include <stdlib.h> |
| 4433 | #include <stdarg.h> |
| 4434 | #include <string.h> |
| 4435 | #include <float.h> |
| 4436 | |
| 4437 | int |
| 4438 | main () |
| 4439 | { |
| 4440 | |
| 4441 | ; |
| 4442 | return 0; |
| 4443 | } |
| 4444 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4445 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4446 | ac_cv_header_stdc=yes |
| 4447 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4448 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4449 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4451 | |
| 4452 | if test $ac_cv_header_stdc = yes; then |
| 4453 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4455 | /* end confdefs.h. */ |
| 4456 | #include <string.h> |
| 4457 | |
| 4458 | _ACEOF |
| 4459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4460 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4462 | else |
| 4463 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4464 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4465 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4466 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4467 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4468 | |
| 4469 | if test $ac_cv_header_stdc = yes; then |
| 4470 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4472 | /* end confdefs.h. */ |
| 4473 | #include <stdlib.h> |
| 4474 | |
| 4475 | _ACEOF |
| 4476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4477 | $EGREP "free" >/dev/null 2>&1; then : |
| 4478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4479 | else |
| 4480 | ac_cv_header_stdc=no |
| 4481 | fi |
| 4482 | rm -f conftest* |
| 4483 | |
| 4484 | fi |
| 4485 | |
| 4486 | if test $ac_cv_header_stdc = yes; then |
| 4487 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4488 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4489 | : |
| 4490 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4492 | /* end confdefs.h. */ |
| 4493 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4494 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4495 | #if ((' ' & 0x0FF) == 0x020) |
| 4496 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4497 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4498 | #else |
| 4499 | # define ISLOWER(c) \ |
| 4500 | (('a' <= (c) && (c) <= 'i') \ |
| 4501 | || ('j' <= (c) && (c) <= 'r') \ |
| 4502 | || ('s' <= (c) && (c) <= 'z')) |
| 4503 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4504 | #endif |
| 4505 | |
| 4506 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4507 | int |
| 4508 | main () |
| 4509 | { |
| 4510 | int i; |
| 4511 | for (i = 0; i < 256; i++) |
| 4512 | if (XOR (islower (i), ISLOWER (i)) |
| 4513 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4514 | return 2; |
| 4515 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4516 | } |
| 4517 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4518 | if ac_fn_c_try_run "$LINENO"; then : |
| 4519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4520 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4521 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4522 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4524 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4525 | fi |
| 4526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4527 | fi |
| 4528 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4530 | $as_echo "$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4531 | if test $ac_cv_header_stdc = yes; then |
| 4532 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4533 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4534 | |
| 4535 | fi |
| 4536 | |
| 4537 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4538 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4539 | inttypes.h stdint.h unistd.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4540 | do : |
| 4541 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4542 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4543 | " |
| 4544 | eval as_val=\$$as_ac_Header |
| 4545 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4546 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4547 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4548 | _ACEOF |
| 4549 | |
| 4550 | fi |
| 4551 | |
| 4552 | done |
| 4553 | |
| 4554 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4555 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
| 4556 | if test "x$ac_cv_header_linux_fs_h" = x""yes; then : |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4557 | linux_headers=yes |
| 4558 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4559 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4560 | fi |
| 4561 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4562 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 4563 | if test "$linux_headers" != yes; then |
| 4564 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4565 | fi |
| 4566 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4568 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4569 | if test "$GCC" = yes |
| 4570 | then |
| 4571 | case "$host_cpu" in |
| 4572 | alpha) addcflags="-mieee" ;; |
| 4573 | esac |
| 4574 | fi |
| 4575 | if test "x$addcflags" != x |
| 4576 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4578 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4579 | CFLAGS="$addcflags $CFLAGS" |
| 4580 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4582 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4583 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4584 | LIB_EXT=.a |
| 4585 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4586 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4588 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4589 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4590 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4591 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4592 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4593 | fi |
| 4594 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4595 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4596 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4597 | then |
| 4598 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4600 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4601 | else |
| 4602 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4604 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4605 | fi |
| 4606 | |
| 4607 | else |
| 4608 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4610 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4611 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4612 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4614 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4615 | # Check whether --enable-symlink-install was given. |
| 4616 | if test "${enable_symlink_install+set}" = set; then : |
| 4617 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4618 | then |
| 4619 | LINK_INSTALL_FLAGS=-f |
| 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4621 | $as_echo "Disabling symlinks for install" >&6; } |
| 4622 | else |
| 4623 | LINK_INSTALL_FLAGS=-sf |
| 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4625 | $as_echo "Enabling symlinks for install" >&6; } |
| 4626 | fi |
| 4627 | |
| 4628 | else |
| 4629 | LINK_INSTALL_FLAGS=-f |
| 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4631 | $as_echo "Disabling symlinks for install" >&6; } |
| 4632 | |
| 4633 | fi |
| 4634 | |
| 4635 | |
| 4636 | # Check whether --enable-symlink-build was given. |
| 4637 | if test "${enable_symlink_build+set}" = set; then : |
| 4638 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4639 | then |
| 4640 | LINK_BUILD_FLAGS= |
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4642 | $as_echo "Disabling symlinks for build" >&6; } |
| 4643 | else |
| 4644 | LINK_BUILD_FLAGS=-s |
| 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4646 | $as_echo "Enabling symlinks for build" >&6; } |
| 4647 | fi |
| 4648 | |
| 4649 | else |
| 4650 | LINK_BUILD_FLAGS= |
| 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4652 | $as_echo "Disabling symlinks for build" >&6; } |
| 4653 | |
| 4654 | fi |
| 4655 | |
| 4656 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4657 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4658 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4659 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4660 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4662 | $as_echo "Disabling verbose make commands" >&6; } |
| 4663 | E=@echo |
| 4664 | Q=@ |
| 4665 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4667 | $as_echo "Enabling verbose make commands" >&6; } |
| 4668 | E=@\\# |
| 4669 | Q= |
| 4670 | fi |
| 4671 | |
| 4672 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4674 | $as_echo "Disabling verbose make commands" >&6; } |
| 4675 | E=@echo |
| 4676 | Q=@ |
| 4677 | |
| 4678 | fi |
| 4679 | |
| 4680 | |
| 4681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4682 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4683 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4684 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4685 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4687 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4688 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4689 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4690 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4692 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4694 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4695 | fi |
| 4696 | |
| 4697 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4699 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4700 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4701 | fi |
| 4702 | |
| 4703 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4704 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4705 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4706 | then |
| 4707 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4709 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4710 | else |
| 4711 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4712 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4713 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4715 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4716 | fi |
| 4717 | |
| 4718 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4719 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4720 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4723 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4725 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4726 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4727 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4728 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4729 | LDFLAG_DYNAMIC= |
| 4730 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4731 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4732 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4733 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4734 | then |
| 4735 | ELF_CMT=# |
| 4736 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4738 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4739 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4740 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4741 | ELF_CMT= |
| 4742 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4743 | case "$host_os" in |
| 4744 | solaris2.*) |
| 4745 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4746 | ;; |
| 4747 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4748 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4749 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4750 | PRIVATE_LIBS_CMT=# |
| 4751 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4753 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4754 | fi |
| 4755 | |
| 4756 | else |
| 4757 | MAKEFILE_ELF=/dev/null |
| 4758 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4760 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4761 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4762 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4763 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4765 | |
| 4766 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4767 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4768 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4769 | then |
| 4770 | BSDLIB_CMT=# |
| 4771 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4773 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4774 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4775 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4776 | BSDLIB_CMT= |
| 4777 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4778 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4779 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4780 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4781 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4782 | LIB_EXT=.dylib |
| 4783 | ;; |
| 4784 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4786 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4787 | fi |
| 4788 | |
| 4789 | else |
| 4790 | MAKEFILE_BSDLIB=/dev/null |
| 4791 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4793 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4794 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4795 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4796 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4797 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4798 | |
| 4799 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4800 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4801 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4802 | then |
| 4803 | PROFILE_CMT=# |
| 4804 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4806 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4807 | else |
| 4808 | PROFILE_CMT= |
| 4809 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4810 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4812 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4813 | fi |
| 4814 | |
| 4815 | else |
| 4816 | PROFILE_CMT=# |
| 4817 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4819 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4821 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4822 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4824 | |
| 4825 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4826 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4827 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4828 | then |
| 4829 | CHECKER_CMT=# |
| 4830 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4832 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4833 | else |
| 4834 | CHECKER_CMT= |
| 4835 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4837 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4838 | fi |
| 4839 | |
| 4840 | else |
| 4841 | CHECKER_CMT=# |
| 4842 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4844 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4846 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4847 | |
| 4848 | |
| 4849 | |
| 4850 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4852 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4853 | |
| 4854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4855 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4856 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4857 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4858 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4860 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4861 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4862 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4863 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4865 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4866 | fi |
| 4867 | |
| 4868 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4870 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4871 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4872 | fi |
| 4873 | |
| 4874 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4875 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4876 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4877 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4879 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4880 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4881 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4882 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4884 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4885 | fi |
| 4886 | |
| 4887 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4889 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4890 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4891 | fi |
| 4892 | |
| 4893 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4894 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4895 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4896 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4898 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4899 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4900 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4901 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4902 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4903 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4905 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4906 | fi |
| 4907 | |
| 4908 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4910 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4911 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4912 | |
| 4913 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4915 | fi |
| 4916 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4917 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4918 | |
| 4919 | |
| 4920 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4921 | if test -n "$ac_tool_prefix"; then |
| 4922 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4923 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4925 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4926 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4927 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4928 | else |
| 4929 | case $PKG_CONFIG in |
| 4930 | [\\/]* | ?:[\\/]*) |
| 4931 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4932 | ;; |
| 4933 | *) |
| 4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4935 | for as_dir in $PATH |
| 4936 | do |
| 4937 | IFS=$as_save_IFS |
| 4938 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4939 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4941 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4943 | break 2 |
| 4944 | fi |
| 4945 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4946 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4947 | IFS=$as_save_IFS |
| 4948 | |
| 4949 | ;; |
| 4950 | esac |
| 4951 | fi |
| 4952 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4953 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4955 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4956 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4958 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4959 | fi |
| 4960 | |
| 4961 | |
| 4962 | fi |
| 4963 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4964 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4965 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4966 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4968 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4969 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4970 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4971 | else |
| 4972 | case $ac_pt_PKG_CONFIG in |
| 4973 | [\\/]* | ?:[\\/]*) |
| 4974 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4975 | ;; |
| 4976 | *) |
| 4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4978 | for as_dir in $PATH |
| 4979 | do |
| 4980 | IFS=$as_save_IFS |
| 4981 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4982 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4984 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4986 | break 2 |
| 4987 | fi |
| 4988 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4990 | IFS=$as_save_IFS |
| 4991 | |
| 4992 | ;; |
| 4993 | esac |
| 4994 | fi |
| 4995 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4996 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4998 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4999 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5001 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5002 | fi |
| 5003 | |
| 5004 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5005 | PKG_CONFIG="" |
| 5006 | else |
| 5007 | case $cross_compiling:$ac_tool_warned in |
| 5008 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5011 | ac_tool_warned=yes ;; |
| 5012 | esac |
| 5013 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5014 | fi |
| 5015 | else |
| 5016 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5017 | fi |
| 5018 | |
| 5019 | fi |
| 5020 | if test -n "$PKG_CONFIG"; then |
| 5021 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5023 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5024 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5026 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5027 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5029 | $as_echo "no" >&6; } |
| 5030 | PKG_CONFIG="" |
| 5031 | fi |
| 5032 | |
| 5033 | fi |
| 5034 | LIBUUID= |
| 5035 | DEPLIBUUID= |
| 5036 | STATIC_LIBUUID= |
| 5037 | DEPSTATIC_LIBUUID= |
| 5038 | PROFILED_LIBUUID= |
| 5039 | DEPPROFILED_LIBUUID= |
| 5040 | UUID_CMT= |
| 5041 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5042 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5043 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5044 | then |
| 5045 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5046 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5047 | fi |
| 5048 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5050 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5051 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5052 | $as_echo_n "(cached) " >&6 |
| 5053 | else |
| 5054 | ac_check_lib_save_LIBS=$LIBS |
| 5055 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5057 | /* end confdefs.h. */ |
| 5058 | |
| 5059 | /* Override any GCC internal prototype to avoid an error. |
| 5060 | Use char because int might match the return type of a GCC |
| 5061 | builtin and then its argument prototype would still apply. */ |
| 5062 | #ifdef __cplusplus |
| 5063 | extern "C" |
| 5064 | #endif |
| 5065 | char uuid_generate (); |
| 5066 | int |
| 5067 | main () |
| 5068 | { |
| 5069 | return uuid_generate (); |
| 5070 | ; |
| 5071 | return 0; |
| 5072 | } |
| 5073 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5074 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5075 | ac_cv_lib_uuid_uuid_generate=yes |
| 5076 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5077 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5078 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5079 | rm -f core conftest.err conftest.$ac_objext \ |
| 5080 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5081 | LIBS=$ac_check_lib_save_LIBS |
| 5082 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5084 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5085 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5086 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5087 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5088 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5089 | as_fn_error "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5090 | fi |
| 5091 | |
| 5092 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5094 | $as_echo "Disabling private uuid library" >&6; } |
| 5095 | else |
| 5096 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5097 | DEPLIBUUID=$LIBUUID |
| 5098 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5099 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5100 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5101 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5103 | $as_echo "Enabling private uuid library" >&6; } |
| 5104 | fi |
| 5105 | |
| 5106 | else |
| 5107 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5108 | DEPLIBUUID=$LIBUUID |
| 5109 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5110 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5111 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5112 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5114 | $as_echo "Enabling private uuid library by default" >&6; } |
| 5115 | |
| 5116 | fi |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 | |
| 5126 | |
| 5127 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5128 | if test -n "$ac_tool_prefix"; then |
| 5129 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5130 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5132 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5133 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5134 | $as_echo_n "(cached) " >&6 |
| 5135 | else |
| 5136 | case $PKG_CONFIG in |
| 5137 | [\\/]* | ?:[\\/]*) |
| 5138 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5139 | ;; |
| 5140 | *) |
| 5141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5142 | for as_dir in $PATH |
| 5143 | do |
| 5144 | IFS=$as_save_IFS |
| 5145 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5146 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5148 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5150 | break 2 |
| 5151 | fi |
| 5152 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5153 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5154 | IFS=$as_save_IFS |
| 5155 | |
| 5156 | ;; |
| 5157 | esac |
| 5158 | fi |
| 5159 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5160 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5162 | $as_echo "$PKG_CONFIG" >&6; } |
| 5163 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5165 | $as_echo "no" >&6; } |
| 5166 | fi |
| 5167 | |
| 5168 | |
| 5169 | fi |
| 5170 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5171 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5172 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5173 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5175 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5176 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5177 | $as_echo_n "(cached) " >&6 |
| 5178 | else |
| 5179 | case $ac_pt_PKG_CONFIG in |
| 5180 | [\\/]* | ?:[\\/]*) |
| 5181 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5182 | ;; |
| 5183 | *) |
| 5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5185 | for as_dir in $PATH |
| 5186 | do |
| 5187 | IFS=$as_save_IFS |
| 5188 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5189 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5191 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5193 | break 2 |
| 5194 | fi |
| 5195 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5196 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5197 | IFS=$as_save_IFS |
| 5198 | |
| 5199 | ;; |
| 5200 | esac |
| 5201 | fi |
| 5202 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5203 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5205 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5206 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5208 | $as_echo "no" >&6; } |
| 5209 | fi |
| 5210 | |
| 5211 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5212 | PKG_CONFIG="" |
| 5213 | else |
| 5214 | case $cross_compiling:$ac_tool_warned in |
| 5215 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5218 | ac_tool_warned=yes ;; |
| 5219 | esac |
| 5220 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5221 | fi |
| 5222 | else |
| 5223 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5224 | fi |
| 5225 | |
| 5226 | fi |
| 5227 | if test -n "$PKG_CONFIG"; then |
| 5228 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5230 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5231 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5233 | $as_echo "yes" >&6; } |
| 5234 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5236 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5237 | PKG_CONFIG="" |
| 5238 | fi |
| 5239 | |
| 5240 | fi |
| 5241 | LIBBLKID= |
| 5242 | DEPLIBBLKID= |
| 5243 | STATIC_LIBBLKID= |
| 5244 | DEPSTATIC_LIBBLKID= |
| 5245 | PROFILED_LIBBLKID= |
| 5246 | DEPPROFILED_LIBBLKID= |
| 5247 | BLKID_CMT= |
| 5248 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5249 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5250 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5251 | then |
| 5252 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5253 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5254 | fi |
| 5255 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5257 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5258 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5259 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5260 | else |
| 5261 | ac_check_lib_save_LIBS=$LIBS |
| 5262 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5264 | /* end confdefs.h. */ |
| 5265 | |
| 5266 | /* Override any GCC internal prototype to avoid an error. |
| 5267 | Use char because int might match the return type of a GCC |
| 5268 | builtin and then its argument prototype would still apply. */ |
| 5269 | #ifdef __cplusplus |
| 5270 | extern "C" |
| 5271 | #endif |
| 5272 | char blkid_get_cache (); |
| 5273 | int |
| 5274 | main () |
| 5275 | { |
| 5276 | return blkid_get_cache (); |
| 5277 | ; |
| 5278 | return 0; |
| 5279 | } |
| 5280 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5281 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5282 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5283 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5284 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5285 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5286 | rm -f core conftest.err conftest.$ac_objext \ |
| 5287 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5288 | LIBS=$ac_check_lib_save_LIBS |
| 5289 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5291 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5292 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5293 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5294 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5295 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5296 | as_fn_error "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5297 | fi |
| 5298 | |
| 5299 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5301 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5302 | else |
| 5303 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5304 | DEPLIBBLKID=$LIBBLKID |
| 5305 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5306 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5307 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5308 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5309 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5310 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5312 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5313 | fi |
| 5314 | |
| 5315 | else |
| 5316 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5317 | DEPLIBBLKID=$LIBBLKID |
| 5318 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5319 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5320 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5321 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5322 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5323 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5325 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5326 | |
| 5327 | fi |
| 5328 | |
| 5329 | |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5336 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5337 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5338 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5339 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5341 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5342 | DEBUGFS_CMT="#" |
| 5343 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5344 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5346 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5347 | fi |
| 5348 | |
| 5349 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5351 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5352 | DEBUGFS_CMT= |
| 5353 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5354 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5356 | |
| 5357 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5358 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5359 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5360 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5362 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5363 | IMAGER_CMT="#" |
| 5364 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5365 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5367 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5368 | fi |
| 5369 | |
| 5370 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5372 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5373 | IMAGER_CMT= |
| 5374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5376 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5377 | |
| 5378 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5379 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5380 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5381 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5383 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5384 | RESIZER_CMT="#" |
| 5385 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5386 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5388 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5389 | fi |
| 5390 | |
| 5391 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5393 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5394 | RESIZER_CMT= |
| 5395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5396 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5397 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5398 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5399 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5400 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5401 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5402 | then |
| 5403 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5405 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5406 | else |
| 5407 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5409 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5410 | fi |
| 5411 | |
| 5412 | else |
| 5413 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5414 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5415 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5417 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5418 | ;; |
| 5419 | *) |
| 5420 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5422 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5423 | esac |
| 5424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5425 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5426 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5427 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5428 | |
| 5429 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5430 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5431 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5432 | then |
| 5433 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5435 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5436 | else |
| 5437 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5439 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5440 | fi |
| 5441 | |
| 5442 | else |
| 5443 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5445 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5446 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5447 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5448 | |
| 5449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5450 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5451 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5452 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5453 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5454 | then |
| 5455 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5457 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5458 | else |
| 5459 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5461 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5462 | fi |
| 5463 | |
| 5464 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5465 | if test -n "$WITH_DIET_LIBC" |
| 5466 | then |
| 5467 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5469 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5470 | else |
| 5471 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5473 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5474 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5475 | |
| 5476 | fi |
| 5477 | |
| 5478 | if test "$try_tls" = "yes" |
| 5479 | then |
| 5480 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5482 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5483 | if test "${ac_cv_tls+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5484 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5485 | else |
| 5486 | |
| 5487 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5488 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5489 | case $ax_tls_keyword in |
| 5490 | none) ac_cv_tls=none ; break ;; |
| 5491 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5493 | /* end confdefs.h. */ |
| 5494 | #include <stdlib.h> |
| 5495 | static void |
| 5496 | foo(void) { |
| 5497 | static $ax_tls_keyword int bar; |
| 5498 | exit(1); |
| 5499 | } |
| 5500 | int |
| 5501 | main () |
| 5502 | { |
| 5503 | |
| 5504 | ; |
| 5505 | return 0; |
| 5506 | } |
| 5507 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5508 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5509 | ac_cv_tls=$ax_tls_keyword ; break |
| 5510 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5511 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5512 | |
| 5513 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5515 | esac |
| 5516 | done |
| 5517 | |
| 5518 | fi |
| 5519 | |
| 5520 | |
| 5521 | if test "$ac_cv_tls" != "none"; then |
| 5522 | |
| 5523 | cat >>confdefs.h <<_ACEOF |
| 5524 | #define TLS $ac_cv_tls |
| 5525 | _ACEOF |
| 5526 | |
| 5527 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5529 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5530 | |
| 5531 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5532 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5533 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5534 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5535 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5537 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5538 | UUIDD_CMT="#" |
| 5539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5540 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5541 | |
| 5542 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5544 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5545 | fi |
| 5546 | |
| 5547 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5548 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5549 | |
| 5550 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5552 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5553 | |
| 5554 | fi |
| 5555 | |
| 5556 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5557 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5559 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5560 | PACKAGE=e2fsprogs |
| 5561 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5562 | VERSION=0.14.1 |
| 5563 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5564 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5565 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5566 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5567 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5568 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5569 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5570 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5571 | |
| 5572 | |
| 5573 | |
| 5574 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5576 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5577 | set x ${MAKE-make} |
| 5578 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5579 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5580 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5581 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5582 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5583 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5584 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5585 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5586 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5587 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5588 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5589 | *@@@%%%=?*=@@@%%%*) |
| 5590 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5591 | *) |
| 5592 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5593 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5594 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5596 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5598 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5599 | SET_MAKE= |
| 5600 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5602 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5603 | SET_MAKE="MAKE=${MAKE-make}" |
| 5604 | fi |
| 5605 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5606 | # Find a good install program. We prefer a C program (faster), |
| 5607 | # so one script is as good as another. But avoid the broken or |
| 5608 | # incompatible versions: |
| 5609 | # SysV /etc/install, /usr/sbin/install |
| 5610 | # SunOS /usr/etc/install |
| 5611 | # IRIX /sbin/install |
| 5612 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5613 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5614 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5615 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5616 | # 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] | 5617 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5618 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5619 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5621 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5622 | if test -z "$INSTALL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5623 | if test "${ac_cv_path_install+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5624 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5625 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5627 | for as_dir in $PATH |
| 5628 | do |
| 5629 | IFS=$as_save_IFS |
| 5630 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5631 | # Account for people who put trailing slashes in PATH elements. |
| 5632 | case $as_dir/ in #(( |
| 5633 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5634 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5635 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5636 | /usr/ucb/* ) ;; |
| 5637 | *) |
| 5638 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5639 | # Don't use installbsd from OSF since it installs stuff as root |
| 5640 | # by default. |
| 5641 | for ac_prog in ginstall scoinst install; do |
| 5642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5643 | 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] | 5644 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5645 | 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] | 5646 | # AIX install. It has an incompatible calling convention. |
| 5647 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | elif test $ac_prog = install && |
| 5649 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5650 | # program-specific install script used by HP pwplus--don't use. |
| 5651 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5652 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5653 | rm -rf conftest.one conftest.two conftest.dir |
| 5654 | echo one > conftest.one |
| 5655 | echo two > conftest.two |
| 5656 | mkdir conftest.dir |
| 5657 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5658 | test -s conftest.one && test -s conftest.two && |
| 5659 | test -s conftest.dir/conftest.one && |
| 5660 | test -s conftest.dir/conftest.two |
| 5661 | then |
| 5662 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5663 | break 3 |
| 5664 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5665 | fi |
| 5666 | fi |
| 5667 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5668 | done |
| 5669 | ;; |
| 5670 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5671 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5672 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5673 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5674 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5675 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5676 | |
| 5677 | fi |
| 5678 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5679 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5680 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5681 | # As a last resort, use the slow shell script. Don't cache a |
| 5682 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5683 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5684 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5685 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5686 | fi |
| 5687 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5689 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5690 | |
| 5691 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5692 | # It thinks the first close brace ends the variable substitution. |
| 5693 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5694 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5695 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5696 | |
| 5697 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5698 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5699 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5700 | MKINSTALLDIRS= |
| 5701 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | case "$ac_aux_dir" in |
| 5703 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5704 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5705 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5706 | fi |
| 5707 | if test -z "$MKINSTALLDIRS"; then |
| 5708 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5709 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5711 | |
| 5712 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5714 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5715 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5716 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5717 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5718 | else |
| 5719 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5720 | fi |
| 5721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5723 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5724 | |
| 5725 | |
| 5726 | |
| 5727 | |
| 5728 | |
| 5729 | |
| 5730 | # Prepare PATH_SEPARATOR. |
| 5731 | # The user is always right. |
| 5732 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5733 | echo "#! /bin/sh" >conf$$.sh |
| 5734 | echo "exit 0" >>conf$$.sh |
| 5735 | chmod +x conf$$.sh |
| 5736 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5737 | PATH_SEPARATOR=';' |
| 5738 | else |
| 5739 | PATH_SEPARATOR=: |
| 5740 | fi |
| 5741 | rm -f conf$$.sh |
| 5742 | fi |
| 5743 | |
| 5744 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5745 | # as systems may use methods other than mode bits to determine executability. |
| 5746 | cat >conf$$.file <<_ASEOF |
| 5747 | #! /bin/sh |
| 5748 | exit 0 |
| 5749 | _ASEOF |
| 5750 | chmod +x conf$$.file |
| 5751 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5752 | ac_executable_p="test -x" |
| 5753 | else |
| 5754 | ac_executable_p="test -f" |
| 5755 | fi |
| 5756 | rm -f conf$$.file |
| 5757 | |
| 5758 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5759 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5761 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5762 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5763 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5764 | else |
| 5765 | case "$MSGFMT" in |
| 5766 | [\\/]* | ?:[\\/]*) |
| 5767 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5768 | ;; |
| 5769 | *) |
| 5770 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5771 | for ac_dir in $PATH; do |
| 5772 | IFS="$ac_save_IFS" |
| 5773 | test -z "$ac_dir" && ac_dir=. |
| 5774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5775 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5776 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5777 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5778 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5779 | break 2 |
| 5780 | fi |
| 5781 | fi |
| 5782 | done |
| 5783 | done |
| 5784 | IFS="$ac_save_IFS" |
| 5785 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5786 | ;; |
| 5787 | esac |
| 5788 | fi |
| 5789 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5790 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5792 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5793 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5795 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5796 | fi |
| 5797 | |
| 5798 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5799 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5801 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5802 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5803 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5804 | else |
| 5805 | case $GMSGFMT in |
| 5806 | [\\/]* | ?:[\\/]*) |
| 5807 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5808 | ;; |
| 5809 | *) |
| 5810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5811 | for as_dir in $PATH |
| 5812 | do |
| 5813 | IFS=$as_save_IFS |
| 5814 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5815 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5816 | 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] | 5817 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5819 | break 2 |
| 5820 | fi |
| 5821 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5822 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5823 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5824 | |
| 5825 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5826 | ;; |
| 5827 | esac |
| 5828 | fi |
| 5829 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5830 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5832 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5833 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5835 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5836 | fi |
| 5837 | |
| 5838 | |
| 5839 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5840 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5841 | # Prepare PATH_SEPARATOR. |
| 5842 | # The user is always right. |
| 5843 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5844 | echo "#! /bin/sh" >conf$$.sh |
| 5845 | echo "exit 0" >>conf$$.sh |
| 5846 | chmod +x conf$$.sh |
| 5847 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5848 | PATH_SEPARATOR=';' |
| 5849 | else |
| 5850 | PATH_SEPARATOR=: |
| 5851 | fi |
| 5852 | rm -f conf$$.sh |
| 5853 | fi |
| 5854 | |
| 5855 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5856 | # as systems may use methods other than mode bits to determine executability. |
| 5857 | cat >conf$$.file <<_ASEOF |
| 5858 | #! /bin/sh |
| 5859 | exit 0 |
| 5860 | _ASEOF |
| 5861 | chmod +x conf$$.file |
| 5862 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5863 | ac_executable_p="test -x" |
| 5864 | else |
| 5865 | ac_executable_p="test -f" |
| 5866 | fi |
| 5867 | rm -f conf$$.file |
| 5868 | |
| 5869 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5870 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5872 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5873 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5874 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5875 | else |
| 5876 | case "$XGETTEXT" in |
| 5877 | [\\/]* | ?:[\\/]*) |
| 5878 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5879 | ;; |
| 5880 | *) |
| 5881 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5882 | for ac_dir in $PATH; do |
| 5883 | IFS="$ac_save_IFS" |
| 5884 | test -z "$ac_dir" && ac_dir=. |
| 5885 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5886 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5887 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5888 | (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 |
| 5889 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5890 | break 2 |
| 5891 | fi |
| 5892 | fi |
| 5893 | done |
| 5894 | done |
| 5895 | IFS="$ac_save_IFS" |
| 5896 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5897 | ;; |
| 5898 | esac |
| 5899 | fi |
| 5900 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5901 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5903 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5904 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5906 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5907 | fi |
| 5908 | |
| 5909 | rm -f messages.po |
| 5910 | |
| 5911 | |
| 5912 | # Prepare PATH_SEPARATOR. |
| 5913 | # The user is always right. |
| 5914 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5915 | echo "#! /bin/sh" >conf$$.sh |
| 5916 | echo "exit 0" >>conf$$.sh |
| 5917 | chmod +x conf$$.sh |
| 5918 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5919 | PATH_SEPARATOR=';' |
| 5920 | else |
| 5921 | PATH_SEPARATOR=: |
| 5922 | fi |
| 5923 | rm -f conf$$.sh |
| 5924 | fi |
| 5925 | |
| 5926 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5927 | # as systems may use methods other than mode bits to determine executability. |
| 5928 | cat >conf$$.file <<_ASEOF |
| 5929 | #! /bin/sh |
| 5930 | exit 0 |
| 5931 | _ASEOF |
| 5932 | chmod +x conf$$.file |
| 5933 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5934 | ac_executable_p="test -x" |
| 5935 | else |
| 5936 | ac_executable_p="test -f" |
| 5937 | fi |
| 5938 | rm -f conf$$.file |
| 5939 | |
| 5940 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5941 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5943 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5944 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5945 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5946 | else |
| 5947 | case "$MSGMERGE" in |
| 5948 | [\\/]* | ?:[\\/]*) |
| 5949 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5950 | ;; |
| 5951 | *) |
| 5952 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5953 | for ac_dir in $PATH; do |
| 5954 | IFS="$ac_save_IFS" |
| 5955 | test -z "$ac_dir" && ac_dir=. |
| 5956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5957 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5958 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5959 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5960 | break 2 |
| 5961 | fi |
| 5962 | fi |
| 5963 | done |
| 5964 | done |
| 5965 | IFS="$ac_save_IFS" |
| 5966 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5967 | ;; |
| 5968 | esac |
| 5969 | fi |
| 5970 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5971 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5973 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5974 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5976 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5977 | fi |
| 5978 | |
| 5979 | |
| 5980 | if test "$GMSGFMT" != ":"; then |
| 5981 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5982 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5983 | : ; |
| 5984 | else |
| 5985 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5987 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5988 | GMSGFMT=":" |
| 5989 | fi |
| 5990 | fi |
| 5991 | |
| 5992 | if test "$XGETTEXT" != ":"; then |
| 5993 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5994 | (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 |
| 5995 | : ; |
| 5996 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5998 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5999 | XGETTEXT=":" |
| 6000 | fi |
| 6001 | rm -f messages.po |
| 6002 | fi |
| 6003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6004 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6005 | |
| 6006 | |
| 6007 | if test -n "$ac_tool_prefix"; then |
| 6008 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6009 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6011 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6012 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6013 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6014 | else |
| 6015 | if test -n "$RANLIB"; then |
| 6016 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6019 | for as_dir in $PATH |
| 6020 | do |
| 6021 | IFS=$as_save_IFS |
| 6022 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6023 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6024 | 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] | 6025 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | break 2 |
| 6028 | fi |
| 6029 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6030 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6031 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6032 | |
| 6033 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6034 | fi |
| 6035 | RANLIB=$ac_cv_prog_RANLIB |
| 6036 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6038 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6039 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6041 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6043 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6044 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6045 | fi |
| 6046 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6047 | ac_ct_RANLIB=$RANLIB |
| 6048 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6049 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6051 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6052 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6053 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | else |
| 6055 | if test -n "$ac_ct_RANLIB"; then |
| 6056 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6057 | else |
| 6058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6059 | for as_dir in $PATH |
| 6060 | do |
| 6061 | IFS=$as_save_IFS |
| 6062 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6063 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6064 | 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] | 6065 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6067 | break 2 |
| 6068 | fi |
| 6069 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6070 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6071 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6072 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6073 | fi |
| 6074 | fi |
| 6075 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6076 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6078 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6079 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6081 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6082 | fi |
| 6083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6084 | if test "x$ac_ct_RANLIB" = x; then |
| 6085 | RANLIB=":" |
| 6086 | else |
| 6087 | case $cross_compiling:$ac_tool_warned in |
| 6088 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6091 | ac_tool_warned=yes ;; |
| 6092 | esac |
| 6093 | RANLIB=$ac_ct_RANLIB |
| 6094 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6095 | else |
| 6096 | RANLIB="$ac_cv_prog_RANLIB" |
| 6097 | fi |
| 6098 | |
| 6099 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6101 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6102 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6103 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6104 | else |
| 6105 | ac_check_lib_save_LIBS=$LIBS |
| 6106 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6108 | /* end confdefs.h. */ |
| 6109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6110 | /* Override any GCC internal prototype to avoid an error. |
| 6111 | Use char because int might match the return type of a GCC |
| 6112 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6113 | #ifdef __cplusplus |
| 6114 | extern "C" |
| 6115 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6116 | char strerror (); |
| 6117 | int |
| 6118 | main () |
| 6119 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6120 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | ; |
| 6122 | return 0; |
| 6123 | } |
| 6124 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6125 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6126 | ac_cv_lib_cposix_strerror=yes |
| 6127 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6128 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6129 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6130 | rm -f core conftest.err conftest.$ac_objext \ |
| 6131 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6132 | LIBS=$ac_check_lib_save_LIBS |
| 6133 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6135 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6136 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6137 | LIBS="$LIBS -lcposix" |
| 6138 | fi |
| 6139 | |
| 6140 | |
| 6141 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6143 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6144 | if test "${ac_cv_c_const+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6145 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6146 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6148 | /* end confdefs.h. */ |
| 6149 | |
| 6150 | int |
| 6151 | main () |
| 6152 | { |
| 6153 | /* FIXME: Include the comments suggested by Paul. */ |
| 6154 | #ifndef __cplusplus |
| 6155 | /* Ultrix mips cc rejects this. */ |
| 6156 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6157 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6158 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6159 | char const *const *pcpcc; |
| 6160 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6161 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6162 | struct point {int x, y;}; |
| 6163 | static struct point const zero = {0,0}; |
| 6164 | /* AIX XL C 1.02.0.0 rejects this. |
| 6165 | It does not let you subtract one const X* pointer from another in |
| 6166 | an arm of an if-expression whose if-part is not a constant |
| 6167 | expression */ |
| 6168 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6169 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6171 | ++pcpcc; |
| 6172 | ppc = (char**) pcpcc; |
| 6173 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6174 | { /* SCO 3.2v4 cc rejects this. */ |
| 6175 | char *t; |
| 6176 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6177 | |
| 6178 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6179 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6180 | } |
| 6181 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6182 | int x[] = {25, 17}; |
| 6183 | const int *foo = &x[0]; |
| 6184 | ++foo; |
| 6185 | } |
| 6186 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6187 | typedef const int *iptr; |
| 6188 | iptr p = 0; |
| 6189 | ++p; |
| 6190 | } |
| 6191 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6192 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6193 | struct s { int j; const int *ap[3]; }; |
| 6194 | struct s *b; b->j = 5; |
| 6195 | } |
| 6196 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6197 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6198 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6199 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6200 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6201 | #endif |
| 6202 | |
| 6203 | ; |
| 6204 | return 0; |
| 6205 | } |
| 6206 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6207 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6208 | ac_cv_c_const=yes |
| 6209 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6210 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6213 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6215 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | if test $ac_cv_c_const = no; then |
| 6217 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6218 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6219 | |
| 6220 | fi |
| 6221 | |
| 6222 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6224 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6225 | if test "${bh_cv_c_signed+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6226 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6227 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6229 | /* end confdefs.h. */ |
| 6230 | |
| 6231 | int |
| 6232 | main () |
| 6233 | { |
| 6234 | signed char x; |
| 6235 | ; |
| 6236 | return 0; |
| 6237 | } |
| 6238 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6239 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6240 | bh_cv_c_signed=yes |
| 6241 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6242 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6243 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6247 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6248 | if test $bh_cv_c_signed = no; then |
| 6249 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6250 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6251 | |
| 6252 | fi |
| 6253 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6255 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6256 | if test "${ac_cv_c_inline+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6257 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | else |
| 6259 | ac_cv_c_inline=no |
| 6260 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6262 | /* end confdefs.h. */ |
| 6263 | #ifndef __cplusplus |
| 6264 | typedef int foo_t; |
| 6265 | static $ac_kw foo_t static_foo () {return 0; } |
| 6266 | $ac_kw foo_t foo () {return 0; } |
| 6267 | #endif |
| 6268 | |
| 6269 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6270 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6271 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6272 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6274 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | done |
| 6276 | |
| 6277 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6279 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6281 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6282 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | *) |
| 6284 | case $ac_cv_c_inline in |
| 6285 | no) ac_val=;; |
| 6286 | *) ac_val=$ac_cv_c_inline;; |
| 6287 | esac |
| 6288 | cat >>confdefs.h <<_ACEOF |
| 6289 | #ifndef __cplusplus |
| 6290 | #define inline $ac_val |
| 6291 | #endif |
| 6292 | _ACEOF |
| 6293 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6294 | esac |
| 6295 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6296 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6297 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6298 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6299 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6300 | |
| 6301 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6302 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6303 | _ACEOF |
| 6304 | |
| 6305 | fi |
| 6306 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6307 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6308 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6309 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6310 | else |
| 6311 | |
| 6312 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6313 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6314 | _ACEOF |
| 6315 | |
| 6316 | fi |
| 6317 | |
| 6318 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6320 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6321 | if test "${ac_cv_type_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6322 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6323 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6325 | /* end confdefs.h. */ |
| 6326 | long long ll = 1LL; int i = 63; |
| 6327 | int |
| 6328 | main () |
| 6329 | { |
| 6330 | long long llmax = (long long) -1; |
| 6331 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6332 | ; |
| 6333 | return 0; |
| 6334 | } |
| 6335 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6336 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6337 | ac_cv_type_long_long=yes |
| 6338 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6339 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6340 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6341 | rm -f core conftest.err conftest.$ac_objext \ |
| 6342 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6343 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6345 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6346 | if test $ac_cv_type_long_long = yes; then |
| 6347 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6348 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6349 | |
| 6350 | fi |
| 6351 | |
| 6352 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6354 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6355 | if test "${gt_cv_c_long_double+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6356 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6357 | else |
| 6358 | if test "$GCC" = yes; then |
| 6359 | gt_cv_c_long_double=yes |
| 6360 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6362 | /* end confdefs.h. */ |
| 6363 | |
| 6364 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6365 | long double foo = 0.0; |
| 6366 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6367 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6368 | |
| 6369 | int |
| 6370 | main () |
| 6371 | { |
| 6372 | |
| 6373 | ; |
| 6374 | return 0; |
| 6375 | } |
| 6376 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6377 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6378 | gt_cv_c_long_double=yes |
| 6379 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6380 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6383 | fi |
| 6384 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6386 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6387 | if test $gt_cv_c_long_double = yes; then |
| 6388 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6389 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6390 | |
| 6391 | fi |
| 6392 | |
| 6393 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6395 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6396 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6397 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6398 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | /* end confdefs.h. */ |
| 6401 | #include <stddef.h> |
| 6402 | wchar_t foo = (wchar_t)'\0'; |
| 6403 | int |
| 6404 | main () |
| 6405 | { |
| 6406 | |
| 6407 | ; |
| 6408 | return 0; |
| 6409 | } |
| 6410 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6411 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6412 | gt_cv_c_wchar_t=yes |
| 6413 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6414 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6415 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6417 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6419 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6420 | if test $gt_cv_c_wchar_t = yes; then |
| 6421 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6422 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6423 | |
| 6424 | fi |
| 6425 | |
| 6426 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6428 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6429 | if test "${gt_cv_c_wint_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6430 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6431 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6433 | /* end confdefs.h. */ |
| 6434 | #include <wchar.h> |
| 6435 | wint_t foo = (wchar_t)'\0'; |
| 6436 | int |
| 6437 | main () |
| 6438 | { |
| 6439 | |
| 6440 | ; |
| 6441 | return 0; |
| 6442 | } |
| 6443 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6444 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | gt_cv_c_wint_t=yes |
| 6446 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6447 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6448 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6450 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6452 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | if test $gt_cv_c_wint_t = yes; then |
| 6454 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6455 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6456 | |
| 6457 | fi |
| 6458 | |
| 6459 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6461 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6462 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6464 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6466 | /* end confdefs.h. */ |
| 6467 | #include <sys/types.h> |
| 6468 | #include <inttypes.h> |
| 6469 | int |
| 6470 | main () |
| 6471 | { |
| 6472 | uintmax_t i = (uintmax_t) -1; |
| 6473 | ; |
| 6474 | return 0; |
| 6475 | } |
| 6476 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6477 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6478 | jm_ac_cv_header_inttypes_h=yes |
| 6479 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6480 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6483 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6485 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6487 | |
| 6488 | cat >>confdefs.h <<_ACEOF |
| 6489 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6490 | _ACEOF |
| 6491 | |
| 6492 | fi |
| 6493 | |
| 6494 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6496 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6497 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6498 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6499 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | /* end confdefs.h. */ |
| 6502 | #include <sys/types.h> |
| 6503 | #include <stdint.h> |
| 6504 | int |
| 6505 | main () |
| 6506 | { |
| 6507 | uintmax_t i = (uintmax_t) -1; |
| 6508 | ; |
| 6509 | return 0; |
| 6510 | } |
| 6511 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6512 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6513 | jm_ac_cv_header_stdint_h=yes |
| 6514 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6515 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6516 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6518 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6520 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6521 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6522 | |
| 6523 | cat >>confdefs.h <<_ACEOF |
| 6524 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6525 | _ACEOF |
| 6526 | |
| 6527 | fi |
| 6528 | |
| 6529 | |
| 6530 | |
| 6531 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6533 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6534 | if test "${gt_cv_c_intmax_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6535 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | /* end confdefs.h. */ |
| 6539 | |
| 6540 | #include <stddef.h> |
| 6541 | #include <stdlib.h> |
| 6542 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6543 | #include <stdint.h> |
| 6544 | #endif |
| 6545 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6546 | #include <inttypes.h> |
| 6547 | #endif |
| 6548 | |
| 6549 | int |
| 6550 | main () |
| 6551 | { |
| 6552 | intmax_t x = -1; |
| 6553 | ; |
| 6554 | return 0; |
| 6555 | } |
| 6556 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6557 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6558 | gt_cv_c_intmax_t=yes |
| 6559 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6560 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6563 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6565 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6566 | if test $gt_cv_c_intmax_t = yes; then |
| 6567 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6568 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6569 | |
| 6570 | fi |
| 6571 | |
| 6572 | |
| 6573 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6575 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6576 | if test "${gt_cv_func_printf_posix+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6577 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6578 | else |
| 6579 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6580 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6581 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6583 | /* end confdefs.h. */ |
| 6584 | |
| 6585 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6586 | notposix |
| 6587 | #endif |
| 6588 | |
| 6589 | _ACEOF |
| 6590 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6591 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | gt_cv_func_printf_posix="guessing no" |
| 6593 | else |
| 6594 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6595 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6596 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6597 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6598 | |
| 6599 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | /* end confdefs.h. */ |
| 6602 | |
| 6603 | #include <stdio.h> |
| 6604 | #include <string.h> |
| 6605 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6606 | dollar expansion (possibly an autoconf bug). */ |
| 6607 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6608 | static char buf[100]; |
| 6609 | int main () |
| 6610 | { |
| 6611 | sprintf (buf, format, 33, 55); |
| 6612 | return (strcmp (buf, "55 33") != 0); |
| 6613 | } |
| 6614 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6615 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6616 | gt_cv_func_printf_posix=yes |
| 6617 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6618 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6619 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6621 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6622 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6623 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6624 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6625 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6627 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | case $gt_cv_func_printf_posix in |
| 6629 | *yes) |
| 6630 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6631 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6632 | |
| 6633 | ;; |
| 6634 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6635 | |
| 6636 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6637 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6639 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6641 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6642 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6644 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6645 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | int |
| 6647 | main () |
| 6648 | { |
| 6649 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6650 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | ; |
| 6652 | return 0; |
| 6653 | } |
| 6654 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6655 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6656 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6657 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6658 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6659 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6660 | rm -f core conftest.err conftest.$ac_objext \ |
| 6661 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6662 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6664 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6665 | if test $ac_cv_working_alloca_h = yes; then |
| 6666 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6667 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6668 | |
| 6669 | fi |
| 6670 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6672 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6673 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6674 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6675 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6678 | #ifdef __GNUC__ |
| 6679 | # define alloca __builtin_alloca |
| 6680 | #else |
| 6681 | # ifdef _MSC_VER |
| 6682 | # include <malloc.h> |
| 6683 | # define alloca _alloca |
| 6684 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6685 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6686 | # include <alloca.h> |
| 6687 | # else |
| 6688 | # ifdef _AIX |
| 6689 | #pragma alloca |
| 6690 | # else |
| 6691 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6692 | char *alloca (); |
| 6693 | # endif |
| 6694 | # endif |
| 6695 | # endif |
| 6696 | # endif |
| 6697 | #endif |
| 6698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | int |
| 6700 | main () |
| 6701 | { |
| 6702 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6703 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6704 | ; |
| 6705 | return 0; |
| 6706 | } |
| 6707 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6708 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6709 | ac_cv_func_alloca_works=yes |
| 6710 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6711 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6712 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6713 | rm -f core conftest.err conftest.$ac_objext \ |
| 6714 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6715 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6717 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6719 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6720 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6721 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6722 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6723 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6724 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6725 | # that cause trouble. Some versions do not even contain alloca or |
| 6726 | # contain a buggy version. If you still want to use their alloca, |
| 6727 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6728 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6729 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6730 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6731 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6732 | |
| 6733 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6735 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6736 | if test "${ac_cv_os_cray+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6737 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6741 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6742 | webecray |
| 6743 | #else |
| 6744 | wenotbecray |
| 6745 | #endif |
| 6746 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6747 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6749 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6750 | ac_cv_os_cray=yes |
| 6751 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6752 | ac_cv_os_cray=no |
| 6753 | fi |
| 6754 | rm -f conftest* |
| 6755 | |
| 6756 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6758 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6759 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6760 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6761 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6762 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6763 | eval as_val=\$$as_ac_var |
| 6764 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6765 | |
| 6766 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6767 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6769 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6771 | fi |
| 6772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6774 | fi |
| 6775 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6777 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6778 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6780 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6781 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6782 | ac_cv_c_stack_direction=0 |
| 6783 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6785 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6786 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6788 | find_stack_direction () |
| 6789 | { |
| 6790 | static char *addr = 0; |
| 6791 | auto char dummy; |
| 6792 | if (addr == 0) |
| 6793 | { |
| 6794 | addr = &dummy; |
| 6795 | return find_stack_direction (); |
| 6796 | } |
| 6797 | else |
| 6798 | return (&dummy > addr) ? 1 : -1; |
| 6799 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | |
| 6801 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6802 | main () |
| 6803 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6804 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6805 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6807 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6808 | ac_cv_c_stack_direction=1 |
| 6809 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6810 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6811 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6813 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6818 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6819 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6820 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | _ACEOF |
| 6822 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6823 | |
| 6824 | fi |
| 6825 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6826 | |
| 6827 | |
| 6828 | |
| 6829 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6830 | do : |
| 6831 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6832 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6833 | " |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6834 | eval as_val=\$$as_ac_Header |
| 6835 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6836 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6837 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6838 | _ACEOF |
| 6839 | |
| 6840 | fi |
| 6841 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6842 | done |
| 6843 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6844 | |
| 6845 | |
| 6846 | |
| 6847 | |
| 6848 | |
| 6849 | |
| 6850 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6851 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6852 | do : |
| 6853 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 6854 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6855 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6856 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6857 | _ACEOF |
| 6858 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6859 | fi |
| 6860 | done |
| 6861 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6863 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6864 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6865 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6866 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6867 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6868 | ac_cv_func_mmap_fixed_mapped=no |
| 6869 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6871 | /* end confdefs.h. */ |
| 6872 | $ac_includes_default |
| 6873 | /* malloc might have been renamed as rpl_malloc. */ |
| 6874 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6875 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6876 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6877 | Here is a matrix of mmap possibilities: |
| 6878 | mmap private not fixed |
| 6879 | mmap private fixed at somewhere currently unmapped |
| 6880 | mmap private fixed at somewhere already mapped |
| 6881 | mmap shared not fixed |
| 6882 | mmap shared fixed at somewhere currently unmapped |
| 6883 | mmap shared fixed at somewhere already mapped |
| 6884 | For private mappings, we should verify that changes cannot be read() |
| 6885 | back from the file, nor mmap's back from the file at a different |
| 6886 | address. (There have been systems where private was not correctly |
| 6887 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | 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] | 6889 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6890 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6891 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6892 | |
| 6893 | Grep wants private fixed already mapped. |
| 6894 | The main things grep needs to know about mmap are: |
| 6895 | * does it exist and is it safe to write into the mmap'd area |
| 6896 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6898 | #include <fcntl.h> |
| 6899 | #include <sys/mman.h> |
| 6900 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6901 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6902 | char *malloc (); |
| 6903 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6904 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6905 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6906 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6907 | # ifdef _SC_PAGESIZE |
| 6908 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6909 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6910 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6911 | # include <sys/param.h> |
| 6912 | # ifdef EXEC_PAGESIZE |
| 6913 | # define getpagesize() EXEC_PAGESIZE |
| 6914 | # else /* no EXEC_PAGESIZE */ |
| 6915 | # ifdef NBPG |
| 6916 | # define getpagesize() NBPG * CLSIZE |
| 6917 | # ifndef CLSIZE |
| 6918 | # define CLSIZE 1 |
| 6919 | # endif /* no CLSIZE */ |
| 6920 | # else /* no NBPG */ |
| 6921 | # ifdef NBPC |
| 6922 | # define getpagesize() NBPC |
| 6923 | # else /* no NBPC */ |
| 6924 | # ifdef PAGESIZE |
| 6925 | # define getpagesize() PAGESIZE |
| 6926 | # endif /* PAGESIZE */ |
| 6927 | # endif /* no NBPC */ |
| 6928 | # endif /* no NBPG */ |
| 6929 | # endif /* no EXEC_PAGESIZE */ |
| 6930 | # else /* no HAVE_SYS_PARAM_H */ |
| 6931 | # define getpagesize() 8192 /* punt totally */ |
| 6932 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6933 | # endif /* no _SC_PAGESIZE */ |
| 6934 | |
| 6935 | #endif /* no HAVE_GETPAGESIZE */ |
| 6936 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6937 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6938 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6939 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6940 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6941 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6942 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6943 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6944 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6945 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6946 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | /* First, make a file with some known garbage in it. */ |
| 6948 | data = (char *) malloc (pagesize); |
| 6949 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6950 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6951 | for (i = 0; i < pagesize; ++i) |
| 6952 | *(data + i) = rand (); |
| 6953 | umask (0); |
| 6954 | fd = creat ("conftest.mmap", 0600); |
| 6955 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6956 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6957 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6958 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6959 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6961 | /* Next, check that the tail of a page is zero-filled. File must have |
| 6962 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 6963 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 6964 | if (fd2 < 0) |
| 6965 | return 4; |
| 6966 | cdata2 = ""; |
| 6967 | if (write (fd2, cdata2, 1) != 1) |
| 6968 | return 5; |
| 6969 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 6970 | if (data2 == MAP_FAILED) |
| 6971 | return 6; |
| 6972 | for (i = 0; i < pagesize; ++i) |
| 6973 | if (*(data2 + i)) |
| 6974 | return 7; |
| 6975 | close (fd2); |
| 6976 | if (munmap (data2, pagesize)) |
| 6977 | return 8; |
| 6978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | /* Next, try to mmap the file at a fixed address which already has |
| 6980 | something else allocated at it. If we can, also make sure that |
| 6981 | we see the same garbage. */ |
| 6982 | fd = open ("conftest.mmap", O_RDWR); |
| 6983 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6984 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6985 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6986 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6987 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6988 | for (i = 0; i < pagesize; ++i) |
| 6989 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6990 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6992 | /* Finally, make sure that changes to the mapped area do not |
| 6993 | percolate back to the file as seen by read(). (This is a bug on |
| 6994 | some variants of i386 svr4.0.) */ |
| 6995 | for (i = 0; i < pagesize; ++i) |
| 6996 | *(data2 + i) = *(data2 + i) + 1; |
| 6997 | data3 = (char *) malloc (pagesize); |
| 6998 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 6999 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7000 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 7001 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | for (i = 0; i < pagesize; ++i) |
| 7003 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 7004 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7006 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7007 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7008 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7009 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7010 | ac_cv_func_mmap_fixed_mapped=yes |
| 7011 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7012 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7013 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7014 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7015 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7018 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7020 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7021 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7023 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7024 | |
| 7025 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 7026 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7027 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7028 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7030 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7031 | if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7032 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7033 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7035 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7036 | |
| 7037 | #include <features.h> |
| 7038 | #ifdef __GNU_LIBRARY__ |
| 7039 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7040 | Lucky GNU user |
| 7041 | #endif |
| 7042 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7043 | |
| 7044 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7046 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7047 | ac_cv_gnu_library_2_1=yes |
| 7048 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7049 | ac_cv_gnu_library_2_1=no |
| 7050 | fi |
| 7051 | rm -f conftest* |
| 7052 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7053 | |
| 7054 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7055 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7057 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7058 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7059 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7060 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7061 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7062 | |
| 7063 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7065 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7066 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7067 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7068 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7069 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7070 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7071 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7072 | # Guess based on the CPU. |
| 7073 | case "$host_cpu" in |
| 7074 | alpha* | i3456786 | m68k | s390*) |
| 7075 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7076 | *) |
| 7077 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7078 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7079 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7080 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7082 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7083 | |
| 7084 | #include <stdlib.h> |
| 7085 | #include <signal.h> |
| 7086 | |
| 7087 | static void |
| 7088 | #ifdef __cplusplus |
| 7089 | sigfpe_handler (int sig) |
| 7090 | #else |
| 7091 | sigfpe_handler (sig) int sig; |
| 7092 | #endif |
| 7093 | { |
| 7094 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7095 | exit (sig != SIGFPE); |
| 7096 | } |
| 7097 | |
| 7098 | int x = 1; |
| 7099 | int y = 0; |
| 7100 | int z; |
| 7101 | int nan; |
| 7102 | |
| 7103 | int main () |
| 7104 | { |
| 7105 | signal (SIGFPE, sigfpe_handler); |
| 7106 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7107 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7108 | signal (SIGTRAP, sigfpe_handler); |
| 7109 | #endif |
| 7110 | /* Linux/SPARC yields signal SIGILL. */ |
| 7111 | #if defined (__sparc__) && defined (__linux__) |
| 7112 | signal (SIGILL, sigfpe_handler); |
| 7113 | #endif |
| 7114 | |
| 7115 | z = x / y; |
| 7116 | nan = y / y; |
| 7117 | exit (1); |
| 7118 | } |
| 7119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7120 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7121 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7122 | gt_cv_int_divbyzero_sigfpe=yes |
| 7123 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7124 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7125 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7126 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7127 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7128 | fi |
| 7129 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7130 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7131 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7133 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7134 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7135 | *yes) value=1;; |
| 7136 | *) value=0;; |
| 7137 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | |
| 7139 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7140 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7141 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7142 | |
| 7143 | |
| 7144 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7146 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7147 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7148 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7149 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7151 | /* end confdefs.h. */ |
| 7152 | unsigned long long ull = 1ULL; int i = 63; |
| 7153 | int |
| 7154 | main () |
| 7155 | { |
| 7156 | unsigned long long ullmax = (unsigned long long) -1; |
| 7157 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7158 | ; |
| 7159 | return 0; |
| 7160 | } |
| 7161 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7162 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | ac_cv_type_unsigned_long_long=yes |
| 7164 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7165 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7166 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7167 | rm -f core conftest.err conftest.$ac_objext \ |
| 7168 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7169 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7171 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7172 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7173 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7174 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | |
| 7176 | fi |
| 7177 | |
| 7178 | |
| 7179 | |
| 7180 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7181 | 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] | 7182 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7183 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7184 | && ac_type='unsigned long long' \ |
| 7185 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7186 | |
| 7187 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7188 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7189 | _ACEOF |
| 7190 | |
| 7191 | else |
| 7192 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7193 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7194 | |
| 7195 | fi |
| 7196 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7197 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7199 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7200 | if test "${gt_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7201 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7202 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7205 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7206 | #include <sys/types.h> |
| 7207 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7208 | int |
| 7209 | main () |
| 7210 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | ; |
| 7213 | return 0; |
| 7214 | } |
| 7215 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7216 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7217 | gt_cv_header_inttypes_h=yes |
| 7218 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7219 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7222 | |
| 7223 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7225 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7226 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7227 | |
| 7228 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7229 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7230 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7231 | |
| 7232 | fi |
| 7233 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7235 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7236 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7238 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7239 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7240 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7241 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7242 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7244 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7245 | #include <inttypes.h> |
| 7246 | #ifdef PRId32 |
| 7247 | char *p = PRId32; |
| 7248 | #endif |
| 7249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7250 | int |
| 7251 | main () |
| 7252 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7253 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7254 | ; |
| 7255 | return 0; |
| 7256 | } |
| 7257 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7258 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7259 | gt_cv_inttypes_pri_broken=no |
| 7260 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7261 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7264 | |
| 7265 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7267 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7268 | fi |
| 7269 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7270 | |
| 7271 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7272 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7273 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7274 | |
| 7275 | fi |
| 7276 | |
| 7277 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7278 | for ac_header in stdint.h |
| 7279 | do : |
| 7280 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7281 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7282 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7283 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7284 | _ACEOF |
| 7285 | |
| 7286 | fi |
| 7287 | |
| 7288 | done |
| 7289 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7291 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7292 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7294 | /* end confdefs.h. */ |
| 7295 | |
| 7296 | #include <limits.h> |
| 7297 | #if HAVE_STDINT_H |
| 7298 | #include <stdint.h> |
| 7299 | #endif |
| 7300 | #ifdef SIZE_MAX |
| 7301 | Found it |
| 7302 | #endif |
| 7303 | |
| 7304 | _ACEOF |
| 7305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7306 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7307 | result=yes |
| 7308 | fi |
| 7309 | rm -f conftest* |
| 7310 | |
| 7311 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7312 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7314 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7315 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7316 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7317 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7318 | |
| 7319 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7321 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7322 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7323 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7324 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7325 | |
| 7326 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7329 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7330 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7331 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7333 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7335 | /* end confdefs.h. */ |
| 7336 | #include <stddef.h> |
| 7337 | extern size_t foo; |
| 7338 | extern unsigned long foo; |
| 7339 | |
| 7340 | int |
| 7341 | main () |
| 7342 | { |
| 7343 | |
| 7344 | ; |
| 7345 | return 0; |
| 7346 | } |
| 7347 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7348 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7349 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7352 | fi |
| 7353 | if test -z "$result"; then |
| 7354 | if test "$fits_in_uint" = 1; then |
| 7355 | result="$res_hi$res_lo"U |
| 7356 | else |
| 7357 | result="$res_hi$res_lo"UL |
| 7358 | fi |
| 7359 | else |
| 7360 | result='~(size_t)0' |
| 7361 | fi |
| 7362 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7364 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7365 | if test "$result" != yes; then |
| 7366 | |
| 7367 | cat >>confdefs.h <<_ACEOF |
| 7368 | #define SIZE_MAX $result |
| 7369 | _ACEOF |
| 7370 | |
| 7371 | fi |
| 7372 | |
| 7373 | |
| 7374 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7375 | for ac_header in stdint.h |
| 7376 | do : |
| 7377 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7378 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7379 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7380 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | _ACEOF |
| 7382 | |
| 7383 | fi |
| 7384 | |
| 7385 | done |
| 7386 | |
| 7387 | |
| 7388 | |
| 7389 | if test "X$prefix" = "XNONE"; then |
| 7390 | acl_final_prefix="$ac_default_prefix" |
| 7391 | else |
| 7392 | acl_final_prefix="$prefix" |
| 7393 | fi |
| 7394 | if test "X$exec_prefix" = "XNONE"; then |
| 7395 | acl_final_exec_prefix='${prefix}' |
| 7396 | else |
| 7397 | acl_final_exec_prefix="$exec_prefix" |
| 7398 | fi |
| 7399 | acl_save_prefix="$prefix" |
| 7400 | prefix="$acl_final_prefix" |
| 7401 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7402 | prefix="$acl_save_prefix" |
| 7403 | |
| 7404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7405 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7406 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7407 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7408 | else |
| 7409 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7410 | fi |
| 7411 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7412 | # Prepare PATH_SEPARATOR. |
| 7413 | # The user is always right. |
| 7414 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7415 | echo "#! /bin/sh" >conf$$.sh |
| 7416 | echo "exit 0" >>conf$$.sh |
| 7417 | chmod +x conf$$.sh |
| 7418 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7419 | PATH_SEPARATOR=';' |
| 7420 | else |
| 7421 | PATH_SEPARATOR=: |
| 7422 | fi |
| 7423 | rm -f conf$$.sh |
| 7424 | fi |
| 7425 | ac_prog=ld |
| 7426 | if test "$GCC" = yes; then |
| 7427 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7429 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7430 | case $host in |
| 7431 | *-*-mingw*) |
| 7432 | # gcc leaves a trailing carriage return which upsets mingw |
| 7433 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7434 | *) |
| 7435 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7436 | esac |
| 7437 | case $ac_prog in |
| 7438 | # Accept absolute paths. |
| 7439 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7440 | re_direlt='/[^/][^/]*/\.\./' |
| 7441 | # Canonicalize the path of ld |
| 7442 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7443 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7444 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7445 | done |
| 7446 | test -z "$LD" && LD="$ac_prog" |
| 7447 | ;; |
| 7448 | "") |
| 7449 | # If it fails, then pretend we aren't using GCC. |
| 7450 | ac_prog=ld |
| 7451 | ;; |
| 7452 | *) |
| 7453 | # If it is relative, then search for the first ld in PATH. |
| 7454 | with_gnu_ld=unknown |
| 7455 | ;; |
| 7456 | esac |
| 7457 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7459 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7460 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7462 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7463 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7464 | if test "${acl_cv_path_LD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7465 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7466 | else |
| 7467 | if test -z "$LD"; then |
| 7468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7469 | for ac_dir in $PATH; do |
| 7470 | test -z "$ac_dir" && ac_dir=. |
| 7471 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7472 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7473 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7474 | # but apparently some GNU ld's only accept -v. |
| 7475 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7476 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7477 | *GNU* | *'with BFD'*) |
| 7478 | test "$with_gnu_ld" != no && break ;; |
| 7479 | *) |
| 7480 | test "$with_gnu_ld" != yes && break ;; |
| 7481 | esac |
| 7482 | fi |
| 7483 | done |
| 7484 | IFS="$ac_save_ifs" |
| 7485 | else |
| 7486 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7487 | fi |
| 7488 | fi |
| 7489 | |
| 7490 | LD="$acl_cv_path_LD" |
| 7491 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7493 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7494 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7496 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7497 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7498 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7500 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7501 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7502 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | else |
| 7504 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7505 | case `$LD -v 2>&1 </dev/null` in |
| 7506 | *GNU* | *'with BFD'*) |
| 7507 | acl_cv_prog_gnu_ld=yes ;; |
| 7508 | *) |
| 7509 | acl_cv_prog_gnu_ld=no ;; |
| 7510 | esac |
| 7511 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7513 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7514 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7515 | |
| 7516 | |
| 7517 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7519 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7520 | if test "${acl_cv_rpath+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7521 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | else |
| 7523 | |
| 7524 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7525 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7526 | . ./conftest.sh |
| 7527 | rm -f ./conftest.sh |
| 7528 | acl_cv_rpath=done |
| 7529 | |
| 7530 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7532 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7533 | wl="$acl_cv_wl" |
| 7534 | libext="$acl_cv_libext" |
| 7535 | shlibext="$acl_cv_shlibext" |
| 7536 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7537 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7538 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7539 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7540 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7541 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7542 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7543 | else |
| 7544 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7545 | fi |
| 7546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7547 | |
| 7548 | |
| 7549 | |
| 7550 | |
| 7551 | |
| 7552 | |
| 7553 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7554 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7556 | acl_save_prefix="$prefix" |
| 7557 | prefix="$acl_final_prefix" |
| 7558 | acl_save_exec_prefix="$exec_prefix" |
| 7559 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7560 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7561 | eval additional_includedir=\"$includedir\" |
| 7562 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7563 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7564 | exec_prefix="$acl_save_exec_prefix" |
| 7565 | prefix="$acl_save_prefix" |
| 7566 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7567 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7568 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7569 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7570 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7571 | if test "X$withval" = "Xno"; then |
| 7572 | use_additional=no |
| 7573 | else |
| 7574 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7575 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7576 | acl_save_prefix="$prefix" |
| 7577 | prefix="$acl_final_prefix" |
| 7578 | acl_save_exec_prefix="$exec_prefix" |
| 7579 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7580 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7581 | eval additional_includedir=\"$includedir\" |
| 7582 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7583 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7584 | exec_prefix="$acl_save_exec_prefix" |
| 7585 | prefix="$acl_save_prefix" |
| 7586 | |
| 7587 | else |
| 7588 | additional_includedir="$withval/include" |
| 7589 | additional_libdir="$withval/lib" |
| 7590 | fi |
| 7591 | fi |
| 7592 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7593 | fi |
| 7594 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7595 | LIBICONV= |
| 7596 | LTLIBICONV= |
| 7597 | INCICONV= |
| 7598 | rpathdirs= |
| 7599 | ltrpathdirs= |
| 7600 | names_already_handled= |
| 7601 | names_next_round='iconv ' |
| 7602 | while test -n "$names_next_round"; do |
| 7603 | names_this_round="$names_next_round" |
| 7604 | names_next_round= |
| 7605 | for name in $names_this_round; do |
| 7606 | already_handled= |
| 7607 | for n in $names_already_handled; do |
| 7608 | if test "$n" = "$name"; then |
| 7609 | already_handled=yes |
| 7610 | break |
| 7611 | fi |
| 7612 | done |
| 7613 | if test -z "$already_handled"; then |
| 7614 | names_already_handled="$names_already_handled $name" |
| 7615 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7616 | eval value=\"\$HAVE_LIB$uppername\" |
| 7617 | if test -n "$value"; then |
| 7618 | if test "$value" = yes; then |
| 7619 | eval value=\"\$LIB$uppername\" |
| 7620 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7621 | eval value=\"\$LTLIB$uppername\" |
| 7622 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7623 | else |
| 7624 | : |
| 7625 | fi |
| 7626 | else |
| 7627 | found_dir= |
| 7628 | found_la= |
| 7629 | found_so= |
| 7630 | found_a= |
| 7631 | if test $use_additional = yes; then |
| 7632 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7633 | found_dir="$additional_libdir" |
| 7634 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7635 | if test -f "$additional_libdir/lib$name.la"; then |
| 7636 | found_la="$additional_libdir/lib$name.la" |
| 7637 | fi |
| 7638 | else |
| 7639 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7640 | found_dir="$additional_libdir" |
| 7641 | found_a="$additional_libdir/lib$name.$libext" |
| 7642 | if test -f "$additional_libdir/lib$name.la"; then |
| 7643 | found_la="$additional_libdir/lib$name.la" |
| 7644 | fi |
| 7645 | fi |
| 7646 | fi |
| 7647 | fi |
| 7648 | if test "X$found_dir" = "X"; then |
| 7649 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7650 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7651 | acl_save_prefix="$prefix" |
| 7652 | prefix="$acl_final_prefix" |
| 7653 | acl_save_exec_prefix="$exec_prefix" |
| 7654 | exec_prefix="$acl_final_exec_prefix" |
| 7655 | eval x=\"$x\" |
| 7656 | exec_prefix="$acl_save_exec_prefix" |
| 7657 | prefix="$acl_save_prefix" |
| 7658 | |
| 7659 | case "$x" in |
| 7660 | -L*) |
| 7661 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7662 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7663 | found_dir="$dir" |
| 7664 | found_so="$dir/lib$name.$shlibext" |
| 7665 | if test -f "$dir/lib$name.la"; then |
| 7666 | found_la="$dir/lib$name.la" |
| 7667 | fi |
| 7668 | else |
| 7669 | if test -f "$dir/lib$name.$libext"; then |
| 7670 | found_dir="$dir" |
| 7671 | found_a="$dir/lib$name.$libext" |
| 7672 | if test -f "$dir/lib$name.la"; then |
| 7673 | found_la="$dir/lib$name.la" |
| 7674 | fi |
| 7675 | fi |
| 7676 | fi |
| 7677 | ;; |
| 7678 | esac |
| 7679 | if test "X$found_dir" != "X"; then |
| 7680 | break |
| 7681 | fi |
| 7682 | done |
| 7683 | fi |
| 7684 | if test "X$found_dir" != "X"; then |
| 7685 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7686 | if test "X$found_so" != "X"; then |
| 7687 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7688 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7689 | else |
| 7690 | haveit= |
| 7691 | for x in $ltrpathdirs; do |
| 7692 | if test "X$x" = "X$found_dir"; then |
| 7693 | haveit=yes |
| 7694 | break |
| 7695 | fi |
| 7696 | done |
| 7697 | if test -z "$haveit"; then |
| 7698 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7699 | fi |
| 7700 | if test "$hardcode_direct" = yes; then |
| 7701 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7702 | else |
| 7703 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7704 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7705 | haveit= |
| 7706 | for x in $rpathdirs; do |
| 7707 | if test "X$x" = "X$found_dir"; then |
| 7708 | haveit=yes |
| 7709 | break |
| 7710 | fi |
| 7711 | done |
| 7712 | if test -z "$haveit"; then |
| 7713 | rpathdirs="$rpathdirs $found_dir" |
| 7714 | fi |
| 7715 | else |
| 7716 | haveit= |
| 7717 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7719 | acl_save_prefix="$prefix" |
| 7720 | prefix="$acl_final_prefix" |
| 7721 | acl_save_exec_prefix="$exec_prefix" |
| 7722 | exec_prefix="$acl_final_exec_prefix" |
| 7723 | eval x=\"$x\" |
| 7724 | exec_prefix="$acl_save_exec_prefix" |
| 7725 | prefix="$acl_save_prefix" |
| 7726 | |
| 7727 | if test "X$x" = "X-L$found_dir"; then |
| 7728 | haveit=yes |
| 7729 | break |
| 7730 | fi |
| 7731 | done |
| 7732 | if test -z "$haveit"; then |
| 7733 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7734 | fi |
| 7735 | if test "$hardcode_minus_L" != no; then |
| 7736 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7737 | else |
| 7738 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7739 | fi |
| 7740 | fi |
| 7741 | fi |
| 7742 | fi |
| 7743 | else |
| 7744 | if test "X$found_a" != "X"; then |
| 7745 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7746 | else |
| 7747 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7748 | fi |
| 7749 | fi |
| 7750 | additional_includedir= |
| 7751 | case "$found_dir" in |
| 7752 | */lib | */lib/) |
| 7753 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7754 | additional_includedir="$basedir/include" |
| 7755 | ;; |
| 7756 | esac |
| 7757 | if test "X$additional_includedir" != "X"; then |
| 7758 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7759 | haveit= |
| 7760 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7761 | if test -n "$GCC"; then |
| 7762 | case $host_os in |
| 7763 | linux*) haveit=yes;; |
| 7764 | esac |
| 7765 | fi |
| 7766 | fi |
| 7767 | if test -z "$haveit"; then |
| 7768 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7769 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7770 | acl_save_prefix="$prefix" |
| 7771 | prefix="$acl_final_prefix" |
| 7772 | acl_save_exec_prefix="$exec_prefix" |
| 7773 | exec_prefix="$acl_final_exec_prefix" |
| 7774 | eval x=\"$x\" |
| 7775 | exec_prefix="$acl_save_exec_prefix" |
| 7776 | prefix="$acl_save_prefix" |
| 7777 | |
| 7778 | if test "X$x" = "X-I$additional_includedir"; then |
| 7779 | haveit=yes |
| 7780 | break |
| 7781 | fi |
| 7782 | done |
| 7783 | if test -z "$haveit"; then |
| 7784 | if test -d "$additional_includedir"; then |
| 7785 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 7786 | fi |
| 7787 | fi |
| 7788 | fi |
| 7789 | fi |
| 7790 | fi |
| 7791 | if test -n "$found_la"; then |
| 7792 | save_libdir="$libdir" |
| 7793 | case "$found_la" in |
| 7794 | */* | *\\*) . "$found_la" ;; |
| 7795 | *) . "./$found_la" ;; |
| 7796 | esac |
| 7797 | libdir="$save_libdir" |
| 7798 | for dep in $dependency_libs; do |
| 7799 | case "$dep" in |
| 7800 | -L*) |
| 7801 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 7802 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 7803 | haveit= |
| 7804 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 7805 | if test -n "$GCC"; then |
| 7806 | case $host_os in |
| 7807 | linux*) haveit=yes;; |
| 7808 | esac |
| 7809 | fi |
| 7810 | fi |
| 7811 | if test -z "$haveit"; then |
| 7812 | haveit= |
| 7813 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7814 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7815 | acl_save_prefix="$prefix" |
| 7816 | prefix="$acl_final_prefix" |
| 7817 | acl_save_exec_prefix="$exec_prefix" |
| 7818 | exec_prefix="$acl_final_exec_prefix" |
| 7819 | eval x=\"$x\" |
| 7820 | exec_prefix="$acl_save_exec_prefix" |
| 7821 | prefix="$acl_save_prefix" |
| 7822 | |
| 7823 | if test "X$x" = "X-L$additional_libdir"; then |
| 7824 | haveit=yes |
| 7825 | break |
| 7826 | fi |
| 7827 | done |
| 7828 | if test -z "$haveit"; then |
| 7829 | if test -d "$additional_libdir"; then |
| 7830 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 7831 | fi |
| 7832 | fi |
| 7833 | haveit= |
| 7834 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7836 | acl_save_prefix="$prefix" |
| 7837 | prefix="$acl_final_prefix" |
| 7838 | acl_save_exec_prefix="$exec_prefix" |
| 7839 | exec_prefix="$acl_final_exec_prefix" |
| 7840 | eval x=\"$x\" |
| 7841 | exec_prefix="$acl_save_exec_prefix" |
| 7842 | prefix="$acl_save_prefix" |
| 7843 | |
| 7844 | if test "X$x" = "X-L$additional_libdir"; then |
| 7845 | haveit=yes |
| 7846 | break |
| 7847 | fi |
| 7848 | done |
| 7849 | if test -z "$haveit"; then |
| 7850 | if test -d "$additional_libdir"; then |
| 7851 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 7852 | fi |
| 7853 | fi |
| 7854 | fi |
| 7855 | fi |
| 7856 | ;; |
| 7857 | -R*) |
| 7858 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 7859 | if test "$enable_rpath" != no; then |
| 7860 | haveit= |
| 7861 | for x in $rpathdirs; do |
| 7862 | if test "X$x" = "X$dir"; then |
| 7863 | haveit=yes |
| 7864 | break |
| 7865 | fi |
| 7866 | done |
| 7867 | if test -z "$haveit"; then |
| 7868 | rpathdirs="$rpathdirs $dir" |
| 7869 | fi |
| 7870 | haveit= |
| 7871 | for x in $ltrpathdirs; do |
| 7872 | if test "X$x" = "X$dir"; then |
| 7873 | haveit=yes |
| 7874 | break |
| 7875 | fi |
| 7876 | done |
| 7877 | if test -z "$haveit"; then |
| 7878 | ltrpathdirs="$ltrpathdirs $dir" |
| 7879 | fi |
| 7880 | fi |
| 7881 | ;; |
| 7882 | -l*) |
| 7883 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 7884 | ;; |
| 7885 | *.la) |
| 7886 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 7887 | ;; |
| 7888 | *) |
| 7889 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 7890 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 7891 | ;; |
| 7892 | esac |
| 7893 | done |
| 7894 | fi |
| 7895 | else |
| 7896 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7897 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 7898 | fi |
| 7899 | fi |
| 7900 | fi |
| 7901 | done |
| 7902 | done |
| 7903 | if test "X$rpathdirs" != "X"; then |
| 7904 | if test -n "$hardcode_libdir_separator"; then |
| 7905 | alldirs= |
| 7906 | for found_dir in $rpathdirs; do |
| 7907 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 7908 | done |
| 7909 | acl_save_libdir="$libdir" |
| 7910 | libdir="$alldirs" |
| 7911 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7912 | libdir="$acl_save_libdir" |
| 7913 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7914 | else |
| 7915 | for found_dir in $rpathdirs; do |
| 7916 | acl_save_libdir="$libdir" |
| 7917 | libdir="$found_dir" |
| 7918 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7919 | libdir="$acl_save_libdir" |
| 7920 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7921 | done |
| 7922 | fi |
| 7923 | fi |
| 7924 | if test "X$ltrpathdirs" != "X"; then |
| 7925 | for found_dir in $ltrpathdirs; do |
| 7926 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 7927 | done |
| 7928 | fi |
| 7929 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7930 | |
| 7931 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7932 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7933 | |
| 7934 | |
| 7935 | |
| 7936 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7937 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 7938 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7940 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7941 | |
| 7942 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7943 | |
| 7944 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7945 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7946 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7947 | 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] | 7948 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7949 | do : |
| 7950 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7951 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7952 | eval as_val=\$$as_ac_Header |
| 7953 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7954 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7955 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7956 | _ACEOF |
| 7957 | |
| 7958 | fi |
| 7959 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7960 | done |
| 7961 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7962 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7963 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 7964 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 7965 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7966 | do : |
| 7967 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7968 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7969 | eval as_val=\$$as_ac_var |
| 7970 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7971 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7972 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7973 | _ACEOF |
| 7974 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7975 | fi |
| 7976 | done |
| 7977 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7979 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7981 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7982 | if test "${ac_cv_have_decl__snprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7983 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7986 | /* end confdefs.h. */ |
| 7987 | #include <stdio.h> |
| 7988 | int |
| 7989 | main () |
| 7990 | { |
| 7991 | |
| 7992 | #ifndef _snprintf |
| 7993 | char *p = (char *) _snprintf; |
| 7994 | #endif |
| 7995 | |
| 7996 | ; |
| 7997 | return 0; |
| 7998 | } |
| 7999 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8000 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8001 | ac_cv_have_decl__snprintf=yes |
| 8002 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8003 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8004 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8006 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8008 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8009 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8010 | gt_value=1 |
| 8011 | else |
| 8012 | gt_value=0 |
| 8013 | fi |
| 8014 | |
| 8015 | cat >>confdefs.h <<_ACEOF |
| 8016 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8017 | _ACEOF |
| 8018 | |
| 8019 | |
| 8020 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8022 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8023 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8024 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8025 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8027 | /* end confdefs.h. */ |
| 8028 | #include <stdio.h> |
| 8029 | int |
| 8030 | main () |
| 8031 | { |
| 8032 | |
| 8033 | #ifndef _snwprintf |
| 8034 | char *p = (char *) _snwprintf; |
| 8035 | #endif |
| 8036 | |
| 8037 | ; |
| 8038 | return 0; |
| 8039 | } |
| 8040 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8041 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8042 | ac_cv_have_decl__snwprintf=yes |
| 8043 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8044 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8045 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8047 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8049 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8050 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8051 | gt_value=1 |
| 8052 | else |
| 8053 | gt_value=0 |
| 8054 | fi |
| 8055 | |
| 8056 | cat >>confdefs.h <<_ACEOF |
| 8057 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8058 | _ACEOF |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8064 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8065 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8066 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8067 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8069 | /* end confdefs.h. */ |
| 8070 | #include <stdio.h> |
| 8071 | int |
| 8072 | main () |
| 8073 | { |
| 8074 | |
| 8075 | #ifndef feof_unlocked |
| 8076 | char *p = (char *) feof_unlocked; |
| 8077 | #endif |
| 8078 | |
| 8079 | ; |
| 8080 | return 0; |
| 8081 | } |
| 8082 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8083 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8084 | ac_cv_have_decl_feof_unlocked=yes |
| 8085 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8086 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8089 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8091 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8092 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8093 | gt_value=1 |
| 8094 | else |
| 8095 | gt_value=0 |
| 8096 | fi |
| 8097 | |
| 8098 | cat >>confdefs.h <<_ACEOF |
| 8099 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8100 | _ACEOF |
| 8101 | |
| 8102 | |
| 8103 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8105 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8106 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8107 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8108 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8110 | /* end confdefs.h. */ |
| 8111 | #include <stdio.h> |
| 8112 | int |
| 8113 | main () |
| 8114 | { |
| 8115 | |
| 8116 | #ifndef fgets_unlocked |
| 8117 | char *p = (char *) fgets_unlocked; |
| 8118 | #endif |
| 8119 | |
| 8120 | ; |
| 8121 | return 0; |
| 8122 | } |
| 8123 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8124 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8125 | ac_cv_have_decl_fgets_unlocked=yes |
| 8126 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8127 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8128 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8130 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8132 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8133 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8134 | gt_value=1 |
| 8135 | else |
| 8136 | gt_value=0 |
| 8137 | fi |
| 8138 | |
| 8139 | cat >>confdefs.h <<_ACEOF |
| 8140 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8141 | _ACEOF |
| 8142 | |
| 8143 | |
| 8144 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8146 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8147 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8148 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8149 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | /* end confdefs.h. */ |
| 8152 | #include <stdio.h> |
| 8153 | int |
| 8154 | main () |
| 8155 | { |
| 8156 | |
| 8157 | #ifndef getc_unlocked |
| 8158 | char *p = (char *) getc_unlocked; |
| 8159 | #endif |
| 8160 | |
| 8161 | ; |
| 8162 | return 0; |
| 8163 | } |
| 8164 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8165 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8166 | ac_cv_have_decl_getc_unlocked=yes |
| 8167 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8168 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8169 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8171 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8173 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8174 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8175 | gt_value=1 |
| 8176 | else |
| 8177 | gt_value=0 |
| 8178 | fi |
| 8179 | |
| 8180 | cat >>confdefs.h <<_ACEOF |
| 8181 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8182 | _ACEOF |
| 8183 | |
| 8184 | |
| 8185 | |
| 8186 | case $gt_cv_func_printf_posix in |
| 8187 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8188 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8189 | esac |
| 8190 | |
| 8191 | if test "$ac_cv_func_asprintf" = yes; then |
| 8192 | HAVE_ASPRINTF=1 |
| 8193 | else |
| 8194 | HAVE_ASPRINTF=0 |
| 8195 | fi |
| 8196 | |
| 8197 | if test "$ac_cv_func_snprintf" = yes; then |
| 8198 | HAVE_SNPRINTF=1 |
| 8199 | else |
| 8200 | HAVE_SNPRINTF=0 |
| 8201 | fi |
| 8202 | |
| 8203 | if test "$ac_cv_func_wprintf" = yes; then |
| 8204 | HAVE_WPRINTF=1 |
| 8205 | else |
| 8206 | HAVE_WPRINTF=0 |
| 8207 | fi |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8214 | |
| 8215 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8216 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8217 | for element in $INCICONV; do |
| 8218 | haveit= |
| 8219 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8220 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8221 | acl_save_prefix="$prefix" |
| 8222 | prefix="$acl_final_prefix" |
| 8223 | acl_save_exec_prefix="$exec_prefix" |
| 8224 | exec_prefix="$acl_final_exec_prefix" |
| 8225 | eval x=\"$x\" |
| 8226 | exec_prefix="$acl_save_exec_prefix" |
| 8227 | prefix="$acl_save_prefix" |
| 8228 | |
| 8229 | if test "X$x" = "X$element"; then |
| 8230 | haveit=yes |
| 8231 | break |
| 8232 | fi |
| 8233 | done |
| 8234 | if test -z "$haveit"; then |
| 8235 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8236 | fi |
| 8237 | done |
| 8238 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8239 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8241 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8242 | if test "${am_cv_func_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8243 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8244 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8245 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8246 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8247 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8249 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8250 | #include <stdlib.h> |
| 8251 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8252 | int |
| 8253 | main () |
| 8254 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8255 | iconv_t cd = iconv_open("",""); |
| 8256 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8257 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8258 | ; |
| 8259 | return 0; |
| 8260 | } |
| 8261 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8262 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8263 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8264 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8265 | rm -f core conftest.err conftest.$ac_objext \ |
| 8266 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8267 | if test "$am_cv_func_iconv" != yes; then |
| 8268 | am_save_LIBS="$LIBS" |
| 8269 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8271 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8272 | #include <stdlib.h> |
| 8273 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8274 | int |
| 8275 | main () |
| 8276 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8277 | iconv_t cd = iconv_open("",""); |
| 8278 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8279 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8280 | ; |
| 8281 | return 0; |
| 8282 | } |
| 8283 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8284 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8285 | am_cv_lib_iconv=yes |
| 8286 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8287 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8288 | rm -f core conftest.err conftest.$ac_objext \ |
| 8289 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8290 | LIBS="$am_save_LIBS" |
| 8291 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8292 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8293 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8295 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8296 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8298 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8299 | |
| 8300 | fi |
| 8301 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8303 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8305 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8306 | else |
| 8307 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8308 | LIBICONV= |
| 8309 | LTLIBICONV= |
| 8310 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8311 | |
| 8312 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8313 | |
| 8314 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8316 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8317 | if test "${am_cv_proto_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8318 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8319 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8320 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8322 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8323 | |
| 8324 | #include <stdlib.h> |
| 8325 | #include <iconv.h> |
| 8326 | extern |
| 8327 | #ifdef __cplusplus |
| 8328 | "C" |
| 8329 | #endif |
| 8330 | #if defined(__STDC__) || defined(__cplusplus) |
| 8331 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8332 | #else |
| 8333 | size_t iconv(); |
| 8334 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | int |
| 8337 | main () |
| 8338 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8339 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8340 | ; |
| 8341 | return 0; |
| 8342 | } |
| 8343 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8344 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8345 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8346 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8347 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8350 | 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] | 8351 | fi |
| 8352 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8353 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8356 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8357 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8358 | |
| 8359 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8360 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8361 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8362 | |
| 8363 | fi |
| 8364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8365 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8367 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8368 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8369 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8370 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8372 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8373 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8374 | int |
| 8375 | main () |
| 8376 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8377 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8378 | ; |
| 8379 | return 0; |
| 8380 | } |
| 8381 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8382 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8383 | am_cv_langinfo_codeset=yes |
| 8384 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8385 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8386 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8387 | rm -f core conftest.err conftest.$ac_objext \ |
| 8388 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8389 | |
| 8390 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8392 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8393 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8394 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8395 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8396 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8397 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8398 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8399 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8402 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8403 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8404 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8405 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8407 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8408 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8409 | int |
| 8410 | main () |
| 8411 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8412 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8417 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8418 | am_cv_val_LC_MESSAGES=yes |
| 8419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8420 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8421 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8422 | rm -f core conftest.err conftest.$ac_objext \ |
| 8423 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8424 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8426 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8427 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8429 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8430 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8431 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8432 | |
| 8433 | fi |
| 8434 | |
| 8435 | for ac_prog in bison |
| 8436 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8437 | # 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] | 8438 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8440 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8441 | if test "${ac_cv_prog_INTLBISON+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8442 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8443 | else |
| 8444 | if test -n "$INTLBISON"; then |
| 8445 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8446 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8448 | for as_dir in $PATH |
| 8449 | do |
| 8450 | IFS=$as_save_IFS |
| 8451 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8452 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8453 | 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] | 8454 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8456 | break 2 |
| 8457 | fi |
| 8458 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8459 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8460 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8461 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8462 | fi |
| 8463 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8464 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8465 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8467 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8468 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8470 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8471 | fi |
| 8472 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8474 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8475 | done |
| 8476 | |
| 8477 | if test -z "$INTLBISON"; then |
| 8478 | ac_verc_fail=yes |
| 8479 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8481 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8482 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8483 | case $ac_prog_version in |
| 8484 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8485 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8486 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8487 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8488 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8490 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8491 | fi |
| 8492 | if test $ac_verc_fail = yes; then |
| 8493 | INTLBISON=: |
| 8494 | fi |
| 8495 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8496 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8497 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8498 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8499 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8500 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8501 | |
| 8502 | |
| 8503 | |
| 8504 | |
| 8505 | |
| 8506 | |
| 8507 | |
| 8508 | |
| 8509 | |
| 8510 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8512 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8513 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8514 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8515 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8516 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8517 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8518 | fi |
| 8519 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8521 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8522 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8524 | |
| 8525 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8526 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8527 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8528 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8529 | LIBINTL= |
| 8530 | LTLIBINTL= |
| 8531 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8532 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8533 | if test "$USE_NLS" = "yes"; then |
| 8534 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8535 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8537 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8538 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8539 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8540 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8541 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8542 | else |
| 8543 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8544 | fi |
| 8545 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8547 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8548 | |
| 8549 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8550 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | |
| 8553 | |
| 8554 | |
| 8555 | |
| 8556 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8558 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8559 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8560 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8561 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8563 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8564 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8565 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8566 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8567 | int |
| 8568 | main () |
| 8569 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8570 | bindtextdomain ("", ""); |
| 8571 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8572 | ; |
| 8573 | return 0; |
| 8574 | } |
| 8575 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8576 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8577 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8578 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8579 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8580 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8581 | rm -f core conftest.err conftest.$ac_objext \ |
| 8582 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8583 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8585 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8586 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8587 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8588 | |
| 8589 | |
| 8590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8591 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8592 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8593 | acl_save_prefix="$prefix" |
| 8594 | prefix="$acl_final_prefix" |
| 8595 | acl_save_exec_prefix="$exec_prefix" |
| 8596 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8597 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8598 | eval additional_includedir=\"$includedir\" |
| 8599 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8601 | exec_prefix="$acl_save_exec_prefix" |
| 8602 | prefix="$acl_save_prefix" |
| 8603 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8604 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8605 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8606 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8607 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8608 | if test "X$withval" = "Xno"; then |
| 8609 | use_additional=no |
| 8610 | else |
| 8611 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8612 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8613 | acl_save_prefix="$prefix" |
| 8614 | prefix="$acl_final_prefix" |
| 8615 | acl_save_exec_prefix="$exec_prefix" |
| 8616 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8617 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8618 | eval additional_includedir=\"$includedir\" |
| 8619 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8620 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8621 | exec_prefix="$acl_save_exec_prefix" |
| 8622 | prefix="$acl_save_prefix" |
| 8623 | |
| 8624 | else |
| 8625 | additional_includedir="$withval/include" |
| 8626 | additional_libdir="$withval/lib" |
| 8627 | fi |
| 8628 | fi |
| 8629 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8630 | fi |
| 8631 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8632 | LIBINTL= |
| 8633 | LTLIBINTL= |
| 8634 | INCINTL= |
| 8635 | rpathdirs= |
| 8636 | ltrpathdirs= |
| 8637 | names_already_handled= |
| 8638 | names_next_round='intl ' |
| 8639 | while test -n "$names_next_round"; do |
| 8640 | names_this_round="$names_next_round" |
| 8641 | names_next_round= |
| 8642 | for name in $names_this_round; do |
| 8643 | already_handled= |
| 8644 | for n in $names_already_handled; do |
| 8645 | if test "$n" = "$name"; then |
| 8646 | already_handled=yes |
| 8647 | break |
| 8648 | fi |
| 8649 | done |
| 8650 | if test -z "$already_handled"; then |
| 8651 | names_already_handled="$names_already_handled $name" |
| 8652 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8653 | eval value=\"\$HAVE_LIB$uppername\" |
| 8654 | if test -n "$value"; then |
| 8655 | if test "$value" = yes; then |
| 8656 | eval value=\"\$LIB$uppername\" |
| 8657 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8658 | eval value=\"\$LTLIB$uppername\" |
| 8659 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8660 | else |
| 8661 | : |
| 8662 | fi |
| 8663 | else |
| 8664 | found_dir= |
| 8665 | found_la= |
| 8666 | found_so= |
| 8667 | found_a= |
| 8668 | if test $use_additional = yes; then |
| 8669 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8670 | found_dir="$additional_libdir" |
| 8671 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8672 | if test -f "$additional_libdir/lib$name.la"; then |
| 8673 | found_la="$additional_libdir/lib$name.la" |
| 8674 | fi |
| 8675 | else |
| 8676 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8677 | found_dir="$additional_libdir" |
| 8678 | found_a="$additional_libdir/lib$name.$libext" |
| 8679 | if test -f "$additional_libdir/lib$name.la"; then |
| 8680 | found_la="$additional_libdir/lib$name.la" |
| 8681 | fi |
| 8682 | fi |
| 8683 | fi |
| 8684 | fi |
| 8685 | if test "X$found_dir" = "X"; then |
| 8686 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8687 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8688 | acl_save_prefix="$prefix" |
| 8689 | prefix="$acl_final_prefix" |
| 8690 | acl_save_exec_prefix="$exec_prefix" |
| 8691 | exec_prefix="$acl_final_exec_prefix" |
| 8692 | eval x=\"$x\" |
| 8693 | exec_prefix="$acl_save_exec_prefix" |
| 8694 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8695 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8696 | case "$x" in |
| 8697 | -L*) |
| 8698 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8699 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8700 | found_dir="$dir" |
| 8701 | found_so="$dir/lib$name.$shlibext" |
| 8702 | if test -f "$dir/lib$name.la"; then |
| 8703 | found_la="$dir/lib$name.la" |
| 8704 | fi |
| 8705 | else |
| 8706 | if test -f "$dir/lib$name.$libext"; then |
| 8707 | found_dir="$dir" |
| 8708 | found_a="$dir/lib$name.$libext" |
| 8709 | if test -f "$dir/lib$name.la"; then |
| 8710 | found_la="$dir/lib$name.la" |
| 8711 | fi |
| 8712 | fi |
| 8713 | fi |
| 8714 | ;; |
| 8715 | esac |
| 8716 | if test "X$found_dir" != "X"; then |
| 8717 | break |
| 8718 | fi |
| 8719 | done |
| 8720 | fi |
| 8721 | if test "X$found_dir" != "X"; then |
| 8722 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8723 | if test "X$found_so" != "X"; then |
| 8724 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8725 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8726 | else |
| 8727 | haveit= |
| 8728 | for x in $ltrpathdirs; do |
| 8729 | if test "X$x" = "X$found_dir"; then |
| 8730 | haveit=yes |
| 8731 | break |
| 8732 | fi |
| 8733 | done |
| 8734 | if test -z "$haveit"; then |
| 8735 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8736 | fi |
| 8737 | if test "$hardcode_direct" = yes; then |
| 8738 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8739 | else |
| 8740 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8741 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8742 | haveit= |
| 8743 | for x in $rpathdirs; do |
| 8744 | if test "X$x" = "X$found_dir"; then |
| 8745 | haveit=yes |
| 8746 | break |
| 8747 | fi |
| 8748 | done |
| 8749 | if test -z "$haveit"; then |
| 8750 | rpathdirs="$rpathdirs $found_dir" |
| 8751 | fi |
| 8752 | else |
| 8753 | haveit= |
| 8754 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8755 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8756 | acl_save_prefix="$prefix" |
| 8757 | prefix="$acl_final_prefix" |
| 8758 | acl_save_exec_prefix="$exec_prefix" |
| 8759 | exec_prefix="$acl_final_exec_prefix" |
| 8760 | eval x=\"$x\" |
| 8761 | exec_prefix="$acl_save_exec_prefix" |
| 8762 | prefix="$acl_save_prefix" |
| 8763 | |
| 8764 | if test "X$x" = "X-L$found_dir"; then |
| 8765 | haveit=yes |
| 8766 | break |
| 8767 | fi |
| 8768 | done |
| 8769 | if test -z "$haveit"; then |
| 8770 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 8771 | fi |
| 8772 | if test "$hardcode_minus_L" != no; then |
| 8773 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8774 | else |
| 8775 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8776 | fi |
| 8777 | fi |
| 8778 | fi |
| 8779 | fi |
| 8780 | else |
| 8781 | if test "X$found_a" != "X"; then |
| 8782 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 8783 | else |
| 8784 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 8785 | fi |
| 8786 | fi |
| 8787 | additional_includedir= |
| 8788 | case "$found_dir" in |
| 8789 | */lib | */lib/) |
| 8790 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8791 | additional_includedir="$basedir/include" |
| 8792 | ;; |
| 8793 | esac |
| 8794 | if test "X$additional_includedir" != "X"; then |
| 8795 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8796 | haveit= |
| 8797 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8798 | if test -n "$GCC"; then |
| 8799 | case $host_os in |
| 8800 | linux*) haveit=yes;; |
| 8801 | esac |
| 8802 | fi |
| 8803 | fi |
| 8804 | if test -z "$haveit"; then |
| 8805 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8807 | acl_save_prefix="$prefix" |
| 8808 | prefix="$acl_final_prefix" |
| 8809 | acl_save_exec_prefix="$exec_prefix" |
| 8810 | exec_prefix="$acl_final_exec_prefix" |
| 8811 | eval x=\"$x\" |
| 8812 | exec_prefix="$acl_save_exec_prefix" |
| 8813 | prefix="$acl_save_prefix" |
| 8814 | |
| 8815 | if test "X$x" = "X-I$additional_includedir"; then |
| 8816 | haveit=yes |
| 8817 | break |
| 8818 | fi |
| 8819 | done |
| 8820 | if test -z "$haveit"; then |
| 8821 | if test -d "$additional_includedir"; then |
| 8822 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 8823 | fi |
| 8824 | fi |
| 8825 | fi |
| 8826 | fi |
| 8827 | fi |
| 8828 | if test -n "$found_la"; then |
| 8829 | save_libdir="$libdir" |
| 8830 | case "$found_la" in |
| 8831 | */* | *\\*) . "$found_la" ;; |
| 8832 | *) . "./$found_la" ;; |
| 8833 | esac |
| 8834 | libdir="$save_libdir" |
| 8835 | for dep in $dependency_libs; do |
| 8836 | case "$dep" in |
| 8837 | -L*) |
| 8838 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8839 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8840 | haveit= |
| 8841 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8842 | if test -n "$GCC"; then |
| 8843 | case $host_os in |
| 8844 | linux*) haveit=yes;; |
| 8845 | esac |
| 8846 | fi |
| 8847 | fi |
| 8848 | if test -z "$haveit"; then |
| 8849 | haveit= |
| 8850 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8851 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8852 | acl_save_prefix="$prefix" |
| 8853 | prefix="$acl_final_prefix" |
| 8854 | acl_save_exec_prefix="$exec_prefix" |
| 8855 | exec_prefix="$acl_final_exec_prefix" |
| 8856 | eval x=\"$x\" |
| 8857 | exec_prefix="$acl_save_exec_prefix" |
| 8858 | prefix="$acl_save_prefix" |
| 8859 | |
| 8860 | if test "X$x" = "X-L$additional_libdir"; then |
| 8861 | haveit=yes |
| 8862 | break |
| 8863 | fi |
| 8864 | done |
| 8865 | if test -z "$haveit"; then |
| 8866 | if test -d "$additional_libdir"; then |
| 8867 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 8868 | fi |
| 8869 | fi |
| 8870 | haveit= |
| 8871 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8872 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8873 | acl_save_prefix="$prefix" |
| 8874 | prefix="$acl_final_prefix" |
| 8875 | acl_save_exec_prefix="$exec_prefix" |
| 8876 | exec_prefix="$acl_final_exec_prefix" |
| 8877 | eval x=\"$x\" |
| 8878 | exec_prefix="$acl_save_exec_prefix" |
| 8879 | prefix="$acl_save_prefix" |
| 8880 | |
| 8881 | if test "X$x" = "X-L$additional_libdir"; then |
| 8882 | haveit=yes |
| 8883 | break |
| 8884 | fi |
| 8885 | done |
| 8886 | if test -z "$haveit"; then |
| 8887 | if test -d "$additional_libdir"; then |
| 8888 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 8889 | fi |
| 8890 | fi |
| 8891 | fi |
| 8892 | fi |
| 8893 | ;; |
| 8894 | -R*) |
| 8895 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8896 | if test "$enable_rpath" != no; then |
| 8897 | haveit= |
| 8898 | for x in $rpathdirs; do |
| 8899 | if test "X$x" = "X$dir"; then |
| 8900 | haveit=yes |
| 8901 | break |
| 8902 | fi |
| 8903 | done |
| 8904 | if test -z "$haveit"; then |
| 8905 | rpathdirs="$rpathdirs $dir" |
| 8906 | fi |
| 8907 | haveit= |
| 8908 | for x in $ltrpathdirs; do |
| 8909 | if test "X$x" = "X$dir"; then |
| 8910 | haveit=yes |
| 8911 | break |
| 8912 | fi |
| 8913 | done |
| 8914 | if test -z "$haveit"; then |
| 8915 | ltrpathdirs="$ltrpathdirs $dir" |
| 8916 | fi |
| 8917 | fi |
| 8918 | ;; |
| 8919 | -l*) |
| 8920 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8921 | ;; |
| 8922 | *.la) |
| 8923 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8924 | ;; |
| 8925 | *) |
| 8926 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 8927 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 8928 | ;; |
| 8929 | esac |
| 8930 | done |
| 8931 | fi |
| 8932 | else |
| 8933 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8934 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 8935 | fi |
| 8936 | fi |
| 8937 | fi |
| 8938 | done |
| 8939 | done |
| 8940 | if test "X$rpathdirs" != "X"; then |
| 8941 | if test -n "$hardcode_libdir_separator"; then |
| 8942 | alldirs= |
| 8943 | for found_dir in $rpathdirs; do |
| 8944 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8945 | done |
| 8946 | acl_save_libdir="$libdir" |
| 8947 | libdir="$alldirs" |
| 8948 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8949 | libdir="$acl_save_libdir" |
| 8950 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8951 | else |
| 8952 | for found_dir in $rpathdirs; do |
| 8953 | acl_save_libdir="$libdir" |
| 8954 | libdir="$found_dir" |
| 8955 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8956 | libdir="$acl_save_libdir" |
| 8957 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 8958 | done |
| 8959 | fi |
| 8960 | fi |
| 8961 | if test "X$ltrpathdirs" != "X"; then |
| 8962 | for found_dir in $ltrpathdirs; do |
| 8963 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 8964 | done |
| 8965 | fi |
| 8966 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8968 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8969 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8970 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8971 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8972 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 8973 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 8974 | gt_save_LIBS="$LIBS" |
| 8975 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8977 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8978 | #include <libintl.h> |
| 8979 | extern int _nl_msg_cat_cntr; |
| 8980 | extern |
| 8981 | #ifdef __cplusplus |
| 8982 | "C" |
| 8983 | #endif |
| 8984 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8985 | int |
| 8986 | main () |
| 8987 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8988 | bindtextdomain ("", ""); |
| 8989 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8990 | ; |
| 8991 | return 0; |
| 8992 | } |
| 8993 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8994 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8995 | gt_cv_func_gnugettext1_libintl=yes |
| 8996 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8997 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 8998 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8999 | rm -f core conftest.err conftest.$ac_objext \ |
| 9000 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9001 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9002 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9004 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9005 | #include <libintl.h> |
| 9006 | extern int _nl_msg_cat_cntr; |
| 9007 | extern |
| 9008 | #ifdef __cplusplus |
| 9009 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9010 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9011 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9012 | int |
| 9013 | main () |
| 9014 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9015 | bindtextdomain ("", ""); |
| 9016 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9017 | ; |
| 9018 | return 0; |
| 9019 | } |
| 9020 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9021 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9022 | LIBINTL="$LIBINTL $LIBICONV" |
| 9023 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9024 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9025 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9026 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9027 | rm -f core conftest.err conftest.$ac_objext \ |
| 9028 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9029 | fi |
| 9030 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9031 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9032 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9034 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9035 | fi |
| 9036 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9037 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9038 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9039 | && test "$PACKAGE" != gettext-runtime \ |
| 9040 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9041 | gt_use_preinstalled_gnugettext=yes |
| 9042 | else |
| 9043 | LIBINTL= |
| 9044 | LTLIBINTL= |
| 9045 | INCINTL= |
| 9046 | fi |
| 9047 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9048 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9049 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9050 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9051 | fi |
| 9052 | fi |
| 9053 | |
| 9054 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9056 | USE_INCLUDED_LIBINTL=yes |
| 9057 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9058 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9059 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9060 | fi |
| 9061 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9062 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9063 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9064 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9065 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9066 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9067 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9068 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9069 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9070 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9071 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9072 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9073 | else |
| 9074 | USE_NLS=no |
| 9075 | fi |
| 9076 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9077 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9079 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9081 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9082 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9084 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9085 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9086 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9087 | gt_source="external libintl" |
| 9088 | else |
| 9089 | gt_source="libc" |
| 9090 | fi |
| 9091 | else |
| 9092 | gt_source="included intl directory" |
| 9093 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9095 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9096 | fi |
| 9097 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9098 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9099 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9100 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9101 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9103 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9105 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9107 | for element in $INCINTL; do |
| 9108 | haveit= |
| 9109 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9110 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9111 | acl_save_prefix="$prefix" |
| 9112 | prefix="$acl_final_prefix" |
| 9113 | acl_save_exec_prefix="$exec_prefix" |
| 9114 | exec_prefix="$acl_final_exec_prefix" |
| 9115 | eval x=\"$x\" |
| 9116 | exec_prefix="$acl_save_exec_prefix" |
| 9117 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9118 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9119 | if test "X$x" = "X$element"; then |
| 9120 | haveit=yes |
| 9121 | break |
| 9122 | fi |
| 9123 | done |
| 9124 | if test -z "$haveit"; then |
| 9125 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9126 | fi |
| 9127 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9128 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9129 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9130 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9132 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9133 | |
| 9134 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9135 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9136 | |
| 9137 | fi |
| 9138 | |
| 9139 | POSUB=po |
| 9140 | fi |
| 9141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9142 | |
| 9143 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9144 | BUILD_INCLUDED_LIBINTL=yes |
| 9145 | fi |
| 9146 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9147 | |
| 9148 | |
| 9149 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9150 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9151 | nls_cv_header_intl= |
| 9152 | nls_cv_header_libgt= |
| 9153 | |
| 9154 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9155 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9156 | |
| 9157 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9158 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9159 | |
| 9160 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9161 | |
| 9162 | |
| 9163 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9164 | INTLOBJS="\$(GETTOBJS)" |
| 9165 | fi |
| 9166 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9167 | |
| 9168 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9169 | |
| 9170 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9171 | |
| 9172 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9173 | |
| 9174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9181 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9182 | set x ${MAKE-make} |
| 9183 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9184 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9185 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9186 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9187 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9188 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9189 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9190 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9191 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9192 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9193 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9194 | *@@@%%%=?*=@@@%%%*) |
| 9195 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9196 | *) |
| 9197 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9198 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9199 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9200 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9201 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9203 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9204 | SET_MAKE= |
| 9205 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9207 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9208 | SET_MAKE="MAKE=${MAKE-make}" |
| 9209 | fi |
| 9210 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9212 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9213 | if test "${_cv_gnu_make_command+set}" = set; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9214 | $as_echo_n "(cached) " >&6 |
| 9215 | else |
| 9216 | _cv_gnu_make_command='' ; |
| 9217 | for a in "$MAKE" make gmake gnumake ; do |
| 9218 | if test -z "$a" ; then continue ; fi ; |
| 9219 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9220 | _cv_gnu_make_command=$a ; |
| 9221 | break; |
| 9222 | fi |
| 9223 | done ; |
| 9224 | |
| 9225 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9227 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9228 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9229 | ifGNUmake='' ; |
| 9230 | ifNotGNUmake='#' ; |
| 9231 | else |
| 9232 | ifGNUmake='#' ; |
| 9233 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9235 | $as_echo "\"Not found\"" >&6; }; |
| 9236 | fi |
| 9237 | |
| 9238 | |
| 9239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9240 | # Extract the first word of "ln", so it can be a program name with args. |
| 9241 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9243 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9244 | if test "${ac_cv_path_LN+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9245 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9247 | case $LN in |
| 9248 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9249 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9250 | ;; |
| 9251 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9253 | for as_dir in $PATH |
| 9254 | do |
| 9255 | IFS=$as_save_IFS |
| 9256 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9258 | 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] | 9259 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9261 | break 2 |
| 9262 | fi |
| 9263 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9264 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9265 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9267 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9268 | ;; |
| 9269 | esac |
| 9270 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9271 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9272 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9274 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9275 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9277 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9278 | fi |
| 9279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9280 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9282 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9283 | LN_S=$as_ln_s |
| 9284 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9286 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9287 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9289 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9290 | fi |
| 9291 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9292 | # Extract the first word of "mv", so it can be a program name with args. |
| 9293 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9295 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9296 | if test "${ac_cv_path_MV+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9297 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9299 | case $MV in |
| 9300 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9301 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9302 | ;; |
| 9303 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9305 | for as_dir in $PATH |
| 9306 | do |
| 9307 | IFS=$as_save_IFS |
| 9308 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9309 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9310 | 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] | 9311 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9313 | break 2 |
| 9314 | fi |
| 9315 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9316 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9317 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9318 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9319 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9320 | ;; |
| 9321 | esac |
| 9322 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9323 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9324 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9326 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9327 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9329 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9330 | fi |
| 9331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9332 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9333 | # Extract the first word of "cp", so it can be a program name with args. |
| 9334 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9336 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9337 | if test "${ac_cv_path_CP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9338 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9339 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9340 | case $CP in |
| 9341 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9342 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9343 | ;; |
| 9344 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9346 | for as_dir in $PATH |
| 9347 | do |
| 9348 | IFS=$as_save_IFS |
| 9349 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9350 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9351 | 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] | 9352 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9354 | break 2 |
| 9355 | fi |
| 9356 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9357 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9358 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9359 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9360 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9361 | ;; |
| 9362 | esac |
| 9363 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9364 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9365 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9367 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9368 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9370 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9371 | fi |
| 9372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9373 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9374 | # Extract the first word of "rm", so it can be a program name with args. |
| 9375 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9377 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9378 | if test "${ac_cv_path_RM+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9379 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9380 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9381 | case $RM in |
| 9382 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9383 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9384 | ;; |
| 9385 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9387 | for as_dir in $PATH |
| 9388 | do |
| 9389 | IFS=$as_save_IFS |
| 9390 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9391 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9392 | 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] | 9393 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9395 | break 2 |
| 9396 | fi |
| 9397 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9398 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9399 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9400 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9401 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9402 | ;; |
| 9403 | esac |
| 9404 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9405 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9406 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9408 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9409 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9411 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9412 | fi |
| 9413 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9414 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9415 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9416 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9418 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9419 | if test "${ac_cv_path_CHMOD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9420 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9421 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9422 | case $CHMOD in |
| 9423 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9424 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9425 | ;; |
| 9426 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9428 | for as_dir in $PATH |
| 9429 | do |
| 9430 | IFS=$as_save_IFS |
| 9431 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9432 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9433 | 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] | 9434 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9436 | break 2 |
| 9437 | fi |
| 9438 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9439 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9440 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9441 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9442 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9443 | ;; |
| 9444 | esac |
| 9445 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9446 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9447 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9449 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9450 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9452 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9453 | fi |
| 9454 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9455 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9456 | for ac_prog in gawk mawk nawk awk |
| 9457 | do |
| 9458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9459 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9461 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9462 | if test "${ac_cv_prog_AWK+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9464 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9465 | if test -n "$AWK"; then |
| 9466 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9467 | else |
| 9468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9469 | for as_dir in $PATH |
| 9470 | do |
| 9471 | IFS=$as_save_IFS |
| 9472 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9473 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9474 | 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] | 9475 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9477 | break 2 |
| 9478 | fi |
| 9479 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9480 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9481 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9482 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9483 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9484 | fi |
| 9485 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9486 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9488 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9489 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9491 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9492 | fi |
| 9493 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9494 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9495 | test -n "$AWK" && break |
| 9496 | done |
| 9497 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9499 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9500 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9501 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9502 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9503 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9504 | then ac_cv_path_EGREP="$GREP -E" |
| 9505 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9506 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9507 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9508 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9510 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9511 | do |
| 9512 | IFS=$as_save_IFS |
| 9513 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9514 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9516 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 9517 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 9518 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9519 | # Check for GNU $ac_path_EGREP |
| 9520 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9521 | *GNU*) |
| 9522 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9523 | *) |
| 9524 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9525 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9526 | while : |
| 9527 | do |
| 9528 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9529 | mv "conftest.tmp" "conftest.in" |
| 9530 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9531 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9532 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9533 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9534 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9535 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9536 | # Best one so far, save it but keep looking for a better one |
| 9537 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9538 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9539 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9540 | # 10*(2^10) chars as input seems more than enough |
| 9541 | test $ac_count -gt 10 && break |
| 9542 | done |
| 9543 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9544 | esac |
| 9545 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9546 | $ac_path_EGREP_found && break 3 |
| 9547 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9548 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9549 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9550 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9551 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9552 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9553 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9554 | else |
| 9555 | ac_cv_path_EGREP=$EGREP |
| 9556 | fi |
| 9557 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9558 | fi |
| 9559 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9561 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9562 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9563 | |
| 9564 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9565 | # Extract the first word of "sed", so it can be a program name with args. |
| 9566 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9568 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9569 | if test "${ac_cv_path_SED+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9570 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9571 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | case $SED in |
| 9573 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9574 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9575 | ;; |
| 9576 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9578 | for as_dir in $PATH |
| 9579 | do |
| 9580 | IFS=$as_save_IFS |
| 9581 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9583 | 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] | 9584 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9586 | break 2 |
| 9587 | fi |
| 9588 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9589 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9590 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9592 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9593 | ;; |
| 9594 | esac |
| 9595 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9596 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9597 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9599 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9600 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9602 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9603 | fi |
| 9604 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9605 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9606 | # Extract the first word of "perl", so it can be a program name with args. |
| 9607 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9609 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9610 | if test "${ac_cv_path_PERL+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9611 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9612 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9613 | case $PERL in |
| 9614 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9615 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9616 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9617 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9619 | for as_dir in $PATH |
| 9620 | do |
| 9621 | IFS=$as_save_IFS |
| 9622 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9623 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9624 | 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] | 9625 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9627 | break 2 |
| 9628 | fi |
| 9629 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9630 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9631 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9632 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9633 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9634 | ;; |
| 9635 | esac |
| 9636 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9637 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9638 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9640 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9641 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9643 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9644 | fi |
| 9645 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9646 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9647 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9648 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9650 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9651 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9652 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9653 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9654 | case $LDCONFIG in |
| 9655 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9656 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9657 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9658 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9660 | for as_dir in $PATH |
| 9661 | do |
| 9662 | IFS=$as_save_IFS |
| 9663 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9664 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9665 | 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] | 9666 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9668 | break 2 |
| 9669 | fi |
| 9670 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9671 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9672 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9673 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9674 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9675 | ;; |
| 9676 | esac |
| 9677 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9678 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9679 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9681 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9682 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9684 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9685 | fi |
| 9686 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9688 | if test -n "$ac_tool_prefix"; then |
| 9689 | # 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] | 9690 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9692 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9693 | if test "${ac_cv_prog_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9694 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9695 | else |
| 9696 | if test -n "$AR"; then |
| 9697 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9698 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9700 | for as_dir in $PATH |
| 9701 | do |
| 9702 | IFS=$as_save_IFS |
| 9703 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9704 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9705 | 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] | 9706 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9708 | break 2 |
| 9709 | fi |
| 9710 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9711 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9712 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9713 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9714 | fi |
| 9715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9716 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9717 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9719 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9720 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9722 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9723 | fi |
| 9724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9725 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9726 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9727 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9728 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9729 | # Extract the first word of "ar", so it can be a program name with args. |
| 9730 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9732 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9733 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9734 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9735 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9736 | if test -n "$ac_ct_AR"; then |
| 9737 | 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] | 9738 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9740 | for as_dir in $PATH |
| 9741 | do |
| 9742 | IFS=$as_save_IFS |
| 9743 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9745 | 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] | 9746 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9748 | break 2 |
| 9749 | fi |
| 9750 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9751 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9752 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9754 | fi |
| 9755 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9756 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9757 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9759 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9760 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9762 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9763 | fi |
| 9764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9765 | if test "x$ac_ct_AR" = x; then |
| 9766 | AR="ar" |
| 9767 | else |
| 9768 | case $cross_compiling:$ac_tool_warned in |
| 9769 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9772 | ac_tool_warned=yes ;; |
| 9773 | esac |
| 9774 | AR=$ac_ct_AR |
| 9775 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9776 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9777 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9778 | fi |
| 9779 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9780 | if test -n "$ac_tool_prefix"; then |
| 9781 | # 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] | 9782 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9784 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9785 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9786 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9787 | else |
| 9788 | if test -n "$RANLIB"; then |
| 9789 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9790 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9792 | for as_dir in $PATH |
| 9793 | do |
| 9794 | IFS=$as_save_IFS |
| 9795 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9796 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9797 | 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] | 9798 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9800 | break 2 |
| 9801 | fi |
| 9802 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9803 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9804 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9805 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9806 | fi |
| 9807 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9808 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9809 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9811 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9812 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9814 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9815 | fi |
| 9816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9817 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9818 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9819 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9821 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 9822 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9824 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9825 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9826 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9827 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9828 | if test -n "$ac_ct_RANLIB"; then |
| 9829 | 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] | 9830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9832 | for as_dir in $PATH |
| 9833 | do |
| 9834 | IFS=$as_save_IFS |
| 9835 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9836 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9837 | 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] | 9838 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9840 | break 2 |
| 9841 | fi |
| 9842 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9843 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9844 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9845 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9846 | fi |
| 9847 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9849 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9851 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9852 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9854 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9855 | fi |
| 9856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9857 | if test "x$ac_ct_RANLIB" = x; then |
| 9858 | RANLIB=":" |
| 9859 | else |
| 9860 | case $cross_compiling:$ac_tool_warned in |
| 9861 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9863 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9864 | ac_tool_warned=yes ;; |
| 9865 | esac |
| 9866 | RANLIB=$ac_ct_RANLIB |
| 9867 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9868 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9869 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9870 | fi |
| 9871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9872 | if test -n "$ac_tool_prefix"; then |
| 9873 | # 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] | 9874 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9876 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9877 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9878 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9879 | else |
| 9880 | if test -n "$STRIP"; then |
| 9881 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 9882 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9884 | for as_dir in $PATH |
| 9885 | do |
| 9886 | IFS=$as_save_IFS |
| 9887 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9888 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9889 | 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] | 9890 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9892 | break 2 |
| 9893 | fi |
| 9894 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9895 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9896 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9897 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9898 | fi |
| 9899 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9900 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9901 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9903 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9904 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9906 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9907 | fi |
| 9908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9909 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9910 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9911 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9912 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9913 | # Extract the first word of "strip", so it can be a program name with args. |
| 9914 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9916 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9917 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9918 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9919 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9920 | if test -n "$ac_ct_STRIP"; then |
| 9921 | 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] | 9922 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9924 | for as_dir in $PATH |
| 9925 | do |
| 9926 | IFS=$as_save_IFS |
| 9927 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9928 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9929 | 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] | 9930 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9932 | break 2 |
| 9933 | fi |
| 9934 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9935 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9936 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9938 | fi |
| 9939 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9940 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 9941 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9943 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9944 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9946 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9947 | fi |
| 9948 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9949 | if test "x$ac_ct_STRIP" = x; then |
| 9950 | STRIP=":" |
| 9951 | else |
| 9952 | case $cross_compiling:$ac_tool_warned in |
| 9953 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9955 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9956 | ac_tool_warned=yes ;; |
| 9957 | esac |
| 9958 | STRIP=$ac_ct_STRIP |
| 9959 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9960 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9961 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9962 | fi |
| 9963 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9964 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 9965 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9967 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9968 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9969 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9970 | else |
| 9971 | if test -n "$MAKEINFO"; then |
| 9972 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 9973 | else |
| 9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9975 | for as_dir in $PATH |
| 9976 | do |
| 9977 | IFS=$as_save_IFS |
| 9978 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9981 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9983 | break 2 |
| 9984 | fi |
| 9985 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9986 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9987 | IFS=$as_save_IFS |
| 9988 | |
| 9989 | fi |
| 9990 | fi |
| 9991 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 9992 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9994 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9995 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9997 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 9998 | fi |
| 9999 | |
| 10000 | |
| 10001 | if test "_$MAKEINFO" = "_"; then |
| 10002 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10003 | else |
| 10004 | case "$MAKEINFO" in |
| 10005 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10007 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10008 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10009 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10010 | ;; |
| 10011 | *) |
| 10012 | ;; |
| 10013 | esac |
| 10014 | fi |
| 10015 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10016 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10017 | # See if we need a separate native compiler. |
| 10018 | if test $cross_compiling = no; then |
| 10019 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10020 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10021 | else |
| 10022 | for ac_prog in gcc cc |
| 10023 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10024 | # 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] | 10025 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10027 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10028 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10029 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10030 | else |
| 10031 | if test -n "$BUILD_CC"; then |
| 10032 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10033 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10035 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10036 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10037 | IFS=$as_save_IFS |
| 10038 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10040 | 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] | 10041 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10043 | break 2 |
| 10044 | fi |
| 10045 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10046 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10047 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10048 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10049 | fi |
| 10050 | fi |
| 10051 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10052 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10054 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10057 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10058 | fi |
| 10059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10060 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10061 | test -n "$BUILD_CC" && break |
| 10062 | done |
| 10063 | |
| 10064 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10065 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10066 | do : |
| 10067 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10068 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10069 | eval as_val=\$$as_ac_Header |
| 10070 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10071 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10072 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10073 | _ACEOF |
| 10074 | |
| 10075 | fi |
| 10076 | |
| 10077 | done |
| 10078 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10079 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10080 | do : |
| 10081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10082 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10083 | #if HAVE_SYS_QUEUE_H |
| 10084 | #include <sys/queue.h> |
| 10085 | #endif |
| 10086 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10087 | " |
| 10088 | eval as_val=\$$as_ac_Header |
| 10089 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10090 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10091 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10092 | _ACEOF |
| 10093 | |
| 10094 | fi |
| 10095 | |
| 10096 | done |
| 10097 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10098 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10099 | do : |
| 10100 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10101 | #if HAVE_SYS_TYPES_H |
| 10102 | #include <sys/types.h> |
| 10103 | #endif |
| 10104 | #if HAVE_SYS_SOCKET |
| 10105 | #include <sys/socket.h> |
| 10106 | #endif |
| 10107 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10108 | " |
| 10109 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10110 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10111 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10112 | _ACEOF |
| 10113 | |
| 10114 | fi |
| 10115 | |
| 10116 | done |
| 10117 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10118 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10119 | do : |
| 10120 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 10121 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10122 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10123 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10124 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10125 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10126 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 10127 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10128 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10129 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10130 | |
| 10131 | fi |
| 10132 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10133 | fi |
| 10134 | done |
| 10135 | |
| 10136 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10137 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10138 | " |
| 10139 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : |
| 10140 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10141 | |
| 10142 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10143 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10144 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10145 | " |
| 10146 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
| 10147 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10148 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10149 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10150 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10151 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10152 | " |
| 10153 | if test "x$ac_cv_have_decl_llseek" = x""yes; then : |
| 10154 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10155 | |
| 10156 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10157 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10158 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10159 | #define _LARGEFILE64_SOURCE |
| 10160 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10161 | " |
| 10162 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then : |
| 10163 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10164 | |
| 10165 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10166 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10167 | # The cast to long int works around a bug in the HP C Compiler |
| 10168 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10169 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10170 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10172 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10173 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10174 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10175 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10176 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10179 | if test "$ac_cv_type_short" = yes; then |
| 10180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10182 | { as_fn_set_status 77 |
| 10183 | as_fn_error "cannot compute sizeof (short) |
| 10184 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10185 | else |
| 10186 | ac_cv_sizeof_short=0 |
| 10187 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10188 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10189 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10190 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10192 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10193 | |
| 10194 | |
| 10195 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10196 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10197 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10198 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10199 | |
| 10200 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10201 | # The cast to long int works around a bug in the HP C Compiler |
| 10202 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10203 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10204 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10206 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10207 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10208 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10209 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10210 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10212 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10213 | if test "$ac_cv_type_int" = yes; then |
| 10214 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10216 | { as_fn_set_status 77 |
| 10217 | as_fn_error "cannot compute sizeof (int) |
| 10218 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10219 | else |
| 10220 | ac_cv_sizeof_int=0 |
| 10221 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10222 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10224 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10226 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10227 | |
| 10228 | |
| 10229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10230 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10231 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10232 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10233 | |
| 10234 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10235 | # The cast to long int works around a bug in the HP C Compiler |
| 10236 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10237 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10238 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10240 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10241 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10242 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10243 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10244 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10245 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10246 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10247 | if test "$ac_cv_type_long" = yes; then |
| 10248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10250 | { as_fn_set_status 77 |
| 10251 | as_fn_error "cannot compute sizeof (long) |
| 10252 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10253 | else |
| 10254 | ac_cv_sizeof_long=0 |
| 10255 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10256 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10257 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10258 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10260 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10261 | |
| 10262 | |
| 10263 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10264 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10265 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10266 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10267 | |
| 10268 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10269 | # The cast to long int works around a bug in the HP C Compiler |
| 10270 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10271 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10272 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10274 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10275 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10276 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10277 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10278 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10279 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10280 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10281 | if test "$ac_cv_type_long_long" = yes; then |
| 10282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10284 | { as_fn_set_status 77 |
| 10285 | as_fn_error "cannot compute sizeof (long long) |
| 10286 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10287 | else |
| 10288 | ac_cv_sizeof_long_long=0 |
| 10289 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10290 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10291 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10292 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10294 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10295 | |
| 10296 | |
| 10297 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10298 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10299 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10300 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10301 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10302 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10303 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10304 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10305 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10306 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10307 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10308 | |
| 10309 | |
| 10310 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10312 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10313 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10314 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10315 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10316 | ac_cv_c_bigendian=unknown |
| 10317 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10319 | /* end confdefs.h. */ |
| 10320 | #ifndef __APPLE_CC__ |
| 10321 | not a universal capable compiler |
| 10322 | #endif |
| 10323 | typedef int dummy; |
| 10324 | |
| 10325 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10326 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10327 | |
| 10328 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10329 | # there are at least two -arch flags with different values. |
| 10330 | ac_arch= |
| 10331 | ac_prev= |
| 10332 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10333 | if test -n "$ac_prev"; then |
| 10334 | case $ac_word in |
| 10335 | i?86 | x86_64 | ppc | ppc64) |
| 10336 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10337 | ac_arch=$ac_word |
| 10338 | else |
| 10339 | ac_cv_c_bigendian=universal |
| 10340 | break |
| 10341 | fi |
| 10342 | ;; |
| 10343 | esac |
| 10344 | ac_prev= |
| 10345 | elif test "x$ac_word" = "x-arch"; then |
| 10346 | ac_prev=arch |
| 10347 | fi |
| 10348 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10349 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10351 | if test $ac_cv_c_bigendian = unknown; then |
| 10352 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10354 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10355 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10356 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10357 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10358 | int |
| 10359 | main () |
| 10360 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10361 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10362 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10363 | && LITTLE_ENDIAN) |
| 10364 | bogus endian macros |
| 10365 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10366 | |
| 10367 | ; |
| 10368 | return 0; |
| 10369 | } |
| 10370 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10371 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10372 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10374 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10375 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10376 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10377 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10378 | int |
| 10379 | main () |
| 10380 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10381 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10382 | not big endian |
| 10383 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10384 | |
| 10385 | ; |
| 10386 | return 0; |
| 10387 | } |
| 10388 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10389 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10390 | ac_cv_c_bigendian=yes |
| 10391 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10392 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10395 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10397 | fi |
| 10398 | if test $ac_cv_c_bigendian = unknown; then |
| 10399 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10401 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10402 | #include <limits.h> |
| 10403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10404 | int |
| 10405 | main () |
| 10406 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10407 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10408 | bogus endian macros |
| 10409 | #endif |
| 10410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10411 | ; |
| 10412 | return 0; |
| 10413 | } |
| 10414 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10415 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10416 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10418 | /* end confdefs.h. */ |
| 10419 | #include <limits.h> |
| 10420 | |
| 10421 | int |
| 10422 | main () |
| 10423 | { |
| 10424 | #ifndef _BIG_ENDIAN |
| 10425 | not big endian |
| 10426 | #endif |
| 10427 | |
| 10428 | ; |
| 10429 | return 0; |
| 10430 | } |
| 10431 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10432 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10433 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10434 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10435 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10436 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10438 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10440 | fi |
| 10441 | if test $ac_cv_c_bigendian = unknown; then |
| 10442 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10443 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10444 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10446 | /* end confdefs.h. */ |
| 10447 | short int ascii_mm[] = |
| 10448 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10449 | short int ascii_ii[] = |
| 10450 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10451 | int use_ascii (int i) { |
| 10452 | return ascii_mm[i] + ascii_ii[i]; |
| 10453 | } |
| 10454 | short int ebcdic_ii[] = |
| 10455 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10456 | short int ebcdic_mm[] = |
| 10457 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10458 | int use_ebcdic (int i) { |
| 10459 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10460 | } |
| 10461 | extern int foo; |
| 10462 | |
| 10463 | int |
| 10464 | main () |
| 10465 | { |
| 10466 | return use_ascii (foo) == use_ebcdic (foo); |
| 10467 | ; |
| 10468 | return 0; |
| 10469 | } |
| 10470 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10471 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10472 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10473 | ac_cv_c_bigendian=yes |
| 10474 | fi |
| 10475 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10476 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10477 | ac_cv_c_bigendian=no |
| 10478 | else |
| 10479 | # finding both strings is unlikely to happen, but who knows? |
| 10480 | ac_cv_c_bigendian=unknown |
| 10481 | fi |
| 10482 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10483 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10485 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10487 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10488 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10489 | int |
| 10490 | main () |
| 10491 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10492 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10493 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10494 | union |
| 10495 | { |
| 10496 | long int l; |
| 10497 | char c[sizeof (long int)]; |
| 10498 | } u; |
| 10499 | u.l = 1; |
| 10500 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10501 | |
| 10502 | ; |
| 10503 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10504 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10505 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10506 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10507 | ac_cv_c_bigendian=no |
| 10508 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10509 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10510 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10511 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10512 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10514 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10515 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10516 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10518 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10519 | case $ac_cv_c_bigendian in #( |
| 10520 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10521 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10522 | ;; #( |
| 10523 | no) |
| 10524 | ;; #( |
| 10525 | universal) |
| 10526 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10527 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10528 | |
| 10529 | ;; #( |
| 10530 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10531 | as_fn_error "unknown endianness |
| 10532 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10533 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10534 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10535 | 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] | 10536 | ASM_TYPES_HEADER=./asm_types.h |
| 10537 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10538 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10539 | > public_config.h |
| 10540 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10541 | uniq tmp_config.$$ >> public_config.h |
| 10542 | else |
| 10543 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10544 | fi |
| 10545 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10546 | uniq tmp_config.$$ >> public_config.h |
| 10547 | else |
| 10548 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10549 | fi |
| 10550 | rm -f tmp_config.$$ |
| 10551 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10552 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10553 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10554 | do : |
| 10555 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 10556 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10557 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10558 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10559 | _ACEOF |
| 10560 | |
| 10561 | fi |
| 10562 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10563 | done |
| 10564 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10565 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10566 | if test "x$ac_cv_type_intptr_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10567 | |
| 10568 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10569 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10570 | _ACEOF |
| 10571 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10573 | fi |
| 10574 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10576 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10577 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10578 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10579 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10581 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10582 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10583 | int |
| 10584 | main () |
| 10585 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10586 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10587 | ; |
| 10588 | return 0; |
| 10589 | } |
| 10590 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10591 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10592 | e2fsprogs_cv_struct_st_flags=yes |
| 10593 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10594 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10597 | fi |
| 10598 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10600 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10601 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10603 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10604 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10605 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10606 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10608 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10609 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10610 | int |
| 10611 | main () |
| 10612 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10613 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10614 | ; |
| 10615 | return 0; |
| 10616 | } |
| 10617 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10618 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10619 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10620 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10621 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10622 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10624 | fi |
| 10625 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10627 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10628 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10629 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10630 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10631 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10632 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10633 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10634 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10635 | " |
| 10636 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10637 | |
| 10638 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10639 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10640 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10641 | |
| 10642 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10643 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10644 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10646 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10647 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10648 | $as_echo_n "(cached) " >&6 |
| 10649 | else |
| 10650 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10652 | /* end confdefs.h. */ |
| 10653 | |
| 10654 | /* Override any GCC internal prototype to avoid an error. |
| 10655 | Use char because int might match the return type of a GCC |
| 10656 | builtin and then its argument prototype would still apply. */ |
| 10657 | #ifdef __cplusplus |
| 10658 | extern "C" |
| 10659 | #endif |
| 10660 | char blkid_probe_all (); |
| 10661 | int |
| 10662 | main () |
| 10663 | { |
| 10664 | return blkid_probe_all (); |
| 10665 | ; |
| 10666 | return 0; |
| 10667 | } |
| 10668 | _ACEOF |
| 10669 | for ac_lib in '' blkid; do |
| 10670 | if test -z "$ac_lib"; then |
| 10671 | ac_res="none required" |
| 10672 | else |
| 10673 | ac_res=-l$ac_lib |
| 10674 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10675 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10676 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10677 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10678 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10679 | rm -f core conftest.err conftest.$ac_objext \ |
| 10680 | conftest$ac_exeext |
| 10681 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10682 | break |
| 10683 | fi |
| 10684 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10685 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
| 10686 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10687 | else |
| 10688 | ac_cv_search_blkid_probe_all=no |
| 10689 | fi |
| 10690 | rm conftest.$ac_ext |
| 10691 | LIBS=$ac_func_search_save_LIBS |
| 10692 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10694 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10695 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10696 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10697 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10698 | |
| 10699 | fi |
| 10700 | |
| 10701 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 10702 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology mbstowcs |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10703 | do : |
| 10704 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10705 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10706 | eval as_val=\$$as_ac_var |
| 10707 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10708 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10709 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10710 | _ACEOF |
| 10711 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10712 | fi |
| 10713 | done |
| 10714 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10715 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10717 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10718 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10719 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10720 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10721 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10722 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10724 | /* end confdefs.h. */ |
| 10725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10726 | /* Override any GCC internal prototype to avoid an error. |
| 10727 | Use char because int might match the return type of a GCC |
| 10728 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10729 | #ifdef __cplusplus |
| 10730 | extern "C" |
| 10731 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10732 | char socket (); |
| 10733 | int |
| 10734 | main () |
| 10735 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10736 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10737 | ; |
| 10738 | return 0; |
| 10739 | } |
| 10740 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10741 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10742 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10743 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10744 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10745 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10746 | rm -f core conftest.err conftest.$ac_objext \ |
| 10747 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10748 | LIBS=$ac_check_lib_save_LIBS |
| 10749 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10751 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10752 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10753 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10754 | fi |
| 10755 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10756 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10758 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10759 | if test "${ac_cv_have_optreset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10760 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10761 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10764 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10765 | |
| 10766 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10768 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10769 | ac_cv_have_optreset=yes |
| 10770 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10771 | ac_cv_have_optreset=no |
| 10772 | fi |
| 10773 | rm -f conftest* |
| 10774 | |
| 10775 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10777 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10778 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10779 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10780 | |
| 10781 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10782 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10783 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
| 10784 | if test "x$ac_cv_func_sem_init" = x""yes; then : |
| 10785 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10786 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10788 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10789 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10790 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10791 | else |
| 10792 | ac_check_lib_save_LIBS=$LIBS |
| 10793 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10795 | /* end confdefs.h. */ |
| 10796 | |
| 10797 | /* Override any GCC internal prototype to avoid an error. |
| 10798 | Use char because int might match the return type of a GCC |
| 10799 | builtin and then its argument prototype would still apply. */ |
| 10800 | #ifdef __cplusplus |
| 10801 | extern "C" |
| 10802 | #endif |
| 10803 | char sem_init (); |
| 10804 | int |
| 10805 | main () |
| 10806 | { |
| 10807 | return sem_init (); |
| 10808 | ; |
| 10809 | return 0; |
| 10810 | } |
| 10811 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10812 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10813 | ac_cv_lib_pthread_sem_init=yes |
| 10814 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10815 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10816 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10817 | rm -f core conftest.err conftest.$ac_objext \ |
| 10818 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10819 | LIBS=$ac_check_lib_save_LIBS |
| 10820 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10822 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10823 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : |
| 10824 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10825 | |
| 10826 | SEM_INIT_LIB=-lpthread |
| 10827 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10829 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10830 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10831 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10832 | else |
| 10833 | ac_check_lib_save_LIBS=$LIBS |
| 10834 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10836 | /* end confdefs.h. */ |
| 10837 | |
| 10838 | /* Override any GCC internal prototype to avoid an error. |
| 10839 | Use char because int might match the return type of a GCC |
| 10840 | builtin and then its argument prototype would still apply. */ |
| 10841 | #ifdef __cplusplus |
| 10842 | extern "C" |
| 10843 | #endif |
| 10844 | char sem_init (); |
| 10845 | int |
| 10846 | main () |
| 10847 | { |
| 10848 | return sem_init (); |
| 10849 | ; |
| 10850 | return 0; |
| 10851 | } |
| 10852 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10853 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10854 | ac_cv_lib_rt_sem_init=yes |
| 10855 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10856 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10857 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10858 | rm -f core conftest.err conftest.$ac_objext \ |
| 10859 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10860 | LIBS=$ac_check_lib_save_LIBS |
| 10861 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10863 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10864 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : |
| 10865 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10866 | |
| 10867 | SEM_INIT_LIB=-lrt |
| 10868 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10870 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10871 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10872 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10873 | else |
| 10874 | ac_check_lib_save_LIBS=$LIBS |
| 10875 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10877 | /* end confdefs.h. */ |
| 10878 | |
| 10879 | /* Override any GCC internal prototype to avoid an error. |
| 10880 | Use char because int might match the return type of a GCC |
| 10881 | builtin and then its argument prototype would still apply. */ |
| 10882 | #ifdef __cplusplus |
| 10883 | extern "C" |
| 10884 | #endif |
| 10885 | char sem_init (); |
| 10886 | int |
| 10887 | main () |
| 10888 | { |
| 10889 | return sem_init (); |
| 10890 | ; |
| 10891 | return 0; |
| 10892 | } |
| 10893 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10894 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10895 | ac_cv_lib_posix4_sem_init=yes |
| 10896 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10897 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10898 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10899 | rm -f core conftest.err conftest.$ac_objext \ |
| 10900 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10901 | LIBS=$ac_check_lib_save_LIBS |
| 10902 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10904 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10905 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : |
| 10906 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10907 | |
| 10908 | SEM_INIT_LIB=-lposix4 |
| 10909 | fi |
| 10910 | |
| 10911 | fi |
| 10912 | |
| 10913 | fi |
| 10914 | |
| 10915 | fi |
| 10916 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10918 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 10919 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 10920 | UNI_DIFF_OPTS=-u |
| 10921 | else |
| 10922 | UNI_DIFF_OPTS=-c |
| 10923 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10925 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 10926 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 10927 | case "$host_os" in |
| 10928 | linux*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10929 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10930 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 10931 | ;; |
| 10932 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10933 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10934 | CYGWIN_CMT="#" |
| 10935 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10936 | case "$host_os" in |
| 10937 | linux*) |
| 10938 | LINUX_CMT= |
| 10939 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10940 | cygwin) |
| 10941 | CYGWIN_CMT= |
| 10942 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10943 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 10944 | esac |
| 10945 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10946 | |
| 10947 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10948 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10949 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10950 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 10951 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10953 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10954 | fi |
| 10955 | ;; |
| 10956 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10957 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10958 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10959 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10960 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10962 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 10963 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10965 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 10966 | mandir=/usr/share/man |
| 10967 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10968 | fi |
| 10969 | ;; |
| 10970 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10971 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 10972 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10973 | root_prefix="$ac_default_prefix" |
| 10974 | else |
| 10975 | root_prefix="$prefix" |
| 10976 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 10977 | root_bindir=$bindir |
| 10978 | root_sbindir=$sbindir |
| 10979 | root_libdir=$libdir |
| 10980 | root_sysconfdir=$sysconfdir |
| 10981 | else |
| 10982 | root_bindir='${root_prefix}/bin' |
| 10983 | root_sbindir='${root_prefix}/sbin' |
| 10984 | root_libdir='${root_prefix}/lib' |
| 10985 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 10986 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10987 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 10988 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10990 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10991 | fi |
| 10992 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 10993 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10995 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 10996 | fi |
| 10997 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 10998 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11000 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11001 | fi |
| 11002 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11003 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11005 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11006 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11007 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11008 | |
| 11009 | |
| 11010 | |
| 11011 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11013 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11014 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11016 | else |
| 11017 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11019 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11020 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11021 | int |
| 11022 | main () |
| 11023 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11024 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11025 | ; |
| 11026 | return 0; |
| 11027 | } |
| 11028 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11029 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11030 | ac_cv_e2fsprogs_use_static=yes |
| 11031 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11032 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11033 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11034 | rm -f core conftest.err conftest.$ac_objext \ |
| 11035 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11036 | LDFLAGS=$SAVE_LDFLAGS |
| 11037 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11038 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11039 | case "$host_os" in |
| 11040 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11041 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11042 | ;; |
| 11043 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11045 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11046 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11047 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11048 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11049 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11050 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11051 | case "$host_os" in |
| 11052 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11054 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11055 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11056 | |
| 11057 | ;; |
| 11058 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11059 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11060 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11061 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11062 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11063 | if test "$cross_compiling" = yes ; then |
| 11064 | DO_TEST_SUITE= |
| 11065 | else |
| 11066 | DO_TEST_SUITE=check |
| 11067 | fi |
| 11068 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11069 | INTL_FLAGS= |
| 11070 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 11071 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 11072 | fi |
| 11073 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11074 | if test $cross_compiling = no; then |
| 11075 | BUILD_CFLAGS="$CFLAGS" |
| 11076 | BUILD_LDFLAGS="$LDFLAGS" |
| 11077 | else |
| 11078 | BUILD_CFLAGS= |
| 11079 | BUILD_LDFLAGS= |
| 11080 | fi |
| 11081 | |
| 11082 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11083 | test -d lib || mkdir lib |
| 11084 | test -d include || mkdir include |
| 11085 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11086 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11087 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 11088 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11089 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11090 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11091 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 11092 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11093 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11094 | 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] | 11095 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11096 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11097 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11098 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11099 | if test -d `dirname ${srcdir}/$i` ; then |
| 11100 | outlist="$outlist $i" |
| 11101 | fi |
| 11102 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11103 | ac_config_files="$ac_config_files $outlist" |
| 11104 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11105 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11106 | # This file is a shell script that caches the results of configure |
| 11107 | # 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] | 11108 | # scripts and configure runs, see configure's option --config-cache. |
| 11109 | # It is not useful on other systems. If it contains results you don't |
| 11110 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11111 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11112 | # config.status only pays attention to the cache file if you give it |
| 11113 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11114 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11115 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11116 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11117 | # following values. |
| 11118 | |
| 11119 | _ACEOF |
| 11120 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11121 | # The following way of writing the cache mishandles newlines in values, |
| 11122 | # 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] | 11123 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11124 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11125 | # 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] | 11126 | ( |
| 11127 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11128 | eval ac_val=\$$ac_var |
| 11129 | case $ac_val in #( |
| 11130 | *${as_nl}*) |
| 11131 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11132 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11133 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11134 | esac |
| 11135 | case $ac_var in #( |
| 11136 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11137 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11138 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11139 | esac ;; |
| 11140 | esac |
| 11141 | done |
| 11142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11143 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11144 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11145 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11146 | # `set' does not quote correctly, so add quotes: double-quote |
| 11147 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11148 | sed -n \ |
| 11149 | "s/'/'\\\\''/g; |
| 11150 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11151 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11152 | *) |
| 11153 | # `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] | 11154 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11155 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11156 | esac | |
| 11157 | sort |
| 11158 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11159 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11160 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11161 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11162 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11163 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11164 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11165 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11166 | :end' >>confcache |
| 11167 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11168 | if test -w "$cache_file"; then |
| 11169 | test "x$cache_file" != "x/dev/null" && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11171 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11172 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11173 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11175 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11176 | fi |
| 11177 | fi |
| 11178 | rm -f confcache |
| 11179 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11180 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11181 | # Let make expand exec_prefix. |
| 11182 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11183 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11184 | # Transform confdefs.h into DEFS. |
| 11185 | # Protect against shell expansion while executing Makefile rules. |
| 11186 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11187 | # |
| 11188 | # 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] | 11189 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11190 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11191 | ac_script=' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11192 | :mline |
| 11193 | /\\$/{ |
| 11194 | N |
| 11195 | s,\\\n,, |
| 11196 | b mline |
| 11197 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11198 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11199 | :clear |
| 11200 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11201 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11202 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11203 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11204 | b any |
| 11205 | :quote |
| 11206 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 11207 | s/\[/\\&/g |
| 11208 | s/\]/\\&/g |
| 11209 | s/\$/$$/g |
| 11210 | H |
| 11211 | :any |
| 11212 | ${ |
| 11213 | g |
| 11214 | s/^\n// |
| 11215 | s/\n/ /g |
| 11216 | p |
| 11217 | } |
| 11218 | ' |
| 11219 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11220 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11221 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11222 | ac_libobjs= |
| 11223 | ac_ltlibobjs= |
| 11224 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11225 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11226 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11227 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11228 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11229 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11230 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11231 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11232 | done |
| 11233 | LIBOBJS=$ac_libobjs |
| 11234 | |
| 11235 | LTLIBOBJS=$ac_ltlibobjs |
| 11236 | |
| 11237 | |
| 11238 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11240 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11241 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11242 | ac_clean_files_save=$ac_clean_files |
| 11243 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11245 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11246 | as_write_fail=0 |
| 11247 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11248 | #! $SHELL |
| 11249 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11250 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11251 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11253 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11254 | debug=false |
| 11255 | ac_cs_recheck=false |
| 11256 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11257 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11258 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11259 | export SHELL |
| 11260 | _ASEOF |
| 11261 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11262 | ## -------------------- ## |
| 11263 | ## M4sh Initialization. ## |
| 11264 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11265 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11266 | # Be more Bourne compatible |
| 11267 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11268 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11269 | emulate sh |
| 11270 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11271 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11272 | # is contrary to our usage. Disable this feature. |
| 11273 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11274 | setopt NO_GLOB_SUBST |
| 11275 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11276 | case `(set -o) 2>/dev/null` in #( |
| 11277 | *posix*) : |
| 11278 | set -o posix ;; #( |
| 11279 | *) : |
| 11280 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11281 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11282 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11283 | |
| 11284 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11285 | as_nl=' |
| 11286 | ' |
| 11287 | export as_nl |
| 11288 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11289 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11290 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11291 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11292 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11293 | # but without wasting forks for bash or zsh. |
| 11294 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11295 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11296 | as_echo='print -r --' |
| 11297 | as_echo_n='print -rn --' |
| 11298 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11299 | as_echo='printf %s\n' |
| 11300 | as_echo_n='printf %s' |
| 11301 | else |
| 11302 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11303 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11304 | as_echo_n='/usr/ucb/echo -n' |
| 11305 | else |
| 11306 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11307 | as_echo_n_body='eval |
| 11308 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11309 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11310 | *"$as_nl"*) |
| 11311 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11312 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11313 | esac; |
| 11314 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11315 | ' |
| 11316 | export as_echo_n_body |
| 11317 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11318 | fi |
| 11319 | export as_echo_body |
| 11320 | as_echo='sh -c $as_echo_body as_echo' |
| 11321 | fi |
| 11322 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11323 | # The user is always right. |
| 11324 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11325 | PATH_SEPARATOR=: |
| 11326 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11327 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11328 | PATH_SEPARATOR=';' |
| 11329 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11330 | fi |
| 11331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11332 | |
| 11333 | # IFS |
| 11334 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11335 | # there to prevent editors from complaining about space-tab. |
| 11336 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11337 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11338 | IFS=" "" $as_nl" |
| 11339 | |
| 11340 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11341 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11342 | *[\\/]* ) as_myself=$0 ;; |
| 11343 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11344 | for as_dir in $PATH |
| 11345 | do |
| 11346 | IFS=$as_save_IFS |
| 11347 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11348 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11349 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11350 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11352 | ;; |
| 11353 | esac |
| 11354 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11355 | # in which case we are not to be found in the path. |
| 11356 | if test "x$as_myself" = x; then |
| 11357 | as_myself=$0 |
| 11358 | fi |
| 11359 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11360 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11361 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | fi |
| 11363 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11364 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11365 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11366 | # suppresses any "Segmentation fault" message there. '((' could |
| 11367 | # trigger a bug in pdksh 5.2.14. |
| 11368 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11369 | do eval test x\${$as_var+set} = xset \ |
| 11370 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11371 | done |
| 11372 | PS1='$ ' |
| 11373 | PS2='> ' |
| 11374 | PS4='+ ' |
| 11375 | |
| 11376 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11377 | LC_ALL=C |
| 11378 | export LC_ALL |
| 11379 | LANGUAGE=C |
| 11380 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11381 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11382 | # CDPATH. |
| 11383 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11384 | |
| 11385 | |
| 11386 | # as_fn_error ERROR [LINENO LOG_FD] |
| 11387 | # --------------------------------- |
| 11388 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11389 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11390 | # script with status $?, using 1 if that was 0. |
| 11391 | as_fn_error () |
| 11392 | { |
| 11393 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 11394 | if test "$3"; then |
| 11395 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11396 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 11397 | fi |
| 11398 | $as_echo "$as_me: error: $1" >&2 |
| 11399 | as_fn_exit $as_status |
| 11400 | } # as_fn_error |
| 11401 | |
| 11402 | |
| 11403 | # as_fn_set_status STATUS |
| 11404 | # ----------------------- |
| 11405 | # Set $? to STATUS, without forking. |
| 11406 | as_fn_set_status () |
| 11407 | { |
| 11408 | return $1 |
| 11409 | } # as_fn_set_status |
| 11410 | |
| 11411 | # as_fn_exit STATUS |
| 11412 | # ----------------- |
| 11413 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11414 | as_fn_exit () |
| 11415 | { |
| 11416 | set +e |
| 11417 | as_fn_set_status $1 |
| 11418 | exit $1 |
| 11419 | } # as_fn_exit |
| 11420 | |
| 11421 | # as_fn_unset VAR |
| 11422 | # --------------- |
| 11423 | # Portably unset VAR. |
| 11424 | as_fn_unset () |
| 11425 | { |
| 11426 | { eval $1=; unset $1;} |
| 11427 | } |
| 11428 | as_unset=as_fn_unset |
| 11429 | # as_fn_append VAR VALUE |
| 11430 | # ---------------------- |
| 11431 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11432 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11433 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11434 | # implementations. |
| 11435 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11436 | eval 'as_fn_append () |
| 11437 | { |
| 11438 | eval $1+=\$2 |
| 11439 | }' |
| 11440 | else |
| 11441 | as_fn_append () |
| 11442 | { |
| 11443 | eval $1=\$$1\$2 |
| 11444 | } |
| 11445 | fi # as_fn_append |
| 11446 | |
| 11447 | # as_fn_arith ARG... |
| 11448 | # ------------------ |
| 11449 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11450 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11451 | # must be portable across $(()) and expr. |
| 11452 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11453 | eval 'as_fn_arith () |
| 11454 | { |
| 11455 | as_val=$(( $* )) |
| 11456 | }' |
| 11457 | else |
| 11458 | as_fn_arith () |
| 11459 | { |
| 11460 | as_val=`expr "$@" || test $? -eq 1` |
| 11461 | } |
| 11462 | fi # as_fn_arith |
| 11463 | |
| 11464 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11465 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11466 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11467 | as_expr=expr |
| 11468 | else |
| 11469 | as_expr=false |
| 11470 | fi |
| 11471 | |
| 11472 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11473 | as_basename=basename |
| 11474 | else |
| 11475 | as_basename=false |
| 11476 | fi |
| 11477 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11478 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11479 | as_dirname=dirname |
| 11480 | else |
| 11481 | as_dirname=false |
| 11482 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11484 | as_me=`$as_basename -- "$0" || |
| 11485 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11486 | X"$0" : 'X\(//\)$' \| \ |
| 11487 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11488 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11489 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11490 | s//\1/ |
| 11491 | q |
| 11492 | } |
| 11493 | /^X\/\(\/\/\)$/{ |
| 11494 | s//\1/ |
| 11495 | q |
| 11496 | } |
| 11497 | /^X\/\(\/\).*/{ |
| 11498 | s//\1/ |
| 11499 | q |
| 11500 | } |
| 11501 | s/.*/./; q'` |
| 11502 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11503 | # Avoid depending upon Character Ranges. |
| 11504 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11505 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11506 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11507 | as_cr_digits='0123456789' |
| 11508 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11509 | |
| 11510 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11511 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11512 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11514 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11515 | xy) ECHO_C='\c';; |
| 11516 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11517 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11518 | esac;; |
| 11519 | *) |
| 11520 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11521 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11522 | |
| 11523 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11524 | if test -d conf$$.dir; then |
| 11525 | rm -f conf$$.dir/conf$$.file |
| 11526 | else |
| 11527 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11528 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11529 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11530 | if (echo >conf$$.file) 2>/dev/null; then |
| 11531 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11532 | as_ln_s='ln -s' |
| 11533 | # ... but there are two gotchas: |
| 11534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11535 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11536 | # In both cases, we have to default to `cp -p'. |
| 11537 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11538 | as_ln_s='cp -p' |
| 11539 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11540 | as_ln_s=ln |
| 11541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11542 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11543 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11544 | else |
| 11545 | as_ln_s='cp -p' |
| 11546 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11547 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11548 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11550 | |
| 11551 | # as_fn_mkdir_p |
| 11552 | # ------------- |
| 11553 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11554 | as_fn_mkdir_p () |
| 11555 | { |
| 11556 | |
| 11557 | case $as_dir in #( |
| 11558 | -*) as_dir=./$as_dir;; |
| 11559 | esac |
| 11560 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11561 | as_dirs= |
| 11562 | while :; do |
| 11563 | case $as_dir in #( |
| 11564 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11565 | *) as_qdir=$as_dir;; |
| 11566 | esac |
| 11567 | as_dirs="'$as_qdir' $as_dirs" |
| 11568 | as_dir=`$as_dirname -- "$as_dir" || |
| 11569 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11570 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11571 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11572 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11573 | $as_echo X"$as_dir" | |
| 11574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11575 | s//\1/ |
| 11576 | q |
| 11577 | } |
| 11578 | /^X\(\/\/\)[^/].*/{ |
| 11579 | s//\1/ |
| 11580 | q |
| 11581 | } |
| 11582 | /^X\(\/\/\)$/{ |
| 11583 | s//\1/ |
| 11584 | q |
| 11585 | } |
| 11586 | /^X\(\/\).*/{ |
| 11587 | s//\1/ |
| 11588 | q |
| 11589 | } |
| 11590 | s/.*/./; q'` |
| 11591 | test -d "$as_dir" && break |
| 11592 | done |
| 11593 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11594 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 11595 | |
| 11596 | |
| 11597 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11598 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11599 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11600 | else |
| 11601 | test -d ./-p && rmdir ./-p |
| 11602 | as_mkdir_p=false |
| 11603 | fi |
| 11604 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11605 | if test -x / >/dev/null 2>&1; then |
| 11606 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11607 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11608 | if ls -dL / >/dev/null 2>&1; then |
| 11609 | as_ls_L_option=L |
| 11610 | else |
| 11611 | as_ls_L_option= |
| 11612 | fi |
| 11613 | as_test_x=' |
| 11614 | eval sh -c '\'' |
| 11615 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11616 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11617 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11618 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11619 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11620 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11621 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11622 | ???[sx]*):;;*)false;;esac;fi |
| 11623 | '\'' sh |
| 11624 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11625 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11626 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11627 | |
| 11628 | # Sed expression to map a string onto a valid CPP name. |
| 11629 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11630 | |
| 11631 | # Sed expression to map a string onto a valid variable name. |
| 11632 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11633 | |
| 11634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11635 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11636 | ## ----------------------------------- ## |
| 11637 | ## Main body of $CONFIG_STATUS script. ## |
| 11638 | ## ----------------------------------- ## |
| 11639 | _ASEOF |
| 11640 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11641 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11642 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11643 | # 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] | 11644 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11645 | # values after options handling. |
| 11646 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11647 | This file was extended by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11648 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11649 | |
| 11650 | CONFIG_FILES = $CONFIG_FILES |
| 11651 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11652 | CONFIG_LINKS = $CONFIG_LINKS |
| 11653 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11654 | $ $0 $@ |
| 11655 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11656 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11657 | " |
| 11658 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11659 | _ACEOF |
| 11660 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11661 | case $ac_config_files in *" |
| 11662 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11663 | esac |
| 11664 | |
| 11665 | |
| 11666 | |
| 11667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11668 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11669 | config_files="$ac_config_files" |
| 11670 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11671 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11672 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11673 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11675 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11676 | \`$as_me' instantiates files and other configuration actions |
| 11677 | from templates according to the current configuration. Unless the files |
| 11678 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11679 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11680 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11681 | |
| 11682 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11683 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11684 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11685 | -q, --quiet, --silent |
| 11686 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11687 | -d, --debug don't remove temporary files |
| 11688 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11689 | --file=FILE[:TEMPLATE] |
| 11690 | instantiate the configuration file FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11691 | |
| 11692 | Configuration files: |
| 11693 | $config_files |
| 11694 | |
| 11695 | Configuration commands: |
| 11696 | $config_commands |
| 11697 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11698 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11699 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11700 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11702 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11703 | ac_cs_version="\\ |
| 11704 | config.status |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11705 | configured by $0, generated by GNU Autoconf 2.65, |
| 11706 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11708 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11709 | This config.status script is free software; the Free Software Foundation |
| 11710 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11711 | |
| 11712 | ac_pwd='$ac_pwd' |
| 11713 | srcdir='$srcdir' |
| 11714 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11715 | AWK='$AWK' |
| 11716 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11717 | _ACEOF |
| 11718 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11720 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11721 | ac_need_defaults=: |
| 11722 | while test $# != 0 |
| 11723 | do |
| 11724 | case $1 in |
| 11725 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11726 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11727 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11728 | ac_shift=: |
| 11729 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11730 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11731 | ac_option=$1 |
| 11732 | ac_optarg=$2 |
| 11733 | ac_shift=shift |
| 11734 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11735 | esac |
| 11736 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11737 | case $ac_option in |
| 11738 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11739 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11740 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11741 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11742 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11743 | --config | --confi | --conf | --con | --co | --c ) |
| 11744 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11745 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11746 | debug=: ;; |
| 11747 | --file | --fil | --fi | --f ) |
| 11748 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11749 | case $ac_optarg in |
| 11750 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11751 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11752 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11753 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11754 | --he | --h | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11755 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11756 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11757 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11758 | ac_cs_silent=: ;; |
| 11759 | |
| 11760 | # This is an error. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11761 | -*) as_fn_error "unrecognized option: \`$1' |
| 11762 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11763 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11764 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11765 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11766 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11767 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11768 | shift |
| 11769 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11770 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11771 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11773 | if $ac_cs_silent; then |
| 11774 | exec 6>/dev/null |
| 11775 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11776 | fi |
| 11777 | |
| 11778 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11779 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11780 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11781 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11782 | shift |
| 11783 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 11784 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11785 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11786 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11787 | fi |
| 11788 | |
| 11789 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11791 | exec 5>>config.log |
| 11792 | { |
| 11793 | echo |
| 11794 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11795 | ## Running $as_me. ## |
| 11796 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11797 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11798 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11800 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11802 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11803 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11804 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11805 | # 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] | 11806 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11807 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11808 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11809 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 11810 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11811 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11812 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11813 | _ACEOF |
| 11814 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11815 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11816 | |
| 11817 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11818 | for ac_config_target in $ac_config_targets |
| 11819 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11820 | case $ac_config_target in |
| 11821 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 11822 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 11823 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11824 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11825 | esac |
| 11826 | done |
| 11827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11829 | # If the user did not use the arguments to specify the items to instantiate, |
| 11830 | # then the envvar interface is used. Set only those that are not. |
| 11831 | # We use the long form for the default assignment because of an extremely |
| 11832 | # bizarre bug on SunOS 4.1.3. |
| 11833 | if $ac_need_defaults; then |
| 11834 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 11835 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 11836 | fi |
| 11837 | |
| 11838 | # 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] | 11839 | # 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] | 11840 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11841 | # Hook for its removal unless debugging. |
| 11842 | # Note that there is a small window in which the directory will not be cleaned: |
| 11843 | # 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] | 11844 | $debug || |
| 11845 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11846 | tmp= |
| 11847 | trap 'exit_status=$? |
| 11848 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 11849 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11850 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11851 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11852 | # Create a (secure) tmp directory for tmp files. |
| 11853 | |
| 11854 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11855 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11856 | test -n "$tmp" && test -d "$tmp" |
| 11857 | } || |
| 11858 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11859 | tmp=./conf$$-$RANDOM |
| 11860 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11861 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11862 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11863 | # Set up the scripts for CONFIG_FILES section. |
| 11864 | # No need to generate them if there are no CONFIG_FILES. |
| 11865 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11866 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11867 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11868 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 11869 | ac_cs_awk_getline=: |
| 11870 | ac_cs_awk_pipe_init= |
| 11871 | ac_cs_awk_read_file=' |
| 11872 | while ((getline aline < (F[key])) > 0) |
| 11873 | print(aline) |
| 11874 | close(F[key])' |
| 11875 | ac_cs_awk_pipe_fini= |
| 11876 | else |
| 11877 | ac_cs_awk_getline=false |
| 11878 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 11879 | ac_cs_awk_read_file=' |
| 11880 | print "|#_!!_#|" |
| 11881 | print "cat " F[key] " &&" |
| 11882 | '$ac_cs_awk_pipe_init |
| 11883 | # The final `:' finishes the AND list. |
| 11884 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 11885 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11886 | ac_cr=`echo X | tr X '\015'` |
| 11887 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 11888 | # But we know of no other shell where ac_cr would be empty at this |
| 11889 | # point, so we can use a bashism as a fallback. |
| 11890 | if test "x$ac_cr" = x; then |
| 11891 | eval ac_cr=\$\'\\r\' |
| 11892 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11893 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 11894 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11895 | ac_cs_awk_cr='\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11896 | else |
| 11897 | ac_cs_awk_cr=$ac_cr |
| 11898 | fi |
| 11899 | |
| 11900 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11901 | _ACEOF |
| 11902 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11903 | # Create commands to substitute file output variables. |
| 11904 | { |
| 11905 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 11906 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 11907 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 11908 | echo "_ACAWK" && |
| 11909 | echo "_ACEOF" |
| 11910 | } >conf$$files.sh && |
| 11911 | . ./conf$$files.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11912 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11913 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11914 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11915 | { |
| 11916 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 11917 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 11918 | echo "_ACEOF" |
| 11919 | } >conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11920 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11921 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11922 | ac_delim='%!_!# ' |
| 11923 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11924 | . ./conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11925 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11926 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11927 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 11928 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11929 | break |
| 11930 | elif $ac_last_try; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11931 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11932 | else |
| 11933 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11934 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11935 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11936 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11937 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11939 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11940 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11941 | sed -n ' |
| 11942 | h |
| 11943 | s/^/S["/; s/!.*/"]=/ |
| 11944 | p |
| 11945 | g |
| 11946 | s/^[^!]*!// |
| 11947 | :repl |
| 11948 | t repl |
| 11949 | s/'"$ac_delim"'$// |
| 11950 | t delim |
| 11951 | :nl |
| 11952 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11953 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11954 | t more1 |
| 11955 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 11956 | p |
| 11957 | n |
| 11958 | b repl |
| 11959 | :more1 |
| 11960 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 11961 | p |
| 11962 | g |
| 11963 | s/.\{148\}// |
| 11964 | t nl |
| 11965 | :delim |
| 11966 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame^] | 11967 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11968 | t more2 |
| 11969 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 11970 | p |
| 11971 | b |
| 11972 | :more2 |
| 11973 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 11974 | p |
| 11975 | g |
| 11976 | s/.\{148\}// |
| 11977 | t delim |
| 11978 | ' <conf$$subs.awk | sed ' |
| 11979 | /^[^""]/{ |
| 11980 | N |
| 11981 | s/\n// |
| 11982 | } |
| 11983 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 11984 | rm -f conf$$subs.awk |
| 11985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 11986 | _ACAWK |
| 11987 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 11988 | for (key in S) S_is_set[key] = 1 |
| 11989 | FS = "" |
| 11990 | \$ac_cs_awk_pipe_init |
| 11991 | } |
| 11992 | { |
| 11993 | line = $ 0 |
| 11994 | nfields = split(line, field, "@") |
| 11995 | substed = 0 |
| 11996 | len = length(field[1]) |
| 11997 | for (i = 2; i < nfields; i++) { |
| 11998 | key = field[i] |
| 11999 | keylen = length(key) |
| 12000 | if (S_is_set[key]) { |
| 12001 | value = S[key] |
| 12002 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12003 | len += length(value) + length(field[++i]) |
| 12004 | substed = 1 |
| 12005 | } else |
| 12006 | len += 1 + keylen |
| 12007 | } |
| 12008 | if (nfields == 3 && !substed) { |
| 12009 | key = field[2] |
| 12010 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12011 | \$ac_cs_awk_read_file |
| 12012 | next |
| 12013 | } |
| 12014 | } |
| 12015 | print line |
| 12016 | } |
| 12017 | \$ac_cs_awk_pipe_fini |
| 12018 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12019 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12021 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12022 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12023 | else |
| 12024 | cat |
| 12025 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12026 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12027 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12028 | |
| 12029 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12030 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12031 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12032 | # (actually we leave an empty line to preserve line numbers). |
| 12033 | if test "x$srcdir" = x.; then |
| 12034 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12035 | s/:*\$(srcdir):*/:/ |
| 12036 | s/:*\${srcdir}:*/:/ |
| 12037 | s/:*@srcdir@:*/:/ |
| 12038 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12039 | s/:*$// |
| 12040 | s/^[^=]*=[ ]*$// |
| 12041 | }' |
| 12042 | fi |
| 12043 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12045 | fi # test -n "$CONFIG_FILES" |
| 12046 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12047 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12048 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 12049 | shift |
| 12050 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12051 | do |
| 12052 | case $ac_tag in |
| 12053 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12054 | esac |
| 12055 | case $ac_mode$ac_tag in |
| 12056 | :[FHL]*:*);; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12057 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12058 | :[FH]-) ac_tag=-:-;; |
| 12059 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12060 | esac |
| 12061 | ac_save_IFS=$IFS |
| 12062 | IFS=: |
| 12063 | set x $ac_tag |
| 12064 | IFS=$ac_save_IFS |
| 12065 | shift |
| 12066 | ac_file=$1 |
| 12067 | shift |
| 12068 | |
| 12069 | case $ac_mode in |
| 12070 | :L) ac_source=$1;; |
| 12071 | :[FH]) |
| 12072 | ac_file_inputs= |
| 12073 | for ac_f |
| 12074 | do |
| 12075 | case $ac_f in |
| 12076 | -) ac_f="$tmp/stdin";; |
| 12077 | *) # Look for the file first in the build tree, then in the source tree |
| 12078 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12079 | # because $ac_f cannot contain `:'. |
| 12080 | test -f "$ac_f" || |
| 12081 | case $ac_f in |
| 12082 | [\\/$]*) false;; |
| 12083 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12084 | esac || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12085 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12086 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12087 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12088 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12089 | done |
| 12090 | |
| 12091 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12092 | # use $as_me), people would be surprised to read: |
| 12093 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12094 | configure_input='Generated from '` |
| 12095 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12096 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12097 | if test x"$ac_file" != x-; then |
| 12098 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12100 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12101 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12102 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12103 | case $configure_input in #( |
| 12104 | *\&* | *\|* | *\\* ) |
| 12105 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12106 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12107 | *) ac_sed_conf_input=$configure_input;; |
| 12108 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12109 | |
| 12110 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12111 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12112 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12113 | esac |
| 12114 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12115 | esac |
| 12116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12117 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12118 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12119 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12120 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12121 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12122 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12124 | s//\1/ |
| 12125 | q |
| 12126 | } |
| 12127 | /^X\(\/\/\)[^/].*/{ |
| 12128 | s//\1/ |
| 12129 | q |
| 12130 | } |
| 12131 | /^X\(\/\/\)$/{ |
| 12132 | s//\1/ |
| 12133 | q |
| 12134 | } |
| 12135 | /^X\(\/\).*/{ |
| 12136 | s//\1/ |
| 12137 | q |
| 12138 | } |
| 12139 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12140 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12141 | ac_builddir=. |
| 12142 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12143 | case "$ac_dir" in |
| 12144 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12145 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12146 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12147 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12148 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12149 | case $ac_top_builddir_sub in |
| 12150 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12151 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12152 | esac ;; |
| 12153 | esac |
| 12154 | ac_abs_top_builddir=$ac_pwd |
| 12155 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12156 | # for backward compatibility: |
| 12157 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12158 | |
| 12159 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12161 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12162 | ac_top_srcdir=$ac_top_builddir_sub |
| 12163 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12164 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12165 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | ac_top_srcdir=$srcdir |
| 12167 | ac_abs_top_srcdir=$srcdir ;; |
| 12168 | *) # Relative name. |
| 12169 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12170 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12171 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12172 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12173 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12175 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12176 | case $ac_mode in |
| 12177 | :F) |
| 12178 | # |
| 12179 | # CONFIG_FILE |
| 12180 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12181 | |
| 12182 | case $INSTALL in |
| 12183 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12184 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12185 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12186 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12187 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12189 | # If the template does not know about datarootdir, expand it. |
| 12190 | # FIXME: This hack should be removed a few years after 2.60. |
| 12191 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12192 | ac_sed_dataroot=' |
| 12193 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | p |
| 12195 | q |
| 12196 | } |
| 12197 | /@datadir@/p |
| 12198 | /@docdir@/p |
| 12199 | /@infodir@/p |
| 12200 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12201 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12202 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12203 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12204 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12206 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12207 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12209 | ac_datarootdir_hack=' |
| 12210 | s&@datadir@&$datadir&g |
| 12211 | s&@docdir@&$docdir&g |
| 12212 | s&@infodir@&$infodir&g |
| 12213 | s&@localedir@&$localedir&g |
| 12214 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12215 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12216 | esac |
| 12217 | _ACEOF |
| 12218 | |
| 12219 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12220 | # Shell code in configure.ac might set extrasub. |
| 12221 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12222 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12223 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12224 | $extrasub |
| 12225 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12227 | :t |
| 12228 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12229 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12230 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12231 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12232 | s&@srcdir@&$ac_srcdir&;t t |
| 12233 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12234 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12235 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12236 | s&@builddir@&$ac_builddir&;t t |
| 12237 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12238 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12239 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12240 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12241 | " |
| 12242 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12243 | if $ac_cs_awk_getline; then |
| 12244 | $AWK -f "$tmp/subs.awk" |
| 12245 | else |
| 12246 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 12247 | fi >$tmp/out \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12248 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12250 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12251 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12252 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12254 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12255 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12256 | 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] | 12257 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12258 | rm -f "$tmp/stdin" |
| 12259 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12260 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 12261 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 12262 | esac \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12263 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12264 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12265 | |
| 12266 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12267 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12268 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12269 | ;; |
| 12270 | esac |
| 12271 | |
| 12272 | |
| 12273 | case $ac_file$ac_mode in |
| 12274 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12275 | for ac_file in $CONFIG_FILES; do |
| 12276 | # Support "outfile[:infile[:infile...]]" |
| 12277 | case "$ac_file" in |
| 12278 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12279 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12280 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12281 | case "$ac_file" in */Makefile.in) |
| 12282 | # Adjust a relative srcdir. |
| 12283 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12284 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12285 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12286 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12287 | # In autoconf-2.50 it is called $srcdir. |
| 12288 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12289 | case "$ac_given_srcdir" in |
| 12290 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12291 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12292 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12293 | esac |
| 12294 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12295 | rm -f "$ac_dir/POTFILES" |
| 12296 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12297 | 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] | 12298 | POMAKEFILEDEPS="POTFILES.in" |
| 12299 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12300 | # on $ac_dir but don't depend on user-specified configuration |
| 12301 | # parameters. |
| 12302 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12303 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12304 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12305 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12306 | fi |
| 12307 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12308 | # Hide the ALL_LINGUAS assigment from automake. |
| 12309 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12310 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12311 | else |
| 12312 | # The set of available languages was given in configure.in. |
| 12313 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12314 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12315 | # Compute POFILES |
| 12316 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12317 | # Compute UPDATEPOFILES |
| 12318 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12319 | # Compute DUMMYPOFILES |
| 12320 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12321 | # Compute GMOFILES |
| 12322 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12323 | case "$ac_given_srcdir" in |
| 12324 | .) srcdirpre= ;; |
| 12325 | *) srcdirpre='$(srcdir)/' ;; |
| 12326 | esac |
| 12327 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12328 | UPDATEPOFILES= |
| 12329 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12330 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12331 | for lang in $ALL_LINGUAS; do |
| 12332 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12333 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12334 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12335 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12336 | done |
| 12337 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12338 | # environment variable. |
| 12339 | INST_LINGUAS= |
| 12340 | if test -n "$ALL_LINGUAS"; then |
| 12341 | for presentlang in $ALL_LINGUAS; do |
| 12342 | useit=no |
| 12343 | if test "%UNSET%" != "$LINGUAS"; then |
| 12344 | desiredlanguages="$LINGUAS" |
| 12345 | else |
| 12346 | desiredlanguages="$ALL_LINGUAS" |
| 12347 | fi |
| 12348 | for desiredlang in $desiredlanguages; do |
| 12349 | # Use the presentlang catalog if desiredlang is |
| 12350 | # a. equal to presentlang, or |
| 12351 | # b. a variant of presentlang (because in this case, |
| 12352 | # presentlang can be used as a fallback for messages |
| 12353 | # which are not translated in the desiredlang catalog). |
| 12354 | case "$desiredlang" in |
| 12355 | "$presentlang"*) useit=yes;; |
| 12356 | esac |
| 12357 | done |
| 12358 | if test $useit = yes; then |
| 12359 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12360 | fi |
| 12361 | done |
| 12362 | fi |
| 12363 | CATALOGS= |
| 12364 | if test -n "$INST_LINGUAS"; then |
| 12365 | for lang in $INST_LINGUAS; do |
| 12366 | CATALOGS="$CATALOGS $lang.gmo" |
| 12367 | done |
| 12368 | fi |
| 12369 | 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] | 12370 | 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] | 12371 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12372 | if test -f "$f"; then |
| 12373 | case "$f" in |
| 12374 | *.orig | *.bak | *~) ;; |
| 12375 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12376 | esac |
| 12377 | fi |
| 12378 | done |
| 12379 | fi |
| 12380 | ;; |
| 12381 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12382 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12383 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12384 | esac |
| 12385 | done # for ac_tag |
| 12386 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12388 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12389 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12390 | ac_clean_files=$ac_clean_files_save |
| 12391 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12392 | test $ac_write_fail = 0 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12393 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12394 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12395 | |
| 12396 | # configure is writing to config.log, and then calls config.status. |
| 12397 | # config.status does its own redirection, appending to config.log. |
| 12398 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12399 | # by configure, so config.status won't be able to write to it; its |
| 12400 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12401 | # effectively closing config.log, so it can be properly (re)opened and |
| 12402 | # appended to by config.status. When coming back to configure, we |
| 12403 | # need to make the FD available again. |
| 12404 | if test "$no_create" != yes; then |
| 12405 | ac_cs_success=: |
| 12406 | ac_config_status_args= |
| 12407 | test "$silent" = yes && |
| 12408 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12409 | exec 5>/dev/null |
| 12410 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12411 | exec 5>>config.log |
| 12412 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12413 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12414 | $ac_cs_success || as_fn_exit $? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12415 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12416 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12418 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12419 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12420 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12421 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |