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 | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | 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] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # 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] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | 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] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | 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] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $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] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (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] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $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] | 487 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (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] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 622 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 623 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 624 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 625 | BUILD_LDFLAGS |
| 626 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 627 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | DO_TEST_SUITE |
| 629 | ET_DIR |
| 630 | SS_DIR |
| 631 | LDFLAG_STATIC |
| 632 | root_sysconfdir |
| 633 | root_libdir |
| 634 | root_sbindir |
| 635 | root_bindir |
| 636 | root_prefix |
| 637 | UNIX_CMT |
| 638 | CYGWIN_CMT |
| 639 | LINUX_CMT |
| 640 | UNI_DIFF_OPTS |
| 641 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 642 | SOCKET_LIB |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 643 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 644 | SIZEOF_LONG_LONG |
| 645 | SIZEOF_LONG |
| 646 | SIZEOF_INT |
| 647 | SIZEOF_SHORT |
| 648 | BUILD_CC |
| 649 | MAKEINFO |
| 650 | STRIP |
| 651 | AR |
| 652 | LDCONFIG |
| 653 | PERL |
| 654 | SED |
| 655 | AWK |
| 656 | CHMOD |
| 657 | RM |
| 658 | CP |
| 659 | MV |
| 660 | LN_S |
| 661 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 662 | ifNotGNUmake |
| 663 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 664 | BINARY_TYPE |
| 665 | POSUB |
| 666 | LTLIBINTL |
| 667 | LIBINTL |
| 668 | INTLLIBS |
| 669 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 670 | INTLOBJS |
| 671 | GENCAT |
| 672 | INSTOBJEXT |
| 673 | DATADIRNAME |
| 674 | CATOBJEXT |
| 675 | USE_INCLUDED_LIBINTL |
| 676 | BUILD_INCLUDED_LIBINTL |
| 677 | INTLBISON |
| 678 | LTLIBICONV |
| 679 | LIBICONV |
| 680 | HAVE_WPRINTF |
| 681 | HAVE_SNPRINTF |
| 682 | HAVE_ASPRINTF |
| 683 | HAVE_POSIX_PRINTF |
| 684 | GLIBC21 |
| 685 | ALLOCA |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 686 | EGREP |
| 687 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 688 | RANLIB |
| 689 | MSGMERGE |
| 690 | XGETTEXT |
| 691 | GMSGFMT |
| 692 | MSGFMT |
| 693 | USE_NLS |
| 694 | MKINSTALLDIRS |
| 695 | INSTALL_DATA |
| 696 | INSTALL_SCRIPT |
| 697 | INSTALL_PROGRAM |
| 698 | SET_MAKE |
| 699 | VERSION |
| 700 | PACKAGE |
| 701 | GETTEXT_PACKAGE |
| 702 | UUIDD_CMT |
| 703 | E2INITRD_MAN |
| 704 | E2INITRD_PROG |
| 705 | FSCK_MAN |
| 706 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 707 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 708 | RESIZER_CMT |
| 709 | IMAGER_CMT |
| 710 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 711 | QUOTA_CMT |
| 712 | DEPPROFILED_LIBQUOTA |
| 713 | PROFILED_LIBQUOTA |
| 714 | DEPSTATIC_LIBQUOTA |
| 715 | STATIC_LIBQUOTA |
| 716 | DEPLIBQUOTA |
| 717 | LIBQUOTA |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 718 | QUOTA_MAN_COMMENT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 719 | BLKID_CMT |
| 720 | DEPPROFILED_LIBBLKID |
| 721 | PROFILED_LIBBLKID |
| 722 | DEPSTATIC_LIBBLKID |
| 723 | STATIC_LIBBLKID |
| 724 | DEPLIBBLKID |
| 725 | LIBBLKID |
| 726 | UUID_CMT |
| 727 | DEPPROFILED_LIBUUID |
| 728 | PROFILED_LIBUUID |
| 729 | DEPSTATIC_LIBUUID |
| 730 | STATIC_LIBUUID |
| 731 | DEPLIBUUID |
| 732 | LIBUUID |
| 733 | PKG_CONFIG |
| 734 | TEST_IO_CMT |
| 735 | PRIVATE_LIBS_CMT |
| 736 | LDFLAG_DYNAMIC |
| 737 | PROFILED_LIB_EXT |
| 738 | STATIC_LIB_EXT |
| 739 | LIB_EXT |
| 740 | CHECKER_CMT |
| 741 | PROFILE_CMT |
| 742 | BSDLIB_CMT |
| 743 | ELF_CMT |
| 744 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 745 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 746 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 747 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 748 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 749 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 750 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 751 | MAINTAINER_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 752 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 753 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 754 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 755 | OBJEXT |
| 756 | EXEEXT |
| 757 | ac_ct_CC |
| 758 | CPPFLAGS |
| 759 | LDFLAGS |
| 760 | CFLAGS |
| 761 | CC |
| 762 | host_os |
| 763 | host_vendor |
| 764 | host_cpu |
| 765 | host |
| 766 | build_os |
| 767 | build_vendor |
| 768 | build_cpu |
| 769 | build |
| 770 | E2FSPROGS_PKGVER |
| 771 | E2FSPROGS_VERSION |
| 772 | E2FSPROGS_DAY |
| 773 | E2FSPROGS_MONTH |
| 774 | E2FSPROGS_YEAR |
| 775 | target_alias |
| 776 | host_alias |
| 777 | build_alias |
| 778 | LIBS |
| 779 | ECHO_T |
| 780 | ECHO_N |
| 781 | ECHO_C |
| 782 | DEFS |
| 783 | mandir |
| 784 | localedir |
| 785 | libdir |
| 786 | psdir |
| 787 | pdfdir |
| 788 | dvidir |
| 789 | htmldir |
| 790 | infodir |
| 791 | docdir |
| 792 | oldincludedir |
| 793 | includedir |
| 794 | localstatedir |
| 795 | sharedstatedir |
| 796 | sysconfdir |
| 797 | datadir |
| 798 | datarootdir |
| 799 | libexecdir |
| 800 | sbindir |
| 801 | bindir |
| 802 | program_transform_name |
| 803 | prefix |
| 804 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 805 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 806 | PACKAGE_BUGREPORT |
| 807 | PACKAGE_STRING |
| 808 | PACKAGE_VERSION |
| 809 | PACKAGE_TARNAME |
| 810 | PACKAGE_NAME |
| 811 | PATH_SEPARATOR |
| 812 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 813 | ac_subst_files='MCONFIG |
| 814 | MAKEFILE_ELF |
| 815 | MAKEFILE_BSDLIB |
| 816 | MAKEFILE_PROFILE |
| 817 | MAKEFILE_CHECKER |
| 818 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 819 | ASM_TYPES_HEADER |
| 820 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 821 | ac_user_opts=' |
| 822 | enable_option_checking |
| 823 | with_diet_libc |
| 824 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 825 | with_ccopts |
| 826 | with_ldopts |
| 827 | with_root_prefix |
| 828 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 829 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 830 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 831 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 832 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 833 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 834 | enable_compression |
| 835 | enable_htree |
| 836 | enable_elf_shlibs |
| 837 | enable_bsd_shlibs |
| 838 | enable_profile |
| 839 | enable_checker |
| 840 | enable_jbd_debug |
| 841 | enable_blkid_debug |
| 842 | enable_testio_debug |
| 843 | enable_libuuid |
| 844 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 845 | enable_quota |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 846 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 847 | enable_debugfs |
| 848 | enable_imager |
| 849 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 850 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 851 | enable_fsck |
| 852 | enable_e2initrd_helper |
| 853 | enable_tls |
| 854 | enable_uuidd |
| 855 | enable_nls |
| 856 | with_gnu_ld |
| 857 | enable_rpath |
| 858 | with_libiconv_prefix |
| 859 | with_included_gettext |
| 860 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 861 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 862 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 863 | ac_precious_vars='build_alias |
| 864 | host_alias |
| 865 | target_alias |
| 866 | CC |
| 867 | CFLAGS |
| 868 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 869 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 870 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 871 | CPP |
| 872 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 873 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 874 | |
| 875 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 876 | ac_init_help= |
| 877 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 878 | ac_unrecognized_opts= |
| 879 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 880 | # The variables have the same names as the options, with |
| 881 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 882 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 883 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 884 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 885 | no_recursion= |
| 886 | prefix=NONE |
| 887 | program_prefix=NONE |
| 888 | program_suffix=NONE |
| 889 | program_transform_name=s,x,x, |
| 890 | silent= |
| 891 | site= |
| 892 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | verbose= |
| 894 | x_includes=NONE |
| 895 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 896 | |
| 897 | # Installation directory options. |
| 898 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 899 | # and all the variables that are supposed to be based on exec_prefix |
| 900 | # by default will actually change. |
| 901 | # 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] | 902 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 903 | bindir='${exec_prefix}/bin' |
| 904 | sbindir='${exec_prefix}/sbin' |
| 905 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 906 | datarootdir='${prefix}/share' |
| 907 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 908 | sysconfdir='${prefix}/etc' |
| 909 | sharedstatedir='${prefix}/com' |
| 910 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 911 | includedir='${prefix}/include' |
| 912 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 913 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 914 | infodir='${datarootdir}/info' |
| 915 | htmldir='${docdir}' |
| 916 | dvidir='${docdir}' |
| 917 | pdfdir='${docdir}' |
| 918 | psdir='${docdir}' |
| 919 | libdir='${exec_prefix}/lib' |
| 920 | localedir='${datarootdir}/locale' |
| 921 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 923 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 924 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 925 | for ac_option |
| 926 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | # If the previous option needs an argument, assign it. |
| 928 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 929 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 930 | ac_prev= |
| 931 | continue |
| 932 | fi |
| 933 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 934 | case $ac_option in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 935 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 936 | *=) ac_optarg= ;; |
| 937 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 938 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 939 | |
| 940 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 941 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 942 | case $ac_dashdash$ac_option in |
| 943 | --) |
| 944 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 945 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 946 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 947 | ac_prev=bindir ;; |
| 948 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 949 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 950 | |
| 951 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 952 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 953 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 954 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 955 | |
| 956 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 957 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 958 | ac_prev=cache_file ;; |
| 959 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 960 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 961 | cache_file=$ac_optarg ;; |
| 962 | |
| 963 | --config-cache | -C) |
| 964 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 966 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 967 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 968 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 969 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 970 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 971 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 972 | | --dataroo | --dataro | --datar) |
| 973 | ac_prev=datarootdir ;; |
| 974 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 975 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 976 | datarootdir=$ac_optarg ;; |
| 977 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 978 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 979 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 980 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 981 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 982 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 983 | ac_useropt_orig=$ac_useropt |
| 984 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 985 | case $ac_user_opts in |
| 986 | *" |
| 987 | "enable_$ac_useropt" |
| 988 | "*) ;; |
| 989 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 990 | ac_unrecognized_sep=', ';; |
| 991 | esac |
| 992 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 993 | |
| 994 | -docdir | --docdir | --docdi | --doc | --do) |
| 995 | ac_prev=docdir ;; |
| 996 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 997 | docdir=$ac_optarg ;; |
| 998 | |
| 999 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1000 | ac_prev=dvidir ;; |
| 1001 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1002 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1003 | |
| 1004 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1005 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1006 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1007 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1008 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1009 | ac_useropt_orig=$ac_useropt |
| 1010 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1011 | case $ac_user_opts in |
| 1012 | *" |
| 1013 | "enable_$ac_useropt" |
| 1014 | "*) ;; |
| 1015 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1016 | ac_unrecognized_sep=', ';; |
| 1017 | esac |
| 1018 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1019 | |
| 1020 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1021 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1022 | | --exec | --exe | --ex) |
| 1023 | ac_prev=exec_prefix ;; |
| 1024 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1025 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1026 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1027 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1028 | |
| 1029 | -gas | --gas | --ga | --g) |
| 1030 | # Obsolete; use --with-gas. |
| 1031 | with_gas=yes ;; |
| 1032 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1033 | -help | --help | --hel | --he | -h) |
| 1034 | ac_init_help=long ;; |
| 1035 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1036 | ac_init_help=recursive ;; |
| 1037 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1038 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1039 | |
| 1040 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1041 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1042 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1043 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1045 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1046 | ac_prev=htmldir ;; |
| 1047 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1048 | | --ht=*) |
| 1049 | htmldir=$ac_optarg ;; |
| 1050 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1051 | -includedir | --includedir | --includedi | --included | --include \ |
| 1052 | | --includ | --inclu | --incl | --inc) |
| 1053 | ac_prev=includedir ;; |
| 1054 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1055 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1056 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1057 | |
| 1058 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1059 | ac_prev=infodir ;; |
| 1060 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1061 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1062 | |
| 1063 | -libdir | --libdir | --libdi | --libd) |
| 1064 | ac_prev=libdir ;; |
| 1065 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1067 | |
| 1068 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1069 | | --libexe | --libex | --libe) |
| 1070 | ac_prev=libexecdir ;; |
| 1071 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1072 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1073 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1075 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1076 | ac_prev=localedir ;; |
| 1077 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1078 | localedir=$ac_optarg ;; |
| 1079 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1080 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1081 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1082 | ac_prev=localstatedir ;; |
| 1083 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1084 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1085 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1086 | |
| 1087 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1088 | ac_prev=mandir ;; |
| 1089 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1090 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1091 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1092 | -nfp | --nfp | --nf) |
| 1093 | # Obsolete; use --without-fp. |
| 1094 | with_fp=no ;; |
| 1095 | |
| 1096 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | no_create=yes ;; |
| 1099 | |
| 1100 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1101 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1102 | no_recursion=yes ;; |
| 1103 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1104 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1105 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1106 | | --oldin | --oldi | --old | --ol | --o) |
| 1107 | ac_prev=oldincludedir ;; |
| 1108 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1109 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1110 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1111 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1112 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1113 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1114 | ac_prev=prefix ;; |
| 1115 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1116 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1117 | |
| 1118 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1119 | | --program-pre | --program-pr | --program-p) |
| 1120 | ac_prev=program_prefix ;; |
| 1121 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1122 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1123 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1124 | |
| 1125 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1126 | | --program-suf | --program-su | --program-s) |
| 1127 | ac_prev=program_suffix ;; |
| 1128 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1129 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1130 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1131 | |
| 1132 | -program-transform-name | --program-transform-name \ |
| 1133 | | --program-transform-nam | --program-transform-na \ |
| 1134 | | --program-transform-n | --program-transform- \ |
| 1135 | | --program-transform | --program-transfor \ |
| 1136 | | --program-transfo | --program-transf \ |
| 1137 | | --program-trans | --program-tran \ |
| 1138 | | --progr-tra | --program-tr | --program-t) |
| 1139 | ac_prev=program_transform_name ;; |
| 1140 | -program-transform-name=* | --program-transform-name=* \ |
| 1141 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1142 | | --program-transform-n=* | --program-transform-=* \ |
| 1143 | | --program-transform=* | --program-transfor=* \ |
| 1144 | | --program-transfo=* | --program-transf=* \ |
| 1145 | | --program-trans=* | --program-tran=* \ |
| 1146 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1149 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1150 | ac_prev=pdfdir ;; |
| 1151 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1152 | pdfdir=$ac_optarg ;; |
| 1153 | |
| 1154 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1155 | ac_prev=psdir ;; |
| 1156 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1157 | psdir=$ac_optarg ;; |
| 1158 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1159 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1160 | | -silent | --silent | --silen | --sile | --sil) |
| 1161 | silent=yes ;; |
| 1162 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1163 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1164 | ac_prev=sbindir ;; |
| 1165 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1166 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1167 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1168 | |
| 1169 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1170 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1171 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1172 | | --sha | --sh) |
| 1173 | ac_prev=sharedstatedir ;; |
| 1174 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1175 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1176 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1177 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1178 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1179 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1180 | -site | --site | --sit) |
| 1181 | ac_prev=site ;; |
| 1182 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1183 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1184 | |
| 1185 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1186 | ac_prev=srcdir ;; |
| 1187 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1188 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1189 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1190 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1191 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1192 | ac_prev=sysconfdir ;; |
| 1193 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1194 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1195 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1196 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1197 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1198 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1199 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1200 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1201 | |
| 1202 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1203 | verbose=yes ;; |
| 1204 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1205 | -version | --version | --versio | --versi | --vers | -V) |
| 1206 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1207 | |
| 1208 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1209 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1210 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1212 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1213 | ac_useropt_orig=$ac_useropt |
| 1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1215 | case $ac_user_opts in |
| 1216 | *" |
| 1217 | "with_$ac_useropt" |
| 1218 | "*) ;; |
| 1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1220 | ac_unrecognized_sep=', ';; |
| 1221 | esac |
| 1222 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1223 | |
| 1224 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1225 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1226 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1227 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1228 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1229 | ac_useropt_orig=$ac_useropt |
| 1230 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1231 | case $ac_user_opts in |
| 1232 | *" |
| 1233 | "with_$ac_useropt" |
| 1234 | "*) ;; |
| 1235 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1236 | ac_unrecognized_sep=', ';; |
| 1237 | esac |
| 1238 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1239 | |
| 1240 | --x) |
| 1241 | # Obsolete; use --with-x. |
| 1242 | with_x=yes ;; |
| 1243 | |
| 1244 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1245 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1246 | ac_prev=x_includes ;; |
| 1247 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1248 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1249 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | |
| 1251 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1252 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1253 | ac_prev=x_libraries ;; |
| 1254 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1255 | | --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] | 1256 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1257 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1258 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1259 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1260 | ;; |
| 1261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1262 | *=*) |
| 1263 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1264 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1265 | case $ac_envvar in #( |
| 1266 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1267 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1268 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1269 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1270 | export $ac_envvar ;; |
| 1271 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1272 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1273 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1274 | $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] | 1275 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1276 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1277 | : "${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] | 1278 | ;; |
| 1279 | |
| 1280 | esac |
| 1281 | done |
| 1282 | |
| 1283 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1284 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1285 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1286 | fi |
| 1287 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1288 | if test -n "$ac_unrecognized_opts"; then |
| 1289 | case $enable_option_checking in |
| 1290 | no) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1291 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1292 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1293 | esac |
| 1294 | fi |
| 1295 | |
| 1296 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1297 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1298 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1299 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1300 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1301 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1302 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1303 | # Remove trailing slashes. |
| 1304 | case $ac_val in |
| 1305 | */ ) |
| 1306 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1307 | eval $ac_var=\$ac_val;; |
| 1308 | esac |
| 1309 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1310 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1311 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1312 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1313 | esac |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1314 | 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] | 1315 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1316 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1317 | # There might be people who depend on the old broken behavior: `$host' |
| 1318 | # used to hold the argument of --host etc. |
| 1319 | # FIXME: To remove some day. |
| 1320 | build=$build_alias |
| 1321 | host=$host_alias |
| 1322 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1323 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1324 | # FIXME: To remove some day. |
| 1325 | if test "x$host_alias" != x; then |
| 1326 | if test "x$build_alias" = x; then |
| 1327 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1328 | elif test "x$build_alias" != "x$host_alias"; then |
| 1329 | cross_compiling=yes |
| 1330 | fi |
| 1331 | fi |
| 1332 | |
| 1333 | ac_tool_prefix= |
| 1334 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1335 | |
| 1336 | test "$silent" = yes && exec 6>/dev/null |
| 1337 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1339 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1340 | ac_ls_di=`ls -di .` && |
| 1341 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1342 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1343 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1344 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1345 | |
| 1346 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1347 | # Find the source files, if location was not specified. |
| 1348 | if test -z "$srcdir"; then |
| 1349 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1350 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1351 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1352 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1353 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1354 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1355 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1356 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1358 | s//\1/ |
| 1359 | q |
| 1360 | } |
| 1361 | /^X\(\/\/\)[^/].*/{ |
| 1362 | s//\1/ |
| 1363 | q |
| 1364 | } |
| 1365 | /^X\(\/\/\)$/{ |
| 1366 | s//\1/ |
| 1367 | q |
| 1368 | } |
| 1369 | /^X\(\/\).*/{ |
| 1370 | s//\1/ |
| 1371 | q |
| 1372 | } |
| 1373 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1374 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1375 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1376 | srcdir=.. |
| 1377 | fi |
| 1378 | else |
| 1379 | ac_srcdir_defaulted=no |
| 1380 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1381 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1382 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1383 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1385 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1386 | ac_abs_confdir=`( |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1387 | 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] | 1388 | pwd)` |
| 1389 | # When building in place, set srcdir=. |
| 1390 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1391 | srcdir=. |
| 1392 | fi |
| 1393 | # Remove unnecessary trailing slashes from srcdir. |
| 1394 | # Double slashes in file names in object file debugging info |
| 1395 | # mess up M-x gdb in Emacs. |
| 1396 | case $srcdir in |
| 1397 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1398 | esac |
| 1399 | for ac_var in $ac_precious_vars; do |
| 1400 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1401 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1402 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1403 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1404 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1405 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1406 | # |
| 1407 | # Report the --help message. |
| 1408 | # |
| 1409 | if test "$ac_init_help" = "long"; then |
| 1410 | # Omit some internal or obsolete options to make the list less imposing. |
| 1411 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1412 | cat <<_ACEOF |
| 1413 | \`configure' configures this package to adapt to many kinds of systems. |
| 1414 | |
| 1415 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1416 | |
| 1417 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1418 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1419 | |
| 1420 | Defaults for the options are specified in brackets. |
| 1421 | |
| 1422 | Configuration: |
| 1423 | -h, --help display this help and exit |
| 1424 | --help=short display options specific to this package |
| 1425 | --help=recursive display the short help of all the included packages |
| 1426 | -V, --version display version information and exit |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1427 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1428 | --cache-file=FILE cache test results in FILE [disabled] |
| 1429 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1430 | -n, --no-create do not create output files |
| 1431 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1433 | Installation directories: |
| 1434 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1435 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1436 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1437 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1438 | |
| 1439 | By default, \`make install' will install all the files in |
| 1440 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1441 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1442 | for instance \`--prefix=\$HOME'. |
| 1443 | |
| 1444 | For better control, use the options below. |
| 1445 | |
| 1446 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1447 | --bindir=DIR user executables [EPREFIX/bin] |
| 1448 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1449 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1450 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1451 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1452 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1453 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1454 | --includedir=DIR C header files [PREFIX/include] |
| 1455 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1456 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1457 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1458 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1459 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1460 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1461 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1462 | --htmldir=DIR html documentation [DOCDIR] |
| 1463 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1464 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1465 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | _ACEOF |
| 1467 | |
| 1468 | cat <<\_ACEOF |
| 1469 | |
| 1470 | System types: |
| 1471 | --build=BUILD configure for building on BUILD [guessed] |
| 1472 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1473 | _ACEOF |
| 1474 | fi |
| 1475 | |
| 1476 | if test -n "$ac_init_help"; then |
| 1477 | |
| 1478 | cat <<\_ACEOF |
| 1479 | |
| 1480 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1481 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1482 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1483 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1484 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1485 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1486 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1487 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1488 | --enable-symlink-build use symlinks while building instead of hard links |
| 1489 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1490 | --enable-compression enable EXPERIMENTAL compression support |
| 1491 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | --enable-elf-shlibs select ELF shared libraries |
| 1493 | --enable-bsd-shlibs select BSD shared libraries |
| 1494 | --enable-profile build profiling libraries |
| 1495 | --enable-checker build checker libraries |
| 1496 | --enable-jbd-debug enable journal debugging |
| 1497 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1498 | --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] | 1499 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1500 | --disable-libblkid do not build private blkid library |
Eric Sandeen | 7b8912e | 2012-11-27 12:21:56 -0600 | [diff] [blame] | 1501 | --enable-quota enable quota support |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1502 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1503 | --disable-debugfs disable support of debugfs program |
| 1504 | --disable-imager disable support of e2image program |
| 1505 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1506 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | --enable-fsck build fsck wrapper program |
| 1508 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1509 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1510 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1511 | --disable-nls do not use Native Language Support |
| 1512 | --disable-rpath do not hardcode runtime library paths |
| 1513 | |
| 1514 | Optional Packages: |
| 1515 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1516 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1517 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1518 | --with-cc no longer supported, use CC= instead |
| 1519 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1520 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1521 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1522 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1523 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1524 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1525 | --with-included-gettext use the GNU gettext library included here |
| 1526 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1527 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1528 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1529 | |
| 1530 | Some influential environment variables: |
| 1531 | CC C compiler command |
| 1532 | CFLAGS C compiler flags |
| 1533 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1534 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1535 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1536 | 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] | 1537 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1538 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1539 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1540 | |
| 1541 | Use these variables to override the choices made by `configure' or to help |
| 1542 | it to find libraries and programs with nonstandard names/locations. |
| 1543 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1544 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1545 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1546 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | fi |
| 1548 | |
| 1549 | if test "$ac_init_help" = "recursive"; then |
| 1550 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1551 | 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] | 1552 | test -d "$ac_dir" || |
| 1553 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1554 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1555 | ac_builddir=. |
| 1556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1557 | case "$ac_dir" in |
| 1558 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1559 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1560 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1561 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1562 | 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] | 1563 | case $ac_top_builddir_sub in |
| 1564 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1565 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1566 | esac ;; |
| 1567 | esac |
| 1568 | ac_abs_top_builddir=$ac_pwd |
| 1569 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1570 | # for backward compatibility: |
| 1571 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1572 | |
| 1573 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1574 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1575 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1576 | ac_top_srcdir=$ac_top_builddir_sub |
| 1577 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1578 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1579 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1580 | ac_top_srcdir=$srcdir |
| 1581 | ac_abs_top_srcdir=$srcdir ;; |
| 1582 | *) # Relative name. |
| 1583 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1584 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1585 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1586 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1587 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1588 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1589 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1590 | # Check for guested configure. |
| 1591 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1592 | echo && |
| 1593 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1594 | elif test -f "$ac_srcdir/configure"; then |
| 1595 | echo && |
| 1596 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1597 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1598 | $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] | 1599 | fi || ac_status=$? |
| 1600 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1601 | done |
| 1602 | fi |
| 1603 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1604 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1605 | if $ac_init_version; then |
| 1606 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1607 | configure |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1608 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1609 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1610 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1611 | This configure script is free software; the Free Software Foundation |
| 1612 | gives unlimited permission to copy, distribute and modify it. |
| 1613 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1614 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1615 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1616 | |
| 1617 | ## ------------------------ ## |
| 1618 | ## Autoconf initialization. ## |
| 1619 | ## ------------------------ ## |
| 1620 | |
| 1621 | # ac_fn_c_try_compile LINENO |
| 1622 | # -------------------------- |
| 1623 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1624 | ac_fn_c_try_compile () |
| 1625 | { |
| 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1627 | rm -f conftest.$ac_objext |
| 1628 | if { { ac_try="$ac_compile" |
| 1629 | case "(($ac_try" in |
| 1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1631 | *) ac_try_echo=$ac_try;; |
| 1632 | esac |
| 1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1634 | $as_echo "$ac_try_echo"; } >&5 |
| 1635 | (eval "$ac_compile") 2>conftest.err |
| 1636 | ac_status=$? |
| 1637 | if test -s conftest.err; then |
| 1638 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1639 | cat conftest.er1 >&5 |
| 1640 | mv -f conftest.er1 conftest.err |
| 1641 | fi |
| 1642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1643 | test $ac_status = 0; } && { |
| 1644 | test -z "$ac_c_werror_flag" || |
| 1645 | test ! -s conftest.err |
| 1646 | } && test -s conftest.$ac_objext; then : |
| 1647 | ac_retval=0 |
| 1648 | else |
| 1649 | $as_echo "$as_me: failed program was:" >&5 |
| 1650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1651 | |
| 1652 | ac_retval=1 |
| 1653 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1654 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1655 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1656 | |
| 1657 | } # ac_fn_c_try_compile |
| 1658 | |
| 1659 | # ac_fn_c_try_link LINENO |
| 1660 | # ----------------------- |
| 1661 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1662 | ac_fn_c_try_link () |
| 1663 | { |
| 1664 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1665 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1666 | if { { ac_try="$ac_link" |
| 1667 | case "(($ac_try" in |
| 1668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1669 | *) ac_try_echo=$ac_try;; |
| 1670 | esac |
| 1671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1672 | $as_echo "$ac_try_echo"; } >&5 |
| 1673 | (eval "$ac_link") 2>conftest.err |
| 1674 | ac_status=$? |
| 1675 | if test -s conftest.err; then |
| 1676 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1677 | cat conftest.er1 >&5 |
| 1678 | mv -f conftest.er1 conftest.err |
| 1679 | fi |
| 1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1681 | test $ac_status = 0; } && { |
| 1682 | test -z "$ac_c_werror_flag" || |
| 1683 | test ! -s conftest.err |
| 1684 | } && test -s conftest$ac_exeext && { |
| 1685 | test "$cross_compiling" = yes || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1686 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1687 | }; then : |
| 1688 | ac_retval=0 |
| 1689 | else |
| 1690 | $as_echo "$as_me: failed program was:" >&5 |
| 1691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1692 | |
| 1693 | ac_retval=1 |
| 1694 | fi |
| 1695 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1696 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1697 | # interfere with the next link command; also delete a directory that is |
| 1698 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1699 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1701 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1702 | |
| 1703 | } # ac_fn_c_try_link |
| 1704 | |
| 1705 | # ac_fn_c_try_cpp LINENO |
| 1706 | # ---------------------- |
| 1707 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1708 | ac_fn_c_try_cpp () |
| 1709 | { |
| 1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1711 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1712 | case "(($ac_try" in |
| 1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1714 | *) ac_try_echo=$ac_try;; |
| 1715 | esac |
| 1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1717 | $as_echo "$ac_try_echo"; } >&5 |
| 1718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1719 | ac_status=$? |
| 1720 | if test -s conftest.err; then |
| 1721 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1722 | cat conftest.er1 >&5 |
| 1723 | mv -f conftest.er1 conftest.err |
| 1724 | fi |
| 1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1726 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1727 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1728 | test ! -s conftest.err |
| 1729 | }; then : |
| 1730 | ac_retval=0 |
| 1731 | else |
| 1732 | $as_echo "$as_me: failed program was:" >&5 |
| 1733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1734 | |
| 1735 | ac_retval=1 |
| 1736 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1737 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1738 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1739 | |
| 1740 | } # ac_fn_c_try_cpp |
| 1741 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1742 | # ac_fn_c_try_run LINENO |
| 1743 | # ---------------------- |
| 1744 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1745 | # that executables *can* be run. |
| 1746 | ac_fn_c_try_run () |
| 1747 | { |
| 1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1749 | if { { ac_try="$ac_link" |
| 1750 | case "(($ac_try" in |
| 1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1752 | *) ac_try_echo=$ac_try;; |
| 1753 | esac |
| 1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1755 | $as_echo "$ac_try_echo"; } >&5 |
| 1756 | (eval "$ac_link") 2>&5 |
| 1757 | ac_status=$? |
| 1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1759 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1760 | { { case "(($ac_try" in |
| 1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1762 | *) ac_try_echo=$ac_try;; |
| 1763 | esac |
| 1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1765 | $as_echo "$ac_try_echo"; } >&5 |
| 1766 | (eval "$ac_try") 2>&5 |
| 1767 | ac_status=$? |
| 1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1769 | test $ac_status = 0; }; }; then : |
| 1770 | ac_retval=0 |
| 1771 | else |
| 1772 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1773 | $as_echo "$as_me: failed program was:" >&5 |
| 1774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1775 | |
| 1776 | ac_retval=$ac_status |
| 1777 | fi |
| 1778 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1780 | as_fn_set_status $ac_retval |
| 1781 | |
| 1782 | } # ac_fn_c_try_run |
| 1783 | |
| 1784 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1785 | # ------------------------------------------- |
| 1786 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1787 | # variable VAR accordingly. |
| 1788 | ac_fn_c_check_type () |
| 1789 | { |
| 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1792 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1793 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1794 | $as_echo_n "(cached) " >&6 |
| 1795 | else |
| 1796 | eval "$3=no" |
| 1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1798 | /* end confdefs.h. */ |
| 1799 | $4 |
| 1800 | int |
| 1801 | main () |
| 1802 | { |
| 1803 | if (sizeof ($2)) |
| 1804 | return 0; |
| 1805 | ; |
| 1806 | return 0; |
| 1807 | } |
| 1808 | _ACEOF |
| 1809 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1811 | /* end confdefs.h. */ |
| 1812 | $4 |
| 1813 | int |
| 1814 | main () |
| 1815 | { |
| 1816 | if (sizeof (($2))) |
| 1817 | return 0; |
| 1818 | ; |
| 1819 | return 0; |
| 1820 | } |
| 1821 | _ACEOF |
| 1822 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1823 | |
| 1824 | else |
| 1825 | eval "$3=yes" |
| 1826 | fi |
| 1827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1828 | fi |
| 1829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1830 | fi |
| 1831 | eval ac_res=\$$3 |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1833 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1834 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1835 | |
| 1836 | } # ac_fn_c_check_type |
| 1837 | |
| 1838 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1839 | # ------------------------------------------------------- |
| 1840 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1841 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1842 | ac_fn_c_check_header_compile () |
| 1843 | { |
| 1844 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1846 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1847 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1848 | $as_echo_n "(cached) " >&6 |
| 1849 | else |
| 1850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1851 | /* end confdefs.h. */ |
| 1852 | $4 |
| 1853 | #include <$2> |
| 1854 | _ACEOF |
| 1855 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1856 | eval "$3=yes" |
| 1857 | else |
| 1858 | eval "$3=no" |
| 1859 | fi |
| 1860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1861 | fi |
| 1862 | eval ac_res=\$$3 |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1864 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1865 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1866 | |
| 1867 | } # ac_fn_c_check_header_compile |
| 1868 | |
| 1869 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1870 | # ---------------------------------- |
| 1871 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1872 | ac_fn_c_check_func () |
| 1873 | { |
| 1874 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1876 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1877 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1878 | $as_echo_n "(cached) " >&6 |
| 1879 | else |
| 1880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1881 | /* end confdefs.h. */ |
| 1882 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1884 | #define $2 innocuous_$2 |
| 1885 | |
| 1886 | /* System header to define __stub macros and hopefully few prototypes, |
| 1887 | which can conflict with char $2 (); below. |
| 1888 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1889 | <limits.h> exists even on freestanding compilers. */ |
| 1890 | |
| 1891 | #ifdef __STDC__ |
| 1892 | # include <limits.h> |
| 1893 | #else |
| 1894 | # include <assert.h> |
| 1895 | #endif |
| 1896 | |
| 1897 | #undef $2 |
| 1898 | |
| 1899 | /* Override any GCC internal prototype to avoid an error. |
| 1900 | Use char because int might match the return type of a GCC |
| 1901 | builtin and then its argument prototype would still apply. */ |
| 1902 | #ifdef __cplusplus |
| 1903 | extern "C" |
| 1904 | #endif |
| 1905 | char $2 (); |
| 1906 | /* The GNU C library defines this for functions which it implements |
| 1907 | to always fail with ENOSYS. Some functions are actually named |
| 1908 | something starting with __ and the normal name is an alias. */ |
| 1909 | #if defined __stub_$2 || defined __stub___$2 |
| 1910 | choke me |
| 1911 | #endif |
| 1912 | |
| 1913 | int |
| 1914 | main () |
| 1915 | { |
| 1916 | return $2 (); |
| 1917 | ; |
| 1918 | return 0; |
| 1919 | } |
| 1920 | _ACEOF |
| 1921 | if ac_fn_c_try_link "$LINENO"; then : |
| 1922 | eval "$3=yes" |
| 1923 | else |
| 1924 | eval "$3=no" |
| 1925 | fi |
| 1926 | rm -f core conftest.err conftest.$ac_objext \ |
| 1927 | conftest$ac_exeext conftest.$ac_ext |
| 1928 | fi |
| 1929 | eval ac_res=\$$3 |
| 1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1931 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1932 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1933 | |
| 1934 | } # ac_fn_c_check_func |
| 1935 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1936 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1937 | # ------------------------------------------------------- |
| 1938 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1939 | # the include files in INCLUDES and setting the cache variable VAR |
| 1940 | # accordingly. |
| 1941 | ac_fn_c_check_header_mongrel () |
| 1942 | { |
| 1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1944 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1946 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1947 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1948 | $as_echo_n "(cached) " >&6 |
| 1949 | fi |
| 1950 | eval ac_res=\$$3 |
| 1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1952 | $as_echo "$ac_res" >&6; } |
| 1953 | else |
| 1954 | # Is the header compilable? |
| 1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1956 | $as_echo_n "checking $2 usability... " >&6; } |
| 1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1958 | /* end confdefs.h. */ |
| 1959 | $4 |
| 1960 | #include <$2> |
| 1961 | _ACEOF |
| 1962 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1963 | ac_header_compiler=yes |
| 1964 | else |
| 1965 | ac_header_compiler=no |
| 1966 | fi |
| 1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1969 | $as_echo "$ac_header_compiler" >&6; } |
| 1970 | |
| 1971 | # Is the header present? |
| 1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1973 | $as_echo_n "checking $2 presence... " >&6; } |
| 1974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1975 | /* end confdefs.h. */ |
| 1976 | #include <$2> |
| 1977 | _ACEOF |
| 1978 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1979 | ac_header_preproc=yes |
| 1980 | else |
| 1981 | ac_header_preproc=no |
| 1982 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1983 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1985 | $as_echo "$ac_header_preproc" >&6; } |
| 1986 | |
| 1987 | # So? What about this header? |
| 1988 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1989 | yes:no: ) |
| 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1991 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1993 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1994 | ;; |
| 1995 | no:yes:* ) |
| 1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1997 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1999 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2001 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2003 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2005 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2006 | ;; |
| 2007 | esac |
| 2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2009 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2010 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2011 | $as_echo_n "(cached) " >&6 |
| 2012 | else |
| 2013 | eval "$3=\$ac_header_compiler" |
| 2014 | fi |
| 2015 | eval ac_res=\$$3 |
| 2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2017 | $as_echo "$ac_res" >&6; } |
| 2018 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2019 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2020 | |
| 2021 | } # ac_fn_c_check_header_mongrel |
| 2022 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2023 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2024 | # -------------------------------------------- |
| 2025 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2026 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2027 | # computed |
| 2028 | ac_fn_c_compute_int () |
| 2029 | { |
| 2030 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2031 | if test "$cross_compiling" = yes; then |
| 2032 | # Depending upon the size, compute the lo and hi bounds. |
| 2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2034 | /* end confdefs.h. */ |
| 2035 | $4 |
| 2036 | int |
| 2037 | main () |
| 2038 | { |
| 2039 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2040 | test_array [0] = 0; |
| 2041 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2042 | |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
| 2047 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2048 | ac_lo=0 ac_mid=0 |
| 2049 | while :; do |
| 2050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2051 | /* end confdefs.h. */ |
| 2052 | $4 |
| 2053 | int |
| 2054 | main () |
| 2055 | { |
| 2056 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2057 | test_array [0] = 0; |
| 2058 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2059 | |
| 2060 | ; |
| 2061 | return 0; |
| 2062 | } |
| 2063 | _ACEOF |
| 2064 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2065 | ac_hi=$ac_mid; break |
| 2066 | else |
| 2067 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2068 | if test $ac_lo -le $ac_mid; then |
| 2069 | ac_lo= ac_hi= |
| 2070 | break |
| 2071 | fi |
| 2072 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2073 | fi |
| 2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2075 | done |
| 2076 | else |
| 2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2078 | /* end confdefs.h. */ |
| 2079 | $4 |
| 2080 | int |
| 2081 | main () |
| 2082 | { |
| 2083 | static int test_array [1 - 2 * !(($2) < 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2084 | test_array [0] = 0; |
| 2085 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2086 | |
| 2087 | ; |
| 2088 | return 0; |
| 2089 | } |
| 2090 | _ACEOF |
| 2091 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2092 | ac_hi=-1 ac_mid=-1 |
| 2093 | while :; do |
| 2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2095 | /* end confdefs.h. */ |
| 2096 | $4 |
| 2097 | int |
| 2098 | main () |
| 2099 | { |
| 2100 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2101 | test_array [0] = 0; |
| 2102 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2103 | |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2109 | ac_lo=$ac_mid; break |
| 2110 | else |
| 2111 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2112 | if test $ac_mid -le $ac_hi; then |
| 2113 | ac_lo= ac_hi= |
| 2114 | break |
| 2115 | fi |
| 2116 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2117 | fi |
| 2118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2119 | done |
| 2120 | else |
| 2121 | ac_lo= ac_hi= |
| 2122 | fi |
| 2123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2124 | fi |
| 2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2126 | # Binary search between lo and hi bounds. |
| 2127 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2128 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2130 | /* end confdefs.h. */ |
| 2131 | $4 |
| 2132 | int |
| 2133 | main () |
| 2134 | { |
| 2135 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2136 | test_array [0] = 0; |
| 2137 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2138 | |
| 2139 | ; |
| 2140 | return 0; |
| 2141 | } |
| 2142 | _ACEOF |
| 2143 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2144 | ac_hi=$ac_mid |
| 2145 | else |
| 2146 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2147 | fi |
| 2148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2149 | done |
| 2150 | case $ac_lo in #(( |
| 2151 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2152 | '') ac_retval=1 ;; |
| 2153 | esac |
| 2154 | else |
| 2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2156 | /* end confdefs.h. */ |
| 2157 | $4 |
| 2158 | static long int longval () { return $2; } |
| 2159 | static unsigned long int ulongval () { return $2; } |
| 2160 | #include <stdio.h> |
| 2161 | #include <stdlib.h> |
| 2162 | int |
| 2163 | main () |
| 2164 | { |
| 2165 | |
| 2166 | FILE *f = fopen ("conftest.val", "w"); |
| 2167 | if (! f) |
| 2168 | return 1; |
| 2169 | if (($2) < 0) |
| 2170 | { |
| 2171 | long int i = longval (); |
| 2172 | if (i != ($2)) |
| 2173 | return 1; |
| 2174 | fprintf (f, "%ld", i); |
| 2175 | } |
| 2176 | else |
| 2177 | { |
| 2178 | unsigned long int i = ulongval (); |
| 2179 | if (i != ($2)) |
| 2180 | return 1; |
| 2181 | fprintf (f, "%lu", i); |
| 2182 | } |
| 2183 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2184 | on some platforms. */ |
| 2185 | return ferror (f) || fclose (f) != 0; |
| 2186 | |
| 2187 | ; |
| 2188 | return 0; |
| 2189 | } |
| 2190 | _ACEOF |
| 2191 | if ac_fn_c_try_run "$LINENO"; then : |
| 2192 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2193 | else |
| 2194 | ac_retval=1 |
| 2195 | fi |
| 2196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2197 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2198 | rm -f conftest.val |
| 2199 | |
| 2200 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2201 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2202 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2203 | |
| 2204 | } # ac_fn_c_compute_int |
| 2205 | |
| 2206 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2207 | # ---------------------------------------------------- |
| 2208 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2209 | # INCLUDES, setting cache variable VAR accordingly. |
| 2210 | ac_fn_c_check_member () |
| 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 for $2.$3" >&5 |
| 2214 | $as_echo_n "checking for $2.$3... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2215 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2216 | $as_echo_n "(cached) " >&6 |
| 2217 | else |
| 2218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2219 | /* end confdefs.h. */ |
| 2220 | $5 |
| 2221 | int |
| 2222 | main () |
| 2223 | { |
| 2224 | static $2 ac_aggr; |
| 2225 | if (ac_aggr.$3) |
| 2226 | return 0; |
| 2227 | ; |
| 2228 | return 0; |
| 2229 | } |
| 2230 | _ACEOF |
| 2231 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2232 | eval "$4=yes" |
| 2233 | else |
| 2234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2235 | /* end confdefs.h. */ |
| 2236 | $5 |
| 2237 | int |
| 2238 | main () |
| 2239 | { |
| 2240 | static $2 ac_aggr; |
| 2241 | if (sizeof ac_aggr.$3) |
| 2242 | return 0; |
| 2243 | ; |
| 2244 | return 0; |
| 2245 | } |
| 2246 | _ACEOF |
| 2247 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2248 | eval "$4=yes" |
| 2249 | else |
| 2250 | eval "$4=no" |
| 2251 | fi |
| 2252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2253 | fi |
| 2254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2255 | fi |
| 2256 | eval ac_res=\$$4 |
| 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2258 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2259 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2260 | |
| 2261 | } # ac_fn_c_check_member |
| 2262 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2263 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2264 | # --------------------------------------------- |
| 2265 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2266 | # accordingly. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2267 | ac_fn_c_check_decl () |
| 2268 | { |
| 2269 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2270 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2271 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2273 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2274 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2275 | $as_echo_n "(cached) " >&6 |
| 2276 | else |
| 2277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2278 | /* end confdefs.h. */ |
| 2279 | $4 |
| 2280 | int |
| 2281 | main () |
| 2282 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2283 | #ifndef $as_decl_name |
| 2284 | #ifdef __cplusplus |
| 2285 | (void) $as_decl_use; |
| 2286 | #else |
| 2287 | (void) $as_decl_name; |
| 2288 | #endif |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2289 | #endif |
| 2290 | |
| 2291 | ; |
| 2292 | return 0; |
| 2293 | } |
| 2294 | _ACEOF |
| 2295 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2296 | eval "$3=yes" |
| 2297 | else |
| 2298 | eval "$3=no" |
| 2299 | fi |
| 2300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2301 | fi |
| 2302 | eval ac_res=\$$3 |
| 2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2304 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2305 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2306 | |
| 2307 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2308 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2309 | This file contains any messages produced by compilers while |
| 2310 | running configure, to aid debugging if configure makes a mistake. |
| 2311 | |
| 2312 | It was created by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2313 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2314 | |
| 2315 | $ $0 $@ |
| 2316 | |
| 2317 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2318 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2319 | { |
| 2320 | cat <<_ASUNAME |
| 2321 | ## --------- ## |
| 2322 | ## Platform. ## |
| 2323 | ## --------- ## |
| 2324 | |
| 2325 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2326 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2327 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2328 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2329 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2330 | |
| 2331 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2332 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2333 | |
| 2334 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2335 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2336 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2337 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2338 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2339 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2340 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2341 | |
| 2342 | _ASUNAME |
| 2343 | |
| 2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2345 | for as_dir in $PATH |
| 2346 | do |
| 2347 | IFS=$as_save_IFS |
| 2348 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2349 | $as_echo "PATH: $as_dir" |
| 2350 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2351 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2352 | |
| 2353 | } >&5 |
| 2354 | |
| 2355 | cat >&5 <<_ACEOF |
| 2356 | |
| 2357 | |
| 2358 | ## ----------- ## |
| 2359 | ## Core tests. ## |
| 2360 | ## ----------- ## |
| 2361 | |
| 2362 | _ACEOF |
| 2363 | |
| 2364 | |
| 2365 | # Keep a trace of the command line. |
| 2366 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2367 | # Strip out --silent because we don't want to record it for future runs. |
| 2368 | # Also quote any args containing shell meta-characters. |
| 2369 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2370 | ac_configure_args= |
| 2371 | ac_configure_args0= |
| 2372 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2373 | ac_must_keep_next=false |
| 2374 | for ac_pass in 1 2 |
| 2375 | do |
| 2376 | for ac_arg |
| 2377 | do |
| 2378 | case $ac_arg in |
| 2379 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2380 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2381 | | -silent | --silent | --silen | --sile | --sil) |
| 2382 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2383 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2384 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2385 | esac |
| 2386 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2387 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2388 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2389 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2390 | if test $ac_must_keep_next = true; then |
| 2391 | ac_must_keep_next=false # Got value, back to normal. |
| 2392 | else |
| 2393 | case $ac_arg in |
| 2394 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2395 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2396 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2397 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2398 | case "$ac_configure_args0 " in |
| 2399 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2400 | esac |
| 2401 | ;; |
| 2402 | -* ) ac_must_keep_next=true ;; |
| 2403 | esac |
| 2404 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2405 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2406 | ;; |
| 2407 | esac |
| 2408 | done |
| 2409 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2410 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2411 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2412 | |
| 2413 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2414 | # config.log. We remove comments because anyway the quotes in there |
| 2415 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2416 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2417 | # 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] | 2418 | trap 'exit_status=$? |
| 2419 | # Save into config.log some information that might help in debugging. |
| 2420 | { |
| 2421 | echo |
| 2422 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2423 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2424 | ## Cache variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2425 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2426 | echo |
| 2427 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2428 | ( |
| 2429 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2430 | eval ac_val=\$$ac_var |
| 2431 | case $ac_val in #( |
| 2432 | *${as_nl}*) |
| 2433 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2434 | *_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] | 2435 | $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] | 2436 | esac |
| 2437 | case $ac_var in #( |
| 2438 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2439 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2440 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2441 | esac ;; |
| 2442 | esac |
| 2443 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2444 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2445 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2446 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2447 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2448 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2449 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2450 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2451 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2454 | esac | |
| 2455 | sort |
| 2456 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2457 | echo |
| 2458 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2459 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | ## Output variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2461 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2462 | echo |
| 2463 | for ac_var in $ac_subst_vars |
| 2464 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2465 | eval ac_val=\$$ac_var |
| 2466 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2467 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2468 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2469 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | done | sort |
| 2471 | echo |
| 2472 | |
| 2473 | if test -n "$ac_subst_files"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2474 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | ## File substitutions. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2476 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2477 | echo |
| 2478 | for ac_var in $ac_subst_files |
| 2479 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2480 | eval ac_val=\$$ac_var |
| 2481 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2482 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2483 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2484 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2485 | done | sort |
| 2486 | echo |
| 2487 | fi |
| 2488 | |
| 2489 | if test -s confdefs.h; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2490 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | ## confdefs.h. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2492 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2493 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2494 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2495 | echo |
| 2496 | fi |
| 2497 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2498 | $as_echo "$as_me: caught signal $ac_signal" |
| 2499 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2500 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2501 | rm -f core *.core core.conftest.* && |
| 2502 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2503 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2504 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2505 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2506 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2507 | done |
| 2508 | ac_signal=0 |
| 2509 | |
| 2510 | # 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] | 2511 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2512 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2513 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2514 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2515 | # Predefined preprocessor variables. |
| 2516 | |
| 2517 | cat >>confdefs.h <<_ACEOF |
| 2518 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2519 | _ACEOF |
| 2520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2521 | cat >>confdefs.h <<_ACEOF |
| 2522 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2523 | _ACEOF |
| 2524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | cat >>confdefs.h <<_ACEOF |
| 2526 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2527 | _ACEOF |
| 2528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2529 | cat >>confdefs.h <<_ACEOF |
| 2530 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2531 | _ACEOF |
| 2532 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2533 | cat >>confdefs.h <<_ACEOF |
| 2534 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2535 | _ACEOF |
| 2536 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2537 | cat >>confdefs.h <<_ACEOF |
| 2538 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2539 | _ACEOF |
| 2540 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2541 | |
| 2542 | # 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] | 2543 | # Prefer an explicitly selected file to automatically selected ones. |
| 2544 | ac_site_file1=NONE |
| 2545 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2546 | if test -n "$CONFIG_SITE"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2547 | # We do not want a PATH search for config.site. |
| 2548 | case $CONFIG_SITE in #(( |
| 2549 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2550 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2551 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2552 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2553 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2554 | ac_site_file1=$prefix/share/config.site |
| 2555 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2556 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2557 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2558 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2559 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2560 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2561 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2562 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2563 | 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] | 2564 | { $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] | 2565 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2566 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2567 | . "$ac_site_file" \ |
| 2568 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2570 | as_fn_error $? "failed to load site script $ac_site_file |
| 2571 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2572 | fi |
| 2573 | done |
| 2574 | |
| 2575 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2576 | # Some versions of bash will fail to source /dev/null (special files |
| 2577 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2578 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2579 | { $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] | 2580 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2581 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2582 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2583 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2584 | esac |
| 2585 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2586 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2587 | { $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] | 2588 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2589 | >$cache_file |
| 2590 | fi |
| 2591 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2592 | as_fn_append ac_header_list " stdlib.h" |
| 2593 | as_fn_append ac_header_list " unistd.h" |
| 2594 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2595 | # Check that the precious variables saved in the cache have kept the same |
| 2596 | # value. |
| 2597 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2598 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2599 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2600 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2601 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2602 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2603 | case $ac_old_set,$ac_new_set in |
| 2604 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2605 | { $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] | 2606 | $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] | 2607 | ac_cache_corrupted=: ;; |
| 2608 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2609 | { $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] | 2610 | $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] | 2611 | ac_cache_corrupted=: ;; |
| 2612 | ,);; |
| 2613 | *) |
| 2614 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2615 | # differences in whitespace do not lead to failure. |
| 2616 | ac_old_val_w=`echo x $ac_old_val` |
| 2617 | ac_new_val_w=`echo x $ac_new_val` |
| 2618 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2619 | { $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] | 2620 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2621 | ac_cache_corrupted=: |
| 2622 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2623 | { $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] | 2624 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2625 | eval $ac_var=\$ac_old_val |
| 2626 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2627 | { $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] | 2628 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2629 | { $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] | 2630 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2631 | fi;; |
| 2632 | esac |
| 2633 | # Pass precious variables to config.status. |
| 2634 | if test "$ac_new_set" = set; then |
| 2635 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2636 | *\'*) 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] | 2637 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2638 | esac |
| 2639 | case " $ac_configure_args " in |
| 2640 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2641 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2642 | esac |
| 2643 | fi |
| 2644 | done |
| 2645 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2646 | { $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] | 2647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2648 | { $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] | 2649 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2650 | 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] | 2651 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2652 | ## -------------------- ## |
| 2653 | ## Main body of script. ## |
| 2654 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2655 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2656 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2657 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2661 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2662 | |
| 2663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2664 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2665 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2666 | if test -f "$ac_dir/install-sh"; then |
| 2667 | ac_aux_dir=$ac_dir |
| 2668 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2669 | break |
| 2670 | elif test -f "$ac_dir/install.sh"; then |
| 2671 | ac_aux_dir=$ac_dir |
| 2672 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2673 | break |
| 2674 | elif test -f "$ac_dir/shtool"; then |
| 2675 | ac_aux_dir=$ac_dir |
| 2676 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2677 | break |
| 2678 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2679 | done |
| 2680 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2681 | 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] | 2682 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2683 | |
| 2684 | # These three variables are undocumented and unsupported, |
| 2685 | # and are intended to be withdrawn in a future Autoconf release. |
| 2686 | # They can cause serious problems if a builder's source tree is in a directory |
| 2687 | # whose full name contains unusual characters. |
| 2688 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2689 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2690 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2691 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2692 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2693 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2694 | |
| 2695 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2696 | MCONFIG=./MCONFIG |
| 2697 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2698 | BINARY_TYPE=bin |
| 2699 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2700 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2701 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2702 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2703 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2704 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2705 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2706 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2707 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2708 | E2FSPROGS_YEAR=$YEAR |
| 2709 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2710 | E2FSPROGS_YEAR=19$YEAR |
| 2711 | else |
| 2712 | E2FSPROGS_YEAR=20$YEAR |
| 2713 | fi |
| 2714 | |
| 2715 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2716 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2717 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2718 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2719 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2720 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2721 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2722 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2723 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2724 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2725 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2726 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2727 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2728 | *) { $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] | 2729 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2730 | esac |
| 2731 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2732 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2733 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2734 | |
| 2735 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2736 | |
| 2737 | case $E2FSPROGS_VERSION in |
| 2738 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2739 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2740 | ;; |
| 2741 | *) |
| 2742 | E2FSPROGS_PKGVER="$base_ver" |
| 2743 | ;; |
| 2744 | esac |
| 2745 | |
| 2746 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2747 | { $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] | 2748 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2749 | { $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] | 2750 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2752 | |
| 2753 | |
| 2754 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2755 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame^] | 2756 | WITH_DIET_LIBC= |
| 2757 | |
| 2758 | # Check whether --with-diet-libc was given. |
| 2759 | if test "${with_diet_libc+set}" = set; then : |
| 2760 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2761 | WITH_DIET_LIBC=yes |
| 2762 | if test -z "$LIBS" |
| 2763 | then |
| 2764 | LIBS="-lcompat" |
| 2765 | else |
| 2766 | LIBS="$LIBS -lcompat" |
| 2767 | fi |
| 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2769 | $as_echo "CC=$CC" >&6; } |
| 2770 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2771 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2772 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2773 | 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] | 2774 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2775 | { $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] | 2776 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2777 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2778 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2779 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2780 | ac_build_alias=$build_alias |
| 2781 | test "x$ac_build_alias" = x && |
| 2782 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2783 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2784 | 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] | 2785 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2786 | 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] | 2787 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2788 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2789 | { $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] | 2790 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2791 | case $ac_cv_build in |
| 2792 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2793 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2794 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2795 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2796 | ac_save_IFS=$IFS; IFS='-' |
| 2797 | set x $ac_cv_build |
| 2798 | shift |
| 2799 | build_cpu=$1 |
| 2800 | build_vendor=$2 |
| 2801 | shift; shift |
| 2802 | # Remember, the first character of IFS is used to create $*, |
| 2803 | # except with old shells: |
| 2804 | build_os=$* |
| 2805 | IFS=$ac_save_IFS |
| 2806 | 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] | 2807 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2808 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2809 | { $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] | 2810 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2811 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2812 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2813 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2814 | if test "x$host_alias" = x; then |
| 2815 | ac_cv_host=$ac_cv_build |
| 2816 | else |
| 2817 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2818 | 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] | 2819 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2820 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2821 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2822 | { $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] | 2823 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2824 | case $ac_cv_host in |
| 2825 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2826 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2827 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2829 | ac_save_IFS=$IFS; IFS='-' |
| 2830 | set x $ac_cv_host |
| 2831 | shift |
| 2832 | host_cpu=$1 |
| 2833 | host_vendor=$2 |
| 2834 | shift; shift |
| 2835 | # Remember, the first character of IFS is used to create $*, |
| 2836 | # except with old shells: |
| 2837 | host_os=$* |
| 2838 | IFS=$ac_save_IFS |
| 2839 | 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] | 2840 | |
| 2841 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2842 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2843 | ac_ext=c |
| 2844 | ac_cpp='$CPP $CPPFLAGS' |
| 2845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2848 | if test -n "$ac_tool_prefix"; then |
| 2849 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2850 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2851 | { $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] | 2852 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2853 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2854 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2855 | else |
| 2856 | if test -n "$CC"; then |
| 2857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2858 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2860 | for as_dir in $PATH |
| 2861 | do |
| 2862 | IFS=$as_save_IFS |
| 2863 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2866 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2867 | $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] | 2868 | break 2 |
| 2869 | fi |
| 2870 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2871 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2872 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2873 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2874 | fi |
| 2875 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2876 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2877 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2879 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2880 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2882 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2883 | fi |
| 2884 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2885 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2886 | fi |
| 2887 | if test -z "$ac_cv_prog_CC"; then |
| 2888 | ac_ct_CC=$CC |
| 2889 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2890 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2891 | { $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] | 2892 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2893 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2894 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2895 | else |
| 2896 | if test -n "$ac_ct_CC"; then |
| 2897 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2898 | else |
| 2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2900 | for as_dir in $PATH |
| 2901 | do |
| 2902 | IFS=$as_save_IFS |
| 2903 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2904 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2906 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2907 | $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] | 2908 | break 2 |
| 2909 | fi |
| 2910 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2911 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2912 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2913 | |
| 2914 | fi |
| 2915 | fi |
| 2916 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2917 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2918 | { $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] | 2919 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2920 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2922 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2923 | fi |
| 2924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2925 | if test "x$ac_ct_CC" = x; then |
| 2926 | CC="" |
| 2927 | else |
| 2928 | case $cross_compiling:$ac_tool_warned in |
| 2929 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2930 | { $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] | 2931 | $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] | 2932 | ac_tool_warned=yes ;; |
| 2933 | esac |
| 2934 | CC=$ac_ct_CC |
| 2935 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | else |
| 2937 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2938 | fi |
| 2939 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2940 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2941 | if test -n "$ac_tool_prefix"; then |
| 2942 | # 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] | 2943 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2944 | { $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] | 2945 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2946 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2947 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2948 | else |
| 2949 | if test -n "$CC"; then |
| 2950 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2951 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2953 | for as_dir in $PATH |
| 2954 | do |
| 2955 | IFS=$as_save_IFS |
| 2956 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2959 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2960 | $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] | 2961 | break 2 |
| 2962 | fi |
| 2963 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2964 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2965 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2966 | |
| 2967 | fi |
| 2968 | fi |
| 2969 | CC=$ac_cv_prog_CC |
| 2970 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2972 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2973 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2975 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2976 | fi |
| 2977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2979 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | fi |
| 2981 | if test -z "$CC"; then |
| 2982 | # Extract the first word of "cc", so it can be a program name with args. |
| 2983 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2984 | { $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] | 2985 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2986 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2987 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2988 | else |
| 2989 | if test -n "$CC"; then |
| 2990 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2991 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2992 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2994 | for as_dir in $PATH |
| 2995 | do |
| 2996 | IFS=$as_save_IFS |
| 2997 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3000 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3001 | ac_prog_rejected=yes |
| 3002 | continue |
| 3003 | fi |
| 3004 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3005 | $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] | 3006 | break 2 |
| 3007 | fi |
| 3008 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3009 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3010 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3012 | if test $ac_prog_rejected = yes; then |
| 3013 | # We found a bogon in the path, so make sure we never use it. |
| 3014 | set dummy $ac_cv_prog_CC |
| 3015 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3016 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3017 | # We chose a different compiler from the bogus one. |
| 3018 | # However, it has the same basename, so the bogon will be chosen |
| 3019 | # first if we set CC to just the basename; use the full file name. |
| 3020 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3022 | fi |
| 3023 | fi |
| 3024 | fi |
| 3025 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3026 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3027 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3029 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3030 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3032 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3033 | fi |
| 3034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3035 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3036 | fi |
| 3037 | if test -z "$CC"; then |
| 3038 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3039 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3040 | do |
| 3041 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3042 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3043 | { $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] | 3044 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3045 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3046 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3047 | else |
| 3048 | if test -n "$CC"; then |
| 3049 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3050 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3052 | for as_dir in $PATH |
| 3053 | do |
| 3054 | IFS=$as_save_IFS |
| 3055 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3056 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3058 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3059 | $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] | 3060 | break 2 |
| 3061 | fi |
| 3062 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3063 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3064 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3066 | fi |
| 3067 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3068 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3069 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3071 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3072 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3074 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3075 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3077 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3078 | test -n "$CC" && break |
| 3079 | done |
| 3080 | fi |
| 3081 | if test -z "$CC"; then |
| 3082 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3083 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3084 | do |
| 3085 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3086 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3087 | { $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] | 3088 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3089 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3090 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | else |
| 3092 | if test -n "$ac_ct_CC"; then |
| 3093 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3094 | else |
| 3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3096 | for as_dir in $PATH |
| 3097 | do |
| 3098 | IFS=$as_save_IFS |
| 3099 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3100 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3102 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3103 | $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] | 3104 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3105 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3107 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3108 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3109 | |
| 3110 | fi |
| 3111 | fi |
| 3112 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3113 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3114 | { $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] | 3115 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3116 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3118 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3119 | fi |
| 3120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3121 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3122 | test -n "$ac_ct_CC" && break |
| 3123 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3125 | if test "x$ac_ct_CC" = x; then |
| 3126 | CC="" |
| 3127 | else |
| 3128 | case $cross_compiling:$ac_tool_warned in |
| 3129 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3130 | { $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] | 3131 | $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] | 3132 | ac_tool_warned=yes ;; |
| 3133 | esac |
| 3134 | CC=$ac_ct_CC |
| 3135 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3136 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3138 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3139 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3140 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3141 | 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] | 3142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3143 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3144 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3145 | |
| 3146 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3147 | $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] | 3148 | set X $ac_compile |
| 3149 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3150 | for ac_option in --version -v -V -qversion; do |
| 3151 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3152 | case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3157 | $as_echo "$ac_try_echo"; } >&5 |
| 3158 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3159 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3160 | if test -s conftest.err; then |
| 3161 | sed '10a\ |
| 3162 | ... rest of stderr output deleted ... |
| 3163 | 10q' conftest.err >conftest.er1 |
| 3164 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3165 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3166 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3168 | test $ac_status = 0; } |
| 3169 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3170 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3174 | int |
| 3175 | main () |
| 3176 | { |
| 3177 | |
| 3178 | ; |
| 3179 | return 0; |
| 3180 | } |
| 3181 | _ACEOF |
| 3182 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3183 | 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] | 3184 | # Try to create an executable without -o first, disregard a.out. |
| 3185 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3186 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3188 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3189 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3190 | |
| 3191 | # The possible output files: |
| 3192 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3194 | ac_rmfiles= |
| 3195 | for ac_file in $ac_files |
| 3196 | do |
| 3197 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3198 | *.$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] | 3199 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3200 | esac |
| 3201 | done |
| 3202 | rm -f $ac_rmfiles |
| 3203 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3204 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3205 | case "(($ac_try" in |
| 3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3207 | *) ac_try_echo=$ac_try;; |
| 3208 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3210 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3211 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3212 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3214 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3215 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3216 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3217 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3218 | # so that the user can short-circuit this test for compilers unknown to |
| 3219 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3220 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3221 | do |
| 3222 | test -f "$ac_file" || continue |
| 3223 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3224 | *.$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] | 3225 | ;; |
| 3226 | [ab].out ) |
| 3227 | # We found the default executable, but exeext='' is most |
| 3228 | # certainly right. |
| 3229 | break;; |
| 3230 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3231 | 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] | 3232 | then :; else |
| 3233 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3234 | fi |
| 3235 | # We set ac_cv_exeext here because the later test for it is not |
| 3236 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3237 | # argument, so we may need to know it at that point already. |
| 3238 | # Even if this section looks crufty: it has the advantage of |
| 3239 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3240 | break;; |
| 3241 | * ) |
| 3242 | break;; |
| 3243 | esac |
| 3244 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3245 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3246 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3247 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3248 | ac_file='' |
| 3249 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3250 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3252 | $as_echo "no" >&6; } |
| 3253 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3255 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3256 | { { $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] | 3257 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3258 | as_fn_error 77 "C compiler cannot create executables |
| 3259 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3260 | else |
| 3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3262 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3263 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3265 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3267 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3269 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3270 | 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] | 3271 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3272 | { $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] | 3273 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3274 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3275 | case "(($ac_try" in |
| 3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3277 | *) ac_try_echo=$ac_try;; |
| 3278 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3280 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3281 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3282 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3284 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3285 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3286 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3287 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3288 | # `rm'. |
| 3289 | for ac_file in conftest.exe conftest conftest.*; do |
| 3290 | test -f "$ac_file" || continue |
| 3291 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3292 | *.$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] | 3293 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3294 | break;; |
| 3295 | * ) break;; |
| 3296 | esac |
| 3297 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3298 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3299 | { { $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] | 3300 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3301 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3302 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3303 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3304 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3305 | { $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] | 3306 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3307 | |
| 3308 | rm -f conftest.$ac_ext |
| 3309 | EXEEXT=$ac_cv_exeext |
| 3310 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3312 | /* end confdefs.h. */ |
| 3313 | #include <stdio.h> |
| 3314 | int |
| 3315 | main () |
| 3316 | { |
| 3317 | FILE *f = fopen ("conftest.out", "w"); |
| 3318 | return ferror (f) || fclose (f) != 0; |
| 3319 | |
| 3320 | ; |
| 3321 | return 0; |
| 3322 | } |
| 3323 | _ACEOF |
| 3324 | ac_clean_files="$ac_clean_files conftest.out" |
| 3325 | # Check that the compiler produces executables we can run. If not, either |
| 3326 | # the compiler is broken, or we cross compile. |
| 3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3328 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3329 | if test "$cross_compiling" != yes; then |
| 3330 | { { ac_try="$ac_link" |
| 3331 | case "(($ac_try" in |
| 3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3333 | *) ac_try_echo=$ac_try;; |
| 3334 | esac |
| 3335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3336 | $as_echo "$ac_try_echo"; } >&5 |
| 3337 | (eval "$ac_link") 2>&5 |
| 3338 | ac_status=$? |
| 3339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3340 | test $ac_status = 0; } |
| 3341 | if { ac_try='./conftest$ac_cv_exeext' |
| 3342 | { { case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3347 | $as_echo "$ac_try_echo"; } >&5 |
| 3348 | (eval "$ac_try") 2>&5 |
| 3349 | ac_status=$? |
| 3350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3351 | test $ac_status = 0; }; }; then |
| 3352 | cross_compiling=no |
| 3353 | else |
| 3354 | if test "$cross_compiling" = maybe; then |
| 3355 | cross_compiling=yes |
| 3356 | else |
| 3357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3359 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3360 | If you meant to cross compile, use \`--host'. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3361 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3362 | fi |
| 3363 | fi |
| 3364 | fi |
| 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3366 | $as_echo "$cross_compiling" >&6; } |
| 3367 | |
| 3368 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3369 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3370 | { $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] | 3371 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3372 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3373 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3374 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3376 | /* end confdefs.h. */ |
| 3377 | |
| 3378 | int |
| 3379 | main () |
| 3380 | { |
| 3381 | |
| 3382 | ; |
| 3383 | return 0; |
| 3384 | } |
| 3385 | _ACEOF |
| 3386 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3387 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3388 | case "(($ac_try" in |
| 3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3390 | *) ac_try_echo=$ac_try;; |
| 3391 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3392 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3393 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3394 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3395 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3397 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3398 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3399 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3400 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3401 | *.$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] | 3402 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3403 | break;; |
| 3404 | esac |
| 3405 | done |
| 3406 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3407 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3409 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3410 | { { $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] | 3411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3412 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3413 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3414 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3415 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3416 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3417 | { $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] | 3418 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3419 | OBJEXT=$ac_cv_objext |
| 3420 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3421 | { $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] | 3422 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3423 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3424 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3425 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | /* end confdefs.h. */ |
| 3428 | |
| 3429 | int |
| 3430 | main () |
| 3431 | { |
| 3432 | #ifndef __GNUC__ |
| 3433 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3434 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3436 | ; |
| 3437 | return 0; |
| 3438 | } |
| 3439 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3440 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3441 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3442 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3443 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3444 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3446 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3449 | { $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] | 3450 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3451 | if test $ac_compiler_gnu = yes; then |
| 3452 | GCC=yes |
| 3453 | else |
| 3454 | GCC= |
| 3455 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3456 | ac_test_CFLAGS=${CFLAGS+set} |
| 3457 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3458 | { $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] | 3459 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3460 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3461 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3462 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3463 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3464 | ac_c_werror_flag=yes |
| 3465 | ac_cv_prog_cc_g=no |
| 3466 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3468 | /* end confdefs.h. */ |
| 3469 | |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
| 3473 | |
| 3474 | ; |
| 3475 | return 0; |
| 3476 | } |
| 3477 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3478 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3479 | ac_cv_prog_cc_g=yes |
| 3480 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3481 | CFLAGS="" |
| 3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3483 | /* end confdefs.h. */ |
| 3484 | |
| 3485 | int |
| 3486 | main () |
| 3487 | { |
| 3488 | |
| 3489 | ; |
| 3490 | return 0; |
| 3491 | } |
| 3492 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3493 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3494 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3495 | else |
| 3496 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3499 | /* end confdefs.h. */ |
| 3500 | |
| 3501 | int |
| 3502 | main () |
| 3503 | { |
| 3504 | |
| 3505 | ; |
| 3506 | return 0; |
| 3507 | } |
| 3508 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3509 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3510 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3511 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3517 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3518 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3519 | { $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] | 3520 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3521 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3522 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3523 | elif test $ac_cv_prog_cc_g = yes; then |
| 3524 | if test "$GCC" = yes; then |
| 3525 | CFLAGS="-g -O2" |
| 3526 | else |
| 3527 | CFLAGS="-g" |
| 3528 | fi |
| 3529 | else |
| 3530 | if test "$GCC" = yes; then |
| 3531 | CFLAGS="-O2" |
| 3532 | else |
| 3533 | CFLAGS= |
| 3534 | fi |
| 3535 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3536 | { $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] | 3537 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3538 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3539 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3540 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3541 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3542 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3544 | /* end confdefs.h. */ |
| 3545 | #include <stdarg.h> |
| 3546 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3547 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3548 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3549 | struct buf { int x; }; |
| 3550 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3551 | static char *e (p, i) |
| 3552 | char **p; |
| 3553 | int i; |
| 3554 | { |
| 3555 | return p[i]; |
| 3556 | } |
| 3557 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3558 | { |
| 3559 | char *s; |
| 3560 | va_list v; |
| 3561 | va_start (v,p); |
| 3562 | s = g (p, va_arg (v,int)); |
| 3563 | va_end (v); |
| 3564 | return s; |
| 3565 | } |
| 3566 | |
| 3567 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3568 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3569 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3570 | 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] | 3571 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3572 | 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] | 3573 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3574 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3575 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3576 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3577 | inside strings and character constants. */ |
| 3578 | #define FOO(x) 'x' |
| 3579 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3581 | int test (int i, double x); |
| 3582 | struct s1 {int (*f) (int a);}; |
| 3583 | struct s2 {int (*f) (double a);}; |
| 3584 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3585 | int argc; |
| 3586 | char **argv; |
| 3587 | int |
| 3588 | main () |
| 3589 | { |
| 3590 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3591 | ; |
| 3592 | return 0; |
| 3593 | } |
| 3594 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3595 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3596 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3597 | do |
| 3598 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3599 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3600 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3601 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3602 | rm -f core conftest.err conftest.$ac_objext |
| 3603 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3604 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3605 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3606 | CC=$ac_save_CC |
| 3607 | |
| 3608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3609 | # AC_CACHE_VAL |
| 3610 | case "x$ac_cv_prog_cc_c89" in |
| 3611 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3613 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3614 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3616 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3617 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3618 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3619 | { $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] | 3620 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3621 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3622 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3623 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3624 | fi |
| 3625 | |
| 3626 | ac_ext=c |
| 3627 | ac_cpp='$CPP $CPPFLAGS' |
| 3628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3631 | |
| 3632 | |
| 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3634 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3635 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3636 | $as_echo_n "(cached) " >&6 |
| 3637 | else |
| 3638 | ac_check_lib_save_LIBS=$LIBS |
| 3639 | LIBS="-ldl $LIBS" |
| 3640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3641 | /* end confdefs.h. */ |
| 3642 | |
| 3643 | /* Override any GCC internal prototype to avoid an error. |
| 3644 | Use char because int might match the return type of a GCC |
| 3645 | builtin and then its argument prototype would still apply. */ |
| 3646 | #ifdef __cplusplus |
| 3647 | extern "C" |
| 3648 | #endif |
| 3649 | char dlopen (); |
| 3650 | int |
| 3651 | main () |
| 3652 | { |
| 3653 | return dlopen (); |
| 3654 | ; |
| 3655 | return 0; |
| 3656 | } |
| 3657 | _ACEOF |
| 3658 | if ac_fn_c_try_link "$LINENO"; then : |
| 3659 | ac_cv_lib_dl_dlopen=yes |
| 3660 | else |
| 3661 | ac_cv_lib_dl_dlopen=no |
| 3662 | fi |
| 3663 | rm -f core conftest.err conftest.$ac_objext \ |
| 3664 | conftest$ac_exeext conftest.$ac_ext |
| 3665 | LIBS=$ac_check_lib_save_LIBS |
| 3666 | fi |
| 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3668 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3669 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3670 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3671 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3672 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3673 | |
| 3674 | fi |
| 3675 | |
| 3676 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3677 | |
| 3678 | # Check whether --with-cc was given. |
| 3679 | if test "${with_cc+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3680 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3681 | fi |
| 3682 | |
| 3683 | |
| 3684 | # Check whether --with-ccopts was given. |
| 3685 | if test "${with_ccopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3686 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3687 | fi |
| 3688 | |
| 3689 | |
| 3690 | # Check whether --with-ldopts was given. |
| 3691 | if test "${with_ldopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3692 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3693 | fi |
| 3694 | |
| 3695 | ac_ext=c |
| 3696 | ac_cpp='$CPP $CPPFLAGS' |
| 3697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3700 | if test -n "$ac_tool_prefix"; then |
| 3701 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3702 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3704 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3705 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3706 | $as_echo_n "(cached) " >&6 |
| 3707 | else |
| 3708 | if test -n "$CC"; then |
| 3709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3710 | else |
| 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3712 | for as_dir in $PATH |
| 3713 | do |
| 3714 | IFS=$as_save_IFS |
| 3715 | test -z "$as_dir" && as_dir=. |
| 3716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3718 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3720 | break 2 |
| 3721 | fi |
| 3722 | done |
| 3723 | done |
| 3724 | IFS=$as_save_IFS |
| 3725 | |
| 3726 | fi |
| 3727 | fi |
| 3728 | CC=$ac_cv_prog_CC |
| 3729 | if test -n "$CC"; then |
| 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3731 | $as_echo "$CC" >&6; } |
| 3732 | else |
| 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3734 | $as_echo "no" >&6; } |
| 3735 | fi |
| 3736 | |
| 3737 | |
| 3738 | fi |
| 3739 | if test -z "$ac_cv_prog_CC"; then |
| 3740 | ac_ct_CC=$CC |
| 3741 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3742 | set dummy gcc; ac_word=$2 |
| 3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3744 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3745 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3746 | $as_echo_n "(cached) " >&6 |
| 3747 | else |
| 3748 | if test -n "$ac_ct_CC"; then |
| 3749 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3750 | else |
| 3751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3752 | for as_dir in $PATH |
| 3753 | do |
| 3754 | IFS=$as_save_IFS |
| 3755 | test -z "$as_dir" && as_dir=. |
| 3756 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3758 | ac_cv_prog_ac_ct_CC="gcc" |
| 3759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3760 | break 2 |
| 3761 | fi |
| 3762 | done |
| 3763 | done |
| 3764 | IFS=$as_save_IFS |
| 3765 | |
| 3766 | fi |
| 3767 | fi |
| 3768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3769 | if test -n "$ac_ct_CC"; then |
| 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3771 | $as_echo "$ac_ct_CC" >&6; } |
| 3772 | else |
| 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3774 | $as_echo "no" >&6; } |
| 3775 | fi |
| 3776 | |
| 3777 | if test "x$ac_ct_CC" = x; then |
| 3778 | CC="" |
| 3779 | else |
| 3780 | case $cross_compiling:$ac_tool_warned in |
| 3781 | yes:) |
| 3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3784 | ac_tool_warned=yes ;; |
| 3785 | esac |
| 3786 | CC=$ac_ct_CC |
| 3787 | fi |
| 3788 | else |
| 3789 | CC="$ac_cv_prog_CC" |
| 3790 | fi |
| 3791 | |
| 3792 | if test -z "$CC"; then |
| 3793 | if test -n "$ac_tool_prefix"; then |
| 3794 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3795 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3797 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3798 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3799 | $as_echo_n "(cached) " >&6 |
| 3800 | else |
| 3801 | if test -n "$CC"; then |
| 3802 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3803 | else |
| 3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3805 | for as_dir in $PATH |
| 3806 | do |
| 3807 | IFS=$as_save_IFS |
| 3808 | test -z "$as_dir" && as_dir=. |
| 3809 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3811 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3813 | break 2 |
| 3814 | fi |
| 3815 | done |
| 3816 | done |
| 3817 | IFS=$as_save_IFS |
| 3818 | |
| 3819 | fi |
| 3820 | fi |
| 3821 | CC=$ac_cv_prog_CC |
| 3822 | if test -n "$CC"; then |
| 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3824 | $as_echo "$CC" >&6; } |
| 3825 | else |
| 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3827 | $as_echo "no" >&6; } |
| 3828 | fi |
| 3829 | |
| 3830 | |
| 3831 | fi |
| 3832 | fi |
| 3833 | if test -z "$CC"; then |
| 3834 | # Extract the first word of "cc", so it can be a program name with args. |
| 3835 | set dummy cc; ac_word=$2 |
| 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3837 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3838 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3839 | $as_echo_n "(cached) " >&6 |
| 3840 | else |
| 3841 | if test -n "$CC"; then |
| 3842 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3843 | else |
| 3844 | ac_prog_rejected=no |
| 3845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3846 | for as_dir in $PATH |
| 3847 | do |
| 3848 | IFS=$as_save_IFS |
| 3849 | test -z "$as_dir" && as_dir=. |
| 3850 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3852 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3853 | ac_prog_rejected=yes |
| 3854 | continue |
| 3855 | fi |
| 3856 | ac_cv_prog_CC="cc" |
| 3857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3858 | break 2 |
| 3859 | fi |
| 3860 | done |
| 3861 | done |
| 3862 | IFS=$as_save_IFS |
| 3863 | |
| 3864 | if test $ac_prog_rejected = yes; then |
| 3865 | # We found a bogon in the path, so make sure we never use it. |
| 3866 | set dummy $ac_cv_prog_CC |
| 3867 | shift |
| 3868 | if test $# != 0; then |
| 3869 | # We chose a different compiler from the bogus one. |
| 3870 | # However, it has the same basename, so the bogon will be chosen |
| 3871 | # first if we set CC to just the basename; use the full file name. |
| 3872 | shift |
| 3873 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3874 | fi |
| 3875 | fi |
| 3876 | fi |
| 3877 | fi |
| 3878 | CC=$ac_cv_prog_CC |
| 3879 | if test -n "$CC"; then |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3881 | $as_echo "$CC" >&6; } |
| 3882 | else |
| 3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3884 | $as_echo "no" >&6; } |
| 3885 | fi |
| 3886 | |
| 3887 | |
| 3888 | fi |
| 3889 | if test -z "$CC"; then |
| 3890 | if test -n "$ac_tool_prefix"; then |
| 3891 | for ac_prog in cl.exe |
| 3892 | do |
| 3893 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3894 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3896 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3897 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3898 | $as_echo_n "(cached) " >&6 |
| 3899 | else |
| 3900 | if test -n "$CC"; then |
| 3901 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3902 | else |
| 3903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3904 | for as_dir in $PATH |
| 3905 | do |
| 3906 | IFS=$as_save_IFS |
| 3907 | test -z "$as_dir" && as_dir=. |
| 3908 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3910 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3912 | break 2 |
| 3913 | fi |
| 3914 | done |
| 3915 | done |
| 3916 | IFS=$as_save_IFS |
| 3917 | |
| 3918 | fi |
| 3919 | fi |
| 3920 | CC=$ac_cv_prog_CC |
| 3921 | if test -n "$CC"; then |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3923 | $as_echo "$CC" >&6; } |
| 3924 | else |
| 3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3926 | $as_echo "no" >&6; } |
| 3927 | fi |
| 3928 | |
| 3929 | |
| 3930 | test -n "$CC" && break |
| 3931 | done |
| 3932 | fi |
| 3933 | if test -z "$CC"; then |
| 3934 | ac_ct_CC=$CC |
| 3935 | for ac_prog in cl.exe |
| 3936 | do |
| 3937 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3938 | set dummy $ac_prog; ac_word=$2 |
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3940 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3941 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3942 | $as_echo_n "(cached) " >&6 |
| 3943 | else |
| 3944 | if test -n "$ac_ct_CC"; then |
| 3945 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3946 | else |
| 3947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3948 | for as_dir in $PATH |
| 3949 | do |
| 3950 | IFS=$as_save_IFS |
| 3951 | test -z "$as_dir" && as_dir=. |
| 3952 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3954 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3956 | break 2 |
| 3957 | fi |
| 3958 | done |
| 3959 | done |
| 3960 | IFS=$as_save_IFS |
| 3961 | |
| 3962 | fi |
| 3963 | fi |
| 3964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3965 | if test -n "$ac_ct_CC"; then |
| 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3967 | $as_echo "$ac_ct_CC" >&6; } |
| 3968 | else |
| 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3970 | $as_echo "no" >&6; } |
| 3971 | fi |
| 3972 | |
| 3973 | |
| 3974 | test -n "$ac_ct_CC" && break |
| 3975 | done |
| 3976 | |
| 3977 | if test "x$ac_ct_CC" = x; then |
| 3978 | CC="" |
| 3979 | else |
| 3980 | case $cross_compiling:$ac_tool_warned in |
| 3981 | yes:) |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3983 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3984 | ac_tool_warned=yes ;; |
| 3985 | esac |
| 3986 | CC=$ac_ct_CC |
| 3987 | fi |
| 3988 | fi |
| 3989 | |
| 3990 | fi |
| 3991 | |
| 3992 | |
| 3993 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3995 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3996 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3997 | |
| 3998 | # Provide some information about the compiler. |
| 3999 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4000 | set X $ac_compile |
| 4001 | ac_compiler=$2 |
| 4002 | for ac_option in --version -v -V -qversion; do |
| 4003 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4004 | case "(($ac_try" in |
| 4005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4006 | *) ac_try_echo=$ac_try;; |
| 4007 | esac |
| 4008 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4009 | $as_echo "$ac_try_echo"; } >&5 |
| 4010 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4011 | ac_status=$? |
| 4012 | if test -s conftest.err; then |
| 4013 | sed '10a\ |
| 4014 | ... rest of stderr output deleted ... |
| 4015 | 10q' conftest.err >conftest.er1 |
| 4016 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4017 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4018 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4020 | test $ac_status = 0; } |
| 4021 | done |
| 4022 | |
| 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4024 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4025 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4026 | $as_echo_n "(cached) " >&6 |
| 4027 | else |
| 4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4029 | /* end confdefs.h. */ |
| 4030 | |
| 4031 | int |
| 4032 | main () |
| 4033 | { |
| 4034 | #ifndef __GNUC__ |
| 4035 | choke me |
| 4036 | #endif |
| 4037 | |
| 4038 | ; |
| 4039 | return 0; |
| 4040 | } |
| 4041 | _ACEOF |
| 4042 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4043 | ac_compiler_gnu=yes |
| 4044 | else |
| 4045 | ac_compiler_gnu=no |
| 4046 | fi |
| 4047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4048 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4049 | |
| 4050 | fi |
| 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4052 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4053 | if test $ac_compiler_gnu = yes; then |
| 4054 | GCC=yes |
| 4055 | else |
| 4056 | GCC= |
| 4057 | fi |
| 4058 | ac_test_CFLAGS=${CFLAGS+set} |
| 4059 | ac_save_CFLAGS=$CFLAGS |
| 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4061 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4062 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4063 | $as_echo_n "(cached) " >&6 |
| 4064 | else |
| 4065 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4066 | ac_c_werror_flag=yes |
| 4067 | ac_cv_prog_cc_g=no |
| 4068 | CFLAGS="-g" |
| 4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4070 | /* end confdefs.h. */ |
| 4071 | |
| 4072 | int |
| 4073 | main () |
| 4074 | { |
| 4075 | |
| 4076 | ; |
| 4077 | return 0; |
| 4078 | } |
| 4079 | _ACEOF |
| 4080 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4081 | ac_cv_prog_cc_g=yes |
| 4082 | else |
| 4083 | CFLAGS="" |
| 4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4085 | /* end confdefs.h. */ |
| 4086 | |
| 4087 | int |
| 4088 | main () |
| 4089 | { |
| 4090 | |
| 4091 | ; |
| 4092 | return 0; |
| 4093 | } |
| 4094 | _ACEOF |
| 4095 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4096 | |
| 4097 | else |
| 4098 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4099 | CFLAGS="-g" |
| 4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4101 | /* end confdefs.h. */ |
| 4102 | |
| 4103 | int |
| 4104 | main () |
| 4105 | { |
| 4106 | |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
| 4111 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4112 | ac_cv_prog_cc_g=yes |
| 4113 | fi |
| 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4115 | fi |
| 4116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4117 | fi |
| 4118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4119 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4120 | fi |
| 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4122 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4123 | if test "$ac_test_CFLAGS" = set; then |
| 4124 | CFLAGS=$ac_save_CFLAGS |
| 4125 | elif test $ac_cv_prog_cc_g = yes; then |
| 4126 | if test "$GCC" = yes; then |
| 4127 | CFLAGS="-g -O2" |
| 4128 | else |
| 4129 | CFLAGS="-g" |
| 4130 | fi |
| 4131 | else |
| 4132 | if test "$GCC" = yes; then |
| 4133 | CFLAGS="-O2" |
| 4134 | else |
| 4135 | CFLAGS= |
| 4136 | fi |
| 4137 | fi |
| 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4139 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4140 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4141 | $as_echo_n "(cached) " >&6 |
| 4142 | else |
| 4143 | ac_cv_prog_cc_c89=no |
| 4144 | ac_save_CC=$CC |
| 4145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4146 | /* end confdefs.h. */ |
| 4147 | #include <stdarg.h> |
| 4148 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4149 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4150 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4151 | struct buf { int x; }; |
| 4152 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4153 | static char *e (p, i) |
| 4154 | char **p; |
| 4155 | int i; |
| 4156 | { |
| 4157 | return p[i]; |
| 4158 | } |
| 4159 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4160 | { |
| 4161 | char *s; |
| 4162 | va_list v; |
| 4163 | va_start (v,p); |
| 4164 | s = g (p, va_arg (v,int)); |
| 4165 | va_end (v); |
| 4166 | return s; |
| 4167 | } |
| 4168 | |
| 4169 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4170 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4171 | These don't provoke an error unfortunately, instead are silently treated |
| 4172 | as 'x'. The following induces an error, until -std is added to get |
| 4173 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4174 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4175 | that's true only with -std. */ |
| 4176 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4177 | |
| 4178 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4179 | inside strings and character constants. */ |
| 4180 | #define FOO(x) 'x' |
| 4181 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4182 | |
| 4183 | int test (int i, double x); |
| 4184 | struct s1 {int (*f) (int a);}; |
| 4185 | struct s2 {int (*f) (double a);}; |
| 4186 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4187 | int argc; |
| 4188 | char **argv; |
| 4189 | int |
| 4190 | main () |
| 4191 | { |
| 4192 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4193 | ; |
| 4194 | return 0; |
| 4195 | } |
| 4196 | _ACEOF |
| 4197 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4198 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4199 | do |
| 4200 | CC="$ac_save_CC $ac_arg" |
| 4201 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4202 | ac_cv_prog_cc_c89=$ac_arg |
| 4203 | fi |
| 4204 | rm -f core conftest.err conftest.$ac_objext |
| 4205 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4206 | done |
| 4207 | rm -f conftest.$ac_ext |
| 4208 | CC=$ac_save_CC |
| 4209 | |
| 4210 | fi |
| 4211 | # AC_CACHE_VAL |
| 4212 | case "x$ac_cv_prog_cc_c89" in |
| 4213 | x) |
| 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4215 | $as_echo "none needed" >&6; } ;; |
| 4216 | xno) |
| 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4218 | $as_echo "unsupported" >&6; } ;; |
| 4219 | *) |
| 4220 | CC="$CC $ac_cv_prog_cc_c89" |
| 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4222 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4223 | esac |
| 4224 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4225 | |
| 4226 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4228 | ac_ext=c |
| 4229 | ac_cpp='$CPP $CPPFLAGS' |
| 4230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4233 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4234 | if test "$GCC" = yes; then |
| 4235 | RDYNAMIC="-rdynamic" |
| 4236 | |
| 4237 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4238 | ac_ext=c |
| 4239 | ac_cpp='$CPP $CPPFLAGS' |
| 4240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4243 | { $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] | 4244 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4245 | # On Suns, sometimes $CPP names a directory. |
| 4246 | if test -n "$CPP" && test -d "$CPP"; then |
| 4247 | CPP= |
| 4248 | fi |
| 4249 | if test -z "$CPP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4250 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4251 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4252 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4253 | # Double quotes because CPP needs to be expanded |
| 4254 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4255 | do |
| 4256 | ac_preproc_ok=false |
| 4257 | for ac_c_preproc_warn_flag in '' yes |
| 4258 | do |
| 4259 | # Use a header file that comes with gcc, so configuring glibc |
| 4260 | # with a fresh cross-compiler works. |
| 4261 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4262 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4263 | # 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] | 4264 | # 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] | 4265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4266 | /* end confdefs.h. */ |
| 4267 | #ifdef __STDC__ |
| 4268 | # include <limits.h> |
| 4269 | #else |
| 4270 | # include <assert.h> |
| 4271 | #endif |
| 4272 | Syntax error |
| 4273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4274 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4275 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4276 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4277 | # Broken: fails on valid input. |
| 4278 | continue |
| 4279 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4280 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4282 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4285 | /* end confdefs.h. */ |
| 4286 | #include <ac_nonexistent.h> |
| 4287 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4288 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4289 | # Broken: success on invalid input. |
| 4290 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4291 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4292 | # Passes both tests. |
| 4293 | ac_preproc_ok=: |
| 4294 | break |
| 4295 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4296 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4297 | |
| 4298 | done |
| 4299 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4300 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4301 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4302 | break |
| 4303 | fi |
| 4304 | |
| 4305 | done |
| 4306 | ac_cv_prog_CPP=$CPP |
| 4307 | |
| 4308 | fi |
| 4309 | CPP=$ac_cv_prog_CPP |
| 4310 | else |
| 4311 | ac_cv_prog_CPP=$CPP |
| 4312 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4314 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4315 | ac_preproc_ok=false |
| 4316 | for ac_c_preproc_warn_flag in '' yes |
| 4317 | do |
| 4318 | # Use a header file that comes with gcc, so configuring glibc |
| 4319 | # with a fresh cross-compiler works. |
| 4320 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4321 | # <limits.h> exists even on freestanding compilers. |
| 4322 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4323 | # 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] | 4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4325 | /* end confdefs.h. */ |
| 4326 | #ifdef __STDC__ |
| 4327 | # include <limits.h> |
| 4328 | #else |
| 4329 | # include <assert.h> |
| 4330 | #endif |
| 4331 | Syntax error |
| 4332 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4333 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4335 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | # Broken: fails on valid input. |
| 4337 | continue |
| 4338 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4339 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4341 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4342 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4344 | /* end confdefs.h. */ |
| 4345 | #include <ac_nonexistent.h> |
| 4346 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4347 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4348 | # Broken: success on invalid input. |
| 4349 | continue |
| 4350 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4351 | # Passes both tests. |
| 4352 | ac_preproc_ok=: |
| 4353 | break |
| 4354 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4355 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4356 | |
| 4357 | done |
| 4358 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4359 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4360 | if $ac_preproc_ok; then : |
| 4361 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4362 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4363 | { { $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] | 4364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4365 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4366 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4367 | fi |
| 4368 | |
| 4369 | ac_ext=c |
| 4370 | ac_cpp='$CPP $CPPFLAGS' |
| 4371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4374 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4375 | { $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] | 4376 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4377 | if test "$GCC" = yes |
| 4378 | then |
| 4379 | case "$host_cpu" in |
| 4380 | alpha) addcflags="-mieee" ;; |
| 4381 | esac |
| 4382 | fi |
| 4383 | if test "x$addcflags" != x |
| 4384 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4386 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4387 | CFLAGS="$addcflags $CFLAGS" |
| 4388 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4390 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4391 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4392 | LIB_EXT=.a |
| 4393 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4394 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4396 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4397 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4399 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4400 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4401 | fi |
| 4402 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4403 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4404 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4405 | then |
| 4406 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4407 | { $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] | 4408 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4409 | else |
| 4410 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4411 | { $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] | 4412 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4413 | fi |
| 4414 | |
| 4415 | else |
| 4416 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4417 | { $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] | 4418 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4420 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4422 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4423 | # Check whether --enable-symlink-install was given. |
| 4424 | if test "${enable_symlink_install+set}" = set; then : |
| 4425 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4426 | then |
| 4427 | LINK_INSTALL_FLAGS=-f |
| 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4429 | $as_echo "Disabling symlinks for install" >&6; } |
| 4430 | else |
| 4431 | LINK_INSTALL_FLAGS=-sf |
| 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4433 | $as_echo "Enabling symlinks for install" >&6; } |
| 4434 | fi |
| 4435 | |
| 4436 | else |
| 4437 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4439 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4440 | |
| 4441 | fi |
| 4442 | |
| 4443 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4444 | relative_symlink_defined= |
| 4445 | # Check whether --enable-relative-symlinks was given. |
| 4446 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4447 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4448 | then |
| 4449 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4450 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4452 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4453 | else |
| 4454 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4455 | relative_symlink_defined=yes |
| 4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4457 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4458 | fi |
| 4459 | fi |
| 4460 | |
| 4461 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4462 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4463 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4464 | then |
| 4465 | SYMLINK_RELATIVE=yes |
| 4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4467 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4468 | else |
| 4469 | SYMLINK_RELATIVE=--relative |
| 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4471 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4472 | fi |
| 4473 | |
| 4474 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4475 | if test -z "$relative_symlink_defined" |
| 4476 | then |
| 4477 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4479 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4480 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4481 | |
| 4482 | fi |
| 4483 | |
| 4484 | |
| 4485 | # Check whether --enable-symlink-build was given. |
| 4486 | if test "${enable_symlink_build+set}" = set; then : |
| 4487 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4488 | then |
| 4489 | LINK_BUILD_FLAGS= |
| 4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4491 | $as_echo "Disabling symlinks for build" >&6; } |
| 4492 | else |
| 4493 | LINK_BUILD_FLAGS=-s |
| 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4495 | $as_echo "Enabling symlinks for build" >&6; } |
| 4496 | fi |
| 4497 | |
| 4498 | else |
| 4499 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4501 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4502 | |
| 4503 | fi |
| 4504 | |
| 4505 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4506 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4507 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4508 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4509 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4510 | { $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] | 4511 | $as_echo "Disabling verbose make commands" >&6; } |
| 4512 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4513 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4514 | Q=@ |
| 4515 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4516 | { $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] | 4517 | $as_echo "Enabling verbose make commands" >&6; } |
| 4518 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4519 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4520 | Q= |
| 4521 | fi |
| 4522 | |
| 4523 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4524 | { $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] | 4525 | $as_echo "Disabling verbose make commands" >&6; } |
| 4526 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4527 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4528 | Q=@ |
| 4529 | |
| 4530 | fi |
| 4531 | |
| 4532 | |
| 4533 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4534 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4535 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4536 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4537 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4538 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4539 | { $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] | 4540 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4541 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4542 | |
| 4543 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4544 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4545 | { $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] | 4546 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4547 | { $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] | 4548 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | |
| 4551 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4552 | { $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] | 4553 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4554 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4555 | fi |
| 4556 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4557 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4558 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4559 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4560 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4561 | then |
| 4562 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4563 | { $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] | 4564 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4565 | else |
| 4566 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4567 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4568 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4569 | { $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] | 4570 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4571 | fi |
| 4572 | |
| 4573 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4574 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4575 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4577 | { $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] | 4578 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4579 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4580 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4581 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4582 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4583 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4584 | LDFLAG_DYNAMIC= |
| 4585 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4586 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4587 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4588 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4589 | then |
| 4590 | ELF_CMT=# |
| 4591 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4592 | { $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] | 4593 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4594 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4595 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4596 | ELF_CMT= |
| 4597 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4598 | case "$host_os" in |
| 4599 | solaris2.*) |
| 4600 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4601 | ;; |
| 4602 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4603 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4604 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4605 | PRIVATE_LIBS_CMT=# |
| 4606 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4607 | { $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] | 4608 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4609 | fi |
| 4610 | |
| 4611 | else |
| 4612 | MAKEFILE_ELF=/dev/null |
| 4613 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4614 | { $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] | 4615 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4617 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4618 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4620 | |
| 4621 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4622 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4623 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4624 | then |
| 4625 | BSDLIB_CMT=# |
| 4626 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4627 | { $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] | 4628 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4629 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4630 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4631 | BSDLIB_CMT= |
| 4632 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4633 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4634 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4635 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4636 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4637 | LIB_EXT=.dylib |
| 4638 | ;; |
| 4639 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4640 | { $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] | 4641 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4642 | fi |
| 4643 | |
| 4644 | else |
| 4645 | MAKEFILE_BSDLIB=/dev/null |
| 4646 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4647 | { $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] | 4648 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4649 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4650 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4651 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4653 | |
| 4654 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4655 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4656 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4657 | then |
| 4658 | PROFILE_CMT=# |
| 4659 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4660 | { $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] | 4661 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4662 | else |
| 4663 | PROFILE_CMT= |
| 4664 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4665 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4666 | { $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] | 4667 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4668 | fi |
| 4669 | |
| 4670 | else |
| 4671 | PROFILE_CMT=# |
| 4672 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4673 | { $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] | 4674 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4675 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4676 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4677 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4679 | |
| 4680 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4681 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4682 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4683 | then |
| 4684 | CHECKER_CMT=# |
| 4685 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4686 | { $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] | 4687 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4688 | else |
| 4689 | CHECKER_CMT= |
| 4690 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4691 | { $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] | 4692 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4693 | fi |
| 4694 | |
| 4695 | else |
| 4696 | CHECKER_CMT=# |
| 4697 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4698 | { $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] | 4699 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4700 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4701 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4702 | |
| 4703 | |
| 4704 | |
| 4705 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4706 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4707 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4708 | |
| 4709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4710 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4711 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4712 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4713 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4714 | { $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] | 4715 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4716 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4717 | |
| 4718 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4719 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4720 | { $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] | 4721 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4722 | fi |
| 4723 | |
| 4724 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | { $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] | 4726 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4728 | fi |
| 4729 | |
| 4730 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4731 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4732 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4733 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4734 | { $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] | 4735 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4736 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4737 | |
| 4738 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4739 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4740 | { $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] | 4741 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4742 | fi |
| 4743 | |
| 4744 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4745 | { $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] | 4746 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4747 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4748 | fi |
| 4749 | |
| 4750 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4751 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4752 | enableval=$enable_testio_debug; |
| 4753 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4754 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4755 | { $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] | 4756 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4757 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4758 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4759 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4760 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4761 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4762 | { $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] | 4763 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4764 | fi |
| 4765 | |
| 4766 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4767 | { $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] | 4768 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4770 | |
| 4771 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4773 | fi |
| 4774 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4775 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4776 | |
| 4777 | |
| 4778 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4779 | if test -n "$ac_tool_prefix"; then |
| 4780 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4781 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4782 | { $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] | 4783 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4784 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4785 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4786 | else |
| 4787 | case $PKG_CONFIG in |
| 4788 | [\\/]* | ?:[\\/]*) |
| 4789 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4790 | ;; |
| 4791 | *) |
| 4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4793 | for as_dir in $PATH |
| 4794 | do |
| 4795 | IFS=$as_save_IFS |
| 4796 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4797 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4799 | 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] | 4800 | $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] | 4801 | break 2 |
| 4802 | fi |
| 4803 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4804 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4805 | IFS=$as_save_IFS |
| 4806 | |
| 4807 | ;; |
| 4808 | esac |
| 4809 | fi |
| 4810 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4811 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4813 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4814 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4816 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4817 | fi |
| 4818 | |
| 4819 | |
| 4820 | fi |
| 4821 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4822 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4823 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4824 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4825 | { $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] | 4826 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4827 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4828 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4829 | else |
| 4830 | case $ac_pt_PKG_CONFIG in |
| 4831 | [\\/]* | ?:[\\/]*) |
| 4832 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4833 | ;; |
| 4834 | *) |
| 4835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4836 | for as_dir in $PATH |
| 4837 | do |
| 4838 | IFS=$as_save_IFS |
| 4839 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4840 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4842 | 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] | 4843 | $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] | 4844 | break 2 |
| 4845 | fi |
| 4846 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4847 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4848 | IFS=$as_save_IFS |
| 4849 | |
| 4850 | ;; |
| 4851 | esac |
| 4852 | fi |
| 4853 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4854 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4855 | { $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] | 4856 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4857 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4859 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4860 | fi |
| 4861 | |
| 4862 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4863 | PKG_CONFIG="" |
| 4864 | else |
| 4865 | case $cross_compiling:$ac_tool_warned in |
| 4866 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4867 | { $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] | 4868 | $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] | 4869 | ac_tool_warned=yes ;; |
| 4870 | esac |
| 4871 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4872 | fi |
| 4873 | else |
| 4874 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4875 | fi |
| 4876 | |
| 4877 | fi |
| 4878 | if test -n "$PKG_CONFIG"; then |
| 4879 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4880 | { $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] | 4881 | $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] | 4882 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4884 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4887 | $as_echo "no" >&6; } |
| 4888 | PKG_CONFIG="" |
| 4889 | fi |
| 4890 | |
| 4891 | fi |
| 4892 | LIBUUID= |
| 4893 | DEPLIBUUID= |
| 4894 | STATIC_LIBUUID= |
| 4895 | DEPSTATIC_LIBUUID= |
| 4896 | PROFILED_LIBUUID= |
| 4897 | DEPPROFILED_LIBUUID= |
| 4898 | UUID_CMT= |
| 4899 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4900 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4901 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4902 | then |
| 4903 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4904 | 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] | 4905 | fi |
| 4906 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4907 | { $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] | 4908 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4909 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4910 | $as_echo_n "(cached) " >&6 |
| 4911 | else |
| 4912 | ac_check_lib_save_LIBS=$LIBS |
| 4913 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4915 | /* end confdefs.h. */ |
| 4916 | |
| 4917 | /* Override any GCC internal prototype to avoid an error. |
| 4918 | Use char because int might match the return type of a GCC |
| 4919 | builtin and then its argument prototype would still apply. */ |
| 4920 | #ifdef __cplusplus |
| 4921 | extern "C" |
| 4922 | #endif |
| 4923 | char uuid_generate (); |
| 4924 | int |
| 4925 | main () |
| 4926 | { |
| 4927 | return uuid_generate (); |
| 4928 | ; |
| 4929 | return 0; |
| 4930 | } |
| 4931 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4932 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4933 | ac_cv_lib_uuid_uuid_generate=yes |
| 4934 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4935 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4936 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4937 | rm -f core conftest.err conftest.$ac_objext \ |
| 4938 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4939 | LIBS=$ac_check_lib_save_LIBS |
| 4940 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4941 | { $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] | 4942 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4943 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4944 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4945 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4946 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4947 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4948 | fi |
| 4949 | |
| 4950 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4951 | { $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] | 4952 | $as_echo "Disabling private uuid library" >&6; } |
| 4953 | else |
| 4954 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4955 | DEPLIBUUID=$LIBUUID |
| 4956 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4957 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4958 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4959 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4960 | { $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] | 4961 | $as_echo "Enabling private uuid library" >&6; } |
| 4962 | fi |
| 4963 | |
| 4964 | else |
| 4965 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4966 | DEPLIBUUID=$LIBUUID |
| 4967 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4968 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4969 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4970 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4971 | { $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] | 4972 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4973 | |
| 4974 | fi |
| 4975 | |
| 4976 | |
| 4977 | |
| 4978 | |
| 4979 | |
| 4980 | |
| 4981 | |
| 4982 | |
| 4983 | |
| 4984 | |
| 4985 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4986 | if test -n "$ac_tool_prefix"; then |
| 4987 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4988 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | { $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] | 4990 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4991 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4992 | $as_echo_n "(cached) " >&6 |
| 4993 | else |
| 4994 | case $PKG_CONFIG in |
| 4995 | [\\/]* | ?:[\\/]*) |
| 4996 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4997 | ;; |
| 4998 | *) |
| 4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5000 | for as_dir in $PATH |
| 5001 | do |
| 5002 | IFS=$as_save_IFS |
| 5003 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5004 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5006 | 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] | 5007 | $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] | 5008 | break 2 |
| 5009 | fi |
| 5010 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5011 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5012 | IFS=$as_save_IFS |
| 5013 | |
| 5014 | ;; |
| 5015 | esac |
| 5016 | fi |
| 5017 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5018 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5020 | $as_echo "$PKG_CONFIG" >&6; } |
| 5021 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5023 | $as_echo "no" >&6; } |
| 5024 | fi |
| 5025 | |
| 5026 | |
| 5027 | fi |
| 5028 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5029 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5030 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5031 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5032 | { $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] | 5033 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5034 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5035 | $as_echo_n "(cached) " >&6 |
| 5036 | else |
| 5037 | case $ac_pt_PKG_CONFIG in |
| 5038 | [\\/]* | ?:[\\/]*) |
| 5039 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5040 | ;; |
| 5041 | *) |
| 5042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5043 | for as_dir in $PATH |
| 5044 | do |
| 5045 | IFS=$as_save_IFS |
| 5046 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5047 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5049 | 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] | 5050 | $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] | 5051 | break 2 |
| 5052 | fi |
| 5053 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5054 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5055 | IFS=$as_save_IFS |
| 5056 | |
| 5057 | ;; |
| 5058 | esac |
| 5059 | fi |
| 5060 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5061 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5062 | { $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] | 5063 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5066 | $as_echo "no" >&6; } |
| 5067 | fi |
| 5068 | |
| 5069 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5070 | PKG_CONFIG="" |
| 5071 | else |
| 5072 | case $cross_compiling:$ac_tool_warned in |
| 5073 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5074 | { $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] | 5075 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5076 | ac_tool_warned=yes ;; |
| 5077 | esac |
| 5078 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5079 | fi |
| 5080 | else |
| 5081 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5082 | fi |
| 5083 | |
| 5084 | fi |
| 5085 | if test -n "$PKG_CONFIG"; then |
| 5086 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5087 | { $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] | 5088 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5089 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5091 | $as_echo "yes" >&6; } |
| 5092 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5094 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5095 | PKG_CONFIG="" |
| 5096 | fi |
| 5097 | |
| 5098 | fi |
| 5099 | LIBBLKID= |
| 5100 | DEPLIBBLKID= |
| 5101 | STATIC_LIBBLKID= |
| 5102 | DEPSTATIC_LIBBLKID= |
| 5103 | PROFILED_LIBBLKID= |
| 5104 | DEPPROFILED_LIBBLKID= |
| 5105 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5106 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5107 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5108 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5109 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5110 | then |
| 5111 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5112 | 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] | 5113 | fi |
| 5114 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5115 | { $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] | 5116 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5117 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5118 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5119 | else |
| 5120 | ac_check_lib_save_LIBS=$LIBS |
| 5121 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5123 | /* end confdefs.h. */ |
| 5124 | |
| 5125 | /* Override any GCC internal prototype to avoid an error. |
| 5126 | Use char because int might match the return type of a GCC |
| 5127 | builtin and then its argument prototype would still apply. */ |
| 5128 | #ifdef __cplusplus |
| 5129 | extern "C" |
| 5130 | #endif |
| 5131 | char blkid_get_cache (); |
| 5132 | int |
| 5133 | main () |
| 5134 | { |
| 5135 | return blkid_get_cache (); |
| 5136 | ; |
| 5137 | return 0; |
| 5138 | } |
| 5139 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5140 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5141 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5142 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5143 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5144 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5145 | rm -f core conftest.err conftest.$ac_objext \ |
| 5146 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5147 | LIBS=$ac_check_lib_save_LIBS |
| 5148 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5149 | { $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] | 5150 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5151 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5152 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5153 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5154 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5155 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5156 | fi |
| 5157 | |
| 5158 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5159 | { $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] | 5160 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5161 | else |
| 5162 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5163 | DEPLIBBLKID=$LIBBLKID |
| 5164 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5165 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5166 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5167 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5168 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5169 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5170 | { $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] | 5171 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5172 | fi |
| 5173 | |
| 5174 | else |
| 5175 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5176 | DEPLIBBLKID=$LIBBLKID |
| 5177 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5178 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5179 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5180 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5181 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5182 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5183 | { $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] | 5184 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5185 | |
| 5186 | fi |
| 5187 | |
| 5188 | |
| 5189 | |
| 5190 | |
| 5191 | |
| 5192 | |
| 5193 | |
| 5194 | |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5195 | QUOTA_MAN_COMMENT='.\"' |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5196 | QUOTA_CMT= |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5197 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5198 | |
| 5199 | |
| 5200 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5201 | if test -n "$ac_tool_prefix"; then |
| 5202 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5203 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5205 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5206 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5207 | $as_echo_n "(cached) " >&6 |
| 5208 | else |
| 5209 | case $PKG_CONFIG in |
| 5210 | [\\/]* | ?:[\\/]*) |
| 5211 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5212 | ;; |
| 5213 | *) |
| 5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5215 | for as_dir in $PATH |
| 5216 | do |
| 5217 | IFS=$as_save_IFS |
| 5218 | test -z "$as_dir" && as_dir=. |
| 5219 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5221 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5223 | break 2 |
| 5224 | fi |
| 5225 | done |
| 5226 | done |
| 5227 | IFS=$as_save_IFS |
| 5228 | |
| 5229 | ;; |
| 5230 | esac |
| 5231 | fi |
| 5232 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5233 | if test -n "$PKG_CONFIG"; then |
| 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5235 | $as_echo "$PKG_CONFIG" >&6; } |
| 5236 | else |
| 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5238 | $as_echo "no" >&6; } |
| 5239 | fi |
| 5240 | |
| 5241 | |
| 5242 | fi |
| 5243 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5244 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5245 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5246 | set dummy pkg-config; ac_word=$2 |
| 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5248 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5249 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5250 | $as_echo_n "(cached) " >&6 |
| 5251 | else |
| 5252 | case $ac_pt_PKG_CONFIG in |
| 5253 | [\\/]* | ?:[\\/]*) |
| 5254 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5255 | ;; |
| 5256 | *) |
| 5257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5258 | for as_dir in $PATH |
| 5259 | do |
| 5260 | IFS=$as_save_IFS |
| 5261 | test -z "$as_dir" && as_dir=. |
| 5262 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5264 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5266 | break 2 |
| 5267 | fi |
| 5268 | done |
| 5269 | done |
| 5270 | IFS=$as_save_IFS |
| 5271 | |
| 5272 | ;; |
| 5273 | esac |
| 5274 | fi |
| 5275 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5276 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5278 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5279 | else |
| 5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5281 | $as_echo "no" >&6; } |
| 5282 | fi |
| 5283 | |
| 5284 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5285 | PKG_CONFIG="" |
| 5286 | else |
| 5287 | case $cross_compiling:$ac_tool_warned in |
| 5288 | yes:) |
| 5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5290 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5291 | ac_tool_warned=yes ;; |
| 5292 | esac |
| 5293 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5294 | fi |
| 5295 | else |
| 5296 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5297 | fi |
| 5298 | |
| 5299 | fi |
| 5300 | if test -n "$PKG_CONFIG"; then |
| 5301 | _pkg_min_version=0.9.0 |
| 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5303 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5304 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5306 | $as_echo "yes" >&6; } |
| 5307 | else |
| 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5309 | $as_echo "no" >&6; } |
| 5310 | PKG_CONFIG="" |
| 5311 | fi |
| 5312 | |
| 5313 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5314 | |
| 5315 | # Check whether --enable-quota was given. |
| 5316 | if test "${enable_quota+set}" = set; then : |
| 5317 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5318 | then |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5319 | QUOTA_CMT=# |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5321 | $as_echo "Disabling quota support" >&6; } |
| 5322 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5323 | QUOTA_CMT= |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5324 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5325 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5327 | $as_echo "Enabling quota support" >&6; } |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5328 | QUOTA_MAN_COMMENT="" |
| 5329 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5330 | fi |
| 5331 | |
| 5332 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5333 | QUOTA_CMT=# |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5335 | $as_echo "Disabling quota support by default" >&6; } |
| 5336 | |
| 5337 | fi |
| 5338 | |
| 5339 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5340 | DEPLIBQUOTA=$LIBQUOTA |
| 5341 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5342 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5343 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5344 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5352 | |
| 5353 | # Check whether --enable-backtrace was given. |
| 5354 | if test "${enable_backtrace+set}" = set; then : |
| 5355 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5356 | then |
| 5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5358 | $as_echo "Disabling use of backtrace" >&6; } |
| 5359 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5360 | |
| 5361 | else |
| 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5363 | $as_echo "Enabling use of backtrace" >&6; } |
| 5364 | fi |
| 5365 | |
| 5366 | else |
| 5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5368 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5369 | |
| 5370 | fi |
| 5371 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5372 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5373 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5374 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5375 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5376 | { $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] | 5377 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5378 | DEBUGFS_CMT="#" |
| 5379 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5380 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5381 | { $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] | 5382 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5383 | fi |
| 5384 | |
| 5385 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5386 | { $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] | 5387 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5388 | DEBUGFS_CMT= |
| 5389 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5390 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5392 | |
| 5393 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5394 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5395 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5396 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5397 | { $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] | 5398 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5399 | IMAGER_CMT="#" |
| 5400 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5401 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5402 | { $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] | 5403 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5404 | fi |
| 5405 | |
| 5406 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5407 | { $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] | 5408 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5409 | IMAGER_CMT= |
| 5410 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5411 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5412 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5413 | |
| 5414 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5415 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5416 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5417 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5418 | { $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] | 5419 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5420 | RESIZER_CMT="#" |
| 5421 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5422 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5423 | { $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] | 5424 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5425 | fi |
| 5426 | |
| 5427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5428 | { $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] | 5429 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5430 | RESIZER_CMT= |
| 5431 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5432 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5433 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5434 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5435 | # Check whether --enable-defrag was given. |
| 5436 | if test "${enable_defrag+set}" = set; then : |
| 5437 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5438 | then |
| 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5440 | $as_echo "Disabling e4defrag support" >&6; } |
| 5441 | DEFRAG_CMT="#" |
| 5442 | else |
| 5443 | DEFRAG_CMT= |
| 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5445 | $as_echo "Enabling e4defrag support" >&6; } |
| 5446 | fi |
| 5447 | |
| 5448 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame^] | 5449 | if test -z "$WITH_DIET_LIBC" |
| 5450 | then |
| 5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5452 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame^] | 5453 | DEFRAG_CMT= |
| 5454 | else |
| 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5456 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5457 | DEFRAG_CMT="#" |
| 5458 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5459 | |
| 5460 | fi |
| 5461 | |
| 5462 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5463 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5464 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5465 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5466 | then |
| 5467 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5468 | { $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] | 5469 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5470 | else |
| 5471 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5472 | { $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] | 5473 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5474 | fi |
| 5475 | |
| 5476 | else |
| 5477 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5478 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5479 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5480 | { $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] | 5481 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5482 | ;; |
| 5483 | *) |
| 5484 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5485 | { $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] | 5486 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5487 | esac |
| 5488 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5489 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5490 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5491 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5492 | |
| 5493 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5494 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5495 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5496 | then |
| 5497 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5498 | { $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] | 5499 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5500 | else |
| 5501 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5502 | { $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] | 5503 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5504 | fi |
| 5505 | |
| 5506 | else |
| 5507 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5508 | { $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] | 5509 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5510 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5511 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5512 | |
| 5513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5514 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5515 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5516 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5517 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5518 | then |
| 5519 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5520 | { $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] | 5521 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5522 | else |
| 5523 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5524 | { $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] | 5525 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5526 | fi |
| 5527 | |
| 5528 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5529 | if test -n "$WITH_DIET_LIBC" |
| 5530 | then |
| 5531 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5532 | { $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] | 5533 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5534 | else |
| 5535 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5536 | { $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] | 5537 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5538 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5539 | |
| 5540 | fi |
| 5541 | |
| 5542 | if test "$try_tls" = "yes" |
| 5543 | then |
| 5544 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5545 | { $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] | 5546 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5547 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5548 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5549 | else |
| 5550 | |
| 5551 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5552 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5553 | case $ax_tls_keyword in |
| 5554 | none) ac_cv_tls=none ; break ;; |
| 5555 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5557 | /* end confdefs.h. */ |
| 5558 | #include <stdlib.h> |
| 5559 | static void |
| 5560 | foo(void) { |
| 5561 | static $ax_tls_keyword int bar; |
| 5562 | exit(1); |
| 5563 | } |
| 5564 | int |
| 5565 | main () |
| 5566 | { |
| 5567 | |
| 5568 | ; |
| 5569 | return 0; |
| 5570 | } |
| 5571 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5572 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5573 | ac_cv_tls=$ax_tls_keyword ; break |
| 5574 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5575 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5576 | |
| 5577 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5579 | esac |
| 5580 | done |
| 5581 | |
| 5582 | fi |
| 5583 | |
| 5584 | |
| 5585 | if test "$ac_cv_tls" != "none"; then |
| 5586 | |
| 5587 | cat >>confdefs.h <<_ACEOF |
| 5588 | #define TLS $ac_cv_tls |
| 5589 | _ACEOF |
| 5590 | |
| 5591 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5592 | { $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] | 5593 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5594 | |
| 5595 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5596 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5597 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5598 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5599 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5600 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5601 | { $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] | 5602 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5603 | UUIDD_CMT="#" |
| 5604 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5605 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5606 | |
| 5607 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5609 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5610 | fi |
| 5611 | |
| 5612 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5613 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5614 | |
| 5615 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5616 | { $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] | 5617 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5618 | |
| 5619 | fi |
| 5620 | |
| 5621 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5622 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5623 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5624 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5625 | PACKAGE=e2fsprogs |
| 5626 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5627 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5628 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5629 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5630 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5631 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5632 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5634 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5635 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5636 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5637 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5642 | { $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] | 5643 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5644 | set x ${MAKE-make} |
| 5645 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5646 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5647 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5648 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5649 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5650 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5651 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5652 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5653 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5654 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5655 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5656 | *@@@%%%=?*=@@@%%%*) |
| 5657 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5658 | *) |
| 5659 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5660 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5661 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5662 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5663 | 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] | 5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5665 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5666 | SET_MAKE= |
| 5667 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5669 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5670 | SET_MAKE="MAKE=${MAKE-make}" |
| 5671 | fi |
| 5672 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5673 | # Find a good install program. We prefer a C program (faster), |
| 5674 | # so one script is as good as another. But avoid the broken or |
| 5675 | # incompatible versions: |
| 5676 | # SysV /etc/install, /usr/sbin/install |
| 5677 | # SunOS /usr/etc/install |
| 5678 | # IRIX /sbin/install |
| 5679 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5680 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5681 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5682 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5683 | # 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] | 5684 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5685 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5686 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5687 | { $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] | 5688 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5689 | if test -z "$INSTALL"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5690 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5691 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5694 | for as_dir in $PATH |
| 5695 | do |
| 5696 | IFS=$as_save_IFS |
| 5697 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5698 | # Account for people who put trailing slashes in PATH elements. |
| 5699 | case $as_dir/ in #(( |
| 5700 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5701 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5702 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5703 | /usr/ucb/* ) ;; |
| 5704 | *) |
| 5705 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5706 | # Don't use installbsd from OSF since it installs stuff as root |
| 5707 | # by default. |
| 5708 | for ac_prog in ginstall scoinst install; do |
| 5709 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5710 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5711 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5712 | 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] | 5713 | # AIX install. It has an incompatible calling convention. |
| 5714 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5715 | elif test $ac_prog = install && |
| 5716 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5717 | # program-specific install script used by HP pwplus--don't use. |
| 5718 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5719 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5720 | rm -rf conftest.one conftest.two conftest.dir |
| 5721 | echo one > conftest.one |
| 5722 | echo two > conftest.two |
| 5723 | mkdir conftest.dir |
| 5724 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5725 | test -s conftest.one && test -s conftest.two && |
| 5726 | test -s conftest.dir/conftest.one && |
| 5727 | test -s conftest.dir/conftest.two |
| 5728 | then |
| 5729 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5730 | break 3 |
| 5731 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5732 | fi |
| 5733 | fi |
| 5734 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5735 | done |
| 5736 | ;; |
| 5737 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5738 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5739 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5740 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5741 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5742 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5743 | |
| 5744 | fi |
| 5745 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5746 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5747 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5748 | # As a last resort, use the slow shell script. Don't cache a |
| 5749 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5750 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5751 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5752 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5753 | fi |
| 5754 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5756 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5757 | |
| 5758 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5759 | # It thinks the first close brace ends the variable substitution. |
| 5760 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5761 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5762 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5763 | |
| 5764 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5765 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5766 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5767 | MKINSTALLDIRS= |
| 5768 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5769 | case "$ac_aux_dir" in |
| 5770 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5771 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5772 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5773 | fi |
| 5774 | if test -z "$MKINSTALLDIRS"; then |
| 5775 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5776 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5778 | |
| 5779 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5780 | { $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] | 5781 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5782 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5783 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5784 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5785 | else |
| 5786 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5787 | fi |
| 5788 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5790 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5791 | |
| 5792 | |
| 5793 | |
| 5794 | |
| 5795 | |
| 5796 | |
| 5797 | # Prepare PATH_SEPARATOR. |
| 5798 | # The user is always right. |
| 5799 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5800 | echo "#! /bin/sh" >conf$$.sh |
| 5801 | echo "exit 0" >>conf$$.sh |
| 5802 | chmod +x conf$$.sh |
| 5803 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5804 | PATH_SEPARATOR=';' |
| 5805 | else |
| 5806 | PATH_SEPARATOR=: |
| 5807 | fi |
| 5808 | rm -f conf$$.sh |
| 5809 | fi |
| 5810 | |
| 5811 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5812 | # as systems may use methods other than mode bits to determine executability. |
| 5813 | cat >conf$$.file <<_ASEOF |
| 5814 | #! /bin/sh |
| 5815 | exit 0 |
| 5816 | _ASEOF |
| 5817 | chmod +x conf$$.file |
| 5818 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5819 | ac_executable_p="test -x" |
| 5820 | else |
| 5821 | ac_executable_p="test -f" |
| 5822 | fi |
| 5823 | rm -f conf$$.file |
| 5824 | |
| 5825 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5826 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5827 | { $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] | 5828 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5829 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5830 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5831 | else |
| 5832 | case "$MSGFMT" in |
| 5833 | [\\/]* | ?:[\\/]*) |
| 5834 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5835 | ;; |
| 5836 | *) |
| 5837 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5838 | for ac_dir in $PATH; do |
| 5839 | IFS="$ac_save_IFS" |
| 5840 | test -z "$ac_dir" && ac_dir=. |
| 5841 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5842 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5843 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5844 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5845 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5846 | break 2 |
| 5847 | fi |
| 5848 | fi |
| 5849 | done |
| 5850 | done |
| 5851 | IFS="$ac_save_IFS" |
| 5852 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5853 | ;; |
| 5854 | esac |
| 5855 | fi |
| 5856 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5857 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5859 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5860 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5862 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5863 | fi |
| 5864 | |
| 5865 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5866 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5867 | { $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] | 5868 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5869 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5870 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5871 | else |
| 5872 | case $GMSGFMT in |
| 5873 | [\\/]* | ?:[\\/]*) |
| 5874 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5875 | ;; |
| 5876 | *) |
| 5877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5878 | for as_dir in $PATH |
| 5879 | do |
| 5880 | IFS=$as_save_IFS |
| 5881 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5884 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5885 | $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] | 5886 | break 2 |
| 5887 | fi |
| 5888 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5889 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5890 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5891 | |
| 5892 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5893 | ;; |
| 5894 | esac |
| 5895 | fi |
| 5896 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5897 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5899 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5900 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5902 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5903 | fi |
| 5904 | |
| 5905 | |
| 5906 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5908 | # Prepare PATH_SEPARATOR. |
| 5909 | # The user is always right. |
| 5910 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5911 | echo "#! /bin/sh" >conf$$.sh |
| 5912 | echo "exit 0" >>conf$$.sh |
| 5913 | chmod +x conf$$.sh |
| 5914 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5915 | PATH_SEPARATOR=';' |
| 5916 | else |
| 5917 | PATH_SEPARATOR=: |
| 5918 | fi |
| 5919 | rm -f conf$$.sh |
| 5920 | fi |
| 5921 | |
| 5922 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5923 | # as systems may use methods other than mode bits to determine executability. |
| 5924 | cat >conf$$.file <<_ASEOF |
| 5925 | #! /bin/sh |
| 5926 | exit 0 |
| 5927 | _ASEOF |
| 5928 | chmod +x conf$$.file |
| 5929 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5930 | ac_executable_p="test -x" |
| 5931 | else |
| 5932 | ac_executable_p="test -f" |
| 5933 | fi |
| 5934 | rm -f conf$$.file |
| 5935 | |
| 5936 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5937 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5938 | { $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] | 5939 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5940 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5941 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5942 | else |
| 5943 | case "$XGETTEXT" in |
| 5944 | [\\/]* | ?:[\\/]*) |
| 5945 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5946 | ;; |
| 5947 | *) |
| 5948 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5949 | for ac_dir in $PATH; do |
| 5950 | IFS="$ac_save_IFS" |
| 5951 | test -z "$ac_dir" && ac_dir=. |
| 5952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5953 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5954 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5955 | (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 |
| 5956 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5957 | break 2 |
| 5958 | fi |
| 5959 | fi |
| 5960 | done |
| 5961 | done |
| 5962 | IFS="$ac_save_IFS" |
| 5963 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5964 | ;; |
| 5965 | esac |
| 5966 | fi |
| 5967 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5968 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5970 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5971 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5973 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5974 | fi |
| 5975 | |
| 5976 | rm -f messages.po |
| 5977 | |
| 5978 | |
| 5979 | # Prepare PATH_SEPARATOR. |
| 5980 | # The user is always right. |
| 5981 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5982 | echo "#! /bin/sh" >conf$$.sh |
| 5983 | echo "exit 0" >>conf$$.sh |
| 5984 | chmod +x conf$$.sh |
| 5985 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5986 | PATH_SEPARATOR=';' |
| 5987 | else |
| 5988 | PATH_SEPARATOR=: |
| 5989 | fi |
| 5990 | rm -f conf$$.sh |
| 5991 | fi |
| 5992 | |
| 5993 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5994 | # as systems may use methods other than mode bits to determine executability. |
| 5995 | cat >conf$$.file <<_ASEOF |
| 5996 | #! /bin/sh |
| 5997 | exit 0 |
| 5998 | _ASEOF |
| 5999 | chmod +x conf$$.file |
| 6000 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6001 | ac_executable_p="test -x" |
| 6002 | else |
| 6003 | ac_executable_p="test -f" |
| 6004 | fi |
| 6005 | rm -f conf$$.file |
| 6006 | |
| 6007 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6008 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6009 | { $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] | 6010 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6011 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6012 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6013 | else |
| 6014 | case "$MSGMERGE" in |
| 6015 | [\\/]* | ?:[\\/]*) |
| 6016 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6017 | ;; |
| 6018 | *) |
| 6019 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6020 | for ac_dir in $PATH; do |
| 6021 | IFS="$ac_save_IFS" |
| 6022 | test -z "$ac_dir" && ac_dir=. |
| 6023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6024 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6025 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6026 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6027 | break 2 |
| 6028 | fi |
| 6029 | fi |
| 6030 | done |
| 6031 | done |
| 6032 | IFS="$ac_save_IFS" |
| 6033 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6034 | ;; |
| 6035 | esac |
| 6036 | fi |
| 6037 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6038 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6040 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6041 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6043 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6044 | fi |
| 6045 | |
| 6046 | |
| 6047 | if test "$GMSGFMT" != ":"; then |
| 6048 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6049 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6050 | : ; |
| 6051 | else |
| 6052 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6053 | { $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] | 6054 | $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] | 6055 | GMSGFMT=":" |
| 6056 | fi |
| 6057 | fi |
| 6058 | |
| 6059 | if test "$XGETTEXT" != ":"; then |
| 6060 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6061 | (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 |
| 6062 | : ; |
| 6063 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | { $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] | 6065 | $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] | 6066 | XGETTEXT=":" |
| 6067 | fi |
| 6068 | rm -f messages.po |
| 6069 | fi |
| 6070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6071 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6072 | |
| 6073 | |
| 6074 | if test -n "$ac_tool_prefix"; then |
| 6075 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6076 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6077 | { $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] | 6078 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6079 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6080 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6081 | else |
| 6082 | if test -n "$RANLIB"; then |
| 6083 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6086 | for as_dir in $PATH |
| 6087 | do |
| 6088 | IFS=$as_save_IFS |
| 6089 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6090 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6092 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6093 | $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] | 6094 | break 2 |
| 6095 | fi |
| 6096 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6097 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6098 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6099 | |
| 6100 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | fi |
| 6102 | RANLIB=$ac_cv_prog_RANLIB |
| 6103 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6105 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6106 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6108 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6111 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6112 | fi |
| 6113 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6114 | ac_ct_RANLIB=$RANLIB |
| 6115 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6116 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6117 | { $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] | 6118 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6119 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6120 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | else |
| 6122 | if test -n "$ac_ct_RANLIB"; then |
| 6123 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6124 | else |
| 6125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6126 | for as_dir in $PATH |
| 6127 | do |
| 6128 | IFS=$as_save_IFS |
| 6129 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6130 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6132 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6133 | $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] | 6134 | break 2 |
| 6135 | fi |
| 6136 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6137 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6138 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6140 | fi |
| 6141 | fi |
| 6142 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6143 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6144 | { $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] | 6145 | $as_echo "$ac_ct_RANLIB" >&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 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6148 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6149 | fi |
| 6150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6151 | if test "x$ac_ct_RANLIB" = x; then |
| 6152 | RANLIB=":" |
| 6153 | else |
| 6154 | case $cross_compiling:$ac_tool_warned in |
| 6155 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6156 | { $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] | 6157 | $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] | 6158 | ac_tool_warned=yes ;; |
| 6159 | esac |
| 6160 | RANLIB=$ac_ct_RANLIB |
| 6161 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6162 | else |
| 6163 | RANLIB="$ac_cv_prog_RANLIB" |
| 6164 | fi |
| 6165 | |
| 6166 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6167 | { $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] | 6168 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6169 | if ${ac_cv_lib_cposix_strerror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6170 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6171 | else |
| 6172 | ac_check_lib_save_LIBS=$LIBS |
| 6173 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6175 | /* end confdefs.h. */ |
| 6176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6177 | /* Override any GCC internal prototype to avoid an error. |
| 6178 | Use char because int might match the return type of a GCC |
| 6179 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6180 | #ifdef __cplusplus |
| 6181 | extern "C" |
| 6182 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6183 | char strerror (); |
| 6184 | int |
| 6185 | main () |
| 6186 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6187 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6188 | ; |
| 6189 | return 0; |
| 6190 | } |
| 6191 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6192 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6193 | ac_cv_lib_cposix_strerror=yes |
| 6194 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6195 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6196 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6197 | rm -f core conftest.err conftest.$ac_objext \ |
| 6198 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6199 | LIBS=$ac_check_lib_save_LIBS |
| 6200 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6201 | { $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] | 6202 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6203 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6204 | LIBS="$LIBS -lcposix" |
| 6205 | fi |
| 6206 | |
| 6207 | |
| 6208 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6209 | |
| 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6211 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6212 | if ${ac_cv_path_GREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6213 | $as_echo_n "(cached) " >&6 |
| 6214 | else |
| 6215 | if test -z "$GREP"; then |
| 6216 | ac_path_GREP_found=false |
| 6217 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6219 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6220 | do |
| 6221 | IFS=$as_save_IFS |
| 6222 | test -z "$as_dir" && as_dir=. |
| 6223 | for ac_prog in grep ggrep; do |
| 6224 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6225 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6226 | as_fn_executable_p "$ac_path_GREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6227 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6228 | # Check for GNU $ac_path_GREP |
| 6229 | case `"$ac_path_GREP" --version 2>&1` in |
| 6230 | *GNU*) |
| 6231 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6232 | *) |
| 6233 | ac_count=0 |
| 6234 | $as_echo_n 0123456789 >"conftest.in" |
| 6235 | while : |
| 6236 | do |
| 6237 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6238 | mv "conftest.tmp" "conftest.in" |
| 6239 | cp "conftest.in" "conftest.nl" |
| 6240 | $as_echo 'GREP' >> "conftest.nl" |
| 6241 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6242 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6243 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6244 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6245 | # Best one so far, save it but keep looking for a better one |
| 6246 | ac_cv_path_GREP="$ac_path_GREP" |
| 6247 | ac_path_GREP_max=$ac_count |
| 6248 | fi |
| 6249 | # 10*(2^10) chars as input seems more than enough |
| 6250 | test $ac_count -gt 10 && break |
| 6251 | done |
| 6252 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6253 | esac |
| 6254 | |
| 6255 | $ac_path_GREP_found && break 3 |
| 6256 | done |
| 6257 | done |
| 6258 | done |
| 6259 | IFS=$as_save_IFS |
| 6260 | if test -z "$ac_cv_path_GREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6261 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6262 | fi |
| 6263 | else |
| 6264 | ac_cv_path_GREP=$GREP |
| 6265 | fi |
| 6266 | |
| 6267 | fi |
| 6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6269 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6270 | GREP="$ac_cv_path_GREP" |
| 6271 | |
| 6272 | |
| 6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6274 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6275 | if ${ac_cv_path_EGREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6276 | $as_echo_n "(cached) " >&6 |
| 6277 | else |
| 6278 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6279 | then ac_cv_path_EGREP="$GREP -E" |
| 6280 | else |
| 6281 | if test -z "$EGREP"; then |
| 6282 | ac_path_EGREP_found=false |
| 6283 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6285 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6286 | do |
| 6287 | IFS=$as_save_IFS |
| 6288 | test -z "$as_dir" && as_dir=. |
| 6289 | for ac_prog in egrep; do |
| 6290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6291 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6292 | as_fn_executable_p "$ac_path_EGREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6293 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6294 | # Check for GNU $ac_path_EGREP |
| 6295 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6296 | *GNU*) |
| 6297 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6298 | *) |
| 6299 | ac_count=0 |
| 6300 | $as_echo_n 0123456789 >"conftest.in" |
| 6301 | while : |
| 6302 | do |
| 6303 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6304 | mv "conftest.tmp" "conftest.in" |
| 6305 | cp "conftest.in" "conftest.nl" |
| 6306 | $as_echo 'EGREP' >> "conftest.nl" |
| 6307 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6308 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6309 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6310 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6311 | # Best one so far, save it but keep looking for a better one |
| 6312 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6313 | ac_path_EGREP_max=$ac_count |
| 6314 | fi |
| 6315 | # 10*(2^10) chars as input seems more than enough |
| 6316 | test $ac_count -gt 10 && break |
| 6317 | done |
| 6318 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6319 | esac |
| 6320 | |
| 6321 | $ac_path_EGREP_found && break 3 |
| 6322 | done |
| 6323 | done |
| 6324 | done |
| 6325 | IFS=$as_save_IFS |
| 6326 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6327 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6328 | fi |
| 6329 | else |
| 6330 | ac_cv_path_EGREP=$EGREP |
| 6331 | fi |
| 6332 | |
| 6333 | fi |
| 6334 | fi |
| 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6336 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6337 | EGREP="$ac_cv_path_EGREP" |
| 6338 | |
| 6339 | |
| 6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6341 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6342 | if ${ac_cv_header_stdc+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6343 | $as_echo_n "(cached) " >&6 |
| 6344 | else |
| 6345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6346 | /* end confdefs.h. */ |
| 6347 | #include <stdlib.h> |
| 6348 | #include <stdarg.h> |
| 6349 | #include <string.h> |
| 6350 | #include <float.h> |
| 6351 | |
| 6352 | int |
| 6353 | main () |
| 6354 | { |
| 6355 | |
| 6356 | ; |
| 6357 | return 0; |
| 6358 | } |
| 6359 | _ACEOF |
| 6360 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6361 | ac_cv_header_stdc=yes |
| 6362 | else |
| 6363 | ac_cv_header_stdc=no |
| 6364 | fi |
| 6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6366 | |
| 6367 | if test $ac_cv_header_stdc = yes; then |
| 6368 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6370 | /* end confdefs.h. */ |
| 6371 | #include <string.h> |
| 6372 | |
| 6373 | _ACEOF |
| 6374 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6375 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6376 | |
| 6377 | else |
| 6378 | ac_cv_header_stdc=no |
| 6379 | fi |
| 6380 | rm -f conftest* |
| 6381 | |
| 6382 | fi |
| 6383 | |
| 6384 | if test $ac_cv_header_stdc = yes; then |
| 6385 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6387 | /* end confdefs.h. */ |
| 6388 | #include <stdlib.h> |
| 6389 | |
| 6390 | _ACEOF |
| 6391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6392 | $EGREP "free" >/dev/null 2>&1; then : |
| 6393 | |
| 6394 | else |
| 6395 | ac_cv_header_stdc=no |
| 6396 | fi |
| 6397 | rm -f conftest* |
| 6398 | |
| 6399 | fi |
| 6400 | |
| 6401 | if test $ac_cv_header_stdc = yes; then |
| 6402 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6403 | if test "$cross_compiling" = yes; then : |
| 6404 | : |
| 6405 | else |
| 6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6407 | /* end confdefs.h. */ |
| 6408 | #include <ctype.h> |
| 6409 | #include <stdlib.h> |
| 6410 | #if ((' ' & 0x0FF) == 0x020) |
| 6411 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6412 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6413 | #else |
| 6414 | # define ISLOWER(c) \ |
| 6415 | (('a' <= (c) && (c) <= 'i') \ |
| 6416 | || ('j' <= (c) && (c) <= 'r') \ |
| 6417 | || ('s' <= (c) && (c) <= 'z')) |
| 6418 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6419 | #endif |
| 6420 | |
| 6421 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6422 | int |
| 6423 | main () |
| 6424 | { |
| 6425 | int i; |
| 6426 | for (i = 0; i < 256; i++) |
| 6427 | if (XOR (islower (i), ISLOWER (i)) |
| 6428 | || toupper (i) != TOUPPER (i)) |
| 6429 | return 2; |
| 6430 | return 0; |
| 6431 | } |
| 6432 | _ACEOF |
| 6433 | if ac_fn_c_try_run "$LINENO"; then : |
| 6434 | |
| 6435 | else |
| 6436 | ac_cv_header_stdc=no |
| 6437 | fi |
| 6438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6439 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6440 | fi |
| 6441 | |
| 6442 | fi |
| 6443 | fi |
| 6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6445 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6446 | if test $ac_cv_header_stdc = yes; then |
| 6447 | |
| 6448 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6449 | |
| 6450 | fi |
| 6451 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6452 | { $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] | 6453 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6454 | if ${ac_cv_c_const+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6455 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6456 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6458 | /* end confdefs.h. */ |
| 6459 | |
| 6460 | int |
| 6461 | main () |
| 6462 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6464 | #ifndef __cplusplus |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6465 | /* Ultrix mips cc rejects this sort of thing. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6466 | typedef int charset[2]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6467 | const charset cs = { 0, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6468 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6469 | char const *const *pcpcc; |
| 6470 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6471 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6472 | struct point {int x, y;}; |
| 6473 | static struct point const zero = {0,0}; |
| 6474 | /* AIX XL C 1.02.0.0 rejects this. |
| 6475 | It does not let you subtract one const X* pointer from another in |
| 6476 | an arm of an if-expression whose if-part is not a constant |
| 6477 | expression */ |
| 6478 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6479 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6480 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6481 | ++pcpcc; |
| 6482 | ppc = (char**) pcpcc; |
| 6483 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6484 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 6485 | char tx; |
| 6486 | char *t = &tx; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6487 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6488 | |
| 6489 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6490 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6491 | } |
| 6492 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6493 | int x[] = {25, 17}; |
| 6494 | const int *foo = &x[0]; |
| 6495 | ++foo; |
| 6496 | } |
| 6497 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6498 | typedef const int *iptr; |
| 6499 | iptr p = 0; |
| 6500 | ++p; |
| 6501 | } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6502 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6503 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6504 | struct s { int j; const int *ap[3]; } bx; |
| 6505 | struct s *b = &bx; b->j = 5; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6506 | } |
| 6507 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6508 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6509 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6510 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6511 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6512 | #endif |
| 6513 | |
| 6514 | ; |
| 6515 | return 0; |
| 6516 | } |
| 6517 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6518 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6519 | ac_cv_c_const=yes |
| 6520 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6521 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6522 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6525 | { $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] | 6526 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | if test $ac_cv_c_const = no; then |
| 6528 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6529 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | |
| 6531 | fi |
| 6532 | |
| 6533 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6535 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6536 | if ${bh_cv_c_signed+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6537 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6540 | /* end confdefs.h. */ |
| 6541 | |
| 6542 | int |
| 6543 | main () |
| 6544 | { |
| 6545 | signed char x; |
| 6546 | ; |
| 6547 | return 0; |
| 6548 | } |
| 6549 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6550 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6551 | bh_cv_c_signed=yes |
| 6552 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6553 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6554 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6556 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6557 | { $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] | 6558 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6559 | if test $bh_cv_c_signed = no; then |
| 6560 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6561 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6562 | |
| 6563 | fi |
| 6564 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6566 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6567 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6568 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6569 | else |
| 6570 | ac_cv_c_inline=no |
| 6571 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6573 | /* end confdefs.h. */ |
| 6574 | #ifndef __cplusplus |
| 6575 | typedef int foo_t; |
| 6576 | static $ac_kw foo_t static_foo () {return 0; } |
| 6577 | $ac_kw foo_t foo () {return 0; } |
| 6578 | #endif |
| 6579 | |
| 6580 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6581 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6582 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6583 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6585 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6586 | done |
| 6587 | |
| 6588 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6589 | { $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] | 6590 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6593 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6594 | *) |
| 6595 | case $ac_cv_c_inline in |
| 6596 | no) ac_val=;; |
| 6597 | *) ac_val=$ac_cv_c_inline;; |
| 6598 | esac |
| 6599 | cat >>confdefs.h <<_ACEOF |
| 6600 | #ifndef __cplusplus |
| 6601 | #define inline $ac_val |
| 6602 | #endif |
| 6603 | _ACEOF |
| 6604 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6605 | esac |
| 6606 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6607 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6608 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6609 | inttypes.h stdint.h unistd.h |
| 6610 | do : |
| 6611 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6612 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6613 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6614 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6615 | cat >>confdefs.h <<_ACEOF |
| 6616 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6617 | _ACEOF |
| 6618 | |
| 6619 | fi |
| 6620 | |
| 6621 | done |
| 6622 | |
| 6623 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6624 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6625 | if test "x$ac_cv_type_off_t" = xyes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6626 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6627 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | |
| 6629 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6630 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | _ACEOF |
| 6632 | |
| 6633 | fi |
| 6634 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6635 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6636 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6638 | else |
| 6639 | |
| 6640 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6641 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | _ACEOF |
| 6643 | |
| 6644 | fi |
| 6645 | |
| 6646 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6647 | { $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] | 6648 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6649 | if ${ac_cv_type_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6650 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6653 | /* end confdefs.h. */ |
| 6654 | long long ll = 1LL; int i = 63; |
| 6655 | int |
| 6656 | main () |
| 6657 | { |
| 6658 | long long llmax = (long long) -1; |
| 6659 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6664 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6665 | ac_cv_type_long_long=yes |
| 6666 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6667 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6669 | rm -f core conftest.err conftest.$ac_objext \ |
| 6670 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6671 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6672 | { $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] | 6673 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6674 | if test $ac_cv_type_long_long = yes; then |
| 6675 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6676 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | |
| 6678 | fi |
| 6679 | |
| 6680 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6681 | { $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] | 6682 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6683 | if ${gt_cv_c_long_double+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6684 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | else |
| 6686 | if test "$GCC" = yes; then |
| 6687 | gt_cv_c_long_double=yes |
| 6688 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6690 | /* end confdefs.h. */ |
| 6691 | |
| 6692 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6693 | long double foo = 0.0; |
| 6694 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6695 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6696 | |
| 6697 | int |
| 6698 | main () |
| 6699 | { |
| 6700 | |
| 6701 | ; |
| 6702 | return 0; |
| 6703 | } |
| 6704 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6705 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6706 | gt_cv_c_long_double=yes |
| 6707 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6708 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6709 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6711 | fi |
| 6712 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6713 | { $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] | 6714 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6715 | if test $gt_cv_c_long_double = yes; then |
| 6716 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6717 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | |
| 6719 | fi |
| 6720 | |
| 6721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6722 | { $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] | 6723 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6724 | if ${gt_cv_c_wchar_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6725 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6728 | /* end confdefs.h. */ |
| 6729 | #include <stddef.h> |
| 6730 | wchar_t foo = (wchar_t)'\0'; |
| 6731 | int |
| 6732 | main () |
| 6733 | { |
| 6734 | |
| 6735 | ; |
| 6736 | return 0; |
| 6737 | } |
| 6738 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6739 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | gt_cv_c_wchar_t=yes |
| 6741 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6742 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6743 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6745 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6746 | { $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] | 6747 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6748 | if test $gt_cv_c_wchar_t = yes; then |
| 6749 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6750 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | |
| 6752 | fi |
| 6753 | |
| 6754 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6755 | { $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] | 6756 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6757 | if ${gt_cv_c_wint_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6758 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6759 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6761 | /* end confdefs.h. */ |
| 6762 | #include <wchar.h> |
| 6763 | wint_t foo = (wchar_t)'\0'; |
| 6764 | int |
| 6765 | main () |
| 6766 | { |
| 6767 | |
| 6768 | ; |
| 6769 | return 0; |
| 6770 | } |
| 6771 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6772 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | gt_cv_c_wint_t=yes |
| 6774 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6775 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6776 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6778 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6779 | { $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] | 6780 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | if test $gt_cv_c_wint_t = yes; then |
| 6782 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6783 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | |
| 6785 | fi |
| 6786 | |
| 6787 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6788 | { $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] | 6789 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6790 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6791 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6792 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6794 | /* end confdefs.h. */ |
| 6795 | #include <sys/types.h> |
| 6796 | #include <inttypes.h> |
| 6797 | int |
| 6798 | main () |
| 6799 | { |
| 6800 | uintmax_t i = (uintmax_t) -1; |
| 6801 | ; |
| 6802 | return 0; |
| 6803 | } |
| 6804 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6805 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | jm_ac_cv_header_inttypes_h=yes |
| 6807 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6808 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6809 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6812 | { $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] | 6813 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6815 | |
| 6816 | cat >>confdefs.h <<_ACEOF |
| 6817 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6818 | _ACEOF |
| 6819 | |
| 6820 | fi |
| 6821 | |
| 6822 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6823 | { $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] | 6824 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6825 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6826 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6829 | /* end confdefs.h. */ |
| 6830 | #include <sys/types.h> |
| 6831 | #include <stdint.h> |
| 6832 | int |
| 6833 | main () |
| 6834 | { |
| 6835 | uintmax_t i = (uintmax_t) -1; |
| 6836 | ; |
| 6837 | return 0; |
| 6838 | } |
| 6839 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6840 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6841 | jm_ac_cv_header_stdint_h=yes |
| 6842 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6843 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6847 | { $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] | 6848 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6849 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6850 | |
| 6851 | cat >>confdefs.h <<_ACEOF |
| 6852 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6853 | _ACEOF |
| 6854 | |
| 6855 | fi |
| 6856 | |
| 6857 | |
| 6858 | |
| 6859 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6860 | { $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] | 6861 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6862 | if ${gt_cv_c_intmax_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6863 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6864 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | /* end confdefs.h. */ |
| 6867 | |
| 6868 | #include <stddef.h> |
| 6869 | #include <stdlib.h> |
| 6870 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6871 | #include <stdint.h> |
| 6872 | #endif |
| 6873 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6874 | #include <inttypes.h> |
| 6875 | #endif |
| 6876 | |
| 6877 | int |
| 6878 | main () |
| 6879 | { |
| 6880 | intmax_t x = -1; |
| 6881 | ; |
| 6882 | return 0; |
| 6883 | } |
| 6884 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6885 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6886 | gt_cv_c_intmax_t=yes |
| 6887 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6888 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6889 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6891 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6892 | { $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] | 6893 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6894 | if test $gt_cv_c_intmax_t = yes; then |
| 6895 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6896 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | |
| 6898 | fi |
| 6899 | |
| 6900 | |
| 6901 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6902 | { $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] | 6903 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6904 | if ${gt_cv_func_printf_posix+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6905 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6906 | else |
| 6907 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6908 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6909 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | /* end confdefs.h. */ |
| 6912 | |
| 6913 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6914 | notposix |
| 6915 | #endif |
| 6916 | |
| 6917 | _ACEOF |
| 6918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6919 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6920 | gt_cv_func_printf_posix="guessing no" |
| 6921 | else |
| 6922 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6923 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6924 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6925 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6926 | |
| 6927 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | /* end confdefs.h. */ |
| 6930 | |
| 6931 | #include <stdio.h> |
| 6932 | #include <string.h> |
| 6933 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6934 | dollar expansion (possibly an autoconf bug). */ |
| 6935 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6936 | static char buf[100]; |
| 6937 | int main () |
| 6938 | { |
| 6939 | sprintf (buf, format, 33, 55); |
| 6940 | return (strcmp (buf, "55 33") != 0); |
| 6941 | } |
| 6942 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6943 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6944 | gt_cv_func_printf_posix=yes |
| 6945 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6946 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6947 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6949 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6951 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6952 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6953 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6954 | { $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] | 6955 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | case $gt_cv_func_printf_posix in |
| 6957 | *yes) |
| 6958 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6959 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6960 | |
| 6961 | ;; |
| 6962 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6963 | |
| 6964 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6965 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6966 | { $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] | 6967 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6968 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6969 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6970 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6972 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6973 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | int |
| 6975 | main () |
| 6976 | { |
| 6977 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6978 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | ; |
| 6980 | return 0; |
| 6981 | } |
| 6982 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6983 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6985 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6986 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6987 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6988 | rm -f core conftest.err conftest.$ac_objext \ |
| 6989 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6990 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6991 | { $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] | 6992 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6993 | if test $ac_cv_working_alloca_h = yes; then |
| 6994 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6995 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6996 | |
| 6997 | fi |
| 6998 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7000 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7001 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7002 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7003 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7006 | #ifdef __GNUC__ |
| 7007 | # define alloca __builtin_alloca |
| 7008 | #else |
| 7009 | # ifdef _MSC_VER |
| 7010 | # include <malloc.h> |
| 7011 | # define alloca _alloca |
| 7012 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7013 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7014 | # include <alloca.h> |
| 7015 | # else |
| 7016 | # ifdef _AIX |
| 7017 | #pragma alloca |
| 7018 | # else |
| 7019 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7020 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7021 | # endif |
| 7022 | # endif |
| 7023 | # endif |
| 7024 | # endif |
| 7025 | #endif |
| 7026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | int |
| 7028 | main () |
| 7029 | { |
| 7030 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7031 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7032 | ; |
| 7033 | return 0; |
| 7034 | } |
| 7035 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7036 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7037 | ac_cv_func_alloca_works=yes |
| 7038 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7039 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7040 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7041 | rm -f core conftest.err conftest.$ac_objext \ |
| 7042 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7043 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7044 | { $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] | 7045 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7046 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7047 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7048 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7049 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7050 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7051 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7052 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7053 | # that cause trouble. Some versions do not even contain alloca or |
| 7054 | # contain a buggy version. If you still want to use their alloca, |
| 7055 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7057 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7058 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7059 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7060 | |
| 7061 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7062 | { $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] | 7063 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7064 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7065 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7066 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7068 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7069 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7070 | webecray |
| 7071 | #else |
| 7072 | wenotbecray |
| 7073 | #endif |
| 7074 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7075 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7077 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7078 | ac_cv_os_cray=yes |
| 7079 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7080 | ac_cv_os_cray=no |
| 7081 | fi |
| 7082 | rm -f conftest* |
| 7083 | |
| 7084 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7085 | { $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] | 7086 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7087 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7088 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7089 | 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] | 7090 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7091 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7092 | |
| 7093 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7095 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7096 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7097 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7098 | fi |
| 7099 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7101 | fi |
| 7102 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7103 | { $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] | 7104 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7105 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7106 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7107 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7108 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7109 | ac_cv_c_stack_direction=0 |
| 7110 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7112 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7113 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7114 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7115 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7116 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7117 | int dir, dummy = 0; |
| 7118 | if (! addr) |
| 7119 | addr = &dummy; |
| 7120 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7121 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7122 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7123 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7124 | |
| 7125 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7126 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7127 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7128 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7129 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7130 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7131 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7132 | ac_cv_c_stack_direction=1 |
| 7133 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7134 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7135 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7137 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7141 | { $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] | 7142 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7144 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7145 | _ACEOF |
| 7146 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7147 | |
| 7148 | fi |
| 7149 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7150 | |
| 7151 | |
| 7152 | |
| 7153 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7154 | do : |
| 7155 | 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] | 7156 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7157 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7158 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7159 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7160 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7161 | _ACEOF |
| 7162 | |
| 7163 | fi |
| 7164 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7165 | done |
| 7166 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7167 | |
| 7168 | |
| 7169 | |
| 7170 | |
| 7171 | |
| 7172 | |
| 7173 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7174 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7175 | do : |
| 7176 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7177 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7178 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7179 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | _ACEOF |
| 7181 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7182 | fi |
| 7183 | done |
| 7184 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7185 | { $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] | 7186 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7187 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7188 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7189 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7190 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7191 | ac_cv_func_mmap_fixed_mapped=no |
| 7192 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | /* end confdefs.h. */ |
| 7195 | $ac_includes_default |
| 7196 | /* malloc might have been renamed as rpl_malloc. */ |
| 7197 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7198 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7199 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7200 | Here is a matrix of mmap possibilities: |
| 7201 | mmap private not fixed |
| 7202 | mmap private fixed at somewhere currently unmapped |
| 7203 | mmap private fixed at somewhere already mapped |
| 7204 | mmap shared not fixed |
| 7205 | mmap shared fixed at somewhere currently unmapped |
| 7206 | mmap shared fixed at somewhere already mapped |
| 7207 | For private mappings, we should verify that changes cannot be read() |
| 7208 | back from the file, nor mmap's back from the file at a different |
| 7209 | address. (There have been systems where private was not correctly |
| 7210 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7211 | 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] | 7212 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7213 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7214 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7215 | |
| 7216 | Grep wants private fixed already mapped. |
| 7217 | The main things grep needs to know about mmap are: |
| 7218 | * does it exist and is it safe to write into the mmap'd area |
| 7219 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7221 | #include <fcntl.h> |
| 7222 | #include <sys/mman.h> |
| 7223 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7224 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | char *malloc (); |
| 7226 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7228 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7229 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7230 | # ifdef _SC_PAGESIZE |
| 7231 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7232 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7233 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7234 | # include <sys/param.h> |
| 7235 | # ifdef EXEC_PAGESIZE |
| 7236 | # define getpagesize() EXEC_PAGESIZE |
| 7237 | # else /* no EXEC_PAGESIZE */ |
| 7238 | # ifdef NBPG |
| 7239 | # define getpagesize() NBPG * CLSIZE |
| 7240 | # ifndef CLSIZE |
| 7241 | # define CLSIZE 1 |
| 7242 | # endif /* no CLSIZE */ |
| 7243 | # else /* no NBPG */ |
| 7244 | # ifdef NBPC |
| 7245 | # define getpagesize() NBPC |
| 7246 | # else /* no NBPC */ |
| 7247 | # ifdef PAGESIZE |
| 7248 | # define getpagesize() PAGESIZE |
| 7249 | # endif /* PAGESIZE */ |
| 7250 | # endif /* no NBPC */ |
| 7251 | # endif /* no NBPG */ |
| 7252 | # endif /* no EXEC_PAGESIZE */ |
| 7253 | # else /* no HAVE_SYS_PARAM_H */ |
| 7254 | # define getpagesize() 8192 /* punt totally */ |
| 7255 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7256 | # endif /* no _SC_PAGESIZE */ |
| 7257 | |
| 7258 | #endif /* no HAVE_GETPAGESIZE */ |
| 7259 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7260 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7261 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7262 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7263 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7264 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7265 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7266 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7270 | /* First, make a file with some known garbage in it. */ |
| 7271 | data = (char *) malloc (pagesize); |
| 7272 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7273 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7274 | for (i = 0; i < pagesize; ++i) |
| 7275 | *(data + i) = rand (); |
| 7276 | umask (0); |
| 7277 | fd = creat ("conftest.mmap", 0600); |
| 7278 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7279 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7280 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7281 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7282 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7283 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7284 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7285 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7286 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7287 | if (fd2 < 0) |
| 7288 | return 4; |
| 7289 | cdata2 = ""; |
| 7290 | if (write (fd2, cdata2, 1) != 1) |
| 7291 | return 5; |
| 7292 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7293 | if (data2 == MAP_FAILED) |
| 7294 | return 6; |
| 7295 | for (i = 0; i < pagesize; ++i) |
| 7296 | if (*(data2 + i)) |
| 7297 | return 7; |
| 7298 | close (fd2); |
| 7299 | if (munmap (data2, pagesize)) |
| 7300 | return 8; |
| 7301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7302 | /* Next, try to mmap the file at a fixed address which already has |
| 7303 | something else allocated at it. If we can, also make sure that |
| 7304 | we see the same garbage. */ |
| 7305 | fd = open ("conftest.mmap", O_RDWR); |
| 7306 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7307 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7308 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7309 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7310 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7311 | for (i = 0; i < pagesize; ++i) |
| 7312 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7313 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7314 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7315 | /* Finally, make sure that changes to the mapped area do not |
| 7316 | percolate back to the file as seen by read(). (This is a bug on |
| 7317 | some variants of i386 svr4.0.) */ |
| 7318 | for (i = 0; i < pagesize; ++i) |
| 7319 | *(data2 + i) = *(data2 + i) + 1; |
| 7320 | data3 = (char *) malloc (pagesize); |
| 7321 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7322 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7323 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7324 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7325 | for (i = 0; i < pagesize; ++i) |
| 7326 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7327 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7329 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7330 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7331 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7332 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7333 | ac_cv_func_mmap_fixed_mapped=yes |
| 7334 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7335 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7336 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7337 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7338 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7340 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7341 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7342 | { $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] | 7343 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7344 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7346 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7347 | |
| 7348 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7349 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7350 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7351 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7352 | { $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] | 7353 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7354 | if ${ac_cv_gnu_library_2_1+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7355 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7356 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7358 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7359 | |
| 7360 | #include <features.h> |
| 7361 | #ifdef __GNU_LIBRARY__ |
| 7362 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7363 | Lucky GNU user |
| 7364 | #endif |
| 7365 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7366 | |
| 7367 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7368 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7369 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7370 | ac_cv_gnu_library_2_1=yes |
| 7371 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7372 | ac_cv_gnu_library_2_1=no |
| 7373 | fi |
| 7374 | rm -f conftest* |
| 7375 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7376 | |
| 7377 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7378 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7379 | { $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] | 7380 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7381 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7382 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7383 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7384 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7385 | |
| 7386 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7387 | { $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] | 7388 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7389 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7390 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7391 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7392 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7393 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7394 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7395 | # Guess based on the CPU. |
| 7396 | case "$host_cpu" in |
| 7397 | alpha* | i3456786 | m68k | s390*) |
| 7398 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7399 | *) |
| 7400 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7401 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7402 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7403 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7405 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7406 | |
| 7407 | #include <stdlib.h> |
| 7408 | #include <signal.h> |
| 7409 | |
| 7410 | static void |
| 7411 | #ifdef __cplusplus |
| 7412 | sigfpe_handler (int sig) |
| 7413 | #else |
| 7414 | sigfpe_handler (sig) int sig; |
| 7415 | #endif |
| 7416 | { |
| 7417 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7418 | exit (sig != SIGFPE); |
| 7419 | } |
| 7420 | |
| 7421 | int x = 1; |
| 7422 | int y = 0; |
| 7423 | int z; |
| 7424 | int nan; |
| 7425 | |
| 7426 | int main () |
| 7427 | { |
| 7428 | signal (SIGFPE, sigfpe_handler); |
| 7429 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7430 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7431 | signal (SIGTRAP, sigfpe_handler); |
| 7432 | #endif |
| 7433 | /* Linux/SPARC yields signal SIGILL. */ |
| 7434 | #if defined (__sparc__) && defined (__linux__) |
| 7435 | signal (SIGILL, sigfpe_handler); |
| 7436 | #endif |
| 7437 | |
| 7438 | z = x / y; |
| 7439 | nan = y / y; |
| 7440 | exit (1); |
| 7441 | } |
| 7442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7443 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7444 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7445 | gt_cv_int_divbyzero_sigfpe=yes |
| 7446 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7447 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7449 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7450 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7451 | fi |
| 7452 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7453 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7454 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7455 | { $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] | 7456 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7457 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7458 | *yes) value=1;; |
| 7459 | *) value=0;; |
| 7460 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7461 | |
| 7462 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7465 | |
| 7466 | |
| 7467 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7468 | { $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] | 7469 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7470 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7471 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7472 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7474 | /* end confdefs.h. */ |
| 7475 | unsigned long long ull = 1ULL; int i = 63; |
| 7476 | int |
| 7477 | main () |
| 7478 | { |
| 7479 | unsigned long long ullmax = (unsigned long long) -1; |
| 7480 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7481 | ; |
| 7482 | return 0; |
| 7483 | } |
| 7484 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7485 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7486 | ac_cv_type_unsigned_long_long=yes |
| 7487 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7488 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7489 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7490 | rm -f core conftest.err conftest.$ac_objext \ |
| 7491 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7492 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7493 | { $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] | 7494 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7495 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7496 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7497 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7498 | |
| 7499 | fi |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7504 | 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] | 7505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7506 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7507 | && ac_type='unsigned long long' \ |
| 7508 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7509 | |
| 7510 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7511 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7512 | _ACEOF |
| 7513 | |
| 7514 | else |
| 7515 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7516 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7517 | |
| 7518 | fi |
| 7519 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7520 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7521 | { $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] | 7522 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7523 | if ${gt_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7524 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7525 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7526 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7528 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7529 | #include <sys/types.h> |
| 7530 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7531 | int |
| 7532 | main () |
| 7533 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7535 | ; |
| 7536 | return 0; |
| 7537 | } |
| 7538 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7539 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7540 | gt_cv_header_inttypes_h=yes |
| 7541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7542 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7545 | |
| 7546 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7547 | { $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] | 7548 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7549 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7550 | |
| 7551 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7552 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7553 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7554 | |
| 7555 | fi |
| 7556 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7557 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7558 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7559 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7560 | { $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] | 7561 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7562 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7563 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7564 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7567 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7568 | #include <inttypes.h> |
| 7569 | #ifdef PRId32 |
| 7570 | char *p = PRId32; |
| 7571 | #endif |
| 7572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7573 | int |
| 7574 | main () |
| 7575 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7577 | ; |
| 7578 | return 0; |
| 7579 | } |
| 7580 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7581 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7582 | gt_cv_inttypes_pri_broken=no |
| 7583 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7584 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | |
| 7588 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7589 | { $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] | 7590 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7591 | fi |
| 7592 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7593 | |
| 7594 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7595 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7597 | |
| 7598 | fi |
| 7599 | |
| 7600 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7601 | for ac_header in stdint.h |
| 7602 | do : |
| 7603 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7604 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7605 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7606 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7607 | _ACEOF |
| 7608 | |
| 7609 | fi |
| 7610 | |
| 7611 | done |
| 7612 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7613 | { $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] | 7614 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7615 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | /* end confdefs.h. */ |
| 7618 | |
| 7619 | #include <limits.h> |
| 7620 | #if HAVE_STDINT_H |
| 7621 | #include <stdint.h> |
| 7622 | #endif |
| 7623 | #ifdef SIZE_MAX |
| 7624 | Found it |
| 7625 | #endif |
| 7626 | |
| 7627 | _ACEOF |
| 7628 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7629 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | result=yes |
| 7631 | fi |
| 7632 | rm -f conftest* |
| 7633 | |
| 7634 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7635 | 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] | 7636 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7637 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7638 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7640 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7641 | |
| 7642 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7643 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7644 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7645 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7647 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7648 | |
| 7649 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7650 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7652 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7653 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7654 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7655 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7656 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | /* end confdefs.h. */ |
| 7659 | #include <stddef.h> |
| 7660 | extern size_t foo; |
| 7661 | extern unsigned long foo; |
| 7662 | |
| 7663 | int |
| 7664 | main () |
| 7665 | { |
| 7666 | |
| 7667 | ; |
| 7668 | return 0; |
| 7669 | } |
| 7670 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7671 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7672 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7673 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7675 | fi |
| 7676 | if test -z "$result"; then |
| 7677 | if test "$fits_in_uint" = 1; then |
| 7678 | result="$res_hi$res_lo"U |
| 7679 | else |
| 7680 | result="$res_hi$res_lo"UL |
| 7681 | fi |
| 7682 | else |
| 7683 | result='~(size_t)0' |
| 7684 | fi |
| 7685 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7687 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7688 | if test "$result" != yes; then |
| 7689 | |
| 7690 | cat >>confdefs.h <<_ACEOF |
| 7691 | #define SIZE_MAX $result |
| 7692 | _ACEOF |
| 7693 | |
| 7694 | fi |
| 7695 | |
| 7696 | |
| 7697 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7698 | for ac_header in stdint.h |
| 7699 | do : |
| 7700 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7701 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7702 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7703 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7704 | _ACEOF |
| 7705 | |
| 7706 | fi |
| 7707 | |
| 7708 | done |
| 7709 | |
| 7710 | |
| 7711 | |
| 7712 | if test "X$prefix" = "XNONE"; then |
| 7713 | acl_final_prefix="$ac_default_prefix" |
| 7714 | else |
| 7715 | acl_final_prefix="$prefix" |
| 7716 | fi |
| 7717 | if test "X$exec_prefix" = "XNONE"; then |
| 7718 | acl_final_exec_prefix='${prefix}' |
| 7719 | else |
| 7720 | acl_final_exec_prefix="$exec_prefix" |
| 7721 | fi |
| 7722 | acl_save_prefix="$prefix" |
| 7723 | prefix="$acl_final_prefix" |
| 7724 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7725 | prefix="$acl_save_prefix" |
| 7726 | |
| 7727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7728 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7729 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7730 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7731 | else |
| 7732 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7733 | fi |
| 7734 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7735 | # Prepare PATH_SEPARATOR. |
| 7736 | # The user is always right. |
| 7737 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7738 | echo "#! /bin/sh" >conf$$.sh |
| 7739 | echo "exit 0" >>conf$$.sh |
| 7740 | chmod +x conf$$.sh |
| 7741 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7742 | PATH_SEPARATOR=';' |
| 7743 | else |
| 7744 | PATH_SEPARATOR=: |
| 7745 | fi |
| 7746 | rm -f conf$$.sh |
| 7747 | fi |
| 7748 | ac_prog=ld |
| 7749 | if test "$GCC" = yes; then |
| 7750 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7751 | { $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] | 7752 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7753 | case $host in |
| 7754 | *-*-mingw*) |
| 7755 | # gcc leaves a trailing carriage return which upsets mingw |
| 7756 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7757 | *) |
| 7758 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7759 | esac |
| 7760 | case $ac_prog in |
| 7761 | # Accept absolute paths. |
| 7762 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7763 | re_direlt='/[^/][^/]*/\.\./' |
| 7764 | # Canonicalize the path of ld |
| 7765 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7766 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7767 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7768 | done |
| 7769 | test -z "$LD" && LD="$ac_prog" |
| 7770 | ;; |
| 7771 | "") |
| 7772 | # If it fails, then pretend we aren't using GCC. |
| 7773 | ac_prog=ld |
| 7774 | ;; |
| 7775 | *) |
| 7776 | # If it is relative, then search for the first ld in PATH. |
| 7777 | with_gnu_ld=unknown |
| 7778 | ;; |
| 7779 | esac |
| 7780 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7781 | { $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] | 7782 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7784 | { $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] | 7785 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7786 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7787 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7788 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7789 | else |
| 7790 | if test -z "$LD"; then |
| 7791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7792 | for ac_dir in $PATH; do |
| 7793 | test -z "$ac_dir" && ac_dir=. |
| 7794 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7795 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7796 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7797 | # but apparently some GNU ld's only accept -v. |
| 7798 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7799 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7800 | *GNU* | *'with BFD'*) |
| 7801 | test "$with_gnu_ld" != no && break ;; |
| 7802 | *) |
| 7803 | test "$with_gnu_ld" != yes && break ;; |
| 7804 | esac |
| 7805 | fi |
| 7806 | done |
| 7807 | IFS="$ac_save_ifs" |
| 7808 | else |
| 7809 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7810 | fi |
| 7811 | fi |
| 7812 | |
| 7813 | LD="$acl_cv_path_LD" |
| 7814 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7816 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7817 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7819 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7820 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7821 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7822 | { $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] | 7823 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7824 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7825 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7826 | else |
| 7827 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7828 | case `$LD -v 2>&1 </dev/null` in |
| 7829 | *GNU* | *'with BFD'*) |
| 7830 | acl_cv_prog_gnu_ld=yes ;; |
| 7831 | *) |
| 7832 | acl_cv_prog_gnu_ld=no ;; |
| 7833 | esac |
| 7834 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7835 | { $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] | 7836 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7837 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7838 | |
| 7839 | |
| 7840 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7841 | { $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] | 7842 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7843 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7844 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7845 | else |
| 7846 | |
| 7847 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7848 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7849 | . ./conftest.sh |
| 7850 | rm -f ./conftest.sh |
| 7851 | acl_cv_rpath=done |
| 7852 | |
| 7853 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7854 | { $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] | 7855 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7856 | wl="$acl_cv_wl" |
| 7857 | libext="$acl_cv_libext" |
| 7858 | shlibext="$acl_cv_shlibext" |
| 7859 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7860 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7861 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7862 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7863 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7864 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7865 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7866 | else |
| 7867 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7868 | fi |
| 7869 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7870 | |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | |
| 7875 | |
| 7876 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7877 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7878 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7879 | acl_save_prefix="$prefix" |
| 7880 | prefix="$acl_final_prefix" |
| 7881 | acl_save_exec_prefix="$exec_prefix" |
| 7882 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7883 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7884 | eval additional_includedir=\"$includedir\" |
| 7885 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7886 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7887 | exec_prefix="$acl_save_exec_prefix" |
| 7888 | prefix="$acl_save_prefix" |
| 7889 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7890 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7891 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7892 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7893 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7894 | if test "X$withval" = "Xno"; then |
| 7895 | use_additional=no |
| 7896 | else |
| 7897 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7898 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7899 | acl_save_prefix="$prefix" |
| 7900 | prefix="$acl_final_prefix" |
| 7901 | acl_save_exec_prefix="$exec_prefix" |
| 7902 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7903 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7904 | eval additional_includedir=\"$includedir\" |
| 7905 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7906 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7907 | exec_prefix="$acl_save_exec_prefix" |
| 7908 | prefix="$acl_save_prefix" |
| 7909 | |
| 7910 | else |
| 7911 | additional_includedir="$withval/include" |
| 7912 | additional_libdir="$withval/lib" |
| 7913 | fi |
| 7914 | fi |
| 7915 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7916 | fi |
| 7917 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7918 | LIBICONV= |
| 7919 | LTLIBICONV= |
| 7920 | INCICONV= |
| 7921 | rpathdirs= |
| 7922 | ltrpathdirs= |
| 7923 | names_already_handled= |
| 7924 | names_next_round='iconv ' |
| 7925 | while test -n "$names_next_round"; do |
| 7926 | names_this_round="$names_next_round" |
| 7927 | names_next_round= |
| 7928 | for name in $names_this_round; do |
| 7929 | already_handled= |
| 7930 | for n in $names_already_handled; do |
| 7931 | if test "$n" = "$name"; then |
| 7932 | already_handled=yes |
| 7933 | break |
| 7934 | fi |
| 7935 | done |
| 7936 | if test -z "$already_handled"; then |
| 7937 | names_already_handled="$names_already_handled $name" |
| 7938 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7939 | eval value=\"\$HAVE_LIB$uppername\" |
| 7940 | if test -n "$value"; then |
| 7941 | if test "$value" = yes; then |
| 7942 | eval value=\"\$LIB$uppername\" |
| 7943 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7944 | eval value=\"\$LTLIB$uppername\" |
| 7945 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7946 | else |
| 7947 | : |
| 7948 | fi |
| 7949 | else |
| 7950 | found_dir= |
| 7951 | found_la= |
| 7952 | found_so= |
| 7953 | found_a= |
| 7954 | if test $use_additional = yes; then |
| 7955 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7956 | found_dir="$additional_libdir" |
| 7957 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7958 | if test -f "$additional_libdir/lib$name.la"; then |
| 7959 | found_la="$additional_libdir/lib$name.la" |
| 7960 | fi |
| 7961 | else |
| 7962 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7963 | found_dir="$additional_libdir" |
| 7964 | found_a="$additional_libdir/lib$name.$libext" |
| 7965 | if test -f "$additional_libdir/lib$name.la"; then |
| 7966 | found_la="$additional_libdir/lib$name.la" |
| 7967 | fi |
| 7968 | fi |
| 7969 | fi |
| 7970 | fi |
| 7971 | if test "X$found_dir" = "X"; then |
| 7972 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7973 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7974 | acl_save_prefix="$prefix" |
| 7975 | prefix="$acl_final_prefix" |
| 7976 | acl_save_exec_prefix="$exec_prefix" |
| 7977 | exec_prefix="$acl_final_exec_prefix" |
| 7978 | eval x=\"$x\" |
| 7979 | exec_prefix="$acl_save_exec_prefix" |
| 7980 | prefix="$acl_save_prefix" |
| 7981 | |
| 7982 | case "$x" in |
| 7983 | -L*) |
| 7984 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7985 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7986 | found_dir="$dir" |
| 7987 | found_so="$dir/lib$name.$shlibext" |
| 7988 | if test -f "$dir/lib$name.la"; then |
| 7989 | found_la="$dir/lib$name.la" |
| 7990 | fi |
| 7991 | else |
| 7992 | if test -f "$dir/lib$name.$libext"; then |
| 7993 | found_dir="$dir" |
| 7994 | found_a="$dir/lib$name.$libext" |
| 7995 | if test -f "$dir/lib$name.la"; then |
| 7996 | found_la="$dir/lib$name.la" |
| 7997 | fi |
| 7998 | fi |
| 7999 | fi |
| 8000 | ;; |
| 8001 | esac |
| 8002 | if test "X$found_dir" != "X"; then |
| 8003 | break |
| 8004 | fi |
| 8005 | done |
| 8006 | fi |
| 8007 | if test "X$found_dir" != "X"; then |
| 8008 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8009 | if test "X$found_so" != "X"; then |
| 8010 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8011 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8012 | else |
| 8013 | haveit= |
| 8014 | for x in $ltrpathdirs; do |
| 8015 | if test "X$x" = "X$found_dir"; then |
| 8016 | haveit=yes |
| 8017 | break |
| 8018 | fi |
| 8019 | done |
| 8020 | if test -z "$haveit"; then |
| 8021 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8022 | fi |
| 8023 | if test "$hardcode_direct" = yes; then |
| 8024 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8025 | else |
| 8026 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8027 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8028 | haveit= |
| 8029 | for x in $rpathdirs; do |
| 8030 | if test "X$x" = "X$found_dir"; then |
| 8031 | haveit=yes |
| 8032 | break |
| 8033 | fi |
| 8034 | done |
| 8035 | if test -z "$haveit"; then |
| 8036 | rpathdirs="$rpathdirs $found_dir" |
| 8037 | fi |
| 8038 | else |
| 8039 | haveit= |
| 8040 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8041 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8042 | acl_save_prefix="$prefix" |
| 8043 | prefix="$acl_final_prefix" |
| 8044 | acl_save_exec_prefix="$exec_prefix" |
| 8045 | exec_prefix="$acl_final_exec_prefix" |
| 8046 | eval x=\"$x\" |
| 8047 | exec_prefix="$acl_save_exec_prefix" |
| 8048 | prefix="$acl_save_prefix" |
| 8049 | |
| 8050 | if test "X$x" = "X-L$found_dir"; then |
| 8051 | haveit=yes |
| 8052 | break |
| 8053 | fi |
| 8054 | done |
| 8055 | if test -z "$haveit"; then |
| 8056 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8057 | fi |
| 8058 | if test "$hardcode_minus_L" != no; then |
| 8059 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8060 | else |
| 8061 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8062 | fi |
| 8063 | fi |
| 8064 | fi |
| 8065 | fi |
| 8066 | else |
| 8067 | if test "X$found_a" != "X"; then |
| 8068 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8069 | else |
| 8070 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8071 | fi |
| 8072 | fi |
| 8073 | additional_includedir= |
| 8074 | case "$found_dir" in |
| 8075 | */lib | */lib/) |
| 8076 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8077 | additional_includedir="$basedir/include" |
| 8078 | ;; |
| 8079 | esac |
| 8080 | if test "X$additional_includedir" != "X"; then |
| 8081 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8082 | haveit= |
| 8083 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8084 | if test -n "$GCC"; then |
| 8085 | case $host_os in |
| 8086 | linux*) haveit=yes;; |
| 8087 | esac |
| 8088 | fi |
| 8089 | fi |
| 8090 | if test -z "$haveit"; then |
| 8091 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8092 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8093 | acl_save_prefix="$prefix" |
| 8094 | prefix="$acl_final_prefix" |
| 8095 | acl_save_exec_prefix="$exec_prefix" |
| 8096 | exec_prefix="$acl_final_exec_prefix" |
| 8097 | eval x=\"$x\" |
| 8098 | exec_prefix="$acl_save_exec_prefix" |
| 8099 | prefix="$acl_save_prefix" |
| 8100 | |
| 8101 | if test "X$x" = "X-I$additional_includedir"; then |
| 8102 | haveit=yes |
| 8103 | break |
| 8104 | fi |
| 8105 | done |
| 8106 | if test -z "$haveit"; then |
| 8107 | if test -d "$additional_includedir"; then |
| 8108 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8109 | fi |
| 8110 | fi |
| 8111 | fi |
| 8112 | fi |
| 8113 | fi |
| 8114 | if test -n "$found_la"; then |
| 8115 | save_libdir="$libdir" |
| 8116 | case "$found_la" in |
| 8117 | */* | *\\*) . "$found_la" ;; |
| 8118 | *) . "./$found_la" ;; |
| 8119 | esac |
| 8120 | libdir="$save_libdir" |
| 8121 | for dep in $dependency_libs; do |
| 8122 | case "$dep" in |
| 8123 | -L*) |
| 8124 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8125 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8126 | haveit= |
| 8127 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8128 | if test -n "$GCC"; then |
| 8129 | case $host_os in |
| 8130 | linux*) haveit=yes;; |
| 8131 | esac |
| 8132 | fi |
| 8133 | fi |
| 8134 | if test -z "$haveit"; then |
| 8135 | haveit= |
| 8136 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8137 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8138 | acl_save_prefix="$prefix" |
| 8139 | prefix="$acl_final_prefix" |
| 8140 | acl_save_exec_prefix="$exec_prefix" |
| 8141 | exec_prefix="$acl_final_exec_prefix" |
| 8142 | eval x=\"$x\" |
| 8143 | exec_prefix="$acl_save_exec_prefix" |
| 8144 | prefix="$acl_save_prefix" |
| 8145 | |
| 8146 | if test "X$x" = "X-L$additional_libdir"; then |
| 8147 | haveit=yes |
| 8148 | break |
| 8149 | fi |
| 8150 | done |
| 8151 | if test -z "$haveit"; then |
| 8152 | if test -d "$additional_libdir"; then |
| 8153 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8154 | fi |
| 8155 | fi |
| 8156 | haveit= |
| 8157 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8158 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8159 | acl_save_prefix="$prefix" |
| 8160 | prefix="$acl_final_prefix" |
| 8161 | acl_save_exec_prefix="$exec_prefix" |
| 8162 | exec_prefix="$acl_final_exec_prefix" |
| 8163 | eval x=\"$x\" |
| 8164 | exec_prefix="$acl_save_exec_prefix" |
| 8165 | prefix="$acl_save_prefix" |
| 8166 | |
| 8167 | if test "X$x" = "X-L$additional_libdir"; then |
| 8168 | haveit=yes |
| 8169 | break |
| 8170 | fi |
| 8171 | done |
| 8172 | if test -z "$haveit"; then |
| 8173 | if test -d "$additional_libdir"; then |
| 8174 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8175 | fi |
| 8176 | fi |
| 8177 | fi |
| 8178 | fi |
| 8179 | ;; |
| 8180 | -R*) |
| 8181 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8182 | if test "$enable_rpath" != no; then |
| 8183 | haveit= |
| 8184 | for x in $rpathdirs; do |
| 8185 | if test "X$x" = "X$dir"; then |
| 8186 | haveit=yes |
| 8187 | break |
| 8188 | fi |
| 8189 | done |
| 8190 | if test -z "$haveit"; then |
| 8191 | rpathdirs="$rpathdirs $dir" |
| 8192 | fi |
| 8193 | haveit= |
| 8194 | for x in $ltrpathdirs; do |
| 8195 | if test "X$x" = "X$dir"; then |
| 8196 | haveit=yes |
| 8197 | break |
| 8198 | fi |
| 8199 | done |
| 8200 | if test -z "$haveit"; then |
| 8201 | ltrpathdirs="$ltrpathdirs $dir" |
| 8202 | fi |
| 8203 | fi |
| 8204 | ;; |
| 8205 | -l*) |
| 8206 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8207 | ;; |
| 8208 | *.la) |
| 8209 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8210 | ;; |
| 8211 | *) |
| 8212 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8213 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8214 | ;; |
| 8215 | esac |
| 8216 | done |
| 8217 | fi |
| 8218 | else |
| 8219 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8220 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8221 | fi |
| 8222 | fi |
| 8223 | fi |
| 8224 | done |
| 8225 | done |
| 8226 | if test "X$rpathdirs" != "X"; then |
| 8227 | if test -n "$hardcode_libdir_separator"; then |
| 8228 | alldirs= |
| 8229 | for found_dir in $rpathdirs; do |
| 8230 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8231 | done |
| 8232 | acl_save_libdir="$libdir" |
| 8233 | libdir="$alldirs" |
| 8234 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8235 | libdir="$acl_save_libdir" |
| 8236 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8237 | else |
| 8238 | for found_dir in $rpathdirs; do |
| 8239 | acl_save_libdir="$libdir" |
| 8240 | libdir="$found_dir" |
| 8241 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8242 | libdir="$acl_save_libdir" |
| 8243 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8244 | done |
| 8245 | fi |
| 8246 | fi |
| 8247 | if test "X$ltrpathdirs" != "X"; then |
| 8248 | for found_dir in $ltrpathdirs; do |
| 8249 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8250 | done |
| 8251 | fi |
| 8252 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8253 | |
| 8254 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8255 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8256 | |
| 8257 | |
| 8258 | |
| 8259 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8260 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8261 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8262 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8263 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8264 | |
| 8265 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8266 | |
| 8267 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8269 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8270 | 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] | 8271 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8272 | do : |
| 8273 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8274 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8275 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8276 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8277 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8278 | _ACEOF |
| 8279 | |
| 8280 | fi |
| 8281 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8282 | done |
| 8283 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8284 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8285 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8286 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8287 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8288 | do : |
| 8289 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8290 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8291 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8293 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8294 | _ACEOF |
| 8295 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8296 | fi |
| 8297 | done |
| 8298 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8299 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8300 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8301 | { $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] | 8302 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8303 | if ${ac_cv_have_decl__snprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8304 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8305 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8307 | /* end confdefs.h. */ |
| 8308 | #include <stdio.h> |
| 8309 | int |
| 8310 | main () |
| 8311 | { |
| 8312 | |
| 8313 | #ifndef _snprintf |
| 8314 | char *p = (char *) _snprintf; |
| 8315 | #endif |
| 8316 | |
| 8317 | ; |
| 8318 | return 0; |
| 8319 | } |
| 8320 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8321 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8322 | ac_cv_have_decl__snprintf=yes |
| 8323 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8324 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8325 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8327 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8328 | { $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] | 8329 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8330 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8331 | gt_value=1 |
| 8332 | else |
| 8333 | gt_value=0 |
| 8334 | fi |
| 8335 | |
| 8336 | cat >>confdefs.h <<_ACEOF |
| 8337 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8338 | _ACEOF |
| 8339 | |
| 8340 | |
| 8341 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8342 | { $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] | 8343 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8344 | if ${ac_cv_have_decl__snwprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8345 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8346 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8348 | /* end confdefs.h. */ |
| 8349 | #include <stdio.h> |
| 8350 | int |
| 8351 | main () |
| 8352 | { |
| 8353 | |
| 8354 | #ifndef _snwprintf |
| 8355 | char *p = (char *) _snwprintf; |
| 8356 | #endif |
| 8357 | |
| 8358 | ; |
| 8359 | return 0; |
| 8360 | } |
| 8361 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8362 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8363 | ac_cv_have_decl__snwprintf=yes |
| 8364 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8365 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8366 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8368 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8369 | { $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] | 8370 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8371 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8372 | gt_value=1 |
| 8373 | else |
| 8374 | gt_value=0 |
| 8375 | fi |
| 8376 | |
| 8377 | cat >>confdefs.h <<_ACEOF |
| 8378 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8379 | _ACEOF |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8384 | { $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] | 8385 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8386 | if ${ac_cv_have_decl_feof_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8387 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8388 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8390 | /* end confdefs.h. */ |
| 8391 | #include <stdio.h> |
| 8392 | int |
| 8393 | main () |
| 8394 | { |
| 8395 | |
| 8396 | #ifndef feof_unlocked |
| 8397 | char *p = (char *) feof_unlocked; |
| 8398 | #endif |
| 8399 | |
| 8400 | ; |
| 8401 | return 0; |
| 8402 | } |
| 8403 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8404 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8405 | ac_cv_have_decl_feof_unlocked=yes |
| 8406 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8407 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8408 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8410 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8411 | { $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] | 8412 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8413 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8414 | gt_value=1 |
| 8415 | else |
| 8416 | gt_value=0 |
| 8417 | fi |
| 8418 | |
| 8419 | cat >>confdefs.h <<_ACEOF |
| 8420 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8421 | _ACEOF |
| 8422 | |
| 8423 | |
| 8424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8425 | { $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] | 8426 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8427 | if ${ac_cv_have_decl_fgets_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8428 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8431 | /* end confdefs.h. */ |
| 8432 | #include <stdio.h> |
| 8433 | int |
| 8434 | main () |
| 8435 | { |
| 8436 | |
| 8437 | #ifndef fgets_unlocked |
| 8438 | char *p = (char *) fgets_unlocked; |
| 8439 | #endif |
| 8440 | |
| 8441 | ; |
| 8442 | return 0; |
| 8443 | } |
| 8444 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8445 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8446 | ac_cv_have_decl_fgets_unlocked=yes |
| 8447 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8448 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8449 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8451 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8452 | { $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] | 8453 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8454 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8455 | gt_value=1 |
| 8456 | else |
| 8457 | gt_value=0 |
| 8458 | fi |
| 8459 | |
| 8460 | cat >>confdefs.h <<_ACEOF |
| 8461 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8462 | _ACEOF |
| 8463 | |
| 8464 | |
| 8465 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8466 | { $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] | 8467 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8468 | if ${ac_cv_have_decl_getc_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8469 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8472 | /* end confdefs.h. */ |
| 8473 | #include <stdio.h> |
| 8474 | int |
| 8475 | main () |
| 8476 | { |
| 8477 | |
| 8478 | #ifndef getc_unlocked |
| 8479 | char *p = (char *) getc_unlocked; |
| 8480 | #endif |
| 8481 | |
| 8482 | ; |
| 8483 | return 0; |
| 8484 | } |
| 8485 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8486 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8487 | ac_cv_have_decl_getc_unlocked=yes |
| 8488 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8489 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8490 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8492 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8493 | { $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] | 8494 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8495 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8496 | gt_value=1 |
| 8497 | else |
| 8498 | gt_value=0 |
| 8499 | fi |
| 8500 | |
| 8501 | cat >>confdefs.h <<_ACEOF |
| 8502 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8503 | _ACEOF |
| 8504 | |
| 8505 | |
| 8506 | |
| 8507 | case $gt_cv_func_printf_posix in |
| 8508 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8509 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8510 | esac |
| 8511 | |
| 8512 | if test "$ac_cv_func_asprintf" = yes; then |
| 8513 | HAVE_ASPRINTF=1 |
| 8514 | else |
| 8515 | HAVE_ASPRINTF=0 |
| 8516 | fi |
| 8517 | |
| 8518 | if test "$ac_cv_func_snprintf" = yes; then |
| 8519 | HAVE_SNPRINTF=1 |
| 8520 | else |
| 8521 | HAVE_SNPRINTF=0 |
| 8522 | fi |
| 8523 | |
| 8524 | if test "$ac_cv_func_wprintf" = yes; then |
| 8525 | HAVE_WPRINTF=1 |
| 8526 | else |
| 8527 | HAVE_WPRINTF=0 |
| 8528 | fi |
| 8529 | |
| 8530 | |
| 8531 | |
| 8532 | |
| 8533 | |
| 8534 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8535 | |
| 8536 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8537 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8538 | for element in $INCICONV; do |
| 8539 | haveit= |
| 8540 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8541 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8542 | acl_save_prefix="$prefix" |
| 8543 | prefix="$acl_final_prefix" |
| 8544 | acl_save_exec_prefix="$exec_prefix" |
| 8545 | exec_prefix="$acl_final_exec_prefix" |
| 8546 | eval x=\"$x\" |
| 8547 | exec_prefix="$acl_save_exec_prefix" |
| 8548 | prefix="$acl_save_prefix" |
| 8549 | |
| 8550 | if test "X$x" = "X$element"; then |
| 8551 | haveit=yes |
| 8552 | break |
| 8553 | fi |
| 8554 | done |
| 8555 | if test -z "$haveit"; then |
| 8556 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8557 | fi |
| 8558 | done |
| 8559 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8560 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8562 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8563 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8564 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8565 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8566 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8567 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8568 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8570 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8571 | #include <stdlib.h> |
| 8572 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8573 | int |
| 8574 | main () |
| 8575 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8576 | iconv_t cd = iconv_open("",""); |
| 8577 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8578 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8579 | ; |
| 8580 | return 0; |
| 8581 | } |
| 8582 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8583 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8584 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8585 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8586 | rm -f core conftest.err conftest.$ac_objext \ |
| 8587 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8588 | if test "$am_cv_func_iconv" != yes; then |
| 8589 | am_save_LIBS="$LIBS" |
| 8590 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8592 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8593 | #include <stdlib.h> |
| 8594 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8595 | int |
| 8596 | main () |
| 8597 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8598 | iconv_t cd = iconv_open("",""); |
| 8599 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8600 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8601 | ; |
| 8602 | return 0; |
| 8603 | } |
| 8604 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8605 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8606 | am_cv_lib_iconv=yes |
| 8607 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8608 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8609 | rm -f core conftest.err conftest.$ac_objext \ |
| 8610 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8611 | LIBS="$am_save_LIBS" |
| 8612 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8614 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8615 | { $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] | 8616 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8617 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8618 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8619 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8620 | |
| 8621 | fi |
| 8622 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8623 | { $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] | 8624 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8626 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8627 | else |
| 8628 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8629 | LIBICONV= |
| 8630 | LTLIBICONV= |
| 8631 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8632 | |
| 8633 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8634 | |
| 8635 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8636 | { $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] | 8637 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8638 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8639 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8640 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8641 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8643 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8644 | |
| 8645 | #include <stdlib.h> |
| 8646 | #include <iconv.h> |
| 8647 | extern |
| 8648 | #ifdef __cplusplus |
| 8649 | "C" |
| 8650 | #endif |
| 8651 | #if defined(__STDC__) || defined(__cplusplus) |
| 8652 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8653 | #else |
| 8654 | size_t iconv(); |
| 8655 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8656 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8657 | int |
| 8658 | main () |
| 8659 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8660 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8661 | ; |
| 8662 | return 0; |
| 8663 | } |
| 8664 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8665 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8666 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8667 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8668 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8669 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8671 | 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] | 8672 | fi |
| 8673 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8674 | 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] | 8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8676 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8677 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8678 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8679 | |
| 8680 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8681 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8682 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8683 | |
| 8684 | fi |
| 8685 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8686 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8687 | { $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] | 8688 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8689 | if ${am_cv_langinfo_codeset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8690 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8691 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8693 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8694 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8695 | int |
| 8696 | main () |
| 8697 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8698 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8699 | ; |
| 8700 | return 0; |
| 8701 | } |
| 8702 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8703 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8704 | am_cv_langinfo_codeset=yes |
| 8705 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8706 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8707 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8708 | rm -f core conftest.err conftest.$ac_objext \ |
| 8709 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8710 | |
| 8711 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8712 | { $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] | 8713 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8714 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8715 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8716 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8717 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8718 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8719 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8720 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8722 | { $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] | 8723 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8724 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8725 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8726 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8728 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8729 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8730 | int |
| 8731 | main () |
| 8732 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8733 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8734 | ; |
| 8735 | return 0; |
| 8736 | } |
| 8737 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8738 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8739 | am_cv_val_LC_MESSAGES=yes |
| 8740 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8741 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8743 | rm -f core conftest.err conftest.$ac_objext \ |
| 8744 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8745 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8746 | { $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] | 8747 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8748 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8749 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8750 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8751 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8752 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8753 | |
| 8754 | fi |
| 8755 | |
| 8756 | for ac_prog in bison |
| 8757 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8758 | # 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] | 8759 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8760 | { $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] | 8761 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8762 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8763 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8764 | else |
| 8765 | if test -n "$INTLBISON"; then |
| 8766 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8767 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8769 | for as_dir in $PATH |
| 8770 | do |
| 8771 | IFS=$as_save_IFS |
| 8772 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8773 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8775 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8776 | $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] | 8777 | break 2 |
| 8778 | fi |
| 8779 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8780 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8781 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8783 | fi |
| 8784 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8785 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8786 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8788 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8789 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8791 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8792 | fi |
| 8793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8794 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8795 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8796 | done |
| 8797 | |
| 8798 | if test -z "$INTLBISON"; then |
| 8799 | ac_verc_fail=yes |
| 8800 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8801 | { $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] | 8802 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8803 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8804 | case $ac_prog_version in |
| 8805 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8806 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8807 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8808 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8809 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8810 | { $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] | 8811 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8812 | fi |
| 8813 | if test $ac_verc_fail = yes; then |
| 8814 | INTLBISON=: |
| 8815 | fi |
| 8816 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8817 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8818 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8819 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8820 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8821 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8822 | |
| 8823 | |
| 8824 | |
| 8825 | |
| 8826 | |
| 8827 | |
| 8828 | |
| 8829 | |
| 8830 | |
| 8831 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8832 | { $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] | 8833 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8834 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8835 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8836 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8837 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8838 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8839 | fi |
| 8840 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8842 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8843 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8844 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8845 | |
| 8846 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8847 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8848 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8849 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8850 | LIBINTL= |
| 8851 | LTLIBINTL= |
| 8852 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8853 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8854 | if test "$USE_NLS" = "yes"; then |
| 8855 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8856 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8857 | { $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] | 8858 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8860 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8861 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8862 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8863 | else |
| 8864 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8865 | fi |
| 8866 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8867 | { $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] | 8868 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8869 | |
| 8870 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8871 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8872 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8873 | |
| 8874 | |
| 8875 | |
| 8876 | |
| 8877 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8878 | { $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] | 8879 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8880 | if ${gt_cv_func_gnugettext1_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8881 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8882 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8884 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8885 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8886 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8887 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8888 | int |
| 8889 | main () |
| 8890 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8891 | bindtextdomain ("", ""); |
| 8892 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8893 | ; |
| 8894 | return 0; |
| 8895 | } |
| 8896 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8897 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8898 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8899 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8900 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8901 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8902 | rm -f core conftest.err conftest.$ac_objext \ |
| 8903 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8904 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8905 | { $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] | 8906 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8908 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8909 | |
| 8910 | |
| 8911 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8912 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8913 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8914 | acl_save_prefix="$prefix" |
| 8915 | prefix="$acl_final_prefix" |
| 8916 | acl_save_exec_prefix="$exec_prefix" |
| 8917 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8918 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8919 | eval additional_includedir=\"$includedir\" |
| 8920 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8921 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8922 | exec_prefix="$acl_save_exec_prefix" |
| 8923 | prefix="$acl_save_prefix" |
| 8924 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8926 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8927 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8928 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8929 | if test "X$withval" = "Xno"; then |
| 8930 | use_additional=no |
| 8931 | else |
| 8932 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8933 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8934 | acl_save_prefix="$prefix" |
| 8935 | prefix="$acl_final_prefix" |
| 8936 | acl_save_exec_prefix="$exec_prefix" |
| 8937 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8938 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8939 | eval additional_includedir=\"$includedir\" |
| 8940 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8941 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8942 | exec_prefix="$acl_save_exec_prefix" |
| 8943 | prefix="$acl_save_prefix" |
| 8944 | |
| 8945 | else |
| 8946 | additional_includedir="$withval/include" |
| 8947 | additional_libdir="$withval/lib" |
| 8948 | fi |
| 8949 | fi |
| 8950 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8951 | fi |
| 8952 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8953 | LIBINTL= |
| 8954 | LTLIBINTL= |
| 8955 | INCINTL= |
| 8956 | rpathdirs= |
| 8957 | ltrpathdirs= |
| 8958 | names_already_handled= |
| 8959 | names_next_round='intl ' |
| 8960 | while test -n "$names_next_round"; do |
| 8961 | names_this_round="$names_next_round" |
| 8962 | names_next_round= |
| 8963 | for name in $names_this_round; do |
| 8964 | already_handled= |
| 8965 | for n in $names_already_handled; do |
| 8966 | if test "$n" = "$name"; then |
| 8967 | already_handled=yes |
| 8968 | break |
| 8969 | fi |
| 8970 | done |
| 8971 | if test -z "$already_handled"; then |
| 8972 | names_already_handled="$names_already_handled $name" |
| 8973 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8974 | eval value=\"\$HAVE_LIB$uppername\" |
| 8975 | if test -n "$value"; then |
| 8976 | if test "$value" = yes; then |
| 8977 | eval value=\"\$LIB$uppername\" |
| 8978 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8979 | eval value=\"\$LTLIB$uppername\" |
| 8980 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8981 | else |
| 8982 | : |
| 8983 | fi |
| 8984 | else |
| 8985 | found_dir= |
| 8986 | found_la= |
| 8987 | found_so= |
| 8988 | found_a= |
| 8989 | if test $use_additional = yes; then |
| 8990 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8991 | found_dir="$additional_libdir" |
| 8992 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8993 | if test -f "$additional_libdir/lib$name.la"; then |
| 8994 | found_la="$additional_libdir/lib$name.la" |
| 8995 | fi |
| 8996 | else |
| 8997 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8998 | found_dir="$additional_libdir" |
| 8999 | found_a="$additional_libdir/lib$name.$libext" |
| 9000 | if test -f "$additional_libdir/lib$name.la"; then |
| 9001 | found_la="$additional_libdir/lib$name.la" |
| 9002 | fi |
| 9003 | fi |
| 9004 | fi |
| 9005 | fi |
| 9006 | if test "X$found_dir" = "X"; then |
| 9007 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9008 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9009 | acl_save_prefix="$prefix" |
| 9010 | prefix="$acl_final_prefix" |
| 9011 | acl_save_exec_prefix="$exec_prefix" |
| 9012 | exec_prefix="$acl_final_exec_prefix" |
| 9013 | eval x=\"$x\" |
| 9014 | exec_prefix="$acl_save_exec_prefix" |
| 9015 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9016 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9017 | case "$x" in |
| 9018 | -L*) |
| 9019 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9020 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9021 | found_dir="$dir" |
| 9022 | found_so="$dir/lib$name.$shlibext" |
| 9023 | if test -f "$dir/lib$name.la"; then |
| 9024 | found_la="$dir/lib$name.la" |
| 9025 | fi |
| 9026 | else |
| 9027 | if test -f "$dir/lib$name.$libext"; then |
| 9028 | found_dir="$dir" |
| 9029 | found_a="$dir/lib$name.$libext" |
| 9030 | if test -f "$dir/lib$name.la"; then |
| 9031 | found_la="$dir/lib$name.la" |
| 9032 | fi |
| 9033 | fi |
| 9034 | fi |
| 9035 | ;; |
| 9036 | esac |
| 9037 | if test "X$found_dir" != "X"; then |
| 9038 | break |
| 9039 | fi |
| 9040 | done |
| 9041 | fi |
| 9042 | if test "X$found_dir" != "X"; then |
| 9043 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 9044 | if test "X$found_so" != "X"; then |
| 9045 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9046 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9047 | else |
| 9048 | haveit= |
| 9049 | for x in $ltrpathdirs; do |
| 9050 | if test "X$x" = "X$found_dir"; then |
| 9051 | haveit=yes |
| 9052 | break |
| 9053 | fi |
| 9054 | done |
| 9055 | if test -z "$haveit"; then |
| 9056 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9057 | fi |
| 9058 | if test "$hardcode_direct" = yes; then |
| 9059 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9060 | else |
| 9061 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9062 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9063 | haveit= |
| 9064 | for x in $rpathdirs; do |
| 9065 | if test "X$x" = "X$found_dir"; then |
| 9066 | haveit=yes |
| 9067 | break |
| 9068 | fi |
| 9069 | done |
| 9070 | if test -z "$haveit"; then |
| 9071 | rpathdirs="$rpathdirs $found_dir" |
| 9072 | fi |
| 9073 | else |
| 9074 | haveit= |
| 9075 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9076 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9077 | acl_save_prefix="$prefix" |
| 9078 | prefix="$acl_final_prefix" |
| 9079 | acl_save_exec_prefix="$exec_prefix" |
| 9080 | exec_prefix="$acl_final_exec_prefix" |
| 9081 | eval x=\"$x\" |
| 9082 | exec_prefix="$acl_save_exec_prefix" |
| 9083 | prefix="$acl_save_prefix" |
| 9084 | |
| 9085 | if test "X$x" = "X-L$found_dir"; then |
| 9086 | haveit=yes |
| 9087 | break |
| 9088 | fi |
| 9089 | done |
| 9090 | if test -z "$haveit"; then |
| 9091 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9092 | fi |
| 9093 | if test "$hardcode_minus_L" != no; then |
| 9094 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9095 | else |
| 9096 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9097 | fi |
| 9098 | fi |
| 9099 | fi |
| 9100 | fi |
| 9101 | else |
| 9102 | if test "X$found_a" != "X"; then |
| 9103 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9104 | else |
| 9105 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9106 | fi |
| 9107 | fi |
| 9108 | additional_includedir= |
| 9109 | case "$found_dir" in |
| 9110 | */lib | */lib/) |
| 9111 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9112 | additional_includedir="$basedir/include" |
| 9113 | ;; |
| 9114 | esac |
| 9115 | if test "X$additional_includedir" != "X"; then |
| 9116 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9117 | haveit= |
| 9118 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9119 | if test -n "$GCC"; then |
| 9120 | case $host_os in |
| 9121 | linux*) haveit=yes;; |
| 9122 | esac |
| 9123 | fi |
| 9124 | fi |
| 9125 | if test -z "$haveit"; then |
| 9126 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9127 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9128 | acl_save_prefix="$prefix" |
| 9129 | prefix="$acl_final_prefix" |
| 9130 | acl_save_exec_prefix="$exec_prefix" |
| 9131 | exec_prefix="$acl_final_exec_prefix" |
| 9132 | eval x=\"$x\" |
| 9133 | exec_prefix="$acl_save_exec_prefix" |
| 9134 | prefix="$acl_save_prefix" |
| 9135 | |
| 9136 | if test "X$x" = "X-I$additional_includedir"; then |
| 9137 | haveit=yes |
| 9138 | break |
| 9139 | fi |
| 9140 | done |
| 9141 | if test -z "$haveit"; then |
| 9142 | if test -d "$additional_includedir"; then |
| 9143 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9144 | fi |
| 9145 | fi |
| 9146 | fi |
| 9147 | fi |
| 9148 | fi |
| 9149 | if test -n "$found_la"; then |
| 9150 | save_libdir="$libdir" |
| 9151 | case "$found_la" in |
| 9152 | */* | *\\*) . "$found_la" ;; |
| 9153 | *) . "./$found_la" ;; |
| 9154 | esac |
| 9155 | libdir="$save_libdir" |
| 9156 | for dep in $dependency_libs; do |
| 9157 | case "$dep" in |
| 9158 | -L*) |
| 9159 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9160 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9161 | haveit= |
| 9162 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9163 | if test -n "$GCC"; then |
| 9164 | case $host_os in |
| 9165 | linux*) haveit=yes;; |
| 9166 | esac |
| 9167 | fi |
| 9168 | fi |
| 9169 | if test -z "$haveit"; then |
| 9170 | haveit= |
| 9171 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9172 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9173 | acl_save_prefix="$prefix" |
| 9174 | prefix="$acl_final_prefix" |
| 9175 | acl_save_exec_prefix="$exec_prefix" |
| 9176 | exec_prefix="$acl_final_exec_prefix" |
| 9177 | eval x=\"$x\" |
| 9178 | exec_prefix="$acl_save_exec_prefix" |
| 9179 | prefix="$acl_save_prefix" |
| 9180 | |
| 9181 | if test "X$x" = "X-L$additional_libdir"; then |
| 9182 | haveit=yes |
| 9183 | break |
| 9184 | fi |
| 9185 | done |
| 9186 | if test -z "$haveit"; then |
| 9187 | if test -d "$additional_libdir"; then |
| 9188 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9189 | fi |
| 9190 | fi |
| 9191 | haveit= |
| 9192 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9194 | acl_save_prefix="$prefix" |
| 9195 | prefix="$acl_final_prefix" |
| 9196 | acl_save_exec_prefix="$exec_prefix" |
| 9197 | exec_prefix="$acl_final_exec_prefix" |
| 9198 | eval x=\"$x\" |
| 9199 | exec_prefix="$acl_save_exec_prefix" |
| 9200 | prefix="$acl_save_prefix" |
| 9201 | |
| 9202 | if test "X$x" = "X-L$additional_libdir"; then |
| 9203 | haveit=yes |
| 9204 | break |
| 9205 | fi |
| 9206 | done |
| 9207 | if test -z "$haveit"; then |
| 9208 | if test -d "$additional_libdir"; then |
| 9209 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9210 | fi |
| 9211 | fi |
| 9212 | fi |
| 9213 | fi |
| 9214 | ;; |
| 9215 | -R*) |
| 9216 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9217 | if test "$enable_rpath" != no; then |
| 9218 | haveit= |
| 9219 | for x in $rpathdirs; do |
| 9220 | if test "X$x" = "X$dir"; then |
| 9221 | haveit=yes |
| 9222 | break |
| 9223 | fi |
| 9224 | done |
| 9225 | if test -z "$haveit"; then |
| 9226 | rpathdirs="$rpathdirs $dir" |
| 9227 | fi |
| 9228 | haveit= |
| 9229 | for x in $ltrpathdirs; do |
| 9230 | if test "X$x" = "X$dir"; then |
| 9231 | haveit=yes |
| 9232 | break |
| 9233 | fi |
| 9234 | done |
| 9235 | if test -z "$haveit"; then |
| 9236 | ltrpathdirs="$ltrpathdirs $dir" |
| 9237 | fi |
| 9238 | fi |
| 9239 | ;; |
| 9240 | -l*) |
| 9241 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9242 | ;; |
| 9243 | *.la) |
| 9244 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9245 | ;; |
| 9246 | *) |
| 9247 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9248 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9249 | ;; |
| 9250 | esac |
| 9251 | done |
| 9252 | fi |
| 9253 | else |
| 9254 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9255 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9256 | fi |
| 9257 | fi |
| 9258 | fi |
| 9259 | done |
| 9260 | done |
| 9261 | if test "X$rpathdirs" != "X"; then |
| 9262 | if test -n "$hardcode_libdir_separator"; then |
| 9263 | alldirs= |
| 9264 | for found_dir in $rpathdirs; do |
| 9265 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9266 | done |
| 9267 | acl_save_libdir="$libdir" |
| 9268 | libdir="$alldirs" |
| 9269 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9270 | libdir="$acl_save_libdir" |
| 9271 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9272 | else |
| 9273 | for found_dir in $rpathdirs; do |
| 9274 | acl_save_libdir="$libdir" |
| 9275 | libdir="$found_dir" |
| 9276 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9277 | libdir="$acl_save_libdir" |
| 9278 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9279 | done |
| 9280 | fi |
| 9281 | fi |
| 9282 | if test "X$ltrpathdirs" != "X"; then |
| 9283 | for found_dir in $ltrpathdirs; do |
| 9284 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9285 | done |
| 9286 | fi |
| 9287 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9288 | { $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] | 9289 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9290 | if ${gt_cv_func_gnugettext1_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9291 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9292 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9293 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9294 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9295 | gt_save_LIBS="$LIBS" |
| 9296 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9298 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9299 | #include <libintl.h> |
| 9300 | extern int _nl_msg_cat_cntr; |
| 9301 | extern |
| 9302 | #ifdef __cplusplus |
| 9303 | "C" |
| 9304 | #endif |
| 9305 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9306 | int |
| 9307 | main () |
| 9308 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9309 | bindtextdomain ("", ""); |
| 9310 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9311 | ; |
| 9312 | return 0; |
| 9313 | } |
| 9314 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9315 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9316 | gt_cv_func_gnugettext1_libintl=yes |
| 9317 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9318 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9319 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9320 | rm -f core conftest.err conftest.$ac_objext \ |
| 9321 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9322 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9323 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9325 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9326 | #include <libintl.h> |
| 9327 | extern int _nl_msg_cat_cntr; |
| 9328 | extern |
| 9329 | #ifdef __cplusplus |
| 9330 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9331 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9332 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | int |
| 9334 | main () |
| 9335 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9336 | bindtextdomain ("", ""); |
| 9337 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9338 | ; |
| 9339 | return 0; |
| 9340 | } |
| 9341 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9342 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9343 | LIBINTL="$LIBINTL $LIBICONV" |
| 9344 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9345 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9346 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9347 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9348 | rm -f core conftest.err conftest.$ac_objext \ |
| 9349 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9350 | fi |
| 9351 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9352 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9353 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9354 | { $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] | 9355 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9356 | fi |
| 9357 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9358 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9359 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9360 | && test "$PACKAGE" != gettext-runtime \ |
| 9361 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9362 | gt_use_preinstalled_gnugettext=yes |
| 9363 | else |
| 9364 | LIBINTL= |
| 9365 | LTLIBINTL= |
| 9366 | INCINTL= |
| 9367 | fi |
| 9368 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9370 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9371 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9372 | fi |
| 9373 | fi |
| 9374 | |
| 9375 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9376 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9377 | USE_INCLUDED_LIBINTL=yes |
| 9378 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9379 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9380 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9381 | fi |
| 9382 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9383 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9384 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9385 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9386 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9387 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9389 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9390 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9391 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9392 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9393 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9394 | else |
| 9395 | USE_NLS=no |
| 9396 | fi |
| 9397 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9398 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9399 | { $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] | 9400 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9402 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9403 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9404 | { $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] | 9405 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9406 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9407 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9408 | gt_source="external libintl" |
| 9409 | else |
| 9410 | gt_source="libc" |
| 9411 | fi |
| 9412 | else |
| 9413 | gt_source="included intl directory" |
| 9414 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9416 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9417 | fi |
| 9418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9419 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9420 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9421 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9422 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9423 | { $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] | 9424 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9426 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9427 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9428 | for element in $INCINTL; do |
| 9429 | haveit= |
| 9430 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9431 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9432 | acl_save_prefix="$prefix" |
| 9433 | prefix="$acl_final_prefix" |
| 9434 | acl_save_exec_prefix="$exec_prefix" |
| 9435 | exec_prefix="$acl_final_exec_prefix" |
| 9436 | eval x=\"$x\" |
| 9437 | exec_prefix="$acl_save_exec_prefix" |
| 9438 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9439 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9440 | if test "X$x" = "X$element"; then |
| 9441 | haveit=yes |
| 9442 | break |
| 9443 | fi |
| 9444 | done |
| 9445 | if test -z "$haveit"; then |
| 9446 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9447 | fi |
| 9448 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9449 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9450 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9451 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9452 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9453 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9454 | |
| 9455 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9456 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9457 | |
| 9458 | fi |
| 9459 | |
| 9460 | POSUB=po |
| 9461 | fi |
| 9462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9463 | |
| 9464 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9465 | BUILD_INCLUDED_LIBINTL=yes |
| 9466 | fi |
| 9467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9468 | |
| 9469 | |
| 9470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9471 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9472 | nls_cv_header_intl= |
| 9473 | nls_cv_header_libgt= |
| 9474 | |
| 9475 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9476 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9477 | |
| 9478 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9479 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9480 | |
| 9481 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9482 | |
| 9483 | |
| 9484 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9485 | INTLOBJS="\$(GETTOBJS)" |
| 9486 | fi |
| 9487 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9488 | |
| 9489 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9490 | |
| 9491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9492 | |
| 9493 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9494 | |
| 9495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9496 | |
| 9497 | |
| 9498 | |
| 9499 | |
| 9500 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9501 | { $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] | 9502 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9503 | set x ${MAKE-make} |
| 9504 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9505 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9506 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9507 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9508 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9509 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9510 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9511 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9512 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9513 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9514 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9515 | *@@@%%%=?*=@@@%%%*) |
| 9516 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9517 | *) |
| 9518 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9519 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9520 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9521 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9522 | 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] | 9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9524 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9525 | SET_MAKE= |
| 9526 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9528 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9529 | SET_MAKE="MAKE=${MAKE-make}" |
| 9530 | fi |
| 9531 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9532 | { $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] | 9533 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9534 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9535 | $as_echo_n "(cached) " >&6 |
| 9536 | else |
| 9537 | _cv_gnu_make_command='' ; |
| 9538 | for a in "$MAKE" make gmake gnumake ; do |
| 9539 | if test -z "$a" ; then continue ; fi ; |
| 9540 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9541 | _cv_gnu_make_command=$a ; |
| 9542 | break; |
| 9543 | fi |
| 9544 | done ; |
| 9545 | |
| 9546 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9547 | { $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] | 9548 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9549 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9550 | ifGNUmake='' ; |
| 9551 | ifNotGNUmake='#' ; |
| 9552 | else |
| 9553 | ifGNUmake='#' ; |
| 9554 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9556 | $as_echo "\"Not found\"" >&6; }; |
| 9557 | fi |
| 9558 | |
| 9559 | |
| 9560 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9561 | # Extract the first word of "ln", so it can be a program name with args. |
| 9562 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9563 | { $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] | 9564 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9565 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9566 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9567 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9568 | case $LN in |
| 9569 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9570 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9571 | ;; |
| 9572 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9574 | for as_dir in $PATH |
| 9575 | do |
| 9576 | IFS=$as_save_IFS |
| 9577 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9578 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9580 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9581 | $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] | 9582 | break 2 |
| 9583 | fi |
| 9584 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9585 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9586 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9587 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9588 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9589 | ;; |
| 9590 | esac |
| 9591 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9592 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9593 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9595 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9596 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9598 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9599 | fi |
| 9600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9601 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9602 | { $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] | 9603 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | LN_S=$as_ln_s |
| 9605 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9607 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9609 | { $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] | 9610 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9611 | fi |
| 9612 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9613 | # Extract the first word of "mv", so it can be a program name with args. |
| 9614 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9615 | { $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] | 9616 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9617 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9618 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9619 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9620 | case $MV in |
| 9621 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9622 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9623 | ;; |
| 9624 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9626 | for as_dir in $PATH |
| 9627 | do |
| 9628 | IFS=$as_save_IFS |
| 9629 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9630 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9632 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9633 | $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] | 9634 | break 2 |
| 9635 | fi |
| 9636 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9637 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9638 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9639 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9640 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9641 | ;; |
| 9642 | esac |
| 9643 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9644 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9645 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9647 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9648 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9650 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9651 | fi |
| 9652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9653 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9654 | # Extract the first word of "cp", so it can be a program name with args. |
| 9655 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9656 | { $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] | 9657 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9658 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9659 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9660 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9661 | case $CP in |
| 9662 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9663 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9664 | ;; |
| 9665 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9667 | for as_dir in $PATH |
| 9668 | do |
| 9669 | IFS=$as_save_IFS |
| 9670 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9671 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9673 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9674 | $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] | 9675 | break 2 |
| 9676 | fi |
| 9677 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9678 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9679 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9680 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9681 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9682 | ;; |
| 9683 | esac |
| 9684 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9685 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9686 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9688 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9689 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9691 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9692 | fi |
| 9693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9694 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9695 | # Extract the first word of "rm", so it can be a program name with args. |
| 9696 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9697 | { $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] | 9698 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9699 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9700 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9701 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9702 | case $RM in |
| 9703 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9704 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9705 | ;; |
| 9706 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9708 | for as_dir in $PATH |
| 9709 | do |
| 9710 | IFS=$as_save_IFS |
| 9711 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9714 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9715 | $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] | 9716 | break 2 |
| 9717 | fi |
| 9718 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9719 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9720 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9721 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9722 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9723 | ;; |
| 9724 | esac |
| 9725 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9726 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9727 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9729 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9730 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9732 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9733 | fi |
| 9734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9735 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9736 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9737 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9738 | { $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] | 9739 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9740 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9741 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9743 | case $CHMOD in |
| 9744 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9745 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9746 | ;; |
| 9747 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9749 | for as_dir in $PATH |
| 9750 | do |
| 9751 | IFS=$as_save_IFS |
| 9752 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9753 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9754 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9756 | $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] | 9757 | break 2 |
| 9758 | fi |
| 9759 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9760 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9761 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9762 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9763 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9764 | ;; |
| 9765 | esac |
| 9766 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9767 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9768 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9770 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9771 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9773 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9774 | fi |
| 9775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9776 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9777 | for ac_prog in gawk mawk nawk awk |
| 9778 | do |
| 9779 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9780 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9781 | { $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] | 9782 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9783 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9784 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9785 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9786 | if test -n "$AWK"; then |
| 9787 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9788 | else |
| 9789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9790 | for as_dir in $PATH |
| 9791 | do |
| 9792 | IFS=$as_save_IFS |
| 9793 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9794 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9796 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9797 | $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] | 9798 | break 2 |
| 9799 | fi |
| 9800 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9801 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9803 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9804 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9805 | fi |
| 9806 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9807 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9809 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9810 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9812 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9813 | fi |
| 9814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9815 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9816 | test -n "$AWK" && break |
| 9817 | done |
| 9818 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9820 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9821 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9822 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9823 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9824 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9825 | then ac_cv_path_EGREP="$GREP -E" |
| 9826 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9827 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9828 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9829 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9831 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9832 | do |
| 9833 | IFS=$as_save_IFS |
| 9834 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9835 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9837 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9838 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9839 | # 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] | 9840 | # Check for GNU $ac_path_EGREP |
| 9841 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9842 | *GNU*) |
| 9843 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9844 | *) |
| 9845 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9846 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9847 | while : |
| 9848 | do |
| 9849 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9850 | mv "conftest.tmp" "conftest.in" |
| 9851 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9852 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9853 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9854 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9855 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9856 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9857 | # Best one so far, save it but keep looking for a better one |
| 9858 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9859 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9860 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9861 | # 10*(2^10) chars as input seems more than enough |
| 9862 | test $ac_count -gt 10 && break |
| 9863 | done |
| 9864 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9865 | esac |
| 9866 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9867 | $ac_path_EGREP_found && break 3 |
| 9868 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9869 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9870 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9871 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9872 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9873 | 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] | 9874 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9875 | else |
| 9876 | ac_cv_path_EGREP=$EGREP |
| 9877 | fi |
| 9878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9879 | fi |
| 9880 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9881 | { $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] | 9882 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9883 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9884 | |
| 9885 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9886 | # Extract the first word of "sed", so it can be a program name with args. |
| 9887 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9888 | { $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] | 9889 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9890 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9891 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9892 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9893 | case $SED in |
| 9894 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9895 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9896 | ;; |
| 9897 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9899 | for as_dir in $PATH |
| 9900 | do |
| 9901 | IFS=$as_save_IFS |
| 9902 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9905 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9906 | $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] | 9907 | break 2 |
| 9908 | fi |
| 9909 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9910 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9911 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9912 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9913 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9914 | ;; |
| 9915 | esac |
| 9916 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9918 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9920 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9921 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9923 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9924 | fi |
| 9925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9926 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9927 | # Extract the first word of "perl", so it can be a program name with args. |
| 9928 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9929 | { $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] | 9930 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9931 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9932 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9933 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9934 | case $PERL in |
| 9935 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9936 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9937 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9938 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9940 | for as_dir in $PATH |
| 9941 | do |
| 9942 | IFS=$as_save_IFS |
| 9943 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9944 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9946 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9947 | $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] | 9948 | break 2 |
| 9949 | fi |
| 9950 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9951 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9952 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9953 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9954 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9955 | ;; |
| 9956 | esac |
| 9957 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9959 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9961 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9962 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9964 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9965 | fi |
| 9966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9967 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9968 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9969 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9970 | { $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] | 9971 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9972 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9973 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9974 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | case $LDCONFIG in |
| 9976 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9977 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9978 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9979 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9981 | for as_dir in $PATH |
| 9982 | do |
| 9983 | IFS=$as_save_IFS |
| 9984 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9987 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9988 | $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] | 9989 | break 2 |
| 9990 | fi |
| 9991 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9992 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9993 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9994 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9995 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9996 | ;; |
| 9997 | esac |
| 9998 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9999 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10000 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10002 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10003 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10005 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10006 | fi |
| 10007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10008 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10009 | if test -n "$ac_tool_prefix"; then |
| 10010 | # 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] | 10011 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10012 | { $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] | 10013 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10014 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10016 | else |
| 10017 | if test -n "$AR"; then |
| 10018 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10021 | for as_dir in $PATH |
| 10022 | do |
| 10023 | IFS=$as_save_IFS |
| 10024 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10027 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10028 | $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] | 10029 | break 2 |
| 10030 | fi |
| 10031 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10032 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10033 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10035 | fi |
| 10036 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10037 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10038 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10040 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10041 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10043 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10044 | fi |
| 10045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10046 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10047 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10048 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10049 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10050 | # Extract the first word of "ar", so it can be a program name with args. |
| 10051 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10052 | { $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] | 10053 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10054 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10055 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10056 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10057 | if test -n "$ac_ct_AR"; then |
| 10058 | 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] | 10059 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10061 | for as_dir in $PATH |
| 10062 | do |
| 10063 | IFS=$as_save_IFS |
| 10064 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10065 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10067 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10068 | $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] | 10069 | break 2 |
| 10070 | fi |
| 10071 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10072 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10073 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10074 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10075 | fi |
| 10076 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10077 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10078 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10079 | { $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] | 10080 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10081 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10083 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10084 | fi |
| 10085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10086 | if test "x$ac_ct_AR" = x; then |
| 10087 | AR="ar" |
| 10088 | else |
| 10089 | case $cross_compiling:$ac_tool_warned in |
| 10090 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10091 | { $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] | 10092 | $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] | 10093 | ac_tool_warned=yes ;; |
| 10094 | esac |
| 10095 | AR=$ac_ct_AR |
| 10096 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10097 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10098 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10099 | fi |
| 10100 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10101 | if test -n "$ac_tool_prefix"; then |
| 10102 | # 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] | 10103 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10104 | { $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] | 10105 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10106 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10107 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10108 | else |
| 10109 | if test -n "$RANLIB"; then |
| 10110 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10113 | for as_dir in $PATH |
| 10114 | do |
| 10115 | IFS=$as_save_IFS |
| 10116 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10117 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10119 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10120 | $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] | 10121 | break 2 |
| 10122 | fi |
| 10123 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10124 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10125 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10127 | fi |
| 10128 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10129 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10130 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10132 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10133 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10135 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10136 | fi |
| 10137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10138 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10139 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10140 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10141 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10142 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10143 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10144 | { $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] | 10145 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10146 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10147 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10148 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10149 | if test -n "$ac_ct_RANLIB"; then |
| 10150 | 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] | 10151 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10153 | for as_dir in $PATH |
| 10154 | do |
| 10155 | IFS=$as_save_IFS |
| 10156 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10157 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10159 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10160 | $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] | 10161 | break 2 |
| 10162 | fi |
| 10163 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10164 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10165 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10166 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10167 | fi |
| 10168 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10169 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10170 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10171 | { $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] | 10172 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10173 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10175 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10176 | fi |
| 10177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10178 | if test "x$ac_ct_RANLIB" = x; then |
| 10179 | RANLIB=":" |
| 10180 | else |
| 10181 | case $cross_compiling:$ac_tool_warned in |
| 10182 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10183 | { $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] | 10184 | $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] | 10185 | ac_tool_warned=yes ;; |
| 10186 | esac |
| 10187 | RANLIB=$ac_ct_RANLIB |
| 10188 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10190 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10191 | fi |
| 10192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10193 | if test -n "$ac_tool_prefix"; then |
| 10194 | # 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] | 10195 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10196 | { $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] | 10197 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10198 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10199 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10200 | else |
| 10201 | if test -n "$STRIP"; then |
| 10202 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10203 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10205 | for as_dir in $PATH |
| 10206 | do |
| 10207 | IFS=$as_save_IFS |
| 10208 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10209 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10211 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10212 | $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] | 10213 | break 2 |
| 10214 | fi |
| 10215 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10216 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10217 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10219 | fi |
| 10220 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10221 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10222 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10224 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10225 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10227 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10228 | fi |
| 10229 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10231 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10232 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10233 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10234 | # Extract the first word of "strip", so it can be a program name with args. |
| 10235 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10236 | { $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] | 10237 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10238 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10239 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10240 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10241 | if test -n "$ac_ct_STRIP"; then |
| 10242 | 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] | 10243 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10245 | for as_dir in $PATH |
| 10246 | do |
| 10247 | IFS=$as_save_IFS |
| 10248 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10249 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10251 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10252 | $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] | 10253 | break 2 |
| 10254 | fi |
| 10255 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10256 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10257 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10258 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10259 | fi |
| 10260 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10261 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10262 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10263 | { $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] | 10264 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10265 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10267 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10268 | fi |
| 10269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10270 | if test "x$ac_ct_STRIP" = x; then |
| 10271 | STRIP=":" |
| 10272 | else |
| 10273 | case $cross_compiling:$ac_tool_warned in |
| 10274 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10275 | { $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] | 10276 | $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] | 10277 | ac_tool_warned=yes ;; |
| 10278 | esac |
| 10279 | STRIP=$ac_ct_STRIP |
| 10280 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10281 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10282 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10283 | fi |
| 10284 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10285 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10286 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10287 | { $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] | 10288 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10289 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10290 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10291 | else |
| 10292 | if test -n "$MAKEINFO"; then |
| 10293 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10294 | else |
| 10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10296 | for as_dir in $PATH |
| 10297 | do |
| 10298 | IFS=$as_save_IFS |
| 10299 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10300 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10302 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10303 | $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] | 10304 | break 2 |
| 10305 | fi |
| 10306 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10307 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10308 | IFS=$as_save_IFS |
| 10309 | |
| 10310 | fi |
| 10311 | fi |
| 10312 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10313 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10315 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10316 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10318 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10319 | fi |
| 10320 | |
| 10321 | |
| 10322 | if test "_$MAKEINFO" = "_"; then |
| 10323 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10324 | else |
| 10325 | case "$MAKEINFO" in |
| 10326 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10328 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10329 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10330 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10331 | ;; |
| 10332 | *) |
| 10333 | ;; |
| 10334 | esac |
| 10335 | fi |
| 10336 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10337 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10338 | # See if we need a separate native compiler. |
| 10339 | if test $cross_compiling = no; then |
| 10340 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10341 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10342 | else |
| 10343 | for ac_prog in gcc cc |
| 10344 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10345 | # 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] | 10346 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10347 | { $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] | 10348 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10349 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10350 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10351 | else |
| 10352 | if test -n "$BUILD_CC"; then |
| 10353 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10354 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10356 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10357 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10358 | IFS=$as_save_IFS |
| 10359 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10360 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10362 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10363 | $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] | 10364 | break 2 |
| 10365 | fi |
| 10366 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10367 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10368 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10370 | fi |
| 10371 | fi |
| 10372 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10373 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10375 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10376 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10378 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10379 | fi |
| 10380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10381 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10382 | test -n "$BUILD_CC" && break |
| 10383 | done |
| 10384 | |
| 10385 | fi |
Kazuya Mio | fbabd5c | 2013-12-16 00:48:12 -0500 | [diff] [blame] | 10386 | for ac_header in dirent.h errno.h execinfo.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/falloc.h linux/fd.h linux/major.h linux/loop.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] | 10387 | do : |
| 10388 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10389 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10390 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10391 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10392 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10393 | _ACEOF |
| 10394 | |
| 10395 | fi |
| 10396 | |
| 10397 | done |
| 10398 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10399 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10400 | do : |
| 10401 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10402 | 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] | 10403 | #if HAVE_SYS_QUEUE_H |
| 10404 | #include <sys/queue.h> |
| 10405 | #endif |
| 10406 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10407 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10408 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10409 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10410 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10411 | _ACEOF |
| 10412 | |
| 10413 | fi |
| 10414 | |
| 10415 | done |
| 10416 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10417 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10418 | do : |
| 10419 | 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] | 10420 | #if HAVE_SYS_TYPES_H |
| 10421 | #include <sys/types.h> |
| 10422 | #endif |
| 10423 | #if HAVE_SYS_SOCKET |
| 10424 | #include <sys/socket.h> |
| 10425 | #endif |
| 10426 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10427 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10428 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10429 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10430 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10431 | _ACEOF |
| 10432 | |
| 10433 | fi |
| 10434 | |
| 10435 | done |
| 10436 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10437 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10438 | do : |
| 10439 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10440 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10441 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10442 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10443 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10444 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10445 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10446 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10447 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10448 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10449 | |
| 10450 | fi |
| 10451 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10452 | fi |
| 10453 | done |
| 10454 | |
| 10455 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10456 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10457 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10458 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10459 | |
| 10460 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10461 | |
| 10462 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10463 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 10464 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 10465 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 10466 | |
| 10467 | cat >>confdefs.h <<_ACEOF |
| 10468 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 10469 | _ACEOF |
| 10470 | |
| 10471 | |
| 10472 | fi |
| 10473 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10474 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10475 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10476 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10477 | |
| 10478 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10479 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10480 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10481 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10482 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10483 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10484 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10485 | |
| 10486 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10487 | |
| 10488 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10489 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10490 | 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] | 10491 | #define _LARGEFILE64_SOURCE |
| 10492 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10493 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10494 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10495 | |
| 10496 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10497 | |
| 10498 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10499 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10500 | # The cast to long int works around a bug in the HP C Compiler |
| 10501 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10502 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10503 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10504 | { $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] | 10505 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10506 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10507 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10508 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10509 | 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] | 10510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10511 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10512 | if test "$ac_cv_type_short" = yes; then |
| 10513 | { { $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] | 10514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10515 | as_fn_error 77 "cannot compute sizeof (short) |
| 10516 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10517 | else |
| 10518 | ac_cv_sizeof_short=0 |
| 10519 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10522 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10523 | { $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] | 10524 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10525 | |
| 10526 | |
| 10527 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10528 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10529 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10530 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10531 | |
| 10532 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10533 | # The cast to long int works around a bug in the HP C Compiler |
| 10534 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10535 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10536 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10537 | { $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] | 10538 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10539 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10540 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10542 | 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] | 10543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10545 | if test "$ac_cv_type_int" = yes; then |
| 10546 | { { $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] | 10547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10548 | as_fn_error 77 "cannot compute sizeof (int) |
| 10549 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10550 | else |
| 10551 | ac_cv_sizeof_int=0 |
| 10552 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10553 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10554 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10555 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10556 | { $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] | 10557 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10558 | |
| 10559 | |
| 10560 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10561 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10562 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10563 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10564 | |
| 10565 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10566 | # The cast to long int works around a bug in the HP C Compiler |
| 10567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10569 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10570 | { $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] | 10571 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10572 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10573 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10574 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10575 | 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] | 10576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10577 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10578 | if test "$ac_cv_type_long" = yes; then |
| 10579 | { { $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] | 10580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10581 | as_fn_error 77 "cannot compute sizeof (long) |
| 10582 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10583 | else |
| 10584 | ac_cv_sizeof_long=0 |
| 10585 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10586 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10587 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10588 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10589 | { $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] | 10590 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10591 | |
| 10592 | |
| 10593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10594 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10595 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10596 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10597 | |
| 10598 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10599 | # The cast to long int works around a bug in the HP C Compiler |
| 10600 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10601 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10602 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10603 | { $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] | 10604 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10605 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10606 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10607 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10608 | 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] | 10609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10610 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10611 | if test "$ac_cv_type_long_long" = yes; then |
| 10612 | { { $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] | 10613 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10614 | as_fn_error 77 "cannot compute sizeof (long long) |
| 10615 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10616 | else |
| 10617 | ac_cv_sizeof_long_long=0 |
| 10618 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10619 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10621 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10622 | { $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] | 10623 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10624 | |
| 10625 | |
| 10626 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10627 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10628 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10629 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10630 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10631 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 10632 | # The cast to long int works around a bug in the HP C Compiler |
| 10633 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10634 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10635 | # This bug is HP SR number 8606223364. |
| 10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 10637 | $as_echo_n "checking size of off_t... " >&6; } |
| 10638 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 10639 | $as_echo_n "(cached) " >&6 |
| 10640 | else |
| 10641 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 10642 | |
| 10643 | else |
| 10644 | if test "$ac_cv_type_off_t" = yes; then |
| 10645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10647 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 10648 | See \`config.log' for more details" "$LINENO" 5; } |
| 10649 | else |
| 10650 | ac_cv_sizeof_off_t=0 |
| 10651 | fi |
| 10652 | fi |
| 10653 | |
| 10654 | fi |
| 10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 10656 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 10657 | |
| 10658 | |
| 10659 | |
| 10660 | cat >>confdefs.h <<_ACEOF |
| 10661 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 10662 | _ACEOF |
| 10663 | |
| 10664 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10665 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10666 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10667 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10668 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 10669 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 10670 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10671 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10672 | |
| 10673 | |
| 10674 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10675 | { $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] | 10676 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10677 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10678 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10679 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10680 | ac_cv_c_bigendian=unknown |
| 10681 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10683 | /* end confdefs.h. */ |
| 10684 | #ifndef __APPLE_CC__ |
| 10685 | not a universal capable compiler |
| 10686 | #endif |
| 10687 | typedef int dummy; |
| 10688 | |
| 10689 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10690 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10691 | |
| 10692 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10693 | # there are at least two -arch flags with different values. |
| 10694 | ac_arch= |
| 10695 | ac_prev= |
| 10696 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10697 | if test -n "$ac_prev"; then |
| 10698 | case $ac_word in |
| 10699 | i?86 | x86_64 | ppc | ppc64) |
| 10700 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10701 | ac_arch=$ac_word |
| 10702 | else |
| 10703 | ac_cv_c_bigendian=universal |
| 10704 | break |
| 10705 | fi |
| 10706 | ;; |
| 10707 | esac |
| 10708 | ac_prev= |
| 10709 | elif test "x$ac_word" = "x-arch"; then |
| 10710 | ac_prev=arch |
| 10711 | fi |
| 10712 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10713 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10715 | if test $ac_cv_c_bigendian = unknown; then |
| 10716 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10718 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10719 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10720 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10721 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10722 | int |
| 10723 | main () |
| 10724 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10725 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10726 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10727 | && LITTLE_ENDIAN) |
| 10728 | bogus endian macros |
| 10729 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | |
| 10731 | ; |
| 10732 | return 0; |
| 10733 | } |
| 10734 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10735 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10736 | # 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] | 10737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10738 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10739 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10740 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10741 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10742 | int |
| 10743 | main () |
| 10744 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10745 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10746 | not big endian |
| 10747 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10748 | |
| 10749 | ; |
| 10750 | return 0; |
| 10751 | } |
| 10752 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10753 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10754 | ac_cv_c_bigendian=yes |
| 10755 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10756 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10759 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10761 | fi |
| 10762 | if test $ac_cv_c_bigendian = unknown; then |
| 10763 | # 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] | 10764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10765 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10766 | #include <limits.h> |
| 10767 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10768 | int |
| 10769 | main () |
| 10770 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10771 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10772 | bogus endian macros |
| 10773 | #endif |
| 10774 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10775 | ; |
| 10776 | return 0; |
| 10777 | } |
| 10778 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10779 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10780 | # 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] | 10781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10782 | /* end confdefs.h. */ |
| 10783 | #include <limits.h> |
| 10784 | |
| 10785 | int |
| 10786 | main () |
| 10787 | { |
| 10788 | #ifndef _BIG_ENDIAN |
| 10789 | not big endian |
| 10790 | #endif |
| 10791 | |
| 10792 | ; |
| 10793 | return 0; |
| 10794 | } |
| 10795 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10796 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10797 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10798 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10799 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10800 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10802 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10804 | fi |
| 10805 | if test $ac_cv_c_bigendian = unknown; then |
| 10806 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10807 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10808 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10810 | /* end confdefs.h. */ |
| 10811 | short int ascii_mm[] = |
| 10812 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10813 | short int ascii_ii[] = |
| 10814 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10815 | int use_ascii (int i) { |
| 10816 | return ascii_mm[i] + ascii_ii[i]; |
| 10817 | } |
| 10818 | short int ebcdic_ii[] = |
| 10819 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10820 | short int ebcdic_mm[] = |
| 10821 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10822 | int use_ebcdic (int i) { |
| 10823 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10824 | } |
| 10825 | extern int foo; |
| 10826 | |
| 10827 | int |
| 10828 | main () |
| 10829 | { |
| 10830 | return use_ascii (foo) == use_ebcdic (foo); |
| 10831 | ; |
| 10832 | return 0; |
| 10833 | } |
| 10834 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10835 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10836 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10837 | ac_cv_c_bigendian=yes |
| 10838 | fi |
| 10839 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10840 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10841 | ac_cv_c_bigendian=no |
| 10842 | else |
| 10843 | # finding both strings is unlikely to happen, but who knows? |
| 10844 | ac_cv_c_bigendian=unknown |
| 10845 | fi |
| 10846 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10851 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10852 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10853 | int |
| 10854 | main () |
| 10855 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10856 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10857 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10858 | union |
| 10859 | { |
| 10860 | long int l; |
| 10861 | char c[sizeof (long int)]; |
| 10862 | } u; |
| 10863 | u.l = 1; |
| 10864 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10865 | |
| 10866 | ; |
| 10867 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10868 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10869 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10870 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10871 | ac_cv_c_bigendian=no |
| 10872 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10873 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10874 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10875 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10876 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10877 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10878 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10879 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10880 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10881 | { $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] | 10882 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10883 | case $ac_cv_c_bigendian in #( |
| 10884 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10885 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10886 | ;; #( |
| 10887 | no) |
| 10888 | ;; #( |
| 10889 | universal) |
| 10890 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10891 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10892 | |
| 10893 | ;; #( |
| 10894 | *) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10895 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10896 | 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] | 10897 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10898 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10899 | 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] | 10900 | ASM_TYPES_HEADER=./asm_types.h |
| 10901 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10902 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10903 | > public_config.h |
| 10904 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10905 | uniq tmp_config.$$ >> public_config.h |
| 10906 | else |
| 10907 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10908 | fi |
| 10909 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10910 | uniq tmp_config.$$ >> public_config.h |
| 10911 | else |
| 10912 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10913 | fi |
| 10914 | rm -f tmp_config.$$ |
| 10915 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10916 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10917 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10918 | do : |
| 10919 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10920 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10921 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10922 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10923 | _ACEOF |
| 10924 | |
| 10925 | fi |
| 10926 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10927 | done |
| 10928 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10929 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10930 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10931 | |
| 10932 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10933 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10934 | _ACEOF |
| 10935 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10937 | fi |
| 10938 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10939 | { $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] | 10940 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10941 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10942 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10943 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10945 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10946 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10947 | int |
| 10948 | main () |
| 10949 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10950 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10951 | ; |
| 10952 | return 0; |
| 10953 | } |
| 10954 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10955 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10956 | e2fsprogs_cv_struct_st_flags=yes |
| 10957 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10958 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10959 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10961 | fi |
| 10962 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10963 | { $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] | 10964 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10965 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10966 | { $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] | 10967 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10968 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10969 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10970 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10972 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10973 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10974 | int |
| 10975 | main () |
| 10976 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10977 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10978 | ; |
| 10979 | return 0; |
| 10980 | } |
| 10981 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10982 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10983 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10985 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10986 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10988 | fi |
| 10989 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10990 | { $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] | 10991 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10992 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10993 | |
| 10994 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10995 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10996 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10997 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10998 | 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] | 10999 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11000 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11001 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11002 | |
| 11003 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 11004 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11005 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 11006 | |
| 11007 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11008 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11009 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11010 | { $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] | 11011 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11012 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11013 | $as_echo_n "(cached) " >&6 |
| 11014 | else |
| 11015 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11017 | /* end confdefs.h. */ |
| 11018 | |
| 11019 | /* Override any GCC internal prototype to avoid an error. |
| 11020 | Use char because int might match the return type of a GCC |
| 11021 | builtin and then its argument prototype would still apply. */ |
| 11022 | #ifdef __cplusplus |
| 11023 | extern "C" |
| 11024 | #endif |
| 11025 | char blkid_probe_all (); |
| 11026 | int |
| 11027 | main () |
| 11028 | { |
| 11029 | return blkid_probe_all (); |
| 11030 | ; |
| 11031 | return 0; |
| 11032 | } |
| 11033 | _ACEOF |
| 11034 | for ac_lib in '' blkid; do |
| 11035 | if test -z "$ac_lib"; then |
| 11036 | ac_res="none required" |
| 11037 | else |
| 11038 | ac_res=-l$ac_lib |
| 11039 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11040 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11041 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11042 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11043 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11044 | rm -f core conftest.err conftest.$ac_objext \ |
| 11045 | conftest$ac_exeext |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11046 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11047 | break |
| 11048 | fi |
| 11049 | done |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11050 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11051 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11052 | else |
| 11053 | ac_cv_search_blkid_probe_all=no |
| 11054 | fi |
| 11055 | rm conftest.$ac_ext |
| 11056 | LIBS=$ac_func_search_save_LIBS |
| 11057 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11058 | { $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] | 11059 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 11060 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11061 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11062 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11063 | |
| 11064 | fi |
| 11065 | |
| 11066 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame^] | 11067 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11068 | do : |
| 11069 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11070 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11071 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11072 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11073 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11074 | _ACEOF |
| 11075 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11076 | fi |
| 11077 | done |
| 11078 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11079 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11080 | { $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] | 11081 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11082 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11083 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11085 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11086 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11088 | /* end confdefs.h. */ |
| 11089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11090 | /* Override any GCC internal prototype to avoid an error. |
| 11091 | Use char because int might match the return type of a GCC |
| 11092 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11093 | #ifdef __cplusplus |
| 11094 | extern "C" |
| 11095 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11096 | char socket (); |
| 11097 | int |
| 11098 | main () |
| 11099 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11100 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11101 | ; |
| 11102 | return 0; |
| 11103 | } |
| 11104 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11105 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11106 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11107 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11108 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11109 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11110 | rm -f core conftest.err conftest.$ac_objext \ |
| 11111 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11112 | LIBS=$ac_check_lib_save_LIBS |
| 11113 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11114 | { $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] | 11115 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11116 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11117 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11118 | fi |
| 11119 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11120 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11122 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11123 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11124 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11125 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11127 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11128 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11129 | |
| 11130 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11132 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11133 | ac_cv_have_optreset=yes |
| 11134 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11135 | ac_cv_have_optreset=no |
| 11136 | fi |
| 11137 | rm -f conftest* |
| 11138 | |
| 11139 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11140 | { $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] | 11141 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11142 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11143 | |
| 11144 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11145 | |
| 11146 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11147 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11148 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11149 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11150 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11151 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11152 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11153 | { $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] | 11154 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11155 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11156 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11157 | else |
| 11158 | ac_check_lib_save_LIBS=$LIBS |
| 11159 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11161 | /* end confdefs.h. */ |
| 11162 | |
| 11163 | /* Override any GCC internal prototype to avoid an error. |
| 11164 | Use char because int might match the return type of a GCC |
| 11165 | builtin and then its argument prototype would still apply. */ |
| 11166 | #ifdef __cplusplus |
| 11167 | extern "C" |
| 11168 | #endif |
| 11169 | char sem_init (); |
| 11170 | int |
| 11171 | main () |
| 11172 | { |
| 11173 | return sem_init (); |
| 11174 | ; |
| 11175 | return 0; |
| 11176 | } |
| 11177 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11178 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11179 | ac_cv_lib_pthread_sem_init=yes |
| 11180 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11181 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11182 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11183 | rm -f core conftest.err conftest.$ac_objext \ |
| 11184 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11185 | LIBS=$ac_check_lib_save_LIBS |
| 11186 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11187 | { $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] | 11188 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11189 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11190 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11191 | |
| 11192 | SEM_INIT_LIB=-lpthread |
| 11193 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11194 | { $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] | 11195 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11196 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11197 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11198 | else |
| 11199 | ac_check_lib_save_LIBS=$LIBS |
| 11200 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11202 | /* end confdefs.h. */ |
| 11203 | |
| 11204 | /* Override any GCC internal prototype to avoid an error. |
| 11205 | Use char because int might match the return type of a GCC |
| 11206 | builtin and then its argument prototype would still apply. */ |
| 11207 | #ifdef __cplusplus |
| 11208 | extern "C" |
| 11209 | #endif |
| 11210 | char sem_init (); |
| 11211 | int |
| 11212 | main () |
| 11213 | { |
| 11214 | return sem_init (); |
| 11215 | ; |
| 11216 | return 0; |
| 11217 | } |
| 11218 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11219 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11220 | ac_cv_lib_rt_sem_init=yes |
| 11221 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11222 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11223 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11224 | rm -f core conftest.err conftest.$ac_objext \ |
| 11225 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11226 | LIBS=$ac_check_lib_save_LIBS |
| 11227 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11228 | { $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] | 11229 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11230 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11231 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11232 | |
| 11233 | SEM_INIT_LIB=-lrt |
| 11234 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11235 | { $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] | 11236 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11237 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11238 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11239 | else |
| 11240 | ac_check_lib_save_LIBS=$LIBS |
| 11241 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11243 | /* end confdefs.h. */ |
| 11244 | |
| 11245 | /* Override any GCC internal prototype to avoid an error. |
| 11246 | Use char because int might match the return type of a GCC |
| 11247 | builtin and then its argument prototype would still apply. */ |
| 11248 | #ifdef __cplusplus |
| 11249 | extern "C" |
| 11250 | #endif |
| 11251 | char sem_init (); |
| 11252 | int |
| 11253 | main () |
| 11254 | { |
| 11255 | return sem_init (); |
| 11256 | ; |
| 11257 | return 0; |
| 11258 | } |
| 11259 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11260 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11261 | ac_cv_lib_posix4_sem_init=yes |
| 11262 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11263 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11264 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11265 | rm -f core conftest.err conftest.$ac_objext \ |
| 11266 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11267 | LIBS=$ac_check_lib_save_LIBS |
| 11268 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11269 | { $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] | 11270 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11271 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11272 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11273 | |
| 11274 | SEM_INIT_LIB=-lposix4 |
| 11275 | fi |
| 11276 | |
| 11277 | fi |
| 11278 | |
| 11279 | fi |
| 11280 | |
| 11281 | fi |
| 11282 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11283 | { $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] | 11284 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11285 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11286 | UNI_DIFF_OPTS=-u |
| 11287 | else |
| 11288 | UNI_DIFF_OPTS=-c |
| 11289 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11290 | { $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] | 11291 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11292 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11293 | case "$host_os" in |
| 11294 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11295 | |
| 11296 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11297 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11298 | ;; |
| 11299 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11300 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11301 | CYGWIN_CMT="#" |
| 11302 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11303 | case "$host_os" in |
| 11304 | linux*) |
| 11305 | LINUX_CMT= |
| 11306 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11307 | cygwin) |
| 11308 | CYGWIN_CMT= |
| 11309 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11310 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11311 | esac |
| 11312 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11313 | |
| 11314 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11316 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11317 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11318 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11319 | { $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] | 11320 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11321 | fi |
| 11322 | ;; |
| 11323 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11324 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11325 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11326 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11327 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11328 | { $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] | 11329 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11330 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11331 | { $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] | 11332 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11333 | mandir=/usr/share/man |
| 11334 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11335 | fi |
| 11336 | ;; |
| 11337 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11338 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11339 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11340 | root_prefix="$ac_default_prefix" |
| 11341 | else |
| 11342 | root_prefix="$prefix" |
| 11343 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11344 | root_bindir=$bindir |
| 11345 | root_sbindir=$sbindir |
| 11346 | root_libdir=$libdir |
| 11347 | root_sysconfdir=$sysconfdir |
| 11348 | else |
| 11349 | root_bindir='${root_prefix}/bin' |
| 11350 | root_sbindir='${root_prefix}/sbin' |
| 11351 | root_libdir='${root_prefix}/lib' |
| 11352 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11353 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11354 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11355 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11356 | { $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] | 11357 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11358 | fi |
| 11359 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11360 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11361 | { $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] | 11362 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11363 | fi |
| 11364 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11365 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11366 | { $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] | 11367 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11368 | fi |
| 11369 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11370 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11371 | { $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] | 11372 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11373 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11374 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11379 | |
| 11380 | # Check whether --with-multiarch was given. |
| 11381 | if test "${with_multiarch+set}" = set; then : |
| 11382 | withval=$with_multiarch; libdir=$libdir/$withval |
| 11383 | root_libdir=$root_libdir/$withval |
| 11384 | |
| 11385 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 11387 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11388 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11389 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11390 | else |
| 11391 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11393 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11394 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11395 | int |
| 11396 | main () |
| 11397 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11398 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11399 | ; |
| 11400 | return 0; |
| 11401 | } |
| 11402 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11403 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11404 | ac_cv_e2fsprogs_use_static=yes |
| 11405 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11406 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11407 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11408 | rm -f core conftest.err conftest.$ac_objext \ |
| 11409 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11410 | LDFLAGS=$SAVE_LDFLAGS |
| 11411 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11412 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11413 | case "$host_os" in |
| 11414 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11415 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11416 | ;; |
| 11417 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11418 | { $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] | 11419 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11420 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11421 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11422 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11423 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11424 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11425 | case "$host_os" in |
| 11426 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11427 | { $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] | 11428 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11429 | |
| 11430 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11431 | |
| 11432 | ;; |
| 11433 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11434 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11435 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11436 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11437 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11438 | if test "$cross_compiling" = yes ; then |
| 11439 | DO_TEST_SUITE= |
| 11440 | else |
| 11441 | DO_TEST_SUITE=check |
| 11442 | fi |
| 11443 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11444 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11445 | if test -n "$CPPFLAGS" ; then |
| 11446 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11447 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11448 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11449 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11450 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame^] | 11451 | if test -n "$WITH_DIET_LIBC" ; then |
| 11452 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 11453 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11454 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11455 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 11456 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11457 | BUILD_LDFLAGS="$LDFLAGS" |
| 11458 | else |
| 11459 | BUILD_CFLAGS= |
| 11460 | BUILD_LDFLAGS= |
| 11461 | fi |
| 11462 | |
| 11463 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11464 | test -d lib || mkdir lib |
| 11465 | test -d include || mkdir include |
| 11466 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11467 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11468 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 11469 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11470 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11471 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11472 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 11473 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11474 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11475 | 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] | 11476 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11477 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11478 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11479 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11480 | if test -d `dirname ${srcdir}/$i` ; then |
| 11481 | outlist="$outlist $i" |
| 11482 | fi |
| 11483 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11484 | ac_config_files="$ac_config_files $outlist" |
| 11485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11486 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11487 | # This file is a shell script that caches the results of configure |
| 11488 | # 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] | 11489 | # scripts and configure runs, see configure's option --config-cache. |
| 11490 | # It is not useful on other systems. If it contains results you don't |
| 11491 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11492 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11493 | # config.status only pays attention to the cache file if you give it |
| 11494 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11495 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11496 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11497 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11498 | # following values. |
| 11499 | |
| 11500 | _ACEOF |
| 11501 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11502 | # The following way of writing the cache mishandles newlines in values, |
| 11503 | # 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] | 11504 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11505 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11506 | # 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] | 11507 | ( |
| 11508 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11509 | eval ac_val=\$$ac_var |
| 11510 | case $ac_val in #( |
| 11511 | *${as_nl}*) |
| 11512 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | *_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] | 11514 | $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] | 11515 | esac |
| 11516 | case $ac_var in #( |
| 11517 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11518 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11519 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11520 | esac ;; |
| 11521 | esac |
| 11522 | done |
| 11523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11524 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11525 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11526 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11527 | # `set' does not quote correctly, so add quotes: double-quote |
| 11528 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11529 | sed -n \ |
| 11530 | "s/'/'\\\\''/g; |
| 11531 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11532 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11533 | *) |
| 11534 | # `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] | 11535 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11536 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11537 | esac | |
| 11538 | sort |
| 11539 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11540 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11541 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11542 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11543 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11544 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11545 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11546 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11547 | :end' >>confcache |
| 11548 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11549 | if test -w "$cache_file"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11550 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11551 | { $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] | 11552 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11553 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11554 | cat confcache >"$cache_file" |
| 11555 | else |
| 11556 | case $cache_file in #( |
| 11557 | */* | ?:*) |
| 11558 | mv -f confcache "$cache_file"$$ && |
| 11559 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11560 | *) |
| 11561 | mv -f confcache "$cache_file" ;; |
| 11562 | esac |
| 11563 | fi |
| 11564 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11565 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11566 | { $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] | 11567 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11568 | fi |
| 11569 | fi |
| 11570 | rm -f confcache |
| 11571 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11572 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11573 | # Let make expand exec_prefix. |
| 11574 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11575 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11576 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11578 | ac_libobjs= |
| 11579 | ac_ltlibobjs= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11580 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11581 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11582 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11583 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11584 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11585 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11586 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11587 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11588 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | done |
| 11590 | LIBOBJS=$ac_libobjs |
| 11591 | |
| 11592 | LTLIBOBJS=$ac_ltlibobjs |
| 11593 | |
| 11594 | |
| 11595 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11596 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11597 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11598 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11599 | ac_clean_files_save=$ac_clean_files |
| 11600 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11602 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11603 | as_write_fail=0 |
| 11604 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11605 | #! $SHELL |
| 11606 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11607 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11608 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11609 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11610 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11611 | debug=false |
| 11612 | ac_cs_recheck=false |
| 11613 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11614 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11615 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11616 | export SHELL |
| 11617 | _ASEOF |
| 11618 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11619 | ## -------------------- ## |
| 11620 | ## M4sh Initialization. ## |
| 11621 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11622 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11623 | # Be more Bourne compatible |
| 11624 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11625 | 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] | 11626 | emulate sh |
| 11627 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11628 | # 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] | 11629 | # is contrary to our usage. Disable this feature. |
| 11630 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11631 | setopt NO_GLOB_SUBST |
| 11632 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11633 | case `(set -o) 2>/dev/null` in #( |
| 11634 | *posix*) : |
| 11635 | set -o posix ;; #( |
| 11636 | *) : |
| 11637 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11638 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11639 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11640 | |
| 11641 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11642 | as_nl=' |
| 11643 | ' |
| 11644 | export as_nl |
| 11645 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11646 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11647 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11648 | 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] | 11649 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11650 | # but without wasting forks for bash or zsh. |
| 11651 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11652 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11653 | as_echo='print -r --' |
| 11654 | as_echo_n='print -rn --' |
| 11655 | 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] | 11656 | as_echo='printf %s\n' |
| 11657 | as_echo_n='printf %s' |
| 11658 | else |
| 11659 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11660 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11661 | as_echo_n='/usr/ucb/echo -n' |
| 11662 | else |
| 11663 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11664 | as_echo_n_body='eval |
| 11665 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11666 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11667 | *"$as_nl"*) |
| 11668 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11669 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11670 | esac; |
| 11671 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11672 | ' |
| 11673 | export as_echo_n_body |
| 11674 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11675 | fi |
| 11676 | export as_echo_body |
| 11677 | as_echo='sh -c $as_echo_body as_echo' |
| 11678 | fi |
| 11679 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11680 | # The user is always right. |
| 11681 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11682 | PATH_SEPARATOR=: |
| 11683 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11684 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11685 | PATH_SEPARATOR=';' |
| 11686 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11687 | fi |
| 11688 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11689 | |
| 11690 | # IFS |
| 11691 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11692 | # there to prevent editors from complaining about space-tab. |
| 11693 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11694 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11695 | IFS=" "" $as_nl" |
| 11696 | |
| 11697 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11698 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11699 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11700 | *[\\/]* ) as_myself=$0 ;; |
| 11701 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11702 | for as_dir in $PATH |
| 11703 | do |
| 11704 | IFS=$as_save_IFS |
| 11705 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11706 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11707 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11708 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11710 | ;; |
| 11711 | esac |
| 11712 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11713 | # in which case we are not to be found in the path. |
| 11714 | if test "x$as_myself" = x; then |
| 11715 | as_myself=$0 |
| 11716 | fi |
| 11717 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11718 | $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] | 11719 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11720 | fi |
| 11721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11722 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11723 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11724 | # suppresses any "Segmentation fault" message there. '((' could |
| 11725 | # trigger a bug in pdksh 5.2.14. |
| 11726 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11727 | do eval test x\${$as_var+set} = xset \ |
| 11728 | && ( (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] | 11729 | done |
| 11730 | PS1='$ ' |
| 11731 | PS2='> ' |
| 11732 | PS4='+ ' |
| 11733 | |
| 11734 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11735 | LC_ALL=C |
| 11736 | export LC_ALL |
| 11737 | LANGUAGE=C |
| 11738 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11739 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11740 | # CDPATH. |
| 11741 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11742 | |
| 11743 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11744 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11745 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11746 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11747 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11748 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11749 | as_fn_error () |
| 11750 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11751 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11752 | if test "$4"; then |
| 11753 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11754 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11755 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11756 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11757 | as_fn_exit $as_status |
| 11758 | } # as_fn_error |
| 11759 | |
| 11760 | |
| 11761 | # as_fn_set_status STATUS |
| 11762 | # ----------------------- |
| 11763 | # Set $? to STATUS, without forking. |
| 11764 | as_fn_set_status () |
| 11765 | { |
| 11766 | return $1 |
| 11767 | } # as_fn_set_status |
| 11768 | |
| 11769 | # as_fn_exit STATUS |
| 11770 | # ----------------- |
| 11771 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11772 | as_fn_exit () |
| 11773 | { |
| 11774 | set +e |
| 11775 | as_fn_set_status $1 |
| 11776 | exit $1 |
| 11777 | } # as_fn_exit |
| 11778 | |
| 11779 | # as_fn_unset VAR |
| 11780 | # --------------- |
| 11781 | # Portably unset VAR. |
| 11782 | as_fn_unset () |
| 11783 | { |
| 11784 | { eval $1=; unset $1;} |
| 11785 | } |
| 11786 | as_unset=as_fn_unset |
| 11787 | # as_fn_append VAR VALUE |
| 11788 | # ---------------------- |
| 11789 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11790 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11791 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11792 | # implementations. |
| 11793 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11794 | eval 'as_fn_append () |
| 11795 | { |
| 11796 | eval $1+=\$2 |
| 11797 | }' |
| 11798 | else |
| 11799 | as_fn_append () |
| 11800 | { |
| 11801 | eval $1=\$$1\$2 |
| 11802 | } |
| 11803 | fi # as_fn_append |
| 11804 | |
| 11805 | # as_fn_arith ARG... |
| 11806 | # ------------------ |
| 11807 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11808 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11809 | # must be portable across $(()) and expr. |
| 11810 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11811 | eval 'as_fn_arith () |
| 11812 | { |
| 11813 | as_val=$(( $* )) |
| 11814 | }' |
| 11815 | else |
| 11816 | as_fn_arith () |
| 11817 | { |
| 11818 | as_val=`expr "$@" || test $? -eq 1` |
| 11819 | } |
| 11820 | fi # as_fn_arith |
| 11821 | |
| 11822 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11823 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11824 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11825 | as_expr=expr |
| 11826 | else |
| 11827 | as_expr=false |
| 11828 | fi |
| 11829 | |
| 11830 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11831 | as_basename=basename |
| 11832 | else |
| 11833 | as_basename=false |
| 11834 | fi |
| 11835 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11836 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11837 | as_dirname=dirname |
| 11838 | else |
| 11839 | as_dirname=false |
| 11840 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11842 | as_me=`$as_basename -- "$0" || |
| 11843 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11844 | X"$0" : 'X\(//\)$' \| \ |
| 11845 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11846 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11847 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11848 | s//\1/ |
| 11849 | q |
| 11850 | } |
| 11851 | /^X\/\(\/\/\)$/{ |
| 11852 | s//\1/ |
| 11853 | q |
| 11854 | } |
| 11855 | /^X\/\(\/\).*/{ |
| 11856 | s//\1/ |
| 11857 | q |
| 11858 | } |
| 11859 | s/.*/./; q'` |
| 11860 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11861 | # Avoid depending upon Character Ranges. |
| 11862 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11863 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11864 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11865 | as_cr_digits='0123456789' |
| 11866 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11867 | |
| 11868 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11869 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11871 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11872 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11873 | xy) ECHO_C='\c';; |
| 11874 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11875 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11876 | esac;; |
| 11877 | *) |
| 11878 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11879 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | |
| 11881 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11882 | if test -d conf$$.dir; then |
| 11883 | rm -f conf$$.dir/conf$$.file |
| 11884 | else |
| 11885 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11886 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11887 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11888 | if (echo >conf$$.file) 2>/dev/null; then |
| 11889 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11890 | as_ln_s='ln -s' |
| 11891 | # ... but there are two gotchas: |
| 11892 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11893 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11894 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11895 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11896 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11897 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11898 | as_ln_s=ln |
| 11899 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11900 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11901 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11903 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11904 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11906 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11907 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11908 | |
| 11909 | # as_fn_mkdir_p |
| 11910 | # ------------- |
| 11911 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11912 | as_fn_mkdir_p () |
| 11913 | { |
| 11914 | |
| 11915 | case $as_dir in #( |
| 11916 | -*) as_dir=./$as_dir;; |
| 11917 | esac |
| 11918 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11919 | as_dirs= |
| 11920 | while :; do |
| 11921 | case $as_dir in #( |
| 11922 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11923 | *) as_qdir=$as_dir;; |
| 11924 | esac |
| 11925 | as_dirs="'$as_qdir' $as_dirs" |
| 11926 | as_dir=`$as_dirname -- "$as_dir" || |
| 11927 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11928 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11929 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11930 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11931 | $as_echo X"$as_dir" | |
| 11932 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11933 | s//\1/ |
| 11934 | q |
| 11935 | } |
| 11936 | /^X\(\/\/\)[^/].*/{ |
| 11937 | s//\1/ |
| 11938 | q |
| 11939 | } |
| 11940 | /^X\(\/\/\)$/{ |
| 11941 | s//\1/ |
| 11942 | q |
| 11943 | } |
| 11944 | /^X\(\/\).*/{ |
| 11945 | s//\1/ |
| 11946 | q |
| 11947 | } |
| 11948 | s/.*/./; q'` |
| 11949 | test -d "$as_dir" && break |
| 11950 | done |
| 11951 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11952 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11953 | |
| 11954 | |
| 11955 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11956 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11957 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11958 | else |
| 11959 | test -d ./-p && rmdir ./-p |
| 11960 | as_mkdir_p=false |
| 11961 | fi |
| 11962 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11963 | |
| 11964 | # as_fn_executable_p FILE |
| 11965 | # ----------------------- |
| 11966 | # Test if FILE is an executable regular file. |
| 11967 | as_fn_executable_p () |
| 11968 | { |
| 11969 | test -f "$1" && test -x "$1" |
| 11970 | } # as_fn_executable_p |
| 11971 | as_test_x='test -x' |
| 11972 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | |
| 11974 | # Sed expression to map a string onto a valid CPP name. |
| 11975 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11976 | |
| 11977 | # Sed expression to map a string onto a valid variable name. |
| 11978 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11979 | |
| 11980 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11982 | ## ----------------------------------- ## |
| 11983 | ## Main body of $CONFIG_STATUS script. ## |
| 11984 | ## ----------------------------------- ## |
| 11985 | _ASEOF |
| 11986 | 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] | 11987 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11989 | # 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] | 11990 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11991 | # values after options handling. |
| 11992 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11993 | This file was extended by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11994 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11995 | |
| 11996 | CONFIG_FILES = $CONFIG_FILES |
| 11997 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11998 | CONFIG_LINKS = $CONFIG_LINKS |
| 11999 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12000 | $ $0 $@ |
| 12001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12002 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12003 | " |
| 12004 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12005 | _ACEOF |
| 12006 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12007 | case $ac_config_files in *" |
| 12008 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12009 | esac |
| 12010 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12011 | case $ac_config_headers in *" |
| 12012 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12013 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12014 | |
| 12015 | |
| 12016 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12017 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12018 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12019 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12020 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12021 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12022 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12024 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12025 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12026 | \`$as_me' instantiates files and other configuration actions |
| 12027 | from templates according to the current configuration. Unless the files |
| 12028 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12029 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12030 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12031 | |
| 12032 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12033 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12034 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12035 | -q, --quiet, --silent |
| 12036 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12037 | -d, --debug don't remove temporary files |
| 12038 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12039 | --file=FILE[:TEMPLATE] |
| 12040 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12041 | --header=FILE[:TEMPLATE] |
| 12042 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12043 | |
| 12044 | Configuration files: |
| 12045 | $config_files |
| 12046 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12047 | Configuration headers: |
| 12048 | $config_headers |
| 12049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12050 | Configuration commands: |
| 12051 | $config_commands |
| 12052 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12053 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12055 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12057 | 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] | 12058 | ac_cs_version="\\ |
| 12059 | config.status |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12060 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12061 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12062 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12063 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | This config.status script is free software; the Free Software Foundation |
| 12065 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12066 | |
| 12067 | ac_pwd='$ac_pwd' |
| 12068 | srcdir='$srcdir' |
| 12069 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12070 | AWK='$AWK' |
| 12071 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12072 | _ACEOF |
| 12073 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12074 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12075 | # 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] | 12076 | ac_need_defaults=: |
| 12077 | while test $# != 0 |
| 12078 | do |
| 12079 | case $1 in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12080 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12081 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12082 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12083 | ac_shift=: |
| 12084 | ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12085 | --*=) |
| 12086 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12087 | ac_optarg= |
| 12088 | ac_shift=: |
| 12089 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12090 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12091 | ac_option=$1 |
| 12092 | ac_optarg=$2 |
| 12093 | ac_shift=shift |
| 12094 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12095 | esac |
| 12096 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12097 | case $ac_option in |
| 12098 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12099 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12100 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12101 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12102 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12103 | --config | --confi | --conf | --con | --co | --c ) |
| 12104 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12105 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12106 | debug=: ;; |
| 12107 | --file | --fil | --fi | --f ) |
| 12108 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12109 | case $ac_optarg in |
| 12110 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12111 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12112 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12113 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12115 | --header | --heade | --head | --hea ) |
| 12116 | $ac_shift |
| 12117 | case $ac_optarg in |
| 12118 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12119 | esac |
| 12120 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 12121 | ac_need_defaults=false;; |
| 12122 | --he | --h) |
| 12123 | # Conflict between --help and --header |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12124 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12125 | Try \`$0 --help' for more information.";; |
| 12126 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12127 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12128 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12129 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12130 | ac_cs_silent=: ;; |
| 12131 | |
| 12132 | # This is an error. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12133 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12134 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12135 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12136 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12137 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12138 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12139 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12140 | shift |
| 12141 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12143 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12144 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12145 | if $ac_cs_silent; then |
| 12146 | exec 6>/dev/null |
| 12147 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12148 | fi |
| 12149 | |
| 12150 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12152 | if \$ac_cs_recheck; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12153 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12154 | shift |
| 12155 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12156 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12157 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12158 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12159 | fi |
| 12160 | |
| 12161 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12163 | exec 5>>config.log |
| 12164 | { |
| 12165 | echo |
| 12166 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12167 | ## Running $as_me. ## |
| 12168 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12169 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12170 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12172 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12173 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12174 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12175 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12176 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12177 | # 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] | 12178 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12179 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12180 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12181 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12182 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12183 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12184 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12185 | _ACEOF |
| 12186 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12188 | |
| 12189 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | for ac_config_target in $ac_config_targets |
| 12191 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12192 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12193 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12195 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12196 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12197 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12198 | esac |
| 12199 | done |
| 12200 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12202 | # If the user did not use the arguments to specify the items to instantiate, |
| 12203 | # then the envvar interface is used. Set only those that are not. |
| 12204 | # We use the long form for the default assignment because of an extremely |
| 12205 | # bizarre bug on SunOS 4.1.3. |
| 12206 | if $ac_need_defaults; then |
| 12207 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12208 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12209 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12210 | fi |
| 12211 | |
| 12212 | # 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] | 12213 | # 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] | 12214 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12215 | # Hook for its removal unless debugging. |
| 12216 | # Note that there is a small window in which the directory will not be cleaned: |
| 12217 | # 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] | 12218 | $debug || |
| 12219 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12220 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12221 | trap 'exit_status=$? |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12222 | : "${ac_tmp:=$tmp}" |
| 12223 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12224 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12225 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12226 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12227 | # Create a (secure) tmp directory for tmp files. |
| 12228 | |
| 12229 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12231 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | } || |
| 12233 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12234 | tmp=./conf$$-$RANDOM |
| 12235 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12236 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12237 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12238 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12239 | # Set up the scripts for CONFIG_FILES section. |
| 12240 | # No need to generate them if there are no CONFIG_FILES. |
| 12241 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12242 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12243 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12244 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12245 | ac_cs_awk_getline=: |
| 12246 | ac_cs_awk_pipe_init= |
| 12247 | ac_cs_awk_read_file=' |
| 12248 | while ((getline aline < (F[key])) > 0) |
| 12249 | print(aline) |
| 12250 | close(F[key])' |
| 12251 | ac_cs_awk_pipe_fini= |
| 12252 | else |
| 12253 | ac_cs_awk_getline=false |
| 12254 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12255 | ac_cs_awk_read_file=' |
| 12256 | print "|#_!!_#|" |
| 12257 | print "cat " F[key] " &&" |
| 12258 | '$ac_cs_awk_pipe_init |
| 12259 | # The final `:' finishes the AND list. |
| 12260 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12261 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12262 | ac_cr=`echo X | tr X '\015'` |
| 12263 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12264 | # But we know of no other shell where ac_cr would be empty at this |
| 12265 | # point, so we can use a bashism as a fallback. |
| 12266 | if test "x$ac_cr" = x; then |
| 12267 | eval ac_cr=\$\'\\r\' |
| 12268 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12269 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12270 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12271 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12272 | else |
| 12273 | ac_cs_awk_cr=$ac_cr |
| 12274 | fi |
| 12275 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12276 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12277 | _ACEOF |
| 12278 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12279 | # Create commands to substitute file output variables. |
| 12280 | { |
| 12281 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12282 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12283 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12284 | echo "_ACAWK" && |
| 12285 | echo "_ACEOF" |
| 12286 | } >conf$$files.sh && |
| 12287 | . ./conf$$files.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12288 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12289 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12290 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12291 | { |
| 12292 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12293 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12294 | echo "_ACEOF" |
| 12295 | } >conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12296 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12297 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12298 | ac_delim='%!_!# ' |
| 12299 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12300 | . ./conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12301 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12302 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12303 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12304 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12305 | break |
| 12306 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12307 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12308 | else |
| 12309 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12310 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12311 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12312 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12313 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12315 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12316 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12317 | sed -n ' |
| 12318 | h |
| 12319 | s/^/S["/; s/!.*/"]=/ |
| 12320 | p |
| 12321 | g |
| 12322 | s/^[^!]*!// |
| 12323 | :repl |
| 12324 | t repl |
| 12325 | s/'"$ac_delim"'$// |
| 12326 | t delim |
| 12327 | :nl |
| 12328 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12329 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12330 | t more1 |
| 12331 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12332 | p |
| 12333 | n |
| 12334 | b repl |
| 12335 | :more1 |
| 12336 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12337 | p |
| 12338 | g |
| 12339 | s/.\{148\}// |
| 12340 | t nl |
| 12341 | :delim |
| 12342 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12343 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12344 | t more2 |
| 12345 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12346 | p |
| 12347 | b |
| 12348 | :more2 |
| 12349 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12350 | p |
| 12351 | g |
| 12352 | s/.\{148\}// |
| 12353 | t delim |
| 12354 | ' <conf$$subs.awk | sed ' |
| 12355 | /^[^""]/{ |
| 12356 | N |
| 12357 | s/\n// |
| 12358 | } |
| 12359 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12360 | rm -f conf$$subs.awk |
| 12361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12362 | _ACAWK |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12363 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12364 | for (key in S) S_is_set[key] = 1 |
| 12365 | FS = "" |
| 12366 | \$ac_cs_awk_pipe_init |
| 12367 | } |
| 12368 | { |
| 12369 | line = $ 0 |
| 12370 | nfields = split(line, field, "@") |
| 12371 | substed = 0 |
| 12372 | len = length(field[1]) |
| 12373 | for (i = 2; i < nfields; i++) { |
| 12374 | key = field[i] |
| 12375 | keylen = length(key) |
| 12376 | if (S_is_set[key]) { |
| 12377 | value = S[key] |
| 12378 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12379 | len += length(value) + length(field[++i]) |
| 12380 | substed = 1 |
| 12381 | } else |
| 12382 | len += 1 + keylen |
| 12383 | } |
| 12384 | if (nfields == 3 && !substed) { |
| 12385 | key = field[2] |
| 12386 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12387 | \$ac_cs_awk_read_file |
| 12388 | next |
| 12389 | } |
| 12390 | } |
| 12391 | print line |
| 12392 | } |
| 12393 | \$ac_cs_awk_pipe_fini |
| 12394 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12395 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12397 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12398 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12399 | else |
| 12400 | cat |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12401 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12402 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12403 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12404 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12405 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12406 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12407 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12408 | # (actually we leave an empty line to preserve line numbers). |
| 12409 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12410 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12411 | h |
| 12412 | s/// |
| 12413 | s/^/:/ |
| 12414 | s/[ ]*$/:/ |
| 12415 | s/:\$(srcdir):/:/g |
| 12416 | s/:\${srcdir}:/:/g |
| 12417 | s/:@srcdir@:/:/g |
| 12418 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12419 | s/:*$// |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12420 | x |
| 12421 | s/\(=[ ]*\).*/\1/ |
| 12422 | G |
| 12423 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12424 | s/^[^=]*=[ ]*$// |
| 12425 | }' |
| 12426 | fi |
| 12427 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12429 | fi # test -n "$CONFIG_FILES" |
| 12430 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12431 | # Set up the scripts for CONFIG_HEADERS section. |
| 12432 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12433 | # This happens for instance with `./config.status Makefile'. |
| 12434 | if test -n "$CONFIG_HEADERS"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12435 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12436 | BEGIN { |
| 12437 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12438 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12439 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12440 | # here-document in config.status, that substitutes the proper values into |
| 12441 | # config.h.in to produce config.h. |
| 12442 | |
| 12443 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12444 | # handling of long lines. |
| 12445 | ac_delim='%!_!# ' |
| 12446 | for ac_last_try in false false :; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12447 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12448 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12449 | break |
| 12450 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12451 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12452 | else |
| 12453 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12454 | fi |
| 12455 | done |
| 12456 | |
| 12457 | # For the awk script, D is an array of macro values keyed by name, |
| 12458 | # likewise P contains macro parameters if any. Preserve backslash |
| 12459 | # newline sequences. |
| 12460 | |
| 12461 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12462 | sed -n ' |
| 12463 | s/.\{148\}/&'"$ac_delim"'/g |
| 12464 | t rset |
| 12465 | :rset |
| 12466 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12467 | t def |
| 12468 | d |
| 12469 | :def |
| 12470 | s/\\$// |
| 12471 | t bsnl |
| 12472 | s/["\\]/\\&/g |
| 12473 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12474 | D["\1"]=" \3"/p |
| 12475 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12476 | d |
| 12477 | :bsnl |
| 12478 | s/["\\]/\\&/g |
| 12479 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12480 | D["\1"]=" \3\\\\\\n"\\/p |
| 12481 | t cont |
| 12482 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12483 | t cont |
| 12484 | d |
| 12485 | :cont |
| 12486 | n |
| 12487 | s/.\{148\}/&'"$ac_delim"'/g |
| 12488 | t clear |
| 12489 | :clear |
| 12490 | s/\\$// |
| 12491 | t bsnlc |
| 12492 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12493 | d |
| 12494 | :bsnlc |
| 12495 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12496 | b cont |
| 12497 | ' <confdefs.h | sed ' |
| 12498 | s/'"$ac_delim"'/"\\\ |
| 12499 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12500 | |
| 12501 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12502 | for (key in D) D_is_set[key] = 1 |
| 12503 | FS = "" |
| 12504 | } |
| 12505 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12506 | line = \$ 0 |
| 12507 | split(line, arg, " ") |
| 12508 | if (arg[1] == "#") { |
| 12509 | defundef = arg[2] |
| 12510 | mac1 = arg[3] |
| 12511 | } else { |
| 12512 | defundef = substr(arg[1], 2) |
| 12513 | mac1 = arg[2] |
| 12514 | } |
| 12515 | split(mac1, mac2, "(") #) |
| 12516 | macro = mac2[1] |
| 12517 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12518 | if (D_is_set[macro]) { |
| 12519 | # Preserve the white space surrounding the "#". |
| 12520 | print prefix "define", macro P[macro] D[macro] |
| 12521 | next |
| 12522 | } else { |
| 12523 | # Replace #undef with comments. This is necessary, for example, |
| 12524 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12525 | # on some systems where configure will not decide to define it. |
| 12526 | if (defundef == "undef") { |
| 12527 | print "/*", prefix defundef, macro, "*/" |
| 12528 | next |
| 12529 | } |
| 12530 | } |
| 12531 | } |
| 12532 | { print } |
| 12533 | _ACAWK |
| 12534 | _ACEOF |
| 12535 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12536 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12537 | fi # test -n "$CONFIG_HEADERS" |
| 12538 | |
| 12539 | |
| 12540 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12541 | shift |
| 12542 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12543 | do |
| 12544 | case $ac_tag in |
| 12545 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12546 | esac |
| 12547 | case $ac_mode$ac_tag in |
| 12548 | :[FHL]*:*);; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12549 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12550 | :[FH]-) ac_tag=-:-;; |
| 12551 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12552 | esac |
| 12553 | ac_save_IFS=$IFS |
| 12554 | IFS=: |
| 12555 | set x $ac_tag |
| 12556 | IFS=$ac_save_IFS |
| 12557 | shift |
| 12558 | ac_file=$1 |
| 12559 | shift |
| 12560 | |
| 12561 | case $ac_mode in |
| 12562 | :L) ac_source=$1;; |
| 12563 | :[FH]) |
| 12564 | ac_file_inputs= |
| 12565 | for ac_f |
| 12566 | do |
| 12567 | case $ac_f in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12568 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12569 | *) # Look for the file first in the build tree, then in the source tree |
| 12570 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12571 | # because $ac_f cannot contain `:'. |
| 12572 | test -f "$ac_f" || |
| 12573 | case $ac_f in |
| 12574 | [\\/$]*) false;; |
| 12575 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12576 | esac || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12577 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12578 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12579 | 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] | 12580 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12581 | done |
| 12582 | |
| 12583 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12584 | # use $as_me), people would be surprised to read: |
| 12585 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12586 | configure_input='Generated from '` |
| 12587 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12588 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12589 | if test x"$ac_file" != x-; then |
| 12590 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12592 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12593 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12594 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12595 | case $configure_input in #( |
| 12596 | *\&* | *\|* | *\\* ) |
| 12597 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12598 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12599 | *) ac_sed_conf_input=$configure_input;; |
| 12600 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12601 | |
| 12602 | case $ac_tag in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12603 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12604 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12605 | esac |
| 12606 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | esac |
| 12608 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12609 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12610 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12611 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12612 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12613 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12614 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12615 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12616 | s//\1/ |
| 12617 | q |
| 12618 | } |
| 12619 | /^X\(\/\/\)[^/].*/{ |
| 12620 | s//\1/ |
| 12621 | q |
| 12622 | } |
| 12623 | /^X\(\/\/\)$/{ |
| 12624 | s//\1/ |
| 12625 | q |
| 12626 | } |
| 12627 | /^X\(\/\).*/{ |
| 12628 | s//\1/ |
| 12629 | q |
| 12630 | } |
| 12631 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12632 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12633 | ac_builddir=. |
| 12634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12635 | case "$ac_dir" in |
| 12636 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12637 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12638 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12639 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12640 | 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] | 12641 | case $ac_top_builddir_sub in |
| 12642 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12643 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12644 | esac ;; |
| 12645 | esac |
| 12646 | ac_abs_top_builddir=$ac_pwd |
| 12647 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12648 | # for backward compatibility: |
| 12649 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | |
| 12651 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12652 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12653 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12654 | ac_top_srcdir=$ac_top_builddir_sub |
| 12655 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12656 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12657 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12658 | ac_top_srcdir=$srcdir |
| 12659 | ac_abs_top_srcdir=$srcdir ;; |
| 12660 | *) # Relative name. |
| 12661 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12662 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12663 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12664 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12665 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12666 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12667 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12668 | case $ac_mode in |
| 12669 | :F) |
| 12670 | # |
| 12671 | # CONFIG_FILE |
| 12672 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12673 | |
| 12674 | case $INSTALL in |
| 12675 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12676 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12677 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12678 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12679 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12681 | # If the template does not know about datarootdir, expand it. |
| 12682 | # FIXME: This hack should be removed a few years after 2.60. |
| 12683 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12684 | ac_sed_dataroot=' |
| 12685 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12686 | p |
| 12687 | q |
| 12688 | } |
| 12689 | /@datadir@/p |
| 12690 | /@docdir@/p |
| 12691 | /@infodir@/p |
| 12692 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12693 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12694 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12695 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12696 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12697 | { $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] | 12698 | $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] | 12699 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12701 | ac_datarootdir_hack=' |
| 12702 | s&@datadir@&$datadir&g |
| 12703 | s&@docdir@&$docdir&g |
| 12704 | s&@infodir@&$infodir&g |
| 12705 | s&@localedir@&$localedir&g |
| 12706 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12707 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12708 | esac |
| 12709 | _ACEOF |
| 12710 | |
| 12711 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12712 | # Shell code in configure.ac might set extrasub. |
| 12713 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12715 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12716 | $extrasub |
| 12717 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12718 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12719 | :t |
| 12720 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12721 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12722 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12723 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12724 | s&@srcdir@&$ac_srcdir&;t t |
| 12725 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12726 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12727 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12728 | s&@builddir@&$ac_builddir&;t t |
| 12729 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12730 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12731 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12732 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12733 | " |
| 12734 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12735 | if $ac_cs_awk_getline; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12736 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12737 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12738 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 12739 | fi \ |
| 12740 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12742 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12743 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12744 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12745 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12747 | 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] | 12748 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12749 | 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] | 12750 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12751 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12752 | case $ac_file in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12753 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12754 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12755 | esac \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12756 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12757 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12758 | :H) |
| 12759 | # |
| 12760 | # CONFIG_HEADER |
| 12761 | # |
| 12762 | if test x"$ac_file" != x-; then |
| 12763 | { |
| 12764 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12765 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 12766 | } >"$ac_tmp/config.h" \ |
| 12767 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12768 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12770 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12771 | else |
| 12772 | rm -f "$ac_file" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12773 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 12774 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12775 | fi |
| 12776 | else |
| 12777 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12778 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 12779 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12780 | fi |
| 12781 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12782 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12783 | :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] | 12784 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12785 | ;; |
| 12786 | esac |
| 12787 | |
| 12788 | |
| 12789 | case $ac_file$ac_mode in |
| 12790 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12791 | for ac_file in $CONFIG_FILES; do |
| 12792 | # Support "outfile[:infile[:infile...]]" |
| 12793 | case "$ac_file" in |
| 12794 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12795 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12796 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12797 | case "$ac_file" in */Makefile.in) |
| 12798 | # Adjust a relative srcdir. |
| 12799 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12800 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12801 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12802 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12803 | # In autoconf-2.50 it is called $srcdir. |
| 12804 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12805 | case "$ac_given_srcdir" in |
| 12806 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12807 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12808 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12809 | esac |
| 12810 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12811 | rm -f "$ac_dir/POTFILES" |
| 12812 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12813 | 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] | 12814 | POMAKEFILEDEPS="POTFILES.in" |
| 12815 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12816 | # on $ac_dir but don't depend on user-specified configuration |
| 12817 | # parameters. |
| 12818 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12819 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12821 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12822 | fi |
| 12823 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12824 | # Hide the ALL_LINGUAS assigment from automake. |
| 12825 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12826 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12827 | else |
| 12828 | # The set of available languages was given in configure.in. |
| 12829 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12830 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12831 | # Compute POFILES |
| 12832 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12833 | # Compute UPDATEPOFILES |
| 12834 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12835 | # Compute DUMMYPOFILES |
| 12836 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12837 | # Compute GMOFILES |
| 12838 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12839 | case "$ac_given_srcdir" in |
| 12840 | .) srcdirpre= ;; |
| 12841 | *) srcdirpre='$(srcdir)/' ;; |
| 12842 | esac |
| 12843 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12844 | UPDATEPOFILES= |
| 12845 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12846 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12847 | for lang in $ALL_LINGUAS; do |
| 12848 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12849 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12850 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12851 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12852 | done |
| 12853 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12854 | # environment variable. |
| 12855 | INST_LINGUAS= |
| 12856 | if test -n "$ALL_LINGUAS"; then |
| 12857 | for presentlang in $ALL_LINGUAS; do |
| 12858 | useit=no |
| 12859 | if test "%UNSET%" != "$LINGUAS"; then |
| 12860 | desiredlanguages="$LINGUAS" |
| 12861 | else |
| 12862 | desiredlanguages="$ALL_LINGUAS" |
| 12863 | fi |
| 12864 | for desiredlang in $desiredlanguages; do |
| 12865 | # Use the presentlang catalog if desiredlang is |
| 12866 | # a. equal to presentlang, or |
| 12867 | # b. a variant of presentlang (because in this case, |
| 12868 | # presentlang can be used as a fallback for messages |
| 12869 | # which are not translated in the desiredlang catalog). |
| 12870 | case "$desiredlang" in |
| 12871 | "$presentlang"*) useit=yes;; |
| 12872 | esac |
| 12873 | done |
| 12874 | if test $useit = yes; then |
| 12875 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12876 | fi |
| 12877 | done |
| 12878 | fi |
| 12879 | CATALOGS= |
| 12880 | if test -n "$INST_LINGUAS"; then |
| 12881 | for lang in $INST_LINGUAS; do |
| 12882 | CATALOGS="$CATALOGS $lang.gmo" |
| 12883 | done |
| 12884 | fi |
| 12885 | 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] | 12886 | 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] | 12887 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12888 | if test -f "$f"; then |
| 12889 | case "$f" in |
| 12890 | *.orig | *.bak | *~) ;; |
| 12891 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12892 | esac |
| 12893 | fi |
| 12894 | done |
| 12895 | fi |
| 12896 | ;; |
| 12897 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12898 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12899 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12900 | esac |
| 12901 | done # for ac_tag |
| 12902 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12903 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12904 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12905 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | ac_clean_files=$ac_clean_files_save |
| 12907 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12908 | test $ac_write_fail = 0 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12909 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12911 | |
| 12912 | # configure is writing to config.log, and then calls config.status. |
| 12913 | # config.status does its own redirection, appending to config.log. |
| 12914 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12915 | # by configure, so config.status won't be able to write to it; its |
| 12916 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12917 | # effectively closing config.log, so it can be properly (re)opened and |
| 12918 | # appended to by config.status. When coming back to configure, we |
| 12919 | # need to make the FD available again. |
| 12920 | if test "$no_create" != yes; then |
| 12921 | ac_cs_success=: |
| 12922 | ac_config_status_args= |
| 12923 | test "$silent" = yes && |
| 12924 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12925 | exec 5>/dev/null |
| 12926 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12927 | exec 5>>config.log |
| 12928 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12929 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12930 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12931 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12932 | 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] | 12933 | { $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] | 12934 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12935 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12936 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12937 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |