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. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | # |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 : |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 711 | QUOTA_CMT |
| 712 | DEPPROFILED_LIBQUOTA |
| 713 | PROFILED_LIBQUOTA |
| 714 | DEPSTATIC_LIBQUOTA |
| 715 | STATIC_LIBQUOTA |
| 716 | DEPLIBQUOTA |
| 717 | LIBQUOTA |
| 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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 830 | enable_relative_symlinks |
| 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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 845 | enable_quota |
| 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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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]* ) |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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'` |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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) ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 .` || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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" || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 .." |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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=`( |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 1486 | --enable-relative-symlinks use relative symlinks when installing |
| 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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 1501 | --enable-quota enable quota support |
| 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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 1608 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1609 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 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; } |
| 1847 | if eval \${$3+:} false; then : |
| 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; } |
| 1865 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1866 | |
| 1867 | } # ac_fn_c_check_header_compile |
| 1868 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
| 1944 | if eval \${$3+:} false; then : |
| 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1946 | $as_echo_n "checking for $2... " >&6; } |
| 1947 | if eval \${$3+:} false; then : |
| 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 |
| 1983 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 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; } |
| 2010 | if eval \${$3+:} false; then : |
| 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 |
| 2019 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 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)]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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)]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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)]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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)]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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)]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2423 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2424 | ## Cache variables. ## |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2459 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | ## Output variables. ## |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2474 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | ## File substitutions. ## |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2490 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | ## confdefs.h. ## |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [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 | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2756 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2757 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2758 | 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] | 2759 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2760 | { $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] | 2761 | $as_echo_n "checking build system type... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2762 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2763 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2764 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2765 | ac_build_alias=$build_alias |
| 2766 | test "x$ac_build_alias" = x && |
| 2767 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2768 | test "x$ac_build_alias" = x && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2769 | 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] | 2770 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2771 | 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] | 2772 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2773 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2774 | { $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] | 2775 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2776 | case $ac_cv_build in |
| 2777 | *-*-*) ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2778 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2779 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2780 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2781 | ac_save_IFS=$IFS; IFS='-' |
| 2782 | set x $ac_cv_build |
| 2783 | shift |
| 2784 | build_cpu=$1 |
| 2785 | build_vendor=$2 |
| 2786 | shift; shift |
| 2787 | # Remember, the first character of IFS is used to create $*, |
| 2788 | # except with old shells: |
| 2789 | build_os=$* |
| 2790 | IFS=$ac_save_IFS |
| 2791 | 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] | 2792 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2793 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2794 | { $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] | 2795 | $as_echo_n "checking host system type... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2796 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2797 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2798 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2799 | if test "x$host_alias" = x; then |
| 2800 | ac_cv_host=$ac_cv_build |
| 2801 | else |
| 2802 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2803 | 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] | 2804 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2805 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2806 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2807 | { $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] | 2808 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2809 | case $ac_cv_host in |
| 2810 | *-*-*) ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2811 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2812 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2813 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2814 | ac_save_IFS=$IFS; IFS='-' |
| 2815 | set x $ac_cv_host |
| 2816 | shift |
| 2817 | host_cpu=$1 |
| 2818 | host_vendor=$2 |
| 2819 | shift; shift |
| 2820 | # Remember, the first character of IFS is used to create $*, |
| 2821 | # except with old shells: |
| 2822 | host_os=$* |
| 2823 | IFS=$ac_save_IFS |
| 2824 | 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] | 2825 | |
| 2826 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2827 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | ac_ext=c |
| 2829 | ac_cpp='$CPP $CPPFLAGS' |
| 2830 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2831 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2832 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2833 | if test -n "$ac_tool_prefix"; then |
| 2834 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2835 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2836 | { $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] | 2837 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2838 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2839 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2840 | else |
| 2841 | if test -n "$CC"; then |
| 2842 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2843 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2845 | for as_dir in $PATH |
| 2846 | do |
| 2847 | IFS=$as_save_IFS |
| 2848 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2849 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2850 | 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] | 2851 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2852 | $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] | 2853 | break 2 |
| 2854 | fi |
| 2855 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2856 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2857 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2858 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2859 | fi |
| 2860 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2861 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2862 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2864 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2865 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2867 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2868 | fi |
| 2869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | fi |
| 2872 | if test -z "$ac_cv_prog_CC"; then |
| 2873 | ac_ct_CC=$CC |
| 2874 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2875 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2876 | { $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] | 2877 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2878 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2879 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2880 | else |
| 2881 | if test -n "$ac_ct_CC"; then |
| 2882 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2883 | else |
| 2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2885 | for as_dir in $PATH |
| 2886 | do |
| 2887 | IFS=$as_save_IFS |
| 2888 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2890 | 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] | 2891 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2892 | $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] | 2893 | break 2 |
| 2894 | fi |
| 2895 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2896 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2897 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2898 | |
| 2899 | fi |
| 2900 | fi |
| 2901 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2902 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2903 | { $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] | 2904 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2905 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2907 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2908 | fi |
| 2909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2910 | if test "x$ac_ct_CC" = x; then |
| 2911 | CC="" |
| 2912 | else |
| 2913 | case $cross_compiling:$ac_tool_warned in |
| 2914 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2915 | { $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] | 2916 | $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] | 2917 | ac_tool_warned=yes ;; |
| 2918 | esac |
| 2919 | CC=$ac_ct_CC |
| 2920 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2921 | else |
| 2922 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2923 | fi |
| 2924 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2925 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2926 | if test -n "$ac_tool_prefix"; then |
| 2927 | # 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] | 2928 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2929 | { $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] | 2930 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2931 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2932 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2933 | else |
| 2934 | if test -n "$CC"; then |
| 2935 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2936 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2938 | for as_dir in $PATH |
| 2939 | do |
| 2940 | IFS=$as_save_IFS |
| 2941 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2942 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2943 | 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] | 2944 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2945 | $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] | 2946 | break 2 |
| 2947 | fi |
| 2948 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2949 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2950 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2951 | |
| 2952 | fi |
| 2953 | fi |
| 2954 | CC=$ac_cv_prog_CC |
| 2955 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2957 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2958 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2960 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | fi |
| 2962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2963 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2964 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | fi |
| 2966 | if test -z "$CC"; then |
| 2967 | # Extract the first word of "cc", so it can be a program name with args. |
| 2968 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2969 | { $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] | 2970 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2971 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2972 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2973 | else |
| 2974 | if test -n "$CC"; then |
| 2975 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2976 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2977 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2979 | for as_dir in $PATH |
| 2980 | do |
| 2981 | IFS=$as_save_IFS |
| 2982 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2983 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 2984 | 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] | 2985 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2986 | ac_prog_rejected=yes |
| 2987 | continue |
| 2988 | fi |
| 2989 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2990 | $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] | 2991 | break 2 |
| 2992 | fi |
| 2993 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2994 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2995 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2996 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2997 | if test $ac_prog_rejected = yes; then |
| 2998 | # We found a bogon in the path, so make sure we never use it. |
| 2999 | set dummy $ac_cv_prog_CC |
| 3000 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3002 | # We chose a different compiler from the bogus one. |
| 3003 | # However, it has the same basename, so the bogon will be chosen |
| 3004 | # first if we set CC to just the basename; use the full file name. |
| 3005 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3006 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3007 | fi |
| 3008 | fi |
| 3009 | fi |
| 3010 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3012 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3014 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3015 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3017 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3018 | fi |
| 3019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | fi |
| 3022 | if test -z "$CC"; then |
| 3023 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3024 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3025 | do |
| 3026 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3027 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3028 | { $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] | 3029 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3030 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3031 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3032 | else |
| 3033 | if test -n "$CC"; then |
| 3034 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3035 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3037 | for as_dir in $PATH |
| 3038 | do |
| 3039 | IFS=$as_save_IFS |
| 3040 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3041 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3042 | 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] | 3043 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3044 | $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] | 3045 | break 2 |
| 3046 | fi |
| 3047 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3048 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3049 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3050 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3051 | fi |
| 3052 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3054 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3056 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3057 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3059 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3060 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3061 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3063 | test -n "$CC" && break |
| 3064 | done |
| 3065 | fi |
| 3066 | if test -z "$CC"; then |
| 3067 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3068 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3069 | do |
| 3070 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3071 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | { $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] | 3073 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3074 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3075 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3076 | else |
| 3077 | if test -n "$ac_ct_CC"; then |
| 3078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3079 | else |
| 3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3081 | for as_dir in $PATH |
| 3082 | do |
| 3083 | IFS=$as_save_IFS |
| 3084 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3085 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3086 | 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] | 3087 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3088 | $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] | 3089 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3090 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3092 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3093 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3094 | |
| 3095 | fi |
| 3096 | fi |
| 3097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3098 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3099 | { $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] | 3100 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3101 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3103 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3104 | fi |
| 3105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3107 | test -n "$ac_ct_CC" && break |
| 3108 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3110 | if test "x$ac_ct_CC" = x; then |
| 3111 | CC="" |
| 3112 | else |
| 3113 | case $cross_compiling:$ac_tool_warned in |
| 3114 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3115 | { $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] | 3116 | $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] | 3117 | ac_tool_warned=yes ;; |
| 3118 | esac |
| 3119 | CC=$ac_ct_CC |
| 3120 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3121 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3122 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3123 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3124 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3125 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3126 | 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] | 3127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3128 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3129 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3130 | |
| 3131 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3132 | $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] | 3133 | set X $ac_compile |
| 3134 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3135 | for ac_option in --version -v -V -qversion; do |
| 3136 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3137 | case "(($ac_try" in |
| 3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3139 | *) ac_try_echo=$ac_try;; |
| 3140 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3141 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3142 | $as_echo "$ac_try_echo"; } >&5 |
| 3143 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3144 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3145 | if test -s conftest.err; then |
| 3146 | sed '10a\ |
| 3147 | ... rest of stderr output deleted ... |
| 3148 | 10q' conftest.err >conftest.er1 |
| 3149 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3150 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3151 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3152 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3153 | test $ac_status = 0; } |
| 3154 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3155 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3157 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3159 | int |
| 3160 | main () |
| 3161 | { |
| 3162 | |
| 3163 | ; |
| 3164 | return 0; |
| 3165 | } |
| 3166 | _ACEOF |
| 3167 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3168 | 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] | 3169 | # Try to create an executable without -o first, disregard a.out. |
| 3170 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3171 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3173 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3174 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3175 | |
| 3176 | # The possible output files: |
| 3177 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3179 | ac_rmfiles= |
| 3180 | for ac_file in $ac_files |
| 3181 | do |
| 3182 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3183 | *.$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] | 3184 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3185 | esac |
| 3186 | done |
| 3187 | rm -f $ac_rmfiles |
| 3188 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3189 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3190 | case "(($ac_try" in |
| 3191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3192 | *) ac_try_echo=$ac_try;; |
| 3193 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3194 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3195 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3196 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3197 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3199 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3200 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3201 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3202 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3203 | # so that the user can short-circuit this test for compilers unknown to |
| 3204 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3205 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3206 | do |
| 3207 | test -f "$ac_file" || continue |
| 3208 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3209 | *.$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] | 3210 | ;; |
| 3211 | [ab].out ) |
| 3212 | # We found the default executable, but exeext='' is most |
| 3213 | # certainly right. |
| 3214 | break;; |
| 3215 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3216 | 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] | 3217 | then :; else |
| 3218 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3219 | fi |
| 3220 | # We set ac_cv_exeext here because the later test for it is not |
| 3221 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3222 | # argument, so we may need to know it at that point already. |
| 3223 | # Even if this section looks crufty: it has the advantage of |
| 3224 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3225 | break;; |
| 3226 | * ) |
| 3227 | break;; |
| 3228 | esac |
| 3229 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3230 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3232 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3233 | ac_file='' |
| 3234 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3235 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3237 | $as_echo "no" >&6; } |
| 3238 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3240 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3241 | { { $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] | 3242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3243 | as_fn_error 77 "C compiler cannot create executables |
| 3244 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3245 | else |
| 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3247 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3248 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3250 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3252 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3253 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3254 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3255 | 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] | 3256 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3257 | { $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] | 3258 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3259 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3260 | case "(($ac_try" in |
| 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3262 | *) ac_try_echo=$ac_try;; |
| 3263 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3265 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3266 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3267 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3269 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3270 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3271 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3272 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3273 | # `rm'. |
| 3274 | for ac_file in conftest.exe conftest conftest.*; do |
| 3275 | test -f "$ac_file" || continue |
| 3276 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3277 | *.$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] | 3278 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3279 | break;; |
| 3280 | * ) break;; |
| 3281 | esac |
| 3282 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3283 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3284 | { { $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] | 3285 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3286 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3287 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3288 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3289 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3290 | { $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] | 3291 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3292 | |
| 3293 | rm -f conftest.$ac_ext |
| 3294 | EXEEXT=$ac_cv_exeext |
| 3295 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3297 | /* end confdefs.h. */ |
| 3298 | #include <stdio.h> |
| 3299 | int |
| 3300 | main () |
| 3301 | { |
| 3302 | FILE *f = fopen ("conftest.out", "w"); |
| 3303 | return ferror (f) || fclose (f) != 0; |
| 3304 | |
| 3305 | ; |
| 3306 | return 0; |
| 3307 | } |
| 3308 | _ACEOF |
| 3309 | ac_clean_files="$ac_clean_files conftest.out" |
| 3310 | # Check that the compiler produces executables we can run. If not, either |
| 3311 | # the compiler is broken, or we cross compile. |
| 3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3313 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3314 | if test "$cross_compiling" != yes; then |
| 3315 | { { ac_try="$ac_link" |
| 3316 | case "(($ac_try" in |
| 3317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3318 | *) ac_try_echo=$ac_try;; |
| 3319 | esac |
| 3320 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3321 | $as_echo "$ac_try_echo"; } >&5 |
| 3322 | (eval "$ac_link") 2>&5 |
| 3323 | ac_status=$? |
| 3324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3325 | test $ac_status = 0; } |
| 3326 | if { ac_try='./conftest$ac_cv_exeext' |
| 3327 | { { case "(($ac_try" in |
| 3328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3329 | *) ac_try_echo=$ac_try;; |
| 3330 | esac |
| 3331 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3332 | $as_echo "$ac_try_echo"; } >&5 |
| 3333 | (eval "$ac_try") 2>&5 |
| 3334 | ac_status=$? |
| 3335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3336 | test $ac_status = 0; }; }; then |
| 3337 | cross_compiling=no |
| 3338 | else |
| 3339 | if test "$cross_compiling" = maybe; then |
| 3340 | cross_compiling=yes |
| 3341 | else |
| 3342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3344 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3345 | If you meant to cross compile, use \`--host'. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3346 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3347 | fi |
| 3348 | fi |
| 3349 | fi |
| 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3351 | $as_echo "$cross_compiling" >&6; } |
| 3352 | |
| 3353 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3354 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3355 | { $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] | 3356 | $as_echo_n "checking for suffix of object files... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3357 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3358 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3359 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3361 | /* end confdefs.h. */ |
| 3362 | |
| 3363 | int |
| 3364 | main () |
| 3365 | { |
| 3366 | |
| 3367 | ; |
| 3368 | return 0; |
| 3369 | } |
| 3370 | _ACEOF |
| 3371 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3372 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3373 | case "(($ac_try" in |
| 3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3375 | *) ac_try_echo=$ac_try;; |
| 3376 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3377 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3378 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3379 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3380 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3382 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3383 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3384 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3385 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3386 | *.$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] | 3387 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3388 | break;; |
| 3389 | esac |
| 3390 | done |
| 3391 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3392 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3394 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3395 | { { $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] | 3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3397 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3398 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3399 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3400 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3401 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3402 | { $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] | 3403 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3404 | OBJEXT=$ac_cv_objext |
| 3405 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3406 | { $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] | 3407 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3408 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3409 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3410 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3412 | /* end confdefs.h. */ |
| 3413 | |
| 3414 | int |
| 3415 | main () |
| 3416 | { |
| 3417 | #ifndef __GNUC__ |
| 3418 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3419 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3420 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3421 | ; |
| 3422 | return 0; |
| 3423 | } |
| 3424 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3425 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3426 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3428 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3429 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3431 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3433 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3434 | { $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] | 3435 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3436 | if test $ac_compiler_gnu = yes; then |
| 3437 | GCC=yes |
| 3438 | else |
| 3439 | GCC= |
| 3440 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3441 | ac_test_CFLAGS=${CFLAGS+set} |
| 3442 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3443 | { $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] | 3444 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3445 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3446 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3447 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3448 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3449 | ac_c_werror_flag=yes |
| 3450 | ac_cv_prog_cc_g=no |
| 3451 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3453 | /* end confdefs.h. */ |
| 3454 | |
| 3455 | int |
| 3456 | main () |
| 3457 | { |
| 3458 | |
| 3459 | ; |
| 3460 | return 0; |
| 3461 | } |
| 3462 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3463 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3464 | ac_cv_prog_cc_g=yes |
| 3465 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3466 | CFLAGS="" |
| 3467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [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 | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3479 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3480 | else |
| 3481 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3482 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3484 | /* end confdefs.h. */ |
| 3485 | |
| 3486 | int |
| 3487 | main () |
| 3488 | { |
| 3489 | |
| 3490 | ; |
| 3491 | return 0; |
| 3492 | } |
| 3493 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3494 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3495 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3496 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3498 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3500 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3502 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3504 | { $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] | 3505 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3506 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3507 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3508 | elif test $ac_cv_prog_cc_g = yes; then |
| 3509 | if test "$GCC" = yes; then |
| 3510 | CFLAGS="-g -O2" |
| 3511 | else |
| 3512 | CFLAGS="-g" |
| 3513 | fi |
| 3514 | else |
| 3515 | if test "$GCC" = yes; then |
| 3516 | CFLAGS="-O2" |
| 3517 | else |
| 3518 | CFLAGS= |
| 3519 | fi |
| 3520 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3521 | { $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] | 3522 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3523 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3524 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3525 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3526 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3527 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3529 | /* end confdefs.h. */ |
| 3530 | #include <stdarg.h> |
| 3531 | #include <stdio.h> |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3532 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3533 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3534 | struct buf { int x; }; |
| 3535 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3536 | static char *e (p, i) |
| 3537 | char **p; |
| 3538 | int i; |
| 3539 | { |
| 3540 | return p[i]; |
| 3541 | } |
| 3542 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3543 | { |
| 3544 | char *s; |
| 3545 | va_list v; |
| 3546 | va_start (v,p); |
| 3547 | s = g (p, va_arg (v,int)); |
| 3548 | va_end (v); |
| 3549 | return s; |
| 3550 | } |
| 3551 | |
| 3552 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3553 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3554 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3555 | 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] | 3556 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3557 | 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] | 3558 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3559 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3560 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3561 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3562 | inside strings and character constants. */ |
| 3563 | #define FOO(x) 'x' |
| 3564 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3566 | int test (int i, double x); |
| 3567 | struct s1 {int (*f) (int a);}; |
| 3568 | struct s2 {int (*f) (double a);}; |
| 3569 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3570 | int argc; |
| 3571 | char **argv; |
| 3572 | int |
| 3573 | main () |
| 3574 | { |
| 3575 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3576 | ; |
| 3577 | return 0; |
| 3578 | } |
| 3579 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3580 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3581 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | do |
| 3583 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3584 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3585 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3587 | rm -f core conftest.err conftest.$ac_objext |
| 3588 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3590 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3591 | CC=$ac_save_CC |
| 3592 | |
| 3593 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3594 | # AC_CACHE_VAL |
| 3595 | case "x$ac_cv_prog_cc_c89" in |
| 3596 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3598 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3599 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3601 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3603 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3604 | { $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] | 3605 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3606 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3607 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3608 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3609 | fi |
| 3610 | |
| 3611 | ac_ext=c |
| 3612 | ac_cpp='$CPP $CPPFLAGS' |
| 3613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3616 | |
| 3617 | |
| 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3619 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3620 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3621 | $as_echo_n "(cached) " >&6 |
| 3622 | else |
| 3623 | ac_check_lib_save_LIBS=$LIBS |
| 3624 | LIBS="-ldl $LIBS" |
| 3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3626 | /* end confdefs.h. */ |
| 3627 | |
| 3628 | /* Override any GCC internal prototype to avoid an error. |
| 3629 | Use char because int might match the return type of a GCC |
| 3630 | builtin and then its argument prototype would still apply. */ |
| 3631 | #ifdef __cplusplus |
| 3632 | extern "C" |
| 3633 | #endif |
| 3634 | char dlopen (); |
| 3635 | int |
| 3636 | main () |
| 3637 | { |
| 3638 | return dlopen (); |
| 3639 | ; |
| 3640 | return 0; |
| 3641 | } |
| 3642 | _ACEOF |
| 3643 | if ac_fn_c_try_link "$LINENO"; then : |
| 3644 | ac_cv_lib_dl_dlopen=yes |
| 3645 | else |
| 3646 | ac_cv_lib_dl_dlopen=no |
| 3647 | fi |
| 3648 | rm -f core conftest.err conftest.$ac_objext \ |
| 3649 | conftest$ac_exeext conftest.$ac_ext |
| 3650 | LIBS=$ac_check_lib_save_LIBS |
| 3651 | fi |
| 3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3653 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3654 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3655 | DLOPEN_LIB=-ldl |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3656 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3657 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3658 | |
| 3659 | fi |
| 3660 | |
| 3661 | |
| 3662 | WITH_DIET_LIBC= |
| 3663 | |
| 3664 | # Check whether --with-diet-libc was given. |
| 3665 | if test "${with_diet_libc+set}" = set; then : |
| 3666 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3667 | WITH_DIET_LIBC=yes |
| 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3669 | $as_echo "CC=$CC" >&6; } |
| 3670 | fi |
| 3671 | |
| 3672 | # Check whether --with-cc was given. |
| 3673 | if test "${with_cc+set}" = set; then : |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3674 | 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] | 3675 | fi |
| 3676 | |
| 3677 | |
| 3678 | # Check whether --with-ccopts was given. |
| 3679 | if test "${with_ccopts+set}" = set; then : |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3680 | 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] | 3681 | fi |
| 3682 | |
| 3683 | |
| 3684 | # Check whether --with-ldopts was given. |
| 3685 | if test "${with_ldopts+set}" = set; then : |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3686 | 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] | 3687 | fi |
| 3688 | |
| 3689 | ac_ext=c |
| 3690 | ac_cpp='$CPP $CPPFLAGS' |
| 3691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3694 | if test -n "$ac_tool_prefix"; then |
| 3695 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3696 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3698 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3699 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3700 | $as_echo_n "(cached) " >&6 |
| 3701 | else |
| 3702 | if test -n "$CC"; then |
| 3703 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3704 | else |
| 3705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3706 | for as_dir in $PATH |
| 3707 | do |
| 3708 | IFS=$as_save_IFS |
| 3709 | test -z "$as_dir" && as_dir=. |
| 3710 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3711 | 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] | 3712 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3714 | break 2 |
| 3715 | fi |
| 3716 | done |
| 3717 | done |
| 3718 | IFS=$as_save_IFS |
| 3719 | |
| 3720 | fi |
| 3721 | fi |
| 3722 | CC=$ac_cv_prog_CC |
| 3723 | if test -n "$CC"; then |
| 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3725 | $as_echo "$CC" >&6; } |
| 3726 | else |
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3728 | $as_echo "no" >&6; } |
| 3729 | fi |
| 3730 | |
| 3731 | |
| 3732 | fi |
| 3733 | if test -z "$ac_cv_prog_CC"; then |
| 3734 | ac_ct_CC=$CC |
| 3735 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3736 | set dummy gcc; ac_word=$2 |
| 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3738 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3739 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3740 | $as_echo_n "(cached) " >&6 |
| 3741 | else |
| 3742 | if test -n "$ac_ct_CC"; then |
| 3743 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3744 | else |
| 3745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3746 | for as_dir in $PATH |
| 3747 | do |
| 3748 | IFS=$as_save_IFS |
| 3749 | test -z "$as_dir" && as_dir=. |
| 3750 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3751 | 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] | 3752 | ac_cv_prog_ac_ct_CC="gcc" |
| 3753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3754 | break 2 |
| 3755 | fi |
| 3756 | done |
| 3757 | done |
| 3758 | IFS=$as_save_IFS |
| 3759 | |
| 3760 | fi |
| 3761 | fi |
| 3762 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3763 | if test -n "$ac_ct_CC"; then |
| 3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3765 | $as_echo "$ac_ct_CC" >&6; } |
| 3766 | else |
| 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3768 | $as_echo "no" >&6; } |
| 3769 | fi |
| 3770 | |
| 3771 | if test "x$ac_ct_CC" = x; then |
| 3772 | CC="" |
| 3773 | else |
| 3774 | case $cross_compiling:$ac_tool_warned in |
| 3775 | yes:) |
| 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3778 | ac_tool_warned=yes ;; |
| 3779 | esac |
| 3780 | CC=$ac_ct_CC |
| 3781 | fi |
| 3782 | else |
| 3783 | CC="$ac_cv_prog_CC" |
| 3784 | fi |
| 3785 | |
| 3786 | if test -z "$CC"; then |
| 3787 | if test -n "$ac_tool_prefix"; then |
| 3788 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3789 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3791 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3792 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3793 | $as_echo_n "(cached) " >&6 |
| 3794 | else |
| 3795 | if test -n "$CC"; then |
| 3796 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3797 | else |
| 3798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3799 | for as_dir in $PATH |
| 3800 | do |
| 3801 | IFS=$as_save_IFS |
| 3802 | test -z "$as_dir" && as_dir=. |
| 3803 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3804 | 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] | 3805 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3807 | break 2 |
| 3808 | fi |
| 3809 | done |
| 3810 | done |
| 3811 | IFS=$as_save_IFS |
| 3812 | |
| 3813 | fi |
| 3814 | fi |
| 3815 | CC=$ac_cv_prog_CC |
| 3816 | if test -n "$CC"; then |
| 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3818 | $as_echo "$CC" >&6; } |
| 3819 | else |
| 3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3821 | $as_echo "no" >&6; } |
| 3822 | fi |
| 3823 | |
| 3824 | |
| 3825 | fi |
| 3826 | fi |
| 3827 | if test -z "$CC"; then |
| 3828 | # Extract the first word of "cc", so it can be a program name with args. |
| 3829 | set dummy cc; ac_word=$2 |
| 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3831 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3832 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3833 | $as_echo_n "(cached) " >&6 |
| 3834 | else |
| 3835 | if test -n "$CC"; then |
| 3836 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3837 | else |
| 3838 | ac_prog_rejected=no |
| 3839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3840 | for as_dir in $PATH |
| 3841 | do |
| 3842 | IFS=$as_save_IFS |
| 3843 | test -z "$as_dir" && as_dir=. |
| 3844 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3845 | 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] | 3846 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3847 | ac_prog_rejected=yes |
| 3848 | continue |
| 3849 | fi |
| 3850 | ac_cv_prog_CC="cc" |
| 3851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3852 | break 2 |
| 3853 | fi |
| 3854 | done |
| 3855 | done |
| 3856 | IFS=$as_save_IFS |
| 3857 | |
| 3858 | if test $ac_prog_rejected = yes; then |
| 3859 | # We found a bogon in the path, so make sure we never use it. |
| 3860 | set dummy $ac_cv_prog_CC |
| 3861 | shift |
| 3862 | if test $# != 0; then |
| 3863 | # We chose a different compiler from the bogus one. |
| 3864 | # However, it has the same basename, so the bogon will be chosen |
| 3865 | # first if we set CC to just the basename; use the full file name. |
| 3866 | shift |
| 3867 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3868 | fi |
| 3869 | fi |
| 3870 | fi |
| 3871 | fi |
| 3872 | CC=$ac_cv_prog_CC |
| 3873 | if test -n "$CC"; then |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3875 | $as_echo "$CC" >&6; } |
| 3876 | else |
| 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3878 | $as_echo "no" >&6; } |
| 3879 | fi |
| 3880 | |
| 3881 | |
| 3882 | fi |
| 3883 | if test -z "$CC"; then |
| 3884 | if test -n "$ac_tool_prefix"; then |
| 3885 | for ac_prog in cl.exe |
| 3886 | do |
| 3887 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3888 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3890 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3891 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3892 | $as_echo_n "(cached) " >&6 |
| 3893 | else |
| 3894 | if test -n "$CC"; then |
| 3895 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3896 | else |
| 3897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3898 | for as_dir in $PATH |
| 3899 | do |
| 3900 | IFS=$as_save_IFS |
| 3901 | test -z "$as_dir" && as_dir=. |
| 3902 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3903 | 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] | 3904 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3906 | break 2 |
| 3907 | fi |
| 3908 | done |
| 3909 | done |
| 3910 | IFS=$as_save_IFS |
| 3911 | |
| 3912 | fi |
| 3913 | fi |
| 3914 | CC=$ac_cv_prog_CC |
| 3915 | if test -n "$CC"; then |
| 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3917 | $as_echo "$CC" >&6; } |
| 3918 | else |
| 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3920 | $as_echo "no" >&6; } |
| 3921 | fi |
| 3922 | |
| 3923 | |
| 3924 | test -n "$CC" && break |
| 3925 | done |
| 3926 | fi |
| 3927 | if test -z "$CC"; then |
| 3928 | ac_ct_CC=$CC |
| 3929 | for ac_prog in cl.exe |
| 3930 | do |
| 3931 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3932 | set dummy $ac_prog; ac_word=$2 |
| 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3934 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3935 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3936 | $as_echo_n "(cached) " >&6 |
| 3937 | else |
| 3938 | if test -n "$ac_ct_CC"; then |
| 3939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3940 | else |
| 3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3942 | for as_dir in $PATH |
| 3943 | do |
| 3944 | IFS=$as_save_IFS |
| 3945 | test -z "$as_dir" && as_dir=. |
| 3946 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3947 | 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] | 3948 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3950 | break 2 |
| 3951 | fi |
| 3952 | done |
| 3953 | done |
| 3954 | IFS=$as_save_IFS |
| 3955 | |
| 3956 | fi |
| 3957 | fi |
| 3958 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3959 | if test -n "$ac_ct_CC"; then |
| 3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3961 | $as_echo "$ac_ct_CC" >&6; } |
| 3962 | else |
| 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3964 | $as_echo "no" >&6; } |
| 3965 | fi |
| 3966 | |
| 3967 | |
| 3968 | test -n "$ac_ct_CC" && break |
| 3969 | done |
| 3970 | |
| 3971 | if test "x$ac_ct_CC" = x; then |
| 3972 | CC="" |
| 3973 | else |
| 3974 | case $cross_compiling:$ac_tool_warned in |
| 3975 | yes:) |
| 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3978 | ac_tool_warned=yes ;; |
| 3979 | esac |
| 3980 | CC=$ac_ct_CC |
| 3981 | fi |
| 3982 | fi |
| 3983 | |
| 3984 | fi |
| 3985 | |
| 3986 | |
| 3987 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 3989 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3990 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3991 | |
| 3992 | # Provide some information about the compiler. |
| 3993 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3994 | set X $ac_compile |
| 3995 | ac_compiler=$2 |
| 3996 | for ac_option in --version -v -V -qversion; do |
| 3997 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3998 | case "(($ac_try" in |
| 3999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4000 | *) ac_try_echo=$ac_try;; |
| 4001 | esac |
| 4002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4003 | $as_echo "$ac_try_echo"; } >&5 |
| 4004 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4005 | ac_status=$? |
| 4006 | if test -s conftest.err; then |
| 4007 | sed '10a\ |
| 4008 | ... rest of stderr output deleted ... |
| 4009 | 10q' conftest.err >conftest.er1 |
| 4010 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4011 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4012 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4014 | test $ac_status = 0; } |
| 4015 | done |
| 4016 | |
| 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4018 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4019 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4020 | $as_echo_n "(cached) " >&6 |
| 4021 | else |
| 4022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4023 | /* end confdefs.h. */ |
| 4024 | |
| 4025 | int |
| 4026 | main () |
| 4027 | { |
| 4028 | #ifndef __GNUC__ |
| 4029 | choke me |
| 4030 | #endif |
| 4031 | |
| 4032 | ; |
| 4033 | return 0; |
| 4034 | } |
| 4035 | _ACEOF |
| 4036 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4037 | ac_compiler_gnu=yes |
| 4038 | else |
| 4039 | ac_compiler_gnu=no |
| 4040 | fi |
| 4041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4042 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4043 | |
| 4044 | fi |
| 4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4046 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4047 | if test $ac_compiler_gnu = yes; then |
| 4048 | GCC=yes |
| 4049 | else |
| 4050 | GCC= |
| 4051 | fi |
| 4052 | ac_test_CFLAGS=${CFLAGS+set} |
| 4053 | ac_save_CFLAGS=$CFLAGS |
| 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4055 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4056 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4057 | $as_echo_n "(cached) " >&6 |
| 4058 | else |
| 4059 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4060 | ac_c_werror_flag=yes |
| 4061 | ac_cv_prog_cc_g=no |
| 4062 | CFLAGS="-g" |
| 4063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4064 | /* end confdefs.h. */ |
| 4065 | |
| 4066 | int |
| 4067 | main () |
| 4068 | { |
| 4069 | |
| 4070 | ; |
| 4071 | return 0; |
| 4072 | } |
| 4073 | _ACEOF |
| 4074 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4075 | ac_cv_prog_cc_g=yes |
| 4076 | else |
| 4077 | CFLAGS="" |
| 4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4079 | /* end confdefs.h. */ |
| 4080 | |
| 4081 | int |
| 4082 | main () |
| 4083 | { |
| 4084 | |
| 4085 | ; |
| 4086 | return 0; |
| 4087 | } |
| 4088 | _ACEOF |
| 4089 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4090 | |
| 4091 | else |
| 4092 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4093 | CFLAGS="-g" |
| 4094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4095 | /* end confdefs.h. */ |
| 4096 | |
| 4097 | int |
| 4098 | main () |
| 4099 | { |
| 4100 | |
| 4101 | ; |
| 4102 | return 0; |
| 4103 | } |
| 4104 | _ACEOF |
| 4105 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4106 | ac_cv_prog_cc_g=yes |
| 4107 | fi |
| 4108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4109 | fi |
| 4110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4111 | fi |
| 4112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4113 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4114 | fi |
| 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4116 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4117 | if test "$ac_test_CFLAGS" = set; then |
| 4118 | CFLAGS=$ac_save_CFLAGS |
| 4119 | elif test $ac_cv_prog_cc_g = yes; then |
| 4120 | if test "$GCC" = yes; then |
| 4121 | CFLAGS="-g -O2" |
| 4122 | else |
| 4123 | CFLAGS="-g" |
| 4124 | fi |
| 4125 | else |
| 4126 | if test "$GCC" = yes; then |
| 4127 | CFLAGS="-O2" |
| 4128 | else |
| 4129 | CFLAGS= |
| 4130 | fi |
| 4131 | fi |
| 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4133 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4134 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4135 | $as_echo_n "(cached) " >&6 |
| 4136 | else |
| 4137 | ac_cv_prog_cc_c89=no |
| 4138 | ac_save_CC=$CC |
| 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4140 | /* end confdefs.h. */ |
| 4141 | #include <stdarg.h> |
| 4142 | #include <stdio.h> |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4143 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4144 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4145 | struct buf { int x; }; |
| 4146 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4147 | static char *e (p, i) |
| 4148 | char **p; |
| 4149 | int i; |
| 4150 | { |
| 4151 | return p[i]; |
| 4152 | } |
| 4153 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4154 | { |
| 4155 | char *s; |
| 4156 | va_list v; |
| 4157 | va_start (v,p); |
| 4158 | s = g (p, va_arg (v,int)); |
| 4159 | va_end (v); |
| 4160 | return s; |
| 4161 | } |
| 4162 | |
| 4163 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4164 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4165 | These don't provoke an error unfortunately, instead are silently treated |
| 4166 | as 'x'. The following induces an error, until -std is added to get |
| 4167 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4168 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4169 | that's true only with -std. */ |
| 4170 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4171 | |
| 4172 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4173 | inside strings and character constants. */ |
| 4174 | #define FOO(x) 'x' |
| 4175 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4176 | |
| 4177 | int test (int i, double x); |
| 4178 | struct s1 {int (*f) (int a);}; |
| 4179 | struct s2 {int (*f) (double a);}; |
| 4180 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4181 | int argc; |
| 4182 | char **argv; |
| 4183 | int |
| 4184 | main () |
| 4185 | { |
| 4186 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4187 | ; |
| 4188 | return 0; |
| 4189 | } |
| 4190 | _ACEOF |
| 4191 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4192 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4193 | do |
| 4194 | CC="$ac_save_CC $ac_arg" |
| 4195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4196 | ac_cv_prog_cc_c89=$ac_arg |
| 4197 | fi |
| 4198 | rm -f core conftest.err conftest.$ac_objext |
| 4199 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4200 | done |
| 4201 | rm -f conftest.$ac_ext |
| 4202 | CC=$ac_save_CC |
| 4203 | |
| 4204 | fi |
| 4205 | # AC_CACHE_VAL |
| 4206 | case "x$ac_cv_prog_cc_c89" in |
| 4207 | x) |
| 4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4209 | $as_echo "none needed" >&6; } ;; |
| 4210 | xno) |
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4212 | $as_echo "unsupported" >&6; } ;; |
| 4213 | *) |
| 4214 | CC="$CC $ac_cv_prog_cc_c89" |
| 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4216 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4217 | esac |
| 4218 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4219 | |
| 4220 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4221 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4222 | ac_ext=c |
| 4223 | ac_cpp='$CPP $CPPFLAGS' |
| 4224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4227 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4228 | if test "$GCC" = yes; then |
| 4229 | RDYNAMIC="-rdynamic" |
| 4230 | |
| 4231 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4232 | ac_ext=c |
| 4233 | ac_cpp='$CPP $CPPFLAGS' |
| 4234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4237 | { $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] | 4238 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4239 | # On Suns, sometimes $CPP names a directory. |
| 4240 | if test -n "$CPP" && test -d "$CPP"; then |
| 4241 | CPP= |
| 4242 | fi |
| 4243 | if test -z "$CPP"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4244 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4245 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4247 | # Double quotes because CPP needs to be expanded |
| 4248 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4249 | do |
| 4250 | ac_preproc_ok=false |
| 4251 | for ac_c_preproc_warn_flag in '' yes |
| 4252 | do |
| 4253 | # Use a header file that comes with gcc, so configuring glibc |
| 4254 | # with a fresh cross-compiler works. |
| 4255 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4256 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4257 | # 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] | 4258 | # 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] | 4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4260 | /* end confdefs.h. */ |
| 4261 | #ifdef __STDC__ |
| 4262 | # include <limits.h> |
| 4263 | #else |
| 4264 | # include <assert.h> |
| 4265 | #endif |
| 4266 | Syntax error |
| 4267 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4268 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4269 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4270 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4271 | # Broken: fails on valid input. |
| 4272 | continue |
| 4273 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4274 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4275 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4276 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4277 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | /* end confdefs.h. */ |
| 4280 | #include <ac_nonexistent.h> |
| 4281 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4282 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | # Broken: success on invalid input. |
| 4284 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4285 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4286 | # Passes both tests. |
| 4287 | ac_preproc_ok=: |
| 4288 | break |
| 4289 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4290 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4291 | |
| 4292 | done |
| 4293 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4294 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4295 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4296 | break |
| 4297 | fi |
| 4298 | |
| 4299 | done |
| 4300 | ac_cv_prog_CPP=$CPP |
| 4301 | |
| 4302 | fi |
| 4303 | CPP=$ac_cv_prog_CPP |
| 4304 | else |
| 4305 | ac_cv_prog_CPP=$CPP |
| 4306 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4308 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4309 | ac_preproc_ok=false |
| 4310 | for ac_c_preproc_warn_flag in '' yes |
| 4311 | do |
| 4312 | # Use a header file that comes with gcc, so configuring glibc |
| 4313 | # with a fresh cross-compiler works. |
| 4314 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4315 | # <limits.h> exists even on freestanding compilers. |
| 4316 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4317 | # 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] | 4318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4319 | /* end confdefs.h. */ |
| 4320 | #ifdef __STDC__ |
| 4321 | # include <limits.h> |
| 4322 | #else |
| 4323 | # include <assert.h> |
| 4324 | #endif |
| 4325 | Syntax error |
| 4326 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4327 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4328 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4329 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4330 | # Broken: fails on valid input. |
| 4331 | continue |
| 4332 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4333 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4335 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | /* end confdefs.h. */ |
| 4339 | #include <ac_nonexistent.h> |
| 4340 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4341 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4342 | # Broken: success on invalid input. |
| 4343 | continue |
| 4344 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4345 | # Passes both tests. |
| 4346 | ac_preproc_ok=: |
| 4347 | break |
| 4348 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4349 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4350 | |
| 4351 | done |
| 4352 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4353 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4354 | if $ac_preproc_ok; then : |
| 4355 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4356 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4357 | { { $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] | 4358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4359 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4360 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4361 | fi |
| 4362 | |
| 4363 | ac_ext=c |
| 4364 | ac_cpp='$CPP $CPPFLAGS' |
| 4365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4368 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4369 | { $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] | 4370 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4371 | if test "$GCC" = yes |
| 4372 | then |
| 4373 | case "$host_cpu" in |
| 4374 | alpha) addcflags="-mieee" ;; |
| 4375 | esac |
| 4376 | fi |
| 4377 | if test "x$addcflags" != x |
| 4378 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4380 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4381 | CFLAGS="$addcflags $CFLAGS" |
| 4382 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4384 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4385 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4386 | LIB_EXT=.a |
| 4387 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4388 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4389 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4390 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4391 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4392 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4393 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4394 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4395 | fi |
| 4396 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4397 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4399 | then |
| 4400 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4401 | { $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] | 4402 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4403 | else |
| 4404 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4405 | { $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] | 4406 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4407 | fi |
| 4408 | |
| 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: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4412 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4413 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4414 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4416 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4417 | # Check whether --enable-symlink-install was given. |
| 4418 | if test "${enable_symlink_install+set}" = set; then : |
| 4419 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4420 | then |
| 4421 | LINK_INSTALL_FLAGS=-f |
| 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4423 | $as_echo "Disabling symlinks for install" >&6; } |
| 4424 | else |
| 4425 | LINK_INSTALL_FLAGS=-sf |
| 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4427 | $as_echo "Enabling symlinks for install" >&6; } |
| 4428 | fi |
| 4429 | |
| 4430 | else |
| 4431 | LINK_INSTALL_FLAGS=-f |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4433 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4434 | |
| 4435 | fi |
| 4436 | |
| 4437 | |
| 4438 | relative_symlink_defined= |
| 4439 | # Check whether --enable-relative-symlinks was given. |
| 4440 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4441 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
| 4442 | then |
| 4443 | SYMLINK_RELATIVE= |
| 4444 | relative_symlink_defined=yes |
| 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4446 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4447 | else |
| 4448 | SYMLINK_RELATIVE=--relative |
| 4449 | relative_symlink_defined=yes |
| 4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4451 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4452 | fi |
| 4453 | fi |
| 4454 | |
| 4455 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4456 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4457 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4458 | then |
| 4459 | SYMLINK_RELATIVE=yes |
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4461 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4462 | else |
| 4463 | SYMLINK_RELATIVE=--relative |
| 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4465 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4466 | fi |
| 4467 | |
| 4468 | else |
| 4469 | if test -z "$relative_symlink_defined" |
| 4470 | then |
| 4471 | SYMLINK_RELATIVE= |
| 4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4473 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
| 4474 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4475 | |
| 4476 | fi |
| 4477 | |
| 4478 | |
| 4479 | # Check whether --enable-symlink-build was given. |
| 4480 | if test "${enable_symlink_build+set}" = set; then : |
| 4481 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4482 | then |
| 4483 | LINK_BUILD_FLAGS= |
| 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4485 | $as_echo "Disabling symlinks for build" >&6; } |
| 4486 | else |
| 4487 | LINK_BUILD_FLAGS=-s |
| 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4489 | $as_echo "Enabling symlinks for build" >&6; } |
| 4490 | fi |
| 4491 | |
| 4492 | else |
| 4493 | LINK_BUILD_FLAGS= |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4495 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4496 | |
| 4497 | fi |
| 4498 | |
| 4499 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4500 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4501 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4502 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4503 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4504 | { $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] | 4505 | $as_echo "Disabling verbose make commands" >&6; } |
| 4506 | E=@echo |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4507 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4508 | Q=@ |
| 4509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4510 | { $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] | 4511 | $as_echo "Enabling verbose make commands" >&6; } |
| 4512 | E=@\\# |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4513 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4514 | Q= |
| 4515 | fi |
| 4516 | |
| 4517 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4518 | { $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] | 4519 | $as_echo "Disabling verbose make commands" >&6; } |
| 4520 | E=@echo |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4521 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4522 | Q=@ |
| 4523 | |
| 4524 | fi |
| 4525 | |
| 4526 | |
| 4527 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4528 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4529 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4530 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4531 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4532 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4533 | { $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] | 4534 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4535 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4536 | |
| 4537 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4538 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4539 | { $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] | 4540 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4541 | { $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] | 4542 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4543 | fi |
| 4544 | |
| 4545 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4546 | { $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] | 4547 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4549 | fi |
| 4550 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4552 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4553 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4554 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4555 | then |
| 4556 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4557 | { $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] | 4558 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4559 | else |
| 4560 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4561 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4562 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4563 | { $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] | 4564 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4565 | fi |
| 4566 | |
| 4567 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4568 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4569 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4570 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4571 | { $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] | 4572 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4573 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4574 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4575 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4576 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4577 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4578 | LDFLAG_DYNAMIC= |
| 4579 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4580 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4581 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4582 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4583 | then |
| 4584 | ELF_CMT=# |
| 4585 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4586 | { $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] | 4587 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4588 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4589 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4590 | ELF_CMT= |
| 4591 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4592 | case "$host_os" in |
| 4593 | solaris2.*) |
| 4594 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4595 | ;; |
| 4596 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4597 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4598 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4599 | PRIVATE_LIBS_CMT=# |
| 4600 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4601 | { $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] | 4602 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | |
| 4605 | else |
| 4606 | MAKEFILE_ELF=/dev/null |
| 4607 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4608 | { $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] | 4609 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4610 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4611 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4612 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4614 | |
| 4615 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4616 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4617 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4618 | then |
| 4619 | BSDLIB_CMT=# |
| 4620 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4621 | { $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] | 4622 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4623 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4624 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4625 | BSDLIB_CMT= |
| 4626 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4627 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4628 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4629 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4630 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4631 | LIB_EXT=.dylib |
| 4632 | ;; |
| 4633 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4634 | { $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] | 4635 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4636 | fi |
| 4637 | |
| 4638 | else |
| 4639 | MAKEFILE_BSDLIB=/dev/null |
| 4640 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4641 | { $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] | 4642 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4644 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4645 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4646 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4647 | |
| 4648 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4649 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4650 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4651 | then |
| 4652 | PROFILE_CMT=# |
| 4653 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4654 | { $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] | 4655 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4656 | else |
| 4657 | PROFILE_CMT= |
| 4658 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4659 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4660 | { $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] | 4661 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4662 | fi |
| 4663 | |
| 4664 | else |
| 4665 | PROFILE_CMT=# |
| 4666 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4667 | { $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] | 4668 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4669 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4670 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4671 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4672 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4673 | |
| 4674 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4675 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4676 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4677 | then |
| 4678 | CHECKER_CMT=# |
| 4679 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4680 | { $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] | 4681 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4682 | else |
| 4683 | CHECKER_CMT= |
| 4684 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4685 | { $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] | 4686 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
| 4689 | else |
| 4690 | CHECKER_CMT=# |
| 4691 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4692 | { $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] | 4693 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4695 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
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 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4702 | |
| 4703 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4704 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4705 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4706 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4707 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4708 | { $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] | 4709 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4710 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4711 | |
| 4712 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4713 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4715 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4716 | fi |
| 4717 | |
| 4718 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4719 | { $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] | 4720 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4722 | fi |
| 4723 | |
| 4724 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4726 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4727 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4728 | { $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] | 4729 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4730 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4731 | |
| 4732 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4733 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4734 | { $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] | 4735 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4736 | fi |
| 4737 | |
| 4738 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4739 | { $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] | 4740 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4742 | fi |
| 4743 | |
| 4744 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4745 | if test "${enable_testio_debug+set}" = set; then : |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4746 | enableval=$enable_testio_debug; |
| 4747 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4748 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4749 | { $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] | 4750 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4751 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4752 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4753 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4754 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4755 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4756 | { $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] | 4757 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4758 | fi |
| 4759 | |
| 4760 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4761 | { $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] | 4762 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4763 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4764 | |
| 4765 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4767 | fi |
| 4768 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4769 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4770 | |
| 4771 | |
| 4772 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4773 | if test -n "$ac_tool_prefix"; then |
| 4774 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4775 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4776 | { $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] | 4777 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4778 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4780 | else |
| 4781 | case $PKG_CONFIG in |
| 4782 | [\\/]* | ?:[\\/]*) |
| 4783 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4784 | ;; |
| 4785 | *) |
| 4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4787 | for as_dir in $PATH |
| 4788 | do |
| 4789 | IFS=$as_save_IFS |
| 4790 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4791 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4792 | 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] | 4793 | 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] | 4794 | $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] | 4795 | break 2 |
| 4796 | fi |
| 4797 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4798 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4799 | IFS=$as_save_IFS |
| 4800 | |
| 4801 | ;; |
| 4802 | esac |
| 4803 | fi |
| 4804 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4805 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4807 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4808 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4810 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4811 | fi |
| 4812 | |
| 4813 | |
| 4814 | fi |
| 4815 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4816 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4817 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4818 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4819 | { $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] | 4820 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4821 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4822 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4823 | else |
| 4824 | case $ac_pt_PKG_CONFIG in |
| 4825 | [\\/]* | ?:[\\/]*) |
| 4826 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4827 | ;; |
| 4828 | *) |
| 4829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4830 | for as_dir in $PATH |
| 4831 | do |
| 4832 | IFS=$as_save_IFS |
| 4833 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4834 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4835 | 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] | 4836 | 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] | 4837 | $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] | 4838 | break 2 |
| 4839 | fi |
| 4840 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4841 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4842 | IFS=$as_save_IFS |
| 4843 | |
| 4844 | ;; |
| 4845 | esac |
| 4846 | fi |
| 4847 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4848 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4849 | { $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] | 4850 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4851 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4853 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4854 | fi |
| 4855 | |
| 4856 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4857 | PKG_CONFIG="" |
| 4858 | else |
| 4859 | case $cross_compiling:$ac_tool_warned in |
| 4860 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4861 | { $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] | 4862 | $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] | 4863 | ac_tool_warned=yes ;; |
| 4864 | esac |
| 4865 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4866 | fi |
| 4867 | else |
| 4868 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4869 | fi |
| 4870 | |
| 4871 | fi |
| 4872 | if test -n "$PKG_CONFIG"; then |
| 4873 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4874 | { $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] | 4875 | $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] | 4876 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4878 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4879 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4881 | $as_echo "no" >&6; } |
| 4882 | PKG_CONFIG="" |
| 4883 | fi |
| 4884 | |
| 4885 | fi |
| 4886 | LIBUUID= |
| 4887 | DEPLIBUUID= |
| 4888 | STATIC_LIBUUID= |
| 4889 | DEPSTATIC_LIBUUID= |
| 4890 | PROFILED_LIBUUID= |
| 4891 | DEPPROFILED_LIBUUID= |
| 4892 | UUID_CMT= |
| 4893 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4894 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4895 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4896 | then |
| 4897 | if test -z "$PKG_CONFIG"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4898 | 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] | 4899 | fi |
| 4900 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4901 | { $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] | 4902 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4903 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4904 | $as_echo_n "(cached) " >&6 |
| 4905 | else |
| 4906 | ac_check_lib_save_LIBS=$LIBS |
| 4907 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4909 | /* end confdefs.h. */ |
| 4910 | |
| 4911 | /* Override any GCC internal prototype to avoid an error. |
| 4912 | Use char because int might match the return type of a GCC |
| 4913 | builtin and then its argument prototype would still apply. */ |
| 4914 | #ifdef __cplusplus |
| 4915 | extern "C" |
| 4916 | #endif |
| 4917 | char uuid_generate (); |
| 4918 | int |
| 4919 | main () |
| 4920 | { |
| 4921 | return uuid_generate (); |
| 4922 | ; |
| 4923 | return 0; |
| 4924 | } |
| 4925 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4926 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4927 | ac_cv_lib_uuid_uuid_generate=yes |
| 4928 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4929 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4930 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4931 | rm -f core conftest.err conftest.$ac_objext \ |
| 4932 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4933 | LIBS=$ac_check_lib_save_LIBS |
| 4934 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4935 | { $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] | 4936 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4937 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4938 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4939 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4940 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4941 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4942 | fi |
| 4943 | |
| 4944 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4945 | { $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] | 4946 | $as_echo "Disabling private uuid library" >&6; } |
| 4947 | else |
| 4948 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4949 | DEPLIBUUID=$LIBUUID |
| 4950 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4951 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4952 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4953 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4954 | { $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] | 4955 | $as_echo "Enabling private uuid library" >&6; } |
| 4956 | fi |
| 4957 | |
| 4958 | else |
| 4959 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4960 | DEPLIBUUID=$LIBUUID |
| 4961 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4962 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4963 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4964 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4965 | { $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] | 4966 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4967 | |
| 4968 | fi |
| 4969 | |
| 4970 | |
| 4971 | |
| 4972 | |
| 4973 | |
| 4974 | |
| 4975 | |
| 4976 | |
| 4977 | |
| 4978 | |
| 4979 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4980 | if test -n "$ac_tool_prefix"; then |
| 4981 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4982 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4983 | { $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] | 4984 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4985 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4986 | $as_echo_n "(cached) " >&6 |
| 4987 | else |
| 4988 | case $PKG_CONFIG in |
| 4989 | [\\/]* | ?:[\\/]*) |
| 4990 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4991 | ;; |
| 4992 | *) |
| 4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4994 | for as_dir in $PATH |
| 4995 | do |
| 4996 | IFS=$as_save_IFS |
| 4997 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4998 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 4999 | 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] | 5000 | 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] | 5001 | $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] | 5002 | break 2 |
| 5003 | fi |
| 5004 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5005 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5006 | IFS=$as_save_IFS |
| 5007 | |
| 5008 | ;; |
| 5009 | esac |
| 5010 | fi |
| 5011 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5012 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5014 | $as_echo "$PKG_CONFIG" >&6; } |
| 5015 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5017 | $as_echo "no" >&6; } |
| 5018 | fi |
| 5019 | |
| 5020 | |
| 5021 | fi |
| 5022 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5023 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5024 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5025 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5026 | { $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] | 5027 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5028 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5029 | $as_echo_n "(cached) " >&6 |
| 5030 | else |
| 5031 | case $ac_pt_PKG_CONFIG in |
| 5032 | [\\/]* | ?:[\\/]*) |
| 5033 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5034 | ;; |
| 5035 | *) |
| 5036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5037 | for as_dir in $PATH |
| 5038 | do |
| 5039 | IFS=$as_save_IFS |
| 5040 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5041 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5042 | 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] | 5043 | 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] | 5044 | $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] | 5045 | break 2 |
| 5046 | fi |
| 5047 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5048 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5049 | IFS=$as_save_IFS |
| 5050 | |
| 5051 | ;; |
| 5052 | esac |
| 5053 | fi |
| 5054 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5055 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5056 | { $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] | 5057 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5058 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5060 | $as_echo "no" >&6; } |
| 5061 | fi |
| 5062 | |
| 5063 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5064 | PKG_CONFIG="" |
| 5065 | else |
| 5066 | case $cross_compiling:$ac_tool_warned in |
| 5067 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5068 | { $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] | 5069 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5070 | ac_tool_warned=yes ;; |
| 5071 | esac |
| 5072 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5073 | fi |
| 5074 | else |
| 5075 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5076 | fi |
| 5077 | |
| 5078 | fi |
| 5079 | if test -n "$PKG_CONFIG"; then |
| 5080 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5081 | { $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] | 5082 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5083 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5085 | $as_echo "yes" >&6; } |
| 5086 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5088 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5089 | PKG_CONFIG="" |
| 5090 | fi |
| 5091 | |
| 5092 | fi |
| 5093 | LIBBLKID= |
| 5094 | DEPLIBBLKID= |
| 5095 | STATIC_LIBBLKID= |
| 5096 | DEPSTATIC_LIBBLKID= |
| 5097 | PROFILED_LIBBLKID= |
| 5098 | DEPPROFILED_LIBBLKID= |
| 5099 | BLKID_CMT= |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5100 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5101 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5102 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5103 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5104 | then |
| 5105 | if test -z "$PKG_CONFIG"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5106 | 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] | 5107 | fi |
| 5108 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5109 | { $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] | 5110 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5111 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5112 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5113 | else |
| 5114 | ac_check_lib_save_LIBS=$LIBS |
| 5115 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5117 | /* end confdefs.h. */ |
| 5118 | |
| 5119 | /* Override any GCC internal prototype to avoid an error. |
| 5120 | Use char because int might match the return type of a GCC |
| 5121 | builtin and then its argument prototype would still apply. */ |
| 5122 | #ifdef __cplusplus |
| 5123 | extern "C" |
| 5124 | #endif |
| 5125 | char blkid_get_cache (); |
| 5126 | int |
| 5127 | main () |
| 5128 | { |
| 5129 | return blkid_get_cache (); |
| 5130 | ; |
| 5131 | return 0; |
| 5132 | } |
| 5133 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5134 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5135 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5136 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5137 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5138 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5139 | rm -f core conftest.err conftest.$ac_objext \ |
| 5140 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5141 | LIBS=$ac_check_lib_save_LIBS |
| 5142 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5143 | { $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] | 5144 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5145 | 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] | 5146 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5147 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5148 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5149 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5150 | fi |
| 5151 | |
| 5152 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5153 | { $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] | 5154 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5155 | else |
| 5156 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5157 | DEPLIBBLKID=$LIBBLKID |
| 5158 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5159 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5160 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5161 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5162 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5163 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5164 | { $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] | 5165 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5166 | fi |
| 5167 | |
| 5168 | else |
| 5169 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5170 | DEPLIBBLKID=$LIBBLKID |
| 5171 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5172 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5173 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5174 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5175 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5176 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5177 | { $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] | 5178 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5179 | |
| 5180 | fi |
| 5181 | |
| 5182 | |
| 5183 | |
| 5184 | |
| 5185 | |
| 5186 | |
| 5187 | |
| 5188 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5189 | QUOTA_MAN_COMMENT='.\"' |
| 5190 | QUOTA_CMT= |
| 5191 | |
| 5192 | |
| 5193 | |
| 5194 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5195 | if test -n "$ac_tool_prefix"; then |
| 5196 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5197 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5199 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5200 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 5201 | $as_echo_n "(cached) " >&6 |
| 5202 | else |
| 5203 | case $PKG_CONFIG in |
| 5204 | [\\/]* | ?:[\\/]*) |
| 5205 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5206 | ;; |
| 5207 | *) |
| 5208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5209 | for as_dir in $PATH |
| 5210 | do |
| 5211 | IFS=$as_save_IFS |
| 5212 | test -z "$as_dir" && as_dir=. |
| 5213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5215 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5217 | break 2 |
| 5218 | fi |
| 5219 | done |
| 5220 | done |
| 5221 | IFS=$as_save_IFS |
| 5222 | |
| 5223 | ;; |
| 5224 | esac |
| 5225 | fi |
| 5226 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5227 | if test -n "$PKG_CONFIG"; then |
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5229 | $as_echo "$PKG_CONFIG" >&6; } |
| 5230 | else |
| 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5232 | $as_echo "no" >&6; } |
| 5233 | fi |
| 5234 | |
| 5235 | |
| 5236 | fi |
| 5237 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5238 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5239 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5240 | set dummy pkg-config; ac_word=$2 |
| 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5242 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5243 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 5244 | $as_echo_n "(cached) " >&6 |
| 5245 | else |
| 5246 | case $ac_pt_PKG_CONFIG in |
| 5247 | [\\/]* | ?:[\\/]*) |
| 5248 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5249 | ;; |
| 5250 | *) |
| 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5252 | for as_dir in $PATH |
| 5253 | do |
| 5254 | IFS=$as_save_IFS |
| 5255 | test -z "$as_dir" && as_dir=. |
| 5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5258 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5260 | break 2 |
| 5261 | fi |
| 5262 | done |
| 5263 | done |
| 5264 | IFS=$as_save_IFS |
| 5265 | |
| 5266 | ;; |
| 5267 | esac |
| 5268 | fi |
| 5269 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5270 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5272 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5273 | else |
| 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5275 | $as_echo "no" >&6; } |
| 5276 | fi |
| 5277 | |
| 5278 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5279 | PKG_CONFIG="" |
| 5280 | else |
| 5281 | case $cross_compiling:$ac_tool_warned in |
| 5282 | yes:) |
| 5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5285 | ac_tool_warned=yes ;; |
| 5286 | esac |
| 5287 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5288 | fi |
| 5289 | else |
| 5290 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5291 | fi |
| 5292 | |
| 5293 | fi |
| 5294 | if test -n "$PKG_CONFIG"; then |
| 5295 | _pkg_min_version=0.9.0 |
| 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5297 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5298 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5300 | $as_echo "yes" >&6; } |
| 5301 | else |
| 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5303 | $as_echo "no" >&6; } |
| 5304 | PKG_CONFIG="" |
| 5305 | fi |
| 5306 | |
| 5307 | fi |
| 5308 | |
| 5309 | # Check whether --enable-quota was given. |
| 5310 | if test "${enable_quota+set}" = set; then : |
| 5311 | enableval=$enable_quota; if test "$enableval" = "no" |
| 5312 | then |
| 5313 | QUOTA_CMT=# |
| 5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5315 | $as_echo "Disabling quota support" >&6; } |
| 5316 | else |
| 5317 | QUOTA_CMT= |
| 5318 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
| 5319 | |
| 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5321 | $as_echo "Enabling quota support" >&6; } |
| 5322 | QUOTA_MAN_COMMENT="" |
| 5323 | |
| 5324 | fi |
| 5325 | |
| 5326 | else |
| 5327 | QUOTA_CMT=# |
| 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
| 5329 | $as_echo "Disabling quota support by default" >&6; } |
| 5330 | |
| 5331 | fi |
| 5332 | |
| 5333 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
| 5334 | DEPLIBQUOTA=$LIBQUOTA |
| 5335 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5336 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5337 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5338 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | # Check whether --enable-backtrace was given. |
| 5348 | if test "${enable_backtrace+set}" = set; then : |
| 5349 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5350 | then |
| 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5352 | $as_echo "Disabling use of backtrace" >&6; } |
| 5353 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5354 | |
| 5355 | else |
| 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5357 | $as_echo "Enabling use of backtrace" >&6; } |
| 5358 | fi |
| 5359 | |
| 5360 | else |
| 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5362 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5363 | |
| 5364 | fi |
| 5365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5366 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5367 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5368 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5369 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5370 | { $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] | 5371 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5372 | DEBUGFS_CMT="#" |
| 5373 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5374 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5375 | { $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] | 5376 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5377 | fi |
| 5378 | |
| 5379 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5380 | { $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] | 5381 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5382 | DEBUGFS_CMT= |
| 5383 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5384 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5386 | |
| 5387 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5388 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5389 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5390 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5391 | { $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] | 5392 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5393 | IMAGER_CMT="#" |
| 5394 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5395 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5396 | { $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] | 5397 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5398 | fi |
| 5399 | |
| 5400 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5401 | { $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] | 5402 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5403 | IMAGER_CMT= |
| 5404 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5405 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5406 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5407 | |
| 5408 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5409 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5410 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5411 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5412 | { $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] | 5413 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5414 | RESIZER_CMT="#" |
| 5415 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5416 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5417 | { $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] | 5418 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5419 | fi |
| 5420 | |
| 5421 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5422 | { $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] | 5423 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5424 | RESIZER_CMT= |
| 5425 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5426 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5427 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5428 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5429 | # Check whether --enable-defrag was given. |
| 5430 | if test "${enable_defrag+set}" = set; then : |
| 5431 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5432 | then |
| 5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5434 | $as_echo "Disabling e4defrag support" >&6; } |
| 5435 | DEFRAG_CMT="#" |
| 5436 | else |
| 5437 | DEFRAG_CMT= |
| 5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5439 | $as_echo "Enabling e4defrag support" >&6; } |
| 5440 | fi |
| 5441 | |
| 5442 | else |
| 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
| 5444 | $as_echo "Enabling e4defrag support by default" >&6; } |
| 5445 | DEFRAG_CMT= |
| 5446 | |
| 5447 | fi |
| 5448 | |
| 5449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5450 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5451 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5452 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5453 | then |
| 5454 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5455 | { $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] | 5456 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5457 | else |
| 5458 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5459 | { $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] | 5460 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5461 | fi |
| 5462 | |
| 5463 | else |
| 5464 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5465 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5466 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5467 | { $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] | 5468 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5469 | ;; |
| 5470 | *) |
| 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 by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5473 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5474 | esac |
| 5475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5476 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5477 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5479 | |
| 5480 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5481 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5482 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5483 | then |
| 5484 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5485 | { $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] | 5486 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5487 | else |
| 5488 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5489 | { $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] | 5490 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5491 | fi |
| 5492 | |
| 5493 | else |
| 5494 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5495 | { $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] | 5496 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5497 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5498 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5499 | |
| 5500 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5501 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5502 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5503 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5504 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5505 | then |
| 5506 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5507 | { $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] | 5508 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5509 | else |
| 5510 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5511 | { $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] | 5512 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5513 | fi |
| 5514 | |
| 5515 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5516 | if test -n "$WITH_DIET_LIBC" |
| 5517 | then |
| 5518 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5519 | { $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] | 5520 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5521 | else |
| 5522 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5523 | { $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] | 5524 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5525 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5526 | |
| 5527 | fi |
| 5528 | |
| 5529 | if test "$try_tls" = "yes" |
| 5530 | then |
| 5531 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5532 | { $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] | 5533 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5534 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5535 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5536 | else |
| 5537 | |
| 5538 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5539 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5540 | case $ax_tls_keyword in |
| 5541 | none) ac_cv_tls=none ; break ;; |
| 5542 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5544 | /* end confdefs.h. */ |
| 5545 | #include <stdlib.h> |
| 5546 | static void |
| 5547 | foo(void) { |
| 5548 | static $ax_tls_keyword int bar; |
| 5549 | exit(1); |
| 5550 | } |
| 5551 | int |
| 5552 | main () |
| 5553 | { |
| 5554 | |
| 5555 | ; |
| 5556 | return 0; |
| 5557 | } |
| 5558 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5559 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5560 | ac_cv_tls=$ax_tls_keyword ; break |
| 5561 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5562 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5563 | |
| 5564 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5566 | esac |
| 5567 | done |
| 5568 | |
| 5569 | fi |
| 5570 | |
| 5571 | |
| 5572 | if test "$ac_cv_tls" != "none"; then |
| 5573 | |
| 5574 | cat >>confdefs.h <<_ACEOF |
| 5575 | #define TLS $ac_cv_tls |
| 5576 | _ACEOF |
| 5577 | |
| 5578 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5579 | { $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] | 5580 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5581 | |
| 5582 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5583 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5584 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5585 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5586 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5587 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5588 | { $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] | 5589 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5590 | UUIDD_CMT="#" |
| 5591 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5592 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5593 | |
| 5594 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5596 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5597 | fi |
| 5598 | |
| 5599 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5600 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5601 | |
| 5602 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5603 | { $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] | 5604 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5605 | |
| 5606 | fi |
| 5607 | |
| 5608 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5609 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5610 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5611 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5612 | PACKAGE=e2fsprogs |
| 5613 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5614 | VERSION=0.14.1 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5615 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5616 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5617 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5618 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5619 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5621 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5622 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5623 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5624 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5625 | |
| 5626 | |
| 5627 | |
| 5628 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5629 | { $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] | 5630 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5631 | set x ${MAKE-make} |
| 5632 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5633 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5634 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5635 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5636 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5637 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5638 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5639 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5640 | _ACEOF |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5641 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5642 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5643 | *@@@%%%=?*=@@@%%%*) |
| 5644 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5645 | *) |
| 5646 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5647 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5650 | 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] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5652 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5653 | SET_MAKE= |
| 5654 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5656 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5657 | SET_MAKE="MAKE=${MAKE-make}" |
| 5658 | fi |
| 5659 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5660 | # Find a good install program. We prefer a C program (faster), |
| 5661 | # so one script is as good as another. But avoid the broken or |
| 5662 | # incompatible versions: |
| 5663 | # SysV /etc/install, /usr/sbin/install |
| 5664 | # SunOS /usr/etc/install |
| 5665 | # IRIX /sbin/install |
| 5666 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5667 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5668 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5669 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5670 | # 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] | 5671 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5672 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5673 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5674 | { $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] | 5675 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5676 | if test -z "$INSTALL"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5677 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5678 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5679 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5681 | for as_dir in $PATH |
| 5682 | do |
| 5683 | IFS=$as_save_IFS |
| 5684 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5685 | # Account for people who put trailing slashes in PATH elements. |
| 5686 | case $as_dir/ in #(( |
| 5687 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5688 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5689 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5690 | /usr/ucb/* ) ;; |
| 5691 | *) |
| 5692 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5693 | # Don't use installbsd from OSF since it installs stuff as root |
| 5694 | # by default. |
| 5695 | for ac_prog in ginstall scoinst install; do |
| 5696 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5697 | 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] | 5698 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5699 | 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] | 5700 | # AIX install. It has an incompatible calling convention. |
| 5701 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | elif test $ac_prog = install && |
| 5703 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5704 | # program-specific install script used by HP pwplus--don't use. |
| 5705 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5706 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5707 | rm -rf conftest.one conftest.two conftest.dir |
| 5708 | echo one > conftest.one |
| 5709 | echo two > conftest.two |
| 5710 | mkdir conftest.dir |
| 5711 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5712 | test -s conftest.one && test -s conftest.two && |
| 5713 | test -s conftest.dir/conftest.one && |
| 5714 | test -s conftest.dir/conftest.two |
| 5715 | then |
| 5716 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5717 | break 3 |
| 5718 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5719 | fi |
| 5720 | fi |
| 5721 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5722 | done |
| 5723 | ;; |
| 5724 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5725 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5726 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5727 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5728 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5729 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5730 | |
| 5731 | fi |
| 5732 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5733 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5734 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5735 | # As a last resort, use the slow shell script. Don't cache a |
| 5736 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5737 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5738 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5739 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5740 | fi |
| 5741 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5743 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5744 | |
| 5745 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5746 | # It thinks the first close brace ends the variable substitution. |
| 5747 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5748 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5749 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5750 | |
| 5751 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5752 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5753 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5754 | MKINSTALLDIRS= |
| 5755 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5756 | case "$ac_aux_dir" in |
| 5757 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5758 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5759 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5760 | fi |
| 5761 | if test -z "$MKINSTALLDIRS"; then |
| 5762 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5763 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5764 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5765 | |
| 5766 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5767 | { $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] | 5768 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5769 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5770 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5771 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5772 | else |
| 5773 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5774 | fi |
| 5775 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5777 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | # Prepare PATH_SEPARATOR. |
| 5785 | # The user is always right. |
| 5786 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5787 | echo "#! /bin/sh" >conf$$.sh |
| 5788 | echo "exit 0" >>conf$$.sh |
| 5789 | chmod +x conf$$.sh |
| 5790 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5791 | PATH_SEPARATOR=';' |
| 5792 | else |
| 5793 | PATH_SEPARATOR=: |
| 5794 | fi |
| 5795 | rm -f conf$$.sh |
| 5796 | fi |
| 5797 | |
| 5798 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5799 | # as systems may use methods other than mode bits to determine executability. |
| 5800 | cat >conf$$.file <<_ASEOF |
| 5801 | #! /bin/sh |
| 5802 | exit 0 |
| 5803 | _ASEOF |
| 5804 | chmod +x conf$$.file |
| 5805 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5806 | ac_executable_p="test -x" |
| 5807 | else |
| 5808 | ac_executable_p="test -f" |
| 5809 | fi |
| 5810 | rm -f conf$$.file |
| 5811 | |
| 5812 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5813 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5814 | { $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] | 5815 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5816 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5817 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5818 | else |
| 5819 | case "$MSGFMT" in |
| 5820 | [\\/]* | ?:[\\/]*) |
| 5821 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5822 | ;; |
| 5823 | *) |
| 5824 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5825 | for ac_dir in $PATH; do |
| 5826 | IFS="$ac_save_IFS" |
| 5827 | test -z "$ac_dir" && ac_dir=. |
| 5828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5829 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5830 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5831 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5832 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5833 | break 2 |
| 5834 | fi |
| 5835 | fi |
| 5836 | done |
| 5837 | done |
| 5838 | IFS="$ac_save_IFS" |
| 5839 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5840 | ;; |
| 5841 | esac |
| 5842 | fi |
| 5843 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5844 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5846 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5847 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5849 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5850 | fi |
| 5851 | |
| 5852 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5853 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5854 | { $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] | 5855 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5856 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5857 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5858 | else |
| 5859 | case $GMSGFMT in |
| 5860 | [\\/]* | ?:[\\/]*) |
| 5861 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5862 | ;; |
| 5863 | *) |
| 5864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5865 | for as_dir in $PATH |
| 5866 | do |
| 5867 | IFS=$as_save_IFS |
| 5868 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5869 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5870 | 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] | 5871 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5872 | $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] | 5873 | break 2 |
| 5874 | fi |
| 5875 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5876 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5877 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5878 | |
| 5879 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5880 | ;; |
| 5881 | esac |
| 5882 | fi |
| 5883 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5884 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5886 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5887 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5889 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5890 | fi |
| 5891 | |
| 5892 | |
| 5893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5894 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5895 | # Prepare PATH_SEPARATOR. |
| 5896 | # The user is always right. |
| 5897 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5898 | echo "#! /bin/sh" >conf$$.sh |
| 5899 | echo "exit 0" >>conf$$.sh |
| 5900 | chmod +x conf$$.sh |
| 5901 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5902 | PATH_SEPARATOR=';' |
| 5903 | else |
| 5904 | PATH_SEPARATOR=: |
| 5905 | fi |
| 5906 | rm -f conf$$.sh |
| 5907 | fi |
| 5908 | |
| 5909 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5910 | # as systems may use methods other than mode bits to determine executability. |
| 5911 | cat >conf$$.file <<_ASEOF |
| 5912 | #! /bin/sh |
| 5913 | exit 0 |
| 5914 | _ASEOF |
| 5915 | chmod +x conf$$.file |
| 5916 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5917 | ac_executable_p="test -x" |
| 5918 | else |
| 5919 | ac_executable_p="test -f" |
| 5920 | fi |
| 5921 | rm -f conf$$.file |
| 5922 | |
| 5923 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5924 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5925 | { $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] | 5926 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5927 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5928 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5929 | else |
| 5930 | case "$XGETTEXT" in |
| 5931 | [\\/]* | ?:[\\/]*) |
| 5932 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5933 | ;; |
| 5934 | *) |
| 5935 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5936 | for ac_dir in $PATH; do |
| 5937 | IFS="$ac_save_IFS" |
| 5938 | test -z "$ac_dir" && ac_dir=. |
| 5939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5940 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5941 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5942 | (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 |
| 5943 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5944 | break 2 |
| 5945 | fi |
| 5946 | fi |
| 5947 | done |
| 5948 | done |
| 5949 | IFS="$ac_save_IFS" |
| 5950 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5951 | ;; |
| 5952 | esac |
| 5953 | fi |
| 5954 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5955 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5957 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5958 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5960 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5961 | fi |
| 5962 | |
| 5963 | rm -f messages.po |
| 5964 | |
| 5965 | |
| 5966 | # Prepare PATH_SEPARATOR. |
| 5967 | # The user is always right. |
| 5968 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5969 | echo "#! /bin/sh" >conf$$.sh |
| 5970 | echo "exit 0" >>conf$$.sh |
| 5971 | chmod +x conf$$.sh |
| 5972 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5973 | PATH_SEPARATOR=';' |
| 5974 | else |
| 5975 | PATH_SEPARATOR=: |
| 5976 | fi |
| 5977 | rm -f conf$$.sh |
| 5978 | fi |
| 5979 | |
| 5980 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5981 | # as systems may use methods other than mode bits to determine executability. |
| 5982 | cat >conf$$.file <<_ASEOF |
| 5983 | #! /bin/sh |
| 5984 | exit 0 |
| 5985 | _ASEOF |
| 5986 | chmod +x conf$$.file |
| 5987 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5988 | ac_executable_p="test -x" |
| 5989 | else |
| 5990 | ac_executable_p="test -f" |
| 5991 | fi |
| 5992 | rm -f conf$$.file |
| 5993 | |
| 5994 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5995 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5996 | { $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] | 5997 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 5998 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5999 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | else |
| 6001 | case "$MSGMERGE" in |
| 6002 | [\\/]* | ?:[\\/]*) |
| 6003 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6004 | ;; |
| 6005 | *) |
| 6006 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6007 | for ac_dir in $PATH; do |
| 6008 | IFS="$ac_save_IFS" |
| 6009 | test -z "$ac_dir" && ac_dir=. |
| 6010 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6011 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6012 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6013 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6014 | break 2 |
| 6015 | fi |
| 6016 | fi |
| 6017 | done |
| 6018 | done |
| 6019 | IFS="$ac_save_IFS" |
| 6020 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6021 | ;; |
| 6022 | esac |
| 6023 | fi |
| 6024 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6025 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6027 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6030 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6031 | fi |
| 6032 | |
| 6033 | |
| 6034 | if test "$GMSGFMT" != ":"; then |
| 6035 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6036 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6037 | : ; |
| 6038 | else |
| 6039 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6040 | { $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] | 6041 | $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] | 6042 | GMSGFMT=":" |
| 6043 | fi |
| 6044 | fi |
| 6045 | |
| 6046 | if test "$XGETTEXT" != ":"; then |
| 6047 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6048 | (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 |
| 6049 | : ; |
| 6050 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6051 | { $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] | 6052 | $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] | 6053 | XGETTEXT=":" |
| 6054 | fi |
| 6055 | rm -f messages.po |
| 6056 | fi |
| 6057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6058 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6059 | |
| 6060 | |
| 6061 | if test -n "$ac_tool_prefix"; then |
| 6062 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6063 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | { $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] | 6065 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6066 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6067 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6068 | else |
| 6069 | if test -n "$RANLIB"; then |
| 6070 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6071 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6073 | for as_dir in $PATH |
| 6074 | do |
| 6075 | IFS=$as_save_IFS |
| 6076 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6077 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6078 | 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] | 6079 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6080 | $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] | 6081 | break 2 |
| 6082 | fi |
| 6083 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6084 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6085 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6086 | |
| 6087 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6088 | fi |
| 6089 | RANLIB=$ac_cv_prog_RANLIB |
| 6090 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6092 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6093 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6095 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6096 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6098 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6099 | fi |
| 6100 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6101 | ac_ct_RANLIB=$RANLIB |
| 6102 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6103 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6104 | { $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] | 6105 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6106 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6107 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6108 | else |
| 6109 | if test -n "$ac_ct_RANLIB"; then |
| 6110 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6111 | else |
| 6112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6113 | for as_dir in $PATH |
| 6114 | do |
| 6115 | IFS=$as_save_IFS |
| 6116 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6117 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6118 | 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] | 6119 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6120 | $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] | 6121 | break 2 |
| 6122 | fi |
| 6123 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6124 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6125 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6127 | fi |
| 6128 | fi |
| 6129 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6130 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6131 | { $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] | 6132 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6133 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6135 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6136 | fi |
| 6137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6138 | if test "x$ac_ct_RANLIB" = x; then |
| 6139 | RANLIB=":" |
| 6140 | else |
| 6141 | case $cross_compiling:$ac_tool_warned in |
| 6142 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6143 | { $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] | 6144 | $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] | 6145 | ac_tool_warned=yes ;; |
| 6146 | esac |
| 6147 | RANLIB=$ac_ct_RANLIB |
| 6148 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6149 | else |
| 6150 | RANLIB="$ac_cv_prog_RANLIB" |
| 6151 | fi |
| 6152 | |
| 6153 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6154 | { $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] | 6155 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6156 | if ${ac_cv_lib_cposix_strerror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6157 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6158 | else |
| 6159 | ac_check_lib_save_LIBS=$LIBS |
| 6160 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6162 | /* end confdefs.h. */ |
| 6163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6164 | /* Override any GCC internal prototype to avoid an error. |
| 6165 | Use char because int might match the return type of a GCC |
| 6166 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6167 | #ifdef __cplusplus |
| 6168 | extern "C" |
| 6169 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | char strerror (); |
| 6171 | int |
| 6172 | main () |
| 6173 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6174 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6175 | ; |
| 6176 | return 0; |
| 6177 | } |
| 6178 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6179 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6180 | ac_cv_lib_cposix_strerror=yes |
| 6181 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6182 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6183 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6184 | rm -f core conftest.err conftest.$ac_objext \ |
| 6185 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6186 | LIBS=$ac_check_lib_save_LIBS |
| 6187 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6188 | { $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] | 6189 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6190 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6191 | LIBS="$LIBS -lcposix" |
| 6192 | fi |
| 6193 | |
| 6194 | |
| 6195 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6196 | |
| 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6198 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 6199 | if ${ac_cv_path_GREP+:} false; then : |
| 6200 | $as_echo_n "(cached) " >&6 |
| 6201 | else |
| 6202 | if test -z "$GREP"; then |
| 6203 | ac_path_GREP_found=false |
| 6204 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6206 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6207 | do |
| 6208 | IFS=$as_save_IFS |
| 6209 | test -z "$as_dir" && as_dir=. |
| 6210 | for ac_prog in grep ggrep; do |
| 6211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6212 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6213 | as_fn_executable_p "$ac_path_GREP" || continue |
| 6214 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6215 | # Check for GNU $ac_path_GREP |
| 6216 | case `"$ac_path_GREP" --version 2>&1` in |
| 6217 | *GNU*) |
| 6218 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6219 | *) |
| 6220 | ac_count=0 |
| 6221 | $as_echo_n 0123456789 >"conftest.in" |
| 6222 | while : |
| 6223 | do |
| 6224 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6225 | mv "conftest.tmp" "conftest.in" |
| 6226 | cp "conftest.in" "conftest.nl" |
| 6227 | $as_echo 'GREP' >> "conftest.nl" |
| 6228 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6229 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6230 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6231 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6232 | # Best one so far, save it but keep looking for a better one |
| 6233 | ac_cv_path_GREP="$ac_path_GREP" |
| 6234 | ac_path_GREP_max=$ac_count |
| 6235 | fi |
| 6236 | # 10*(2^10) chars as input seems more than enough |
| 6237 | test $ac_count -gt 10 && break |
| 6238 | done |
| 6239 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6240 | esac |
| 6241 | |
| 6242 | $ac_path_GREP_found && break 3 |
| 6243 | done |
| 6244 | done |
| 6245 | done |
| 6246 | IFS=$as_save_IFS |
| 6247 | if test -z "$ac_cv_path_GREP"; then |
| 6248 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6249 | fi |
| 6250 | else |
| 6251 | ac_cv_path_GREP=$GREP |
| 6252 | fi |
| 6253 | |
| 6254 | fi |
| 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6256 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6257 | GREP="$ac_cv_path_GREP" |
| 6258 | |
| 6259 | |
| 6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6261 | $as_echo_n "checking for egrep... " >&6; } |
| 6262 | if ${ac_cv_path_EGREP+:} false; then : |
| 6263 | $as_echo_n "(cached) " >&6 |
| 6264 | else |
| 6265 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6266 | then ac_cv_path_EGREP="$GREP -E" |
| 6267 | else |
| 6268 | if test -z "$EGREP"; then |
| 6269 | ac_path_EGREP_found=false |
| 6270 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6272 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6273 | do |
| 6274 | IFS=$as_save_IFS |
| 6275 | test -z "$as_dir" && as_dir=. |
| 6276 | for ac_prog in egrep; do |
| 6277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6278 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6279 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 6280 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6281 | # Check for GNU $ac_path_EGREP |
| 6282 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6283 | *GNU*) |
| 6284 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6285 | *) |
| 6286 | ac_count=0 |
| 6287 | $as_echo_n 0123456789 >"conftest.in" |
| 6288 | while : |
| 6289 | do |
| 6290 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6291 | mv "conftest.tmp" "conftest.in" |
| 6292 | cp "conftest.in" "conftest.nl" |
| 6293 | $as_echo 'EGREP' >> "conftest.nl" |
| 6294 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6295 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6296 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6297 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6298 | # Best one so far, save it but keep looking for a better one |
| 6299 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6300 | ac_path_EGREP_max=$ac_count |
| 6301 | fi |
| 6302 | # 10*(2^10) chars as input seems more than enough |
| 6303 | test $ac_count -gt 10 && break |
| 6304 | done |
| 6305 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6306 | esac |
| 6307 | |
| 6308 | $ac_path_EGREP_found && break 3 |
| 6309 | done |
| 6310 | done |
| 6311 | done |
| 6312 | IFS=$as_save_IFS |
| 6313 | if test -z "$ac_cv_path_EGREP"; then |
| 6314 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6315 | fi |
| 6316 | else |
| 6317 | ac_cv_path_EGREP=$EGREP |
| 6318 | fi |
| 6319 | |
| 6320 | fi |
| 6321 | fi |
| 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6323 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6324 | EGREP="$ac_cv_path_EGREP" |
| 6325 | |
| 6326 | |
| 6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6328 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6329 | if ${ac_cv_header_stdc+:} false; then : |
| 6330 | $as_echo_n "(cached) " >&6 |
| 6331 | else |
| 6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6333 | /* end confdefs.h. */ |
| 6334 | #include <stdlib.h> |
| 6335 | #include <stdarg.h> |
| 6336 | #include <string.h> |
| 6337 | #include <float.h> |
| 6338 | |
| 6339 | int |
| 6340 | main () |
| 6341 | { |
| 6342 | |
| 6343 | ; |
| 6344 | return 0; |
| 6345 | } |
| 6346 | _ACEOF |
| 6347 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6348 | ac_cv_header_stdc=yes |
| 6349 | else |
| 6350 | ac_cv_header_stdc=no |
| 6351 | fi |
| 6352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6353 | |
| 6354 | if test $ac_cv_header_stdc = yes; then |
| 6355 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6357 | /* end confdefs.h. */ |
| 6358 | #include <string.h> |
| 6359 | |
| 6360 | _ACEOF |
| 6361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6362 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6363 | |
| 6364 | else |
| 6365 | ac_cv_header_stdc=no |
| 6366 | fi |
| 6367 | rm -f conftest* |
| 6368 | |
| 6369 | fi |
| 6370 | |
| 6371 | if test $ac_cv_header_stdc = yes; then |
| 6372 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6374 | /* end confdefs.h. */ |
| 6375 | #include <stdlib.h> |
| 6376 | |
| 6377 | _ACEOF |
| 6378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6379 | $EGREP "free" >/dev/null 2>&1; then : |
| 6380 | |
| 6381 | else |
| 6382 | ac_cv_header_stdc=no |
| 6383 | fi |
| 6384 | rm -f conftest* |
| 6385 | |
| 6386 | fi |
| 6387 | |
| 6388 | if test $ac_cv_header_stdc = yes; then |
| 6389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6390 | if test "$cross_compiling" = yes; then : |
| 6391 | : |
| 6392 | else |
| 6393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6394 | /* end confdefs.h. */ |
| 6395 | #include <ctype.h> |
| 6396 | #include <stdlib.h> |
| 6397 | #if ((' ' & 0x0FF) == 0x020) |
| 6398 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6399 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6400 | #else |
| 6401 | # define ISLOWER(c) \ |
| 6402 | (('a' <= (c) && (c) <= 'i') \ |
| 6403 | || ('j' <= (c) && (c) <= 'r') \ |
| 6404 | || ('s' <= (c) && (c) <= 'z')) |
| 6405 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6406 | #endif |
| 6407 | |
| 6408 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6409 | int |
| 6410 | main () |
| 6411 | { |
| 6412 | int i; |
| 6413 | for (i = 0; i < 256; i++) |
| 6414 | if (XOR (islower (i), ISLOWER (i)) |
| 6415 | || toupper (i) != TOUPPER (i)) |
| 6416 | return 2; |
| 6417 | return 0; |
| 6418 | } |
| 6419 | _ACEOF |
| 6420 | if ac_fn_c_try_run "$LINENO"; then : |
| 6421 | |
| 6422 | else |
| 6423 | ac_cv_header_stdc=no |
| 6424 | fi |
| 6425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6426 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6427 | fi |
| 6428 | |
| 6429 | fi |
| 6430 | fi |
| 6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6432 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6433 | if test $ac_cv_header_stdc = yes; then |
| 6434 | |
| 6435 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6436 | |
| 6437 | fi |
| 6438 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6439 | { $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] | 6440 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6441 | if ${ac_cv_c_const+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6442 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6443 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | /* end confdefs.h. */ |
| 6446 | |
| 6447 | int |
| 6448 | main () |
| 6449 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | #ifndef __cplusplus |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6452 | /* Ultrix mips cc rejects this sort of thing. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | typedef int charset[2]; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6454 | const charset cs = { 0, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6455 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6456 | char const *const *pcpcc; |
| 6457 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6458 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6459 | struct point {int x, y;}; |
| 6460 | static struct point const zero = {0,0}; |
| 6461 | /* AIX XL C 1.02.0.0 rejects this. |
| 6462 | It does not let you subtract one const X* pointer from another in |
| 6463 | an arm of an if-expression whose if-part is not a constant |
| 6464 | expression */ |
| 6465 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6466 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6467 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6468 | ++pcpcc; |
| 6469 | ppc = (char**) pcpcc; |
| 6470 | pcpcc = (char const *const *) ppc; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6471 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 6472 | char tx; |
| 6473 | char *t = &tx; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6474 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6475 | |
| 6476 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6477 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6478 | } |
| 6479 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6480 | int x[] = {25, 17}; |
| 6481 | const int *foo = &x[0]; |
| 6482 | ++foo; |
| 6483 | } |
| 6484 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6485 | typedef const int *iptr; |
| 6486 | iptr p = 0; |
| 6487 | ++p; |
| 6488 | } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6489 | { /* 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] | 6490 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6491 | struct s { int j; const int *ap[3]; } bx; |
| 6492 | struct s *b = &bx; b->j = 5; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | } |
| 6494 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6495 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6496 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6498 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6499 | #endif |
| 6500 | |
| 6501 | ; |
| 6502 | return 0; |
| 6503 | } |
| 6504 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6505 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6506 | ac_cv_c_const=yes |
| 6507 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6508 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6509 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6511 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6512 | { $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] | 6513 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6514 | if test $ac_cv_c_const = no; then |
| 6515 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6516 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6517 | |
| 6518 | fi |
| 6519 | |
| 6520 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6522 | $as_echo_n "checking for signed... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6523 | if ${bh_cv_c_signed+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6524 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6525 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | /* end confdefs.h. */ |
| 6528 | |
| 6529 | int |
| 6530 | main () |
| 6531 | { |
| 6532 | signed char x; |
| 6533 | ; |
| 6534 | return 0; |
| 6535 | } |
| 6536 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6537 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | bh_cv_c_signed=yes |
| 6539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6540 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6541 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6543 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6544 | { $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] | 6545 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6546 | if test $bh_cv_c_signed = no; then |
| 6547 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6548 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6549 | |
| 6550 | fi |
| 6551 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6553 | $as_echo_n "checking for inline... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6554 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6555 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6556 | else |
| 6557 | ac_cv_c_inline=no |
| 6558 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6560 | /* end confdefs.h. */ |
| 6561 | #ifndef __cplusplus |
| 6562 | typedef int foo_t; |
| 6563 | static $ac_kw foo_t static_foo () {return 0; } |
| 6564 | $ac_kw foo_t foo () {return 0; } |
| 6565 | #endif |
| 6566 | |
| 6567 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6568 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6569 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6570 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6572 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6573 | done |
| 6574 | |
| 6575 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6576 | { $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] | 6577 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6578 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6579 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6580 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6581 | *) |
| 6582 | case $ac_cv_c_inline in |
| 6583 | no) ac_val=;; |
| 6584 | *) ac_val=$ac_cv_c_inline;; |
| 6585 | esac |
| 6586 | cat >>confdefs.h <<_ACEOF |
| 6587 | #ifndef __cplusplus |
| 6588 | #define inline $ac_val |
| 6589 | #endif |
| 6590 | _ACEOF |
| 6591 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6592 | esac |
| 6593 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6594 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6595 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6596 | inttypes.h stdint.h unistd.h |
| 6597 | do : |
| 6598 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6599 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6600 | " |
| 6601 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6602 | cat >>confdefs.h <<_ACEOF |
| 6603 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6604 | _ACEOF |
| 6605 | |
| 6606 | fi |
| 6607 | |
| 6608 | done |
| 6609 | |
| 6610 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6611 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6612 | if test "x$ac_cv_type_off_t" = xyes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6613 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6614 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6615 | |
| 6616 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6617 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | _ACEOF |
| 6619 | |
| 6620 | fi |
| 6621 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6622 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6623 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6624 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6625 | else |
| 6626 | |
| 6627 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6628 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6629 | _ACEOF |
| 6630 | |
| 6631 | fi |
| 6632 | |
| 6633 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6634 | { $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] | 6635 | $as_echo_n "checking for long long... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6636 | if ${ac_cv_type_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6637 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6638 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6640 | /* end confdefs.h. */ |
| 6641 | long long ll = 1LL; int i = 63; |
| 6642 | int |
| 6643 | main () |
| 6644 | { |
| 6645 | long long llmax = (long long) -1; |
| 6646 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6647 | ; |
| 6648 | return 0; |
| 6649 | } |
| 6650 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6651 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6652 | ac_cv_type_long_long=yes |
| 6653 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6654 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6655 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6656 | rm -f core conftest.err conftest.$ac_objext \ |
| 6657 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6658 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6659 | { $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] | 6660 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6661 | if test $ac_cv_type_long_long = yes; then |
| 6662 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6663 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | |
| 6665 | fi |
| 6666 | |
| 6667 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6668 | { $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] | 6669 | $as_echo_n "checking for long double... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6670 | if ${gt_cv_c_long_double+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6671 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | else |
| 6673 | if test "$GCC" = yes; then |
| 6674 | gt_cv_c_long_double=yes |
| 6675 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | /* end confdefs.h. */ |
| 6678 | |
| 6679 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6680 | long double foo = 0.0; |
| 6681 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6682 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6683 | |
| 6684 | int |
| 6685 | main () |
| 6686 | { |
| 6687 | |
| 6688 | ; |
| 6689 | return 0; |
| 6690 | } |
| 6691 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6692 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6693 | gt_cv_c_long_double=yes |
| 6694 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6695 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6696 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6698 | fi |
| 6699 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6700 | { $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] | 6701 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | if test $gt_cv_c_long_double = yes; then |
| 6703 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6704 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | |
| 6706 | fi |
| 6707 | |
| 6708 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6709 | { $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] | 6710 | $as_echo_n "checking for wchar_t... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6711 | if ${gt_cv_c_wchar_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6712 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6713 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6715 | /* end confdefs.h. */ |
| 6716 | #include <stddef.h> |
| 6717 | wchar_t foo = (wchar_t)'\0'; |
| 6718 | int |
| 6719 | main () |
| 6720 | { |
| 6721 | |
| 6722 | ; |
| 6723 | return 0; |
| 6724 | } |
| 6725 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6726 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6727 | gt_cv_c_wchar_t=yes |
| 6728 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6729 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6730 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6732 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6733 | { $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] | 6734 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6735 | if test $gt_cv_c_wchar_t = yes; then |
| 6736 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6737 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | |
| 6739 | fi |
| 6740 | |
| 6741 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6742 | { $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] | 6743 | $as_echo_n "checking for wint_t... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6744 | if ${gt_cv_c_wint_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6745 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6746 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6748 | /* end confdefs.h. */ |
| 6749 | #include <wchar.h> |
| 6750 | wint_t foo = (wchar_t)'\0'; |
| 6751 | int |
| 6752 | main () |
| 6753 | { |
| 6754 | |
| 6755 | ; |
| 6756 | return 0; |
| 6757 | } |
| 6758 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6759 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6760 | gt_cv_c_wint_t=yes |
| 6761 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6762 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6765 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6766 | { $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] | 6767 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | if test $gt_cv_c_wint_t = yes; then |
| 6769 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6770 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6771 | |
| 6772 | fi |
| 6773 | |
| 6774 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6775 | { $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] | 6776 | $as_echo_n "checking for inttypes.h... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6777 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6778 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6779 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | /* end confdefs.h. */ |
| 6782 | #include <sys/types.h> |
| 6783 | #include <inttypes.h> |
| 6784 | int |
| 6785 | main () |
| 6786 | { |
| 6787 | uintmax_t i = (uintmax_t) -1; |
| 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6792 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6793 | jm_ac_cv_header_inttypes_h=yes |
| 6794 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6795 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6799 | { $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] | 6800 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6802 | |
| 6803 | cat >>confdefs.h <<_ACEOF |
| 6804 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6805 | _ACEOF |
| 6806 | |
| 6807 | fi |
| 6808 | |
| 6809 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6810 | { $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] | 6811 | $as_echo_n "checking for stdint.h... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6812 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6813 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | /* end confdefs.h. */ |
| 6817 | #include <sys/types.h> |
| 6818 | #include <stdint.h> |
| 6819 | int |
| 6820 | main () |
| 6821 | { |
| 6822 | uintmax_t i = (uintmax_t) -1; |
| 6823 | ; |
| 6824 | return 0; |
| 6825 | } |
| 6826 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6827 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6828 | jm_ac_cv_header_stdint_h=yes |
| 6829 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6830 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6834 | { $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] | 6835 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6836 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6837 | |
| 6838 | cat >>confdefs.h <<_ACEOF |
| 6839 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6840 | _ACEOF |
| 6841 | |
| 6842 | fi |
| 6843 | |
| 6844 | |
| 6845 | |
| 6846 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6847 | { $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] | 6848 | $as_echo_n "checking for intmax_t... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6849 | if ${gt_cv_c_intmax_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6850 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | /* end confdefs.h. */ |
| 6854 | |
| 6855 | #include <stddef.h> |
| 6856 | #include <stdlib.h> |
| 6857 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6858 | #include <stdint.h> |
| 6859 | #endif |
| 6860 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6861 | #include <inttypes.h> |
| 6862 | #endif |
| 6863 | |
| 6864 | int |
| 6865 | main () |
| 6866 | { |
| 6867 | intmax_t x = -1; |
| 6868 | ; |
| 6869 | return 0; |
| 6870 | } |
| 6871 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6872 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6873 | gt_cv_c_intmax_t=yes |
| 6874 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6875 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6876 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6879 | { $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] | 6880 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6881 | if test $gt_cv_c_intmax_t = yes; then |
| 6882 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6883 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | |
| 6885 | fi |
| 6886 | |
| 6887 | |
| 6888 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6889 | { $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] | 6890 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6891 | if ${gt_cv_func_printf_posix+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6892 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6893 | else |
| 6894 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6895 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6896 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6898 | /* end confdefs.h. */ |
| 6899 | |
| 6900 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6901 | notposix |
| 6902 | #endif |
| 6903 | |
| 6904 | _ACEOF |
| 6905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6906 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | gt_cv_func_printf_posix="guessing no" |
| 6908 | else |
| 6909 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6910 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6911 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6912 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | |
| 6914 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6916 | /* end confdefs.h. */ |
| 6917 | |
| 6918 | #include <stdio.h> |
| 6919 | #include <string.h> |
| 6920 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6921 | dollar expansion (possibly an autoconf bug). */ |
| 6922 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6923 | static char buf[100]; |
| 6924 | int main () |
| 6925 | { |
| 6926 | sprintf (buf, format, 33, 55); |
| 6927 | return (strcmp (buf, "55 33") != 0); |
| 6928 | } |
| 6929 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6930 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | gt_cv_func_printf_posix=yes |
| 6932 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6933 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6934 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6935 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6936 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6937 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6939 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6940 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6941 | { $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] | 6942 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6943 | case $gt_cv_func_printf_posix in |
| 6944 | *yes) |
| 6945 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6946 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | |
| 6948 | ;; |
| 6949 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6950 | |
| 6951 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6952 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6953 | { $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] | 6954 | $as_echo_n "checking for working alloca.h... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6955 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6956 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6957 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6959 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6961 | int |
| 6962 | main () |
| 6963 | { |
| 6964 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6965 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6966 | ; |
| 6967 | return 0; |
| 6968 | } |
| 6969 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6970 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6971 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6972 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6973 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6975 | rm -f core conftest.err conftest.$ac_objext \ |
| 6976 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6977 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6978 | { $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] | 6979 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6980 | if test $ac_cv_working_alloca_h = yes; then |
| 6981 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6982 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6983 | |
| 6984 | fi |
| 6985 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6987 | $as_echo_n "checking for alloca... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 6988 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6989 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6990 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6992 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6993 | #ifdef __GNUC__ |
| 6994 | # define alloca __builtin_alloca |
| 6995 | #else |
| 6996 | # ifdef _MSC_VER |
| 6997 | # include <malloc.h> |
| 6998 | # define alloca _alloca |
| 6999 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7000 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7001 | # include <alloca.h> |
| 7002 | # else |
| 7003 | # ifdef _AIX |
| 7004 | #pragma alloca |
| 7005 | # else |
| 7006 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7007 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7008 | # endif |
| 7009 | # endif |
| 7010 | # endif |
| 7011 | # endif |
| 7012 | #endif |
| 7013 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7014 | int |
| 7015 | main () |
| 7016 | { |
| 7017 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7018 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7019 | ; |
| 7020 | return 0; |
| 7021 | } |
| 7022 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7023 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7024 | ac_cv_func_alloca_works=yes |
| 7025 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7026 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7028 | rm -f core conftest.err conftest.$ac_objext \ |
| 7029 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7030 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7031 | { $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] | 7032 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7033 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7034 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7035 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7036 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7037 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7038 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7040 | # that cause trouble. Some versions do not even contain alloca or |
| 7041 | # contain a buggy version. If you still want to use their alloca, |
| 7042 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7043 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7044 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7045 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7046 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7047 | |
| 7048 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7049 | { $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] | 7050 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7051 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7052 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7053 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7055 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7056 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7057 | webecray |
| 7058 | #else |
| 7059 | wenotbecray |
| 7060 | #endif |
| 7061 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7062 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7064 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7065 | ac_cv_os_cray=yes |
| 7066 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7067 | ac_cv_os_cray=no |
| 7068 | fi |
| 7069 | rm -f conftest* |
| 7070 | |
| 7071 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7072 | { $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] | 7073 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7074 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7075 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7076 | 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] | 7077 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7078 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7079 | |
| 7080 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7081 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7082 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7083 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7084 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7085 | fi |
| 7086 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7087 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7088 | fi |
| 7089 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7090 | { $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] | 7091 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7092 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7093 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7095 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7096 | ac_cv_c_stack_direction=0 |
| 7097 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7099 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7100 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7101 | int |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7102 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7103 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7104 | int dir, dummy = 0; |
| 7105 | if (! addr) |
| 7106 | addr = &dummy; |
| 7107 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7108 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7109 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7110 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7111 | |
| 7112 | int |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7113 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7114 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7115 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7116 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7117 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7118 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7119 | ac_cv_c_stack_direction=1 |
| 7120 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7121 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7122 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7124 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7127 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7128 | { $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] | 7129 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7130 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7131 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | _ACEOF |
| 7133 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7134 | |
| 7135 | fi |
| 7136 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7137 | |
| 7138 | |
| 7139 | |
| 7140 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7141 | do : |
| 7142 | 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] | 7143 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7144 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7145 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7147 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | _ACEOF |
| 7149 | |
| 7150 | fi |
| 7151 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7152 | done |
| 7153 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7154 | |
| 7155 | |
| 7156 | |
| 7157 | |
| 7158 | |
| 7159 | |
| 7160 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7161 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7162 | do : |
| 7163 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7164 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7165 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7166 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7167 | _ACEOF |
| 7168 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7169 | fi |
| 7170 | done |
| 7171 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7172 | { $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] | 7173 | $as_echo_n "checking for working mmap... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7174 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7175 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7176 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7177 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7178 | ac_cv_func_mmap_fixed_mapped=no |
| 7179 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7181 | /* end confdefs.h. */ |
| 7182 | $ac_includes_default |
| 7183 | /* malloc might have been renamed as rpl_malloc. */ |
| 7184 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7185 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7186 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7187 | Here is a matrix of mmap possibilities: |
| 7188 | mmap private not fixed |
| 7189 | mmap private fixed at somewhere currently unmapped |
| 7190 | mmap private fixed at somewhere already mapped |
| 7191 | mmap shared not fixed |
| 7192 | mmap shared fixed at somewhere currently unmapped |
| 7193 | mmap shared fixed at somewhere already mapped |
| 7194 | For private mappings, we should verify that changes cannot be read() |
| 7195 | back from the file, nor mmap's back from the file at a different |
| 7196 | address. (There have been systems where private was not correctly |
| 7197 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7198 | 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] | 7199 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7200 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7201 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7202 | |
| 7203 | Grep wants private fixed already mapped. |
| 7204 | The main things grep needs to know about mmap are: |
| 7205 | * does it exist and is it safe to write into the mmap'd area |
| 7206 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7207 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7208 | #include <fcntl.h> |
| 7209 | #include <sys/mman.h> |
| 7210 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7211 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | char *malloc (); |
| 7213 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7215 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7216 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7217 | # ifdef _SC_PAGESIZE |
| 7218 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7219 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7220 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7221 | # include <sys/param.h> |
| 7222 | # ifdef EXEC_PAGESIZE |
| 7223 | # define getpagesize() EXEC_PAGESIZE |
| 7224 | # else /* no EXEC_PAGESIZE */ |
| 7225 | # ifdef NBPG |
| 7226 | # define getpagesize() NBPG * CLSIZE |
| 7227 | # ifndef CLSIZE |
| 7228 | # define CLSIZE 1 |
| 7229 | # endif /* no CLSIZE */ |
| 7230 | # else /* no NBPG */ |
| 7231 | # ifdef NBPC |
| 7232 | # define getpagesize() NBPC |
| 7233 | # else /* no NBPC */ |
| 7234 | # ifdef PAGESIZE |
| 7235 | # define getpagesize() PAGESIZE |
| 7236 | # endif /* PAGESIZE */ |
| 7237 | # endif /* no NBPC */ |
| 7238 | # endif /* no NBPG */ |
| 7239 | # endif /* no EXEC_PAGESIZE */ |
| 7240 | # else /* no HAVE_SYS_PARAM_H */ |
| 7241 | # define getpagesize() 8192 /* punt totally */ |
| 7242 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7243 | # endif /* no _SC_PAGESIZE */ |
| 7244 | |
| 7245 | #endif /* no HAVE_GETPAGESIZE */ |
| 7246 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7247 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7248 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7249 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7250 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7251 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7253 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7256 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7257 | /* First, make a file with some known garbage in it. */ |
| 7258 | data = (char *) malloc (pagesize); |
| 7259 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7260 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7261 | for (i = 0; i < pagesize; ++i) |
| 7262 | *(data + i) = rand (); |
| 7263 | umask (0); |
| 7264 | fd = creat ("conftest.mmap", 0600); |
| 7265 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7266 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7267 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7268 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7269 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7270 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7271 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7272 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7273 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7274 | if (fd2 < 0) |
| 7275 | return 4; |
| 7276 | cdata2 = ""; |
| 7277 | if (write (fd2, cdata2, 1) != 1) |
| 7278 | return 5; |
| 7279 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7280 | if (data2 == MAP_FAILED) |
| 7281 | return 6; |
| 7282 | for (i = 0; i < pagesize; ++i) |
| 7283 | if (*(data2 + i)) |
| 7284 | return 7; |
| 7285 | close (fd2); |
| 7286 | if (munmap (data2, pagesize)) |
| 7287 | return 8; |
| 7288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7289 | /* Next, try to mmap the file at a fixed address which already has |
| 7290 | something else allocated at it. If we can, also make sure that |
| 7291 | we see the same garbage. */ |
| 7292 | fd = open ("conftest.mmap", O_RDWR); |
| 7293 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7294 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7295 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7296 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7297 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7298 | for (i = 0; i < pagesize; ++i) |
| 7299 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7300 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7302 | /* Finally, make sure that changes to the mapped area do not |
| 7303 | percolate back to the file as seen by read(). (This is a bug on |
| 7304 | some variants of i386 svr4.0.) */ |
| 7305 | for (i = 0; i < pagesize; ++i) |
| 7306 | *(data2 + i) = *(data2 + i) + 1; |
| 7307 | data3 = (char *) malloc (pagesize); |
| 7308 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7309 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7311 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7312 | for (i = 0; i < pagesize; ++i) |
| 7313 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7314 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7315 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7316 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7317 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7319 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7320 | ac_cv_func_mmap_fixed_mapped=yes |
| 7321 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7322 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7323 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7324 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7325 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7326 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7329 | { $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] | 7330 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7331 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7332 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7333 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7334 | |
| 7335 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7336 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7337 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7338 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7339 | { $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] | 7340 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7341 | if ${ac_cv_gnu_library_2_1+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7342 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7343 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7346 | |
| 7347 | #include <features.h> |
| 7348 | #ifdef __GNU_LIBRARY__ |
| 7349 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7350 | Lucky GNU user |
| 7351 | #endif |
| 7352 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7353 | |
| 7354 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7356 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7357 | ac_cv_gnu_library_2_1=yes |
| 7358 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7359 | ac_cv_gnu_library_2_1=no |
| 7360 | fi |
| 7361 | rm -f conftest* |
| 7362 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7363 | |
| 7364 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7365 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7366 | { $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] | 7367 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7368 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7369 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7370 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7372 | |
| 7373 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7374 | { $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] | 7375 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7376 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7377 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7378 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7379 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7380 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7382 | # Guess based on the CPU. |
| 7383 | case "$host_cpu" in |
| 7384 | alpha* | i3456786 | m68k | s390*) |
| 7385 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7386 | *) |
| 7387 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7388 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7389 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7390 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7392 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7393 | |
| 7394 | #include <stdlib.h> |
| 7395 | #include <signal.h> |
| 7396 | |
| 7397 | static void |
| 7398 | #ifdef __cplusplus |
| 7399 | sigfpe_handler (int sig) |
| 7400 | #else |
| 7401 | sigfpe_handler (sig) int sig; |
| 7402 | #endif |
| 7403 | { |
| 7404 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7405 | exit (sig != SIGFPE); |
| 7406 | } |
| 7407 | |
| 7408 | int x = 1; |
| 7409 | int y = 0; |
| 7410 | int z; |
| 7411 | int nan; |
| 7412 | |
| 7413 | int main () |
| 7414 | { |
| 7415 | signal (SIGFPE, sigfpe_handler); |
| 7416 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7417 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7418 | signal (SIGTRAP, sigfpe_handler); |
| 7419 | #endif |
| 7420 | /* Linux/SPARC yields signal SIGILL. */ |
| 7421 | #if defined (__sparc__) && defined (__linux__) |
| 7422 | signal (SIGILL, sigfpe_handler); |
| 7423 | #endif |
| 7424 | |
| 7425 | z = x / y; |
| 7426 | nan = y / y; |
| 7427 | exit (1); |
| 7428 | } |
| 7429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7430 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7431 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7432 | gt_cv_int_divbyzero_sigfpe=yes |
| 7433 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7434 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7435 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7437 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7438 | fi |
| 7439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7440 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7441 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7442 | { $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] | 7443 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7444 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7445 | *yes) value=1;; |
| 7446 | *) value=0;; |
| 7447 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7448 | |
| 7449 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7450 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7451 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7452 | |
| 7453 | |
| 7454 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7455 | { $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] | 7456 | $as_echo_n "checking for unsigned long long... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7457 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7458 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7459 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7461 | /* end confdefs.h. */ |
| 7462 | unsigned long long ull = 1ULL; int i = 63; |
| 7463 | int |
| 7464 | main () |
| 7465 | { |
| 7466 | unsigned long long ullmax = (unsigned long long) -1; |
| 7467 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7468 | ; |
| 7469 | return 0; |
| 7470 | } |
| 7471 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7472 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | ac_cv_type_unsigned_long_long=yes |
| 7474 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7475 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7476 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7477 | rm -f core conftest.err conftest.$ac_objext \ |
| 7478 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7479 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7480 | { $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] | 7481 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7483 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7484 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | |
| 7486 | fi |
| 7487 | |
| 7488 | |
| 7489 | |
| 7490 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7491 | 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] | 7492 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7493 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7494 | && ac_type='unsigned long long' \ |
| 7495 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7496 | |
| 7497 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7498 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7499 | _ACEOF |
| 7500 | |
| 7501 | else |
| 7502 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7503 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7504 | |
| 7505 | fi |
| 7506 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7507 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7508 | { $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] | 7509 | $as_echo_n "checking for inttypes.h... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7510 | if ${gt_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7511 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7512 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7513 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7515 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7516 | #include <sys/types.h> |
| 7517 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7518 | int |
| 7519 | main () |
| 7520 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | ; |
| 7523 | return 0; |
| 7524 | } |
| 7525 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7526 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7527 | gt_cv_header_inttypes_h=yes |
| 7528 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7529 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7530 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7532 | |
| 7533 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7534 | { $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] | 7535 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7536 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7537 | |
| 7538 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7539 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7540 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7541 | |
| 7542 | fi |
| 7543 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7544 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7545 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7546 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7547 | { $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] | 7548 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7549 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7550 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7552 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7554 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7555 | #include <inttypes.h> |
| 7556 | #ifdef PRId32 |
| 7557 | char *p = PRId32; |
| 7558 | #endif |
| 7559 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7560 | int |
| 7561 | main () |
| 7562 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7568 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7569 | gt_cv_inttypes_pri_broken=no |
| 7570 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7571 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7572 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | |
| 7575 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7576 | { $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] | 7577 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7578 | fi |
| 7579 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7580 | |
| 7581 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7582 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7583 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7584 | |
| 7585 | fi |
| 7586 | |
| 7587 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7588 | for ac_header in stdint.h |
| 7589 | do : |
| 7590 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7591 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7592 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7593 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7594 | _ACEOF |
| 7595 | |
| 7596 | fi |
| 7597 | |
| 7598 | done |
| 7599 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7600 | { $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] | 7601 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7602 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7604 | /* end confdefs.h. */ |
| 7605 | |
| 7606 | #include <limits.h> |
| 7607 | #if HAVE_STDINT_H |
| 7608 | #include <stdint.h> |
| 7609 | #endif |
| 7610 | #ifdef SIZE_MAX |
| 7611 | Found it |
| 7612 | #endif |
| 7613 | |
| 7614 | _ACEOF |
| 7615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7616 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | result=yes |
| 7618 | fi |
| 7619 | rm -f conftest* |
| 7620 | |
| 7621 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7622 | 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] | 7623 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7624 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7625 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7626 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7627 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7628 | |
| 7629 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7630 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7631 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7632 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7634 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7635 | |
| 7636 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7639 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7641 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7642 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7643 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7645 | /* end confdefs.h. */ |
| 7646 | #include <stddef.h> |
| 7647 | extern size_t foo; |
| 7648 | extern unsigned long foo; |
| 7649 | |
| 7650 | int |
| 7651 | main () |
| 7652 | { |
| 7653 | |
| 7654 | ; |
| 7655 | return 0; |
| 7656 | } |
| 7657 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7658 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7659 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7662 | fi |
| 7663 | if test -z "$result"; then |
| 7664 | if test "$fits_in_uint" = 1; then |
| 7665 | result="$res_hi$res_lo"U |
| 7666 | else |
| 7667 | result="$res_hi$res_lo"UL |
| 7668 | fi |
| 7669 | else |
| 7670 | result='~(size_t)0' |
| 7671 | fi |
| 7672 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7674 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7675 | if test "$result" != yes; then |
| 7676 | |
| 7677 | cat >>confdefs.h <<_ACEOF |
| 7678 | #define SIZE_MAX $result |
| 7679 | _ACEOF |
| 7680 | |
| 7681 | fi |
| 7682 | |
| 7683 | |
| 7684 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7685 | for ac_header in stdint.h |
| 7686 | do : |
| 7687 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7688 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7689 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7690 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7691 | _ACEOF |
| 7692 | |
| 7693 | fi |
| 7694 | |
| 7695 | done |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | if test "X$prefix" = "XNONE"; then |
| 7700 | acl_final_prefix="$ac_default_prefix" |
| 7701 | else |
| 7702 | acl_final_prefix="$prefix" |
| 7703 | fi |
| 7704 | if test "X$exec_prefix" = "XNONE"; then |
| 7705 | acl_final_exec_prefix='${prefix}' |
| 7706 | else |
| 7707 | acl_final_exec_prefix="$exec_prefix" |
| 7708 | fi |
| 7709 | acl_save_prefix="$prefix" |
| 7710 | prefix="$acl_final_prefix" |
| 7711 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7712 | prefix="$acl_save_prefix" |
| 7713 | |
| 7714 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7715 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7716 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7717 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | else |
| 7719 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7720 | fi |
| 7721 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7722 | # Prepare PATH_SEPARATOR. |
| 7723 | # The user is always right. |
| 7724 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7725 | echo "#! /bin/sh" >conf$$.sh |
| 7726 | echo "exit 0" >>conf$$.sh |
| 7727 | chmod +x conf$$.sh |
| 7728 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7729 | PATH_SEPARATOR=';' |
| 7730 | else |
| 7731 | PATH_SEPARATOR=: |
| 7732 | fi |
| 7733 | rm -f conf$$.sh |
| 7734 | fi |
| 7735 | ac_prog=ld |
| 7736 | if test "$GCC" = yes; then |
| 7737 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7738 | { $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] | 7739 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7740 | case $host in |
| 7741 | *-*-mingw*) |
| 7742 | # gcc leaves a trailing carriage return which upsets mingw |
| 7743 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7744 | *) |
| 7745 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7746 | esac |
| 7747 | case $ac_prog in |
| 7748 | # Accept absolute paths. |
| 7749 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7750 | re_direlt='/[^/][^/]*/\.\./' |
| 7751 | # Canonicalize the path of ld |
| 7752 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7753 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7754 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7755 | done |
| 7756 | test -z "$LD" && LD="$ac_prog" |
| 7757 | ;; |
| 7758 | "") |
| 7759 | # If it fails, then pretend we aren't using GCC. |
| 7760 | ac_prog=ld |
| 7761 | ;; |
| 7762 | *) |
| 7763 | # If it is relative, then search for the first ld in PATH. |
| 7764 | with_gnu_ld=unknown |
| 7765 | ;; |
| 7766 | esac |
| 7767 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7768 | { $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] | 7769 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7770 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7771 | { $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] | 7772 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7773 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7774 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7775 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7776 | else |
| 7777 | if test -z "$LD"; then |
| 7778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7779 | for ac_dir in $PATH; do |
| 7780 | test -z "$ac_dir" && ac_dir=. |
| 7781 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7782 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7783 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7784 | # but apparently some GNU ld's only accept -v. |
| 7785 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7786 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7787 | *GNU* | *'with BFD'*) |
| 7788 | test "$with_gnu_ld" != no && break ;; |
| 7789 | *) |
| 7790 | test "$with_gnu_ld" != yes && break ;; |
| 7791 | esac |
| 7792 | fi |
| 7793 | done |
| 7794 | IFS="$ac_save_ifs" |
| 7795 | else |
| 7796 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7797 | fi |
| 7798 | fi |
| 7799 | |
| 7800 | LD="$acl_cv_path_LD" |
| 7801 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7803 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7804 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7806 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7807 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7808 | 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] | 7809 | { $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] | 7810 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7811 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7812 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7813 | else |
| 7814 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7815 | case `$LD -v 2>&1 </dev/null` in |
| 7816 | *GNU* | *'with BFD'*) |
| 7817 | acl_cv_prog_gnu_ld=yes ;; |
| 7818 | *) |
| 7819 | acl_cv_prog_gnu_ld=no ;; |
| 7820 | esac |
| 7821 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7822 | { $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] | 7823 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7824 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7825 | |
| 7826 | |
| 7827 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7828 | { $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] | 7829 | $as_echo_n "checking for shared library run path origin... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 7830 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7831 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | else |
| 7833 | |
| 7834 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7835 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7836 | . ./conftest.sh |
| 7837 | rm -f ./conftest.sh |
| 7838 | acl_cv_rpath=done |
| 7839 | |
| 7840 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7841 | { $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] | 7842 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7843 | wl="$acl_cv_wl" |
| 7844 | libext="$acl_cv_libext" |
| 7845 | shlibext="$acl_cv_shlibext" |
| 7846 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7847 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7848 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7849 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7850 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7851 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7852 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7853 | else |
| 7854 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7855 | fi |
| 7856 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7857 | |
| 7858 | |
| 7859 | |
| 7860 | |
| 7861 | |
| 7862 | |
| 7863 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7864 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7865 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7866 | acl_save_prefix="$prefix" |
| 7867 | prefix="$acl_final_prefix" |
| 7868 | acl_save_exec_prefix="$exec_prefix" |
| 7869 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7871 | eval additional_includedir=\"$includedir\" |
| 7872 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7873 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7874 | exec_prefix="$acl_save_exec_prefix" |
| 7875 | prefix="$acl_save_prefix" |
| 7876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7877 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7878 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7879 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7880 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7881 | if test "X$withval" = "Xno"; then |
| 7882 | use_additional=no |
| 7883 | else |
| 7884 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7885 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7886 | acl_save_prefix="$prefix" |
| 7887 | prefix="$acl_final_prefix" |
| 7888 | acl_save_exec_prefix="$exec_prefix" |
| 7889 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7890 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7891 | eval additional_includedir=\"$includedir\" |
| 7892 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7893 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7894 | exec_prefix="$acl_save_exec_prefix" |
| 7895 | prefix="$acl_save_prefix" |
| 7896 | |
| 7897 | else |
| 7898 | additional_includedir="$withval/include" |
| 7899 | additional_libdir="$withval/lib" |
| 7900 | fi |
| 7901 | fi |
| 7902 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7903 | fi |
| 7904 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7905 | LIBICONV= |
| 7906 | LTLIBICONV= |
| 7907 | INCICONV= |
| 7908 | rpathdirs= |
| 7909 | ltrpathdirs= |
| 7910 | names_already_handled= |
| 7911 | names_next_round='iconv ' |
| 7912 | while test -n "$names_next_round"; do |
| 7913 | names_this_round="$names_next_round" |
| 7914 | names_next_round= |
| 7915 | for name in $names_this_round; do |
| 7916 | already_handled= |
| 7917 | for n in $names_already_handled; do |
| 7918 | if test "$n" = "$name"; then |
| 7919 | already_handled=yes |
| 7920 | break |
| 7921 | fi |
| 7922 | done |
| 7923 | if test -z "$already_handled"; then |
| 7924 | names_already_handled="$names_already_handled $name" |
| 7925 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7926 | eval value=\"\$HAVE_LIB$uppername\" |
| 7927 | if test -n "$value"; then |
| 7928 | if test "$value" = yes; then |
| 7929 | eval value=\"\$LIB$uppername\" |
| 7930 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7931 | eval value=\"\$LTLIB$uppername\" |
| 7932 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7933 | else |
| 7934 | : |
| 7935 | fi |
| 7936 | else |
| 7937 | found_dir= |
| 7938 | found_la= |
| 7939 | found_so= |
| 7940 | found_a= |
| 7941 | if test $use_additional = yes; then |
| 7942 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7943 | found_dir="$additional_libdir" |
| 7944 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7945 | if test -f "$additional_libdir/lib$name.la"; then |
| 7946 | found_la="$additional_libdir/lib$name.la" |
| 7947 | fi |
| 7948 | else |
| 7949 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7950 | found_dir="$additional_libdir" |
| 7951 | found_a="$additional_libdir/lib$name.$libext" |
| 7952 | if test -f "$additional_libdir/lib$name.la"; then |
| 7953 | found_la="$additional_libdir/lib$name.la" |
| 7954 | fi |
| 7955 | fi |
| 7956 | fi |
| 7957 | fi |
| 7958 | if test "X$found_dir" = "X"; then |
| 7959 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7960 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7961 | acl_save_prefix="$prefix" |
| 7962 | prefix="$acl_final_prefix" |
| 7963 | acl_save_exec_prefix="$exec_prefix" |
| 7964 | exec_prefix="$acl_final_exec_prefix" |
| 7965 | eval x=\"$x\" |
| 7966 | exec_prefix="$acl_save_exec_prefix" |
| 7967 | prefix="$acl_save_prefix" |
| 7968 | |
| 7969 | case "$x" in |
| 7970 | -L*) |
| 7971 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7972 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7973 | found_dir="$dir" |
| 7974 | found_so="$dir/lib$name.$shlibext" |
| 7975 | if test -f "$dir/lib$name.la"; then |
| 7976 | found_la="$dir/lib$name.la" |
| 7977 | fi |
| 7978 | else |
| 7979 | if test -f "$dir/lib$name.$libext"; then |
| 7980 | found_dir="$dir" |
| 7981 | found_a="$dir/lib$name.$libext" |
| 7982 | if test -f "$dir/lib$name.la"; then |
| 7983 | found_la="$dir/lib$name.la" |
| 7984 | fi |
| 7985 | fi |
| 7986 | fi |
| 7987 | ;; |
| 7988 | esac |
| 7989 | if test "X$found_dir" != "X"; then |
| 7990 | break |
| 7991 | fi |
| 7992 | done |
| 7993 | fi |
| 7994 | if test "X$found_dir" != "X"; then |
| 7995 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7996 | if test "X$found_so" != "X"; then |
| 7997 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7998 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7999 | else |
| 8000 | haveit= |
| 8001 | for x in $ltrpathdirs; do |
| 8002 | if test "X$x" = "X$found_dir"; then |
| 8003 | haveit=yes |
| 8004 | break |
| 8005 | fi |
| 8006 | done |
| 8007 | if test -z "$haveit"; then |
| 8008 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8009 | fi |
| 8010 | if test "$hardcode_direct" = yes; then |
| 8011 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8012 | else |
| 8013 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8014 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8015 | haveit= |
| 8016 | for x in $rpathdirs; do |
| 8017 | if test "X$x" = "X$found_dir"; then |
| 8018 | haveit=yes |
| 8019 | break |
| 8020 | fi |
| 8021 | done |
| 8022 | if test -z "$haveit"; then |
| 8023 | rpathdirs="$rpathdirs $found_dir" |
| 8024 | fi |
| 8025 | else |
| 8026 | haveit= |
| 8027 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8028 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8029 | acl_save_prefix="$prefix" |
| 8030 | prefix="$acl_final_prefix" |
| 8031 | acl_save_exec_prefix="$exec_prefix" |
| 8032 | exec_prefix="$acl_final_exec_prefix" |
| 8033 | eval x=\"$x\" |
| 8034 | exec_prefix="$acl_save_exec_prefix" |
| 8035 | prefix="$acl_save_prefix" |
| 8036 | |
| 8037 | if test "X$x" = "X-L$found_dir"; then |
| 8038 | haveit=yes |
| 8039 | break |
| 8040 | fi |
| 8041 | done |
| 8042 | if test -z "$haveit"; then |
| 8043 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8044 | fi |
| 8045 | if test "$hardcode_minus_L" != no; then |
| 8046 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8047 | else |
| 8048 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8049 | fi |
| 8050 | fi |
| 8051 | fi |
| 8052 | fi |
| 8053 | else |
| 8054 | if test "X$found_a" != "X"; then |
| 8055 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8056 | else |
| 8057 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8058 | fi |
| 8059 | fi |
| 8060 | additional_includedir= |
| 8061 | case "$found_dir" in |
| 8062 | */lib | */lib/) |
| 8063 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8064 | additional_includedir="$basedir/include" |
| 8065 | ;; |
| 8066 | esac |
| 8067 | if test "X$additional_includedir" != "X"; then |
| 8068 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8069 | haveit= |
| 8070 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8071 | if test -n "$GCC"; then |
| 8072 | case $host_os in |
| 8073 | linux*) haveit=yes;; |
| 8074 | esac |
| 8075 | fi |
| 8076 | fi |
| 8077 | if test -z "$haveit"; then |
| 8078 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8079 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8080 | acl_save_prefix="$prefix" |
| 8081 | prefix="$acl_final_prefix" |
| 8082 | acl_save_exec_prefix="$exec_prefix" |
| 8083 | exec_prefix="$acl_final_exec_prefix" |
| 8084 | eval x=\"$x\" |
| 8085 | exec_prefix="$acl_save_exec_prefix" |
| 8086 | prefix="$acl_save_prefix" |
| 8087 | |
| 8088 | if test "X$x" = "X-I$additional_includedir"; then |
| 8089 | haveit=yes |
| 8090 | break |
| 8091 | fi |
| 8092 | done |
| 8093 | if test -z "$haveit"; then |
| 8094 | if test -d "$additional_includedir"; then |
| 8095 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8096 | fi |
| 8097 | fi |
| 8098 | fi |
| 8099 | fi |
| 8100 | fi |
| 8101 | if test -n "$found_la"; then |
| 8102 | save_libdir="$libdir" |
| 8103 | case "$found_la" in |
| 8104 | */* | *\\*) . "$found_la" ;; |
| 8105 | *) . "./$found_la" ;; |
| 8106 | esac |
| 8107 | libdir="$save_libdir" |
| 8108 | for dep in $dependency_libs; do |
| 8109 | case "$dep" in |
| 8110 | -L*) |
| 8111 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8112 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8113 | haveit= |
| 8114 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8115 | if test -n "$GCC"; then |
| 8116 | case $host_os in |
| 8117 | linux*) haveit=yes;; |
| 8118 | esac |
| 8119 | fi |
| 8120 | fi |
| 8121 | if test -z "$haveit"; then |
| 8122 | haveit= |
| 8123 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8124 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8125 | acl_save_prefix="$prefix" |
| 8126 | prefix="$acl_final_prefix" |
| 8127 | acl_save_exec_prefix="$exec_prefix" |
| 8128 | exec_prefix="$acl_final_exec_prefix" |
| 8129 | eval x=\"$x\" |
| 8130 | exec_prefix="$acl_save_exec_prefix" |
| 8131 | prefix="$acl_save_prefix" |
| 8132 | |
| 8133 | if test "X$x" = "X-L$additional_libdir"; then |
| 8134 | haveit=yes |
| 8135 | break |
| 8136 | fi |
| 8137 | done |
| 8138 | if test -z "$haveit"; then |
| 8139 | if test -d "$additional_libdir"; then |
| 8140 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8141 | fi |
| 8142 | fi |
| 8143 | haveit= |
| 8144 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8145 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8146 | acl_save_prefix="$prefix" |
| 8147 | prefix="$acl_final_prefix" |
| 8148 | acl_save_exec_prefix="$exec_prefix" |
| 8149 | exec_prefix="$acl_final_exec_prefix" |
| 8150 | eval x=\"$x\" |
| 8151 | exec_prefix="$acl_save_exec_prefix" |
| 8152 | prefix="$acl_save_prefix" |
| 8153 | |
| 8154 | if test "X$x" = "X-L$additional_libdir"; then |
| 8155 | haveit=yes |
| 8156 | break |
| 8157 | fi |
| 8158 | done |
| 8159 | if test -z "$haveit"; then |
| 8160 | if test -d "$additional_libdir"; then |
| 8161 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8162 | fi |
| 8163 | fi |
| 8164 | fi |
| 8165 | fi |
| 8166 | ;; |
| 8167 | -R*) |
| 8168 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8169 | if test "$enable_rpath" != no; then |
| 8170 | haveit= |
| 8171 | for x in $rpathdirs; do |
| 8172 | if test "X$x" = "X$dir"; then |
| 8173 | haveit=yes |
| 8174 | break |
| 8175 | fi |
| 8176 | done |
| 8177 | if test -z "$haveit"; then |
| 8178 | rpathdirs="$rpathdirs $dir" |
| 8179 | fi |
| 8180 | haveit= |
| 8181 | for x in $ltrpathdirs; do |
| 8182 | if test "X$x" = "X$dir"; then |
| 8183 | haveit=yes |
| 8184 | break |
| 8185 | fi |
| 8186 | done |
| 8187 | if test -z "$haveit"; then |
| 8188 | ltrpathdirs="$ltrpathdirs $dir" |
| 8189 | fi |
| 8190 | fi |
| 8191 | ;; |
| 8192 | -l*) |
| 8193 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8194 | ;; |
| 8195 | *.la) |
| 8196 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8197 | ;; |
| 8198 | *) |
| 8199 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8200 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8201 | ;; |
| 8202 | esac |
| 8203 | done |
| 8204 | fi |
| 8205 | else |
| 8206 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8207 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8208 | fi |
| 8209 | fi |
| 8210 | fi |
| 8211 | done |
| 8212 | done |
| 8213 | if test "X$rpathdirs" != "X"; then |
| 8214 | if test -n "$hardcode_libdir_separator"; then |
| 8215 | alldirs= |
| 8216 | for found_dir in $rpathdirs; do |
| 8217 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8218 | done |
| 8219 | acl_save_libdir="$libdir" |
| 8220 | libdir="$alldirs" |
| 8221 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8222 | libdir="$acl_save_libdir" |
| 8223 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8224 | else |
| 8225 | for found_dir in $rpathdirs; do |
| 8226 | acl_save_libdir="$libdir" |
| 8227 | libdir="$found_dir" |
| 8228 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8229 | libdir="$acl_save_libdir" |
| 8230 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8231 | done |
| 8232 | fi |
| 8233 | fi |
| 8234 | if test "X$ltrpathdirs" != "X"; then |
| 8235 | for found_dir in $ltrpathdirs; do |
| 8236 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8237 | done |
| 8238 | fi |
| 8239 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8240 | |
| 8241 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8242 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | |
| 8244 | |
| 8245 | |
| 8246 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8247 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8248 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8249 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8250 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8251 | |
| 8252 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8253 | |
| 8254 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8255 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8256 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8257 | 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] | 8258 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8259 | do : |
| 8260 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8261 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8262 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8263 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8264 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8265 | _ACEOF |
| 8266 | |
| 8267 | fi |
| 8268 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8269 | done |
| 8270 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8271 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8272 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8273 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8274 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8275 | do : |
| 8276 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8277 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8278 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8279 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8280 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8281 | _ACEOF |
| 8282 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8283 | fi |
| 8284 | done |
| 8285 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8286 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8287 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8288 | { $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] | 8289 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8290 | if ${ac_cv_have_decl__snprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8291 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8294 | /* end confdefs.h. */ |
| 8295 | #include <stdio.h> |
| 8296 | int |
| 8297 | main () |
| 8298 | { |
| 8299 | |
| 8300 | #ifndef _snprintf |
| 8301 | char *p = (char *) _snprintf; |
| 8302 | #endif |
| 8303 | |
| 8304 | ; |
| 8305 | return 0; |
| 8306 | } |
| 8307 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8308 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8309 | ac_cv_have_decl__snprintf=yes |
| 8310 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8311 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8312 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8314 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8315 | { $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] | 8316 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8317 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8318 | gt_value=1 |
| 8319 | else |
| 8320 | gt_value=0 |
| 8321 | fi |
| 8322 | |
| 8323 | cat >>confdefs.h <<_ACEOF |
| 8324 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8325 | _ACEOF |
| 8326 | |
| 8327 | |
| 8328 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8329 | { $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] | 8330 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8331 | if ${ac_cv_have_decl__snwprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8332 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8333 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8335 | /* end confdefs.h. */ |
| 8336 | #include <stdio.h> |
| 8337 | int |
| 8338 | main () |
| 8339 | { |
| 8340 | |
| 8341 | #ifndef _snwprintf |
| 8342 | char *p = (char *) _snwprintf; |
| 8343 | #endif |
| 8344 | |
| 8345 | ; |
| 8346 | return 0; |
| 8347 | } |
| 8348 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8349 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8350 | ac_cv_have_decl__snwprintf=yes |
| 8351 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8352 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8353 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8356 | { $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] | 8357 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8358 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8359 | gt_value=1 |
| 8360 | else |
| 8361 | gt_value=0 |
| 8362 | fi |
| 8363 | |
| 8364 | cat >>confdefs.h <<_ACEOF |
| 8365 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8366 | _ACEOF |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8371 | { $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] | 8372 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8373 | if ${ac_cv_have_decl_feof_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8374 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8375 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8377 | /* end confdefs.h. */ |
| 8378 | #include <stdio.h> |
| 8379 | int |
| 8380 | main () |
| 8381 | { |
| 8382 | |
| 8383 | #ifndef feof_unlocked |
| 8384 | char *p = (char *) feof_unlocked; |
| 8385 | #endif |
| 8386 | |
| 8387 | ; |
| 8388 | return 0; |
| 8389 | } |
| 8390 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8391 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8392 | ac_cv_have_decl_feof_unlocked=yes |
| 8393 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8394 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8397 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8398 | { $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] | 8399 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8401 | gt_value=1 |
| 8402 | else |
| 8403 | gt_value=0 |
| 8404 | fi |
| 8405 | |
| 8406 | cat >>confdefs.h <<_ACEOF |
| 8407 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8408 | _ACEOF |
| 8409 | |
| 8410 | |
| 8411 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8412 | { $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] | 8413 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8414 | if ${ac_cv_have_decl_fgets_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8415 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8416 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8418 | /* end confdefs.h. */ |
| 8419 | #include <stdio.h> |
| 8420 | int |
| 8421 | main () |
| 8422 | { |
| 8423 | |
| 8424 | #ifndef fgets_unlocked |
| 8425 | char *p = (char *) fgets_unlocked; |
| 8426 | #endif |
| 8427 | |
| 8428 | ; |
| 8429 | return 0; |
| 8430 | } |
| 8431 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8432 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8433 | ac_cv_have_decl_fgets_unlocked=yes |
| 8434 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8435 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8438 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8439 | { $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] | 8440 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8441 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8442 | gt_value=1 |
| 8443 | else |
| 8444 | gt_value=0 |
| 8445 | fi |
| 8446 | |
| 8447 | cat >>confdefs.h <<_ACEOF |
| 8448 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8449 | _ACEOF |
| 8450 | |
| 8451 | |
| 8452 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8453 | { $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] | 8454 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8455 | if ${ac_cv_have_decl_getc_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8456 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8457 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8459 | /* end confdefs.h. */ |
| 8460 | #include <stdio.h> |
| 8461 | int |
| 8462 | main () |
| 8463 | { |
| 8464 | |
| 8465 | #ifndef getc_unlocked |
| 8466 | char *p = (char *) getc_unlocked; |
| 8467 | #endif |
| 8468 | |
| 8469 | ; |
| 8470 | return 0; |
| 8471 | } |
| 8472 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8473 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8474 | ac_cv_have_decl_getc_unlocked=yes |
| 8475 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8476 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8477 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8479 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8480 | { $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] | 8481 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8482 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8483 | gt_value=1 |
| 8484 | else |
| 8485 | gt_value=0 |
| 8486 | fi |
| 8487 | |
| 8488 | cat >>confdefs.h <<_ACEOF |
| 8489 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8490 | _ACEOF |
| 8491 | |
| 8492 | |
| 8493 | |
| 8494 | case $gt_cv_func_printf_posix in |
| 8495 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8496 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8497 | esac |
| 8498 | |
| 8499 | if test "$ac_cv_func_asprintf" = yes; then |
| 8500 | HAVE_ASPRINTF=1 |
| 8501 | else |
| 8502 | HAVE_ASPRINTF=0 |
| 8503 | fi |
| 8504 | |
| 8505 | if test "$ac_cv_func_snprintf" = yes; then |
| 8506 | HAVE_SNPRINTF=1 |
| 8507 | else |
| 8508 | HAVE_SNPRINTF=0 |
| 8509 | fi |
| 8510 | |
| 8511 | if test "$ac_cv_func_wprintf" = yes; then |
| 8512 | HAVE_WPRINTF=1 |
| 8513 | else |
| 8514 | HAVE_WPRINTF=0 |
| 8515 | fi |
| 8516 | |
| 8517 | |
| 8518 | |
| 8519 | |
| 8520 | |
| 8521 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8522 | |
| 8523 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8524 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8525 | for element in $INCICONV; do |
| 8526 | haveit= |
| 8527 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8528 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8529 | acl_save_prefix="$prefix" |
| 8530 | prefix="$acl_final_prefix" |
| 8531 | acl_save_exec_prefix="$exec_prefix" |
| 8532 | exec_prefix="$acl_final_exec_prefix" |
| 8533 | eval x=\"$x\" |
| 8534 | exec_prefix="$acl_save_exec_prefix" |
| 8535 | prefix="$acl_save_prefix" |
| 8536 | |
| 8537 | if test "X$x" = "X$element"; then |
| 8538 | haveit=yes |
| 8539 | break |
| 8540 | fi |
| 8541 | done |
| 8542 | if test -z "$haveit"; then |
| 8543 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8544 | fi |
| 8545 | done |
| 8546 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8547 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8549 | $as_echo_n "checking for iconv... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8550 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8551 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8552 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8553 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8554 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8555 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8557 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8558 | #include <stdlib.h> |
| 8559 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8560 | int |
| 8561 | main () |
| 8562 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8563 | iconv_t cd = iconv_open("",""); |
| 8564 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8565 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8566 | ; |
| 8567 | return 0; |
| 8568 | } |
| 8569 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8570 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8571 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8572 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8573 | rm -f core conftest.err conftest.$ac_objext \ |
| 8574 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8575 | if test "$am_cv_func_iconv" != yes; then |
| 8576 | am_save_LIBS="$LIBS" |
| 8577 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8579 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8580 | #include <stdlib.h> |
| 8581 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8582 | int |
| 8583 | main () |
| 8584 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8585 | iconv_t cd = iconv_open("",""); |
| 8586 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8587 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8588 | ; |
| 8589 | return 0; |
| 8590 | } |
| 8591 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8592 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8593 | am_cv_lib_iconv=yes |
| 8594 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8595 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8596 | rm -f core conftest.err conftest.$ac_objext \ |
| 8597 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8598 | LIBS="$am_save_LIBS" |
| 8599 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8601 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8602 | { $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] | 8603 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8604 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8605 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8606 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8607 | |
| 8608 | fi |
| 8609 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8610 | { $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] | 8611 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8613 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8614 | else |
| 8615 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8616 | LIBICONV= |
| 8617 | LTLIBICONV= |
| 8618 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8619 | |
| 8620 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8621 | |
| 8622 | if test "$am_cv_func_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 for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8624 | $as_echo_n "checking for iconv declaration... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8625 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8626 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8627 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8628 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8630 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8631 | |
| 8632 | #include <stdlib.h> |
| 8633 | #include <iconv.h> |
| 8634 | extern |
| 8635 | #ifdef __cplusplus |
| 8636 | "C" |
| 8637 | #endif |
| 8638 | #if defined(__STDC__) || defined(__cplusplus) |
| 8639 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8640 | #else |
| 8641 | size_t iconv(); |
| 8642 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8643 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8644 | int |
| 8645 | main () |
| 8646 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8648 | ; |
| 8649 | return 0; |
| 8650 | } |
| 8651 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8652 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8653 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8654 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8655 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8656 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8658 | 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] | 8659 | fi |
| 8660 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8661 | 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] | 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8663 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8664 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8665 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8666 | |
| 8667 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8668 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8669 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8670 | |
| 8671 | fi |
| 8672 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8673 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8674 | { $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] | 8675 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8676 | if ${am_cv_langinfo_codeset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8677 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8678 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8680 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8681 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8682 | int |
| 8683 | main () |
| 8684 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8685 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8686 | ; |
| 8687 | return 0; |
| 8688 | } |
| 8689 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8690 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8691 | am_cv_langinfo_codeset=yes |
| 8692 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8693 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8694 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8695 | rm -f core conftest.err conftest.$ac_objext \ |
| 8696 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8697 | |
| 8698 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8699 | { $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] | 8700 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8701 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8702 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8703 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8704 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8705 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8706 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8707 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8708 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8709 | { $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] | 8710 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8711 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8712 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8713 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8715 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8716 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8717 | int |
| 8718 | main () |
| 8719 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8720 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8721 | ; |
| 8722 | return 0; |
| 8723 | } |
| 8724 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8725 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8726 | am_cv_val_LC_MESSAGES=yes |
| 8727 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8728 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8729 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8730 | rm -f core conftest.err conftest.$ac_objext \ |
| 8731 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8732 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8733 | { $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] | 8734 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8735 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8736 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8737 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8738 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8739 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8740 | |
| 8741 | fi |
| 8742 | |
| 8743 | for ac_prog in bison |
| 8744 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8745 | # 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] | 8746 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8747 | { $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] | 8748 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8749 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8750 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8751 | else |
| 8752 | if test -n "$INTLBISON"; then |
| 8753 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8754 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8756 | for as_dir in $PATH |
| 8757 | do |
| 8758 | IFS=$as_save_IFS |
| 8759 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8760 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8761 | 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] | 8762 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8763 | $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] | 8764 | break 2 |
| 8765 | fi |
| 8766 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8767 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8768 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8769 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8770 | fi |
| 8771 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8772 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8773 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8775 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8776 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8778 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8779 | fi |
| 8780 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8781 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8783 | done |
| 8784 | |
| 8785 | if test -z "$INTLBISON"; then |
| 8786 | ac_verc_fail=yes |
| 8787 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8788 | { $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] | 8789 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8790 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8791 | case $ac_prog_version in |
| 8792 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8793 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8794 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8795 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8796 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8797 | { $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] | 8798 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8799 | fi |
| 8800 | if test $ac_verc_fail = yes; then |
| 8801 | INTLBISON=: |
| 8802 | fi |
| 8803 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8804 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8805 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8806 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8807 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8808 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8809 | |
| 8810 | |
| 8811 | |
| 8812 | |
| 8813 | |
| 8814 | |
| 8815 | |
| 8816 | |
| 8817 | |
| 8818 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8819 | { $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] | 8820 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8821 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8822 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8823 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8824 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8825 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8826 | fi |
| 8827 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8829 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8830 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8832 | |
| 8833 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8834 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8835 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8836 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8837 | LIBINTL= |
| 8838 | LTLIBINTL= |
| 8839 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8840 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8841 | if test "$USE_NLS" = "yes"; then |
| 8842 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8843 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8844 | { $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] | 8845 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8846 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8847 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8848 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8849 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8850 | else |
| 8851 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8852 | fi |
| 8853 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8854 | { $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] | 8855 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8856 | |
| 8857 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8858 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8860 | |
| 8861 | |
| 8862 | |
| 8863 | |
| 8864 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8865 | { $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] | 8866 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 8867 | if ${gt_cv_func_gnugettext1_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8868 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8869 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8871 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8872 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8873 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8874 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8875 | int |
| 8876 | main () |
| 8877 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8878 | bindtextdomain ("", ""); |
| 8879 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8880 | ; |
| 8881 | return 0; |
| 8882 | } |
| 8883 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8884 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8885 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8886 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8887 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8888 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8889 | rm -f core conftest.err conftest.$ac_objext \ |
| 8890 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8891 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8892 | { $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] | 8893 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8894 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8895 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8896 | |
| 8897 | |
| 8898 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8899 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8901 | acl_save_prefix="$prefix" |
| 8902 | prefix="$acl_final_prefix" |
| 8903 | acl_save_exec_prefix="$exec_prefix" |
| 8904 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8905 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8906 | eval additional_includedir=\"$includedir\" |
| 8907 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8908 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8909 | exec_prefix="$acl_save_exec_prefix" |
| 8910 | prefix="$acl_save_prefix" |
| 8911 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8913 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8914 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8915 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8916 | if test "X$withval" = "Xno"; then |
| 8917 | use_additional=no |
| 8918 | else |
| 8919 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8920 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8921 | acl_save_prefix="$prefix" |
| 8922 | prefix="$acl_final_prefix" |
| 8923 | acl_save_exec_prefix="$exec_prefix" |
| 8924 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8926 | eval additional_includedir=\"$includedir\" |
| 8927 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8928 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8929 | exec_prefix="$acl_save_exec_prefix" |
| 8930 | prefix="$acl_save_prefix" |
| 8931 | |
| 8932 | else |
| 8933 | additional_includedir="$withval/include" |
| 8934 | additional_libdir="$withval/lib" |
| 8935 | fi |
| 8936 | fi |
| 8937 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8938 | fi |
| 8939 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8940 | LIBINTL= |
| 8941 | LTLIBINTL= |
| 8942 | INCINTL= |
| 8943 | rpathdirs= |
| 8944 | ltrpathdirs= |
| 8945 | names_already_handled= |
| 8946 | names_next_round='intl ' |
| 8947 | while test -n "$names_next_round"; do |
| 8948 | names_this_round="$names_next_round" |
| 8949 | names_next_round= |
| 8950 | for name in $names_this_round; do |
| 8951 | already_handled= |
| 8952 | for n in $names_already_handled; do |
| 8953 | if test "$n" = "$name"; then |
| 8954 | already_handled=yes |
| 8955 | break |
| 8956 | fi |
| 8957 | done |
| 8958 | if test -z "$already_handled"; then |
| 8959 | names_already_handled="$names_already_handled $name" |
| 8960 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8961 | eval value=\"\$HAVE_LIB$uppername\" |
| 8962 | if test -n "$value"; then |
| 8963 | if test "$value" = yes; then |
| 8964 | eval value=\"\$LIB$uppername\" |
| 8965 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8966 | eval value=\"\$LTLIB$uppername\" |
| 8967 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8968 | else |
| 8969 | : |
| 8970 | fi |
| 8971 | else |
| 8972 | found_dir= |
| 8973 | found_la= |
| 8974 | found_so= |
| 8975 | found_a= |
| 8976 | if test $use_additional = yes; then |
| 8977 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8978 | found_dir="$additional_libdir" |
| 8979 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8980 | if test -f "$additional_libdir/lib$name.la"; then |
| 8981 | found_la="$additional_libdir/lib$name.la" |
| 8982 | fi |
| 8983 | else |
| 8984 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8985 | found_dir="$additional_libdir" |
| 8986 | found_a="$additional_libdir/lib$name.$libext" |
| 8987 | if test -f "$additional_libdir/lib$name.la"; then |
| 8988 | found_la="$additional_libdir/lib$name.la" |
| 8989 | fi |
| 8990 | fi |
| 8991 | fi |
| 8992 | fi |
| 8993 | if test "X$found_dir" = "X"; then |
| 8994 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8996 | acl_save_prefix="$prefix" |
| 8997 | prefix="$acl_final_prefix" |
| 8998 | acl_save_exec_prefix="$exec_prefix" |
| 8999 | exec_prefix="$acl_final_exec_prefix" |
| 9000 | eval x=\"$x\" |
| 9001 | exec_prefix="$acl_save_exec_prefix" |
| 9002 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9003 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9004 | case "$x" in |
| 9005 | -L*) |
| 9006 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9007 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9008 | found_dir="$dir" |
| 9009 | found_so="$dir/lib$name.$shlibext" |
| 9010 | if test -f "$dir/lib$name.la"; then |
| 9011 | found_la="$dir/lib$name.la" |
| 9012 | fi |
| 9013 | else |
| 9014 | if test -f "$dir/lib$name.$libext"; then |
| 9015 | found_dir="$dir" |
| 9016 | found_a="$dir/lib$name.$libext" |
| 9017 | if test -f "$dir/lib$name.la"; then |
| 9018 | found_la="$dir/lib$name.la" |
| 9019 | fi |
| 9020 | fi |
| 9021 | fi |
| 9022 | ;; |
| 9023 | esac |
| 9024 | if test "X$found_dir" != "X"; then |
| 9025 | break |
| 9026 | fi |
| 9027 | done |
| 9028 | fi |
| 9029 | if test "X$found_dir" != "X"; then |
| 9030 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 9031 | if test "X$found_so" != "X"; then |
| 9032 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9033 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9034 | else |
| 9035 | haveit= |
| 9036 | for x in $ltrpathdirs; do |
| 9037 | if test "X$x" = "X$found_dir"; then |
| 9038 | haveit=yes |
| 9039 | break |
| 9040 | fi |
| 9041 | done |
| 9042 | if test -z "$haveit"; then |
| 9043 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9044 | fi |
| 9045 | if test "$hardcode_direct" = yes; then |
| 9046 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9047 | else |
| 9048 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9049 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9050 | haveit= |
| 9051 | for x in $rpathdirs; do |
| 9052 | if test "X$x" = "X$found_dir"; then |
| 9053 | haveit=yes |
| 9054 | break |
| 9055 | fi |
| 9056 | done |
| 9057 | if test -z "$haveit"; then |
| 9058 | rpathdirs="$rpathdirs $found_dir" |
| 9059 | fi |
| 9060 | else |
| 9061 | haveit= |
| 9062 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9063 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9064 | acl_save_prefix="$prefix" |
| 9065 | prefix="$acl_final_prefix" |
| 9066 | acl_save_exec_prefix="$exec_prefix" |
| 9067 | exec_prefix="$acl_final_exec_prefix" |
| 9068 | eval x=\"$x\" |
| 9069 | exec_prefix="$acl_save_exec_prefix" |
| 9070 | prefix="$acl_save_prefix" |
| 9071 | |
| 9072 | if test "X$x" = "X-L$found_dir"; then |
| 9073 | haveit=yes |
| 9074 | break |
| 9075 | fi |
| 9076 | done |
| 9077 | if test -z "$haveit"; then |
| 9078 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9079 | fi |
| 9080 | if test "$hardcode_minus_L" != no; then |
| 9081 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9082 | else |
| 9083 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9084 | fi |
| 9085 | fi |
| 9086 | fi |
| 9087 | fi |
| 9088 | else |
| 9089 | if test "X$found_a" != "X"; then |
| 9090 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9091 | else |
| 9092 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9093 | fi |
| 9094 | fi |
| 9095 | additional_includedir= |
| 9096 | case "$found_dir" in |
| 9097 | */lib | */lib/) |
| 9098 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9099 | additional_includedir="$basedir/include" |
| 9100 | ;; |
| 9101 | esac |
| 9102 | if test "X$additional_includedir" != "X"; then |
| 9103 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9104 | haveit= |
| 9105 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9106 | if test -n "$GCC"; then |
| 9107 | case $host_os in |
| 9108 | linux*) haveit=yes;; |
| 9109 | esac |
| 9110 | fi |
| 9111 | fi |
| 9112 | if test -z "$haveit"; then |
| 9113 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9114 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9115 | acl_save_prefix="$prefix" |
| 9116 | prefix="$acl_final_prefix" |
| 9117 | acl_save_exec_prefix="$exec_prefix" |
| 9118 | exec_prefix="$acl_final_exec_prefix" |
| 9119 | eval x=\"$x\" |
| 9120 | exec_prefix="$acl_save_exec_prefix" |
| 9121 | prefix="$acl_save_prefix" |
| 9122 | |
| 9123 | if test "X$x" = "X-I$additional_includedir"; then |
| 9124 | haveit=yes |
| 9125 | break |
| 9126 | fi |
| 9127 | done |
| 9128 | if test -z "$haveit"; then |
| 9129 | if test -d "$additional_includedir"; then |
| 9130 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9131 | fi |
| 9132 | fi |
| 9133 | fi |
| 9134 | fi |
| 9135 | fi |
| 9136 | if test -n "$found_la"; then |
| 9137 | save_libdir="$libdir" |
| 9138 | case "$found_la" in |
| 9139 | */* | *\\*) . "$found_la" ;; |
| 9140 | *) . "./$found_la" ;; |
| 9141 | esac |
| 9142 | libdir="$save_libdir" |
| 9143 | for dep in $dependency_libs; do |
| 9144 | case "$dep" in |
| 9145 | -L*) |
| 9146 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9147 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9148 | haveit= |
| 9149 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9150 | if test -n "$GCC"; then |
| 9151 | case $host_os in |
| 9152 | linux*) haveit=yes;; |
| 9153 | esac |
| 9154 | fi |
| 9155 | fi |
| 9156 | if test -z "$haveit"; then |
| 9157 | haveit= |
| 9158 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9159 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9160 | acl_save_prefix="$prefix" |
| 9161 | prefix="$acl_final_prefix" |
| 9162 | acl_save_exec_prefix="$exec_prefix" |
| 9163 | exec_prefix="$acl_final_exec_prefix" |
| 9164 | eval x=\"$x\" |
| 9165 | exec_prefix="$acl_save_exec_prefix" |
| 9166 | prefix="$acl_save_prefix" |
| 9167 | |
| 9168 | if test "X$x" = "X-L$additional_libdir"; then |
| 9169 | haveit=yes |
| 9170 | break |
| 9171 | fi |
| 9172 | done |
| 9173 | if test -z "$haveit"; then |
| 9174 | if test -d "$additional_libdir"; then |
| 9175 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9176 | fi |
| 9177 | fi |
| 9178 | haveit= |
| 9179 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9180 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9181 | acl_save_prefix="$prefix" |
| 9182 | prefix="$acl_final_prefix" |
| 9183 | acl_save_exec_prefix="$exec_prefix" |
| 9184 | exec_prefix="$acl_final_exec_prefix" |
| 9185 | eval x=\"$x\" |
| 9186 | exec_prefix="$acl_save_exec_prefix" |
| 9187 | prefix="$acl_save_prefix" |
| 9188 | |
| 9189 | if test "X$x" = "X-L$additional_libdir"; then |
| 9190 | haveit=yes |
| 9191 | break |
| 9192 | fi |
| 9193 | done |
| 9194 | if test -z "$haveit"; then |
| 9195 | if test -d "$additional_libdir"; then |
| 9196 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9197 | fi |
| 9198 | fi |
| 9199 | fi |
| 9200 | fi |
| 9201 | ;; |
| 9202 | -R*) |
| 9203 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9204 | if test "$enable_rpath" != no; then |
| 9205 | haveit= |
| 9206 | for x in $rpathdirs; do |
| 9207 | if test "X$x" = "X$dir"; then |
| 9208 | haveit=yes |
| 9209 | break |
| 9210 | fi |
| 9211 | done |
| 9212 | if test -z "$haveit"; then |
| 9213 | rpathdirs="$rpathdirs $dir" |
| 9214 | fi |
| 9215 | haveit= |
| 9216 | for x in $ltrpathdirs; do |
| 9217 | if test "X$x" = "X$dir"; then |
| 9218 | haveit=yes |
| 9219 | break |
| 9220 | fi |
| 9221 | done |
| 9222 | if test -z "$haveit"; then |
| 9223 | ltrpathdirs="$ltrpathdirs $dir" |
| 9224 | fi |
| 9225 | fi |
| 9226 | ;; |
| 9227 | -l*) |
| 9228 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9229 | ;; |
| 9230 | *.la) |
| 9231 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9232 | ;; |
| 9233 | *) |
| 9234 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9235 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9236 | ;; |
| 9237 | esac |
| 9238 | done |
| 9239 | fi |
| 9240 | else |
| 9241 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9242 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9243 | fi |
| 9244 | fi |
| 9245 | fi |
| 9246 | done |
| 9247 | done |
| 9248 | if test "X$rpathdirs" != "X"; then |
| 9249 | if test -n "$hardcode_libdir_separator"; then |
| 9250 | alldirs= |
| 9251 | for found_dir in $rpathdirs; do |
| 9252 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9253 | done |
| 9254 | acl_save_libdir="$libdir" |
| 9255 | libdir="$alldirs" |
| 9256 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9257 | libdir="$acl_save_libdir" |
| 9258 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9259 | else |
| 9260 | for found_dir in $rpathdirs; do |
| 9261 | acl_save_libdir="$libdir" |
| 9262 | libdir="$found_dir" |
| 9263 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9264 | libdir="$acl_save_libdir" |
| 9265 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9266 | done |
| 9267 | fi |
| 9268 | fi |
| 9269 | if test "X$ltrpathdirs" != "X"; then |
| 9270 | for found_dir in $ltrpathdirs; do |
| 9271 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9272 | done |
| 9273 | fi |
| 9274 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9275 | { $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] | 9276 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9277 | if ${gt_cv_func_gnugettext1_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9278 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9279 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9280 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9281 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9282 | gt_save_LIBS="$LIBS" |
| 9283 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9285 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9286 | #include <libintl.h> |
| 9287 | extern int _nl_msg_cat_cntr; |
| 9288 | extern |
| 9289 | #ifdef __cplusplus |
| 9290 | "C" |
| 9291 | #endif |
| 9292 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9293 | int |
| 9294 | main () |
| 9295 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9296 | bindtextdomain ("", ""); |
| 9297 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9298 | ; |
| 9299 | return 0; |
| 9300 | } |
| 9301 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9302 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9303 | gt_cv_func_gnugettext1_libintl=yes |
| 9304 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9305 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9306 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9307 | rm -f core conftest.err conftest.$ac_objext \ |
| 9308 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9309 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9310 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9312 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9313 | #include <libintl.h> |
| 9314 | extern int _nl_msg_cat_cntr; |
| 9315 | extern |
| 9316 | #ifdef __cplusplus |
| 9317 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9318 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9319 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9320 | int |
| 9321 | main () |
| 9322 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9323 | bindtextdomain ("", ""); |
| 9324 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9325 | ; |
| 9326 | return 0; |
| 9327 | } |
| 9328 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9329 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9330 | LIBINTL="$LIBINTL $LIBICONV" |
| 9331 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9332 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9334 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9335 | rm -f core conftest.err conftest.$ac_objext \ |
| 9336 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9337 | fi |
| 9338 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9339 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9340 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9341 | { $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] | 9342 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9343 | fi |
| 9344 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9345 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9346 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9347 | && test "$PACKAGE" != gettext-runtime \ |
| 9348 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9349 | gt_use_preinstalled_gnugettext=yes |
| 9350 | else |
| 9351 | LIBINTL= |
| 9352 | LTLIBINTL= |
| 9353 | INCINTL= |
| 9354 | fi |
| 9355 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9356 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9357 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9358 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9359 | fi |
| 9360 | fi |
| 9361 | |
| 9362 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9363 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9364 | USE_INCLUDED_LIBINTL=yes |
| 9365 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9366 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9367 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9368 | fi |
| 9369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9370 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9371 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9372 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9373 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9374 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9375 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9376 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9377 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9378 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9379 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9380 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9381 | else |
| 9382 | USE_NLS=no |
| 9383 | fi |
| 9384 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9385 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9386 | { $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] | 9387 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9389 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9390 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9391 | { $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] | 9392 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9393 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9394 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9395 | gt_source="external libintl" |
| 9396 | else |
| 9397 | gt_source="libc" |
| 9398 | fi |
| 9399 | else |
| 9400 | gt_source="included intl directory" |
| 9401 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9403 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9404 | fi |
| 9405 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9406 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9408 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9409 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9410 | { $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] | 9411 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9413 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9414 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9415 | for element in $INCINTL; do |
| 9416 | haveit= |
| 9417 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9419 | acl_save_prefix="$prefix" |
| 9420 | prefix="$acl_final_prefix" |
| 9421 | acl_save_exec_prefix="$exec_prefix" |
| 9422 | exec_prefix="$acl_final_exec_prefix" |
| 9423 | eval x=\"$x\" |
| 9424 | exec_prefix="$acl_save_exec_prefix" |
| 9425 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9426 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9427 | if test "X$x" = "X$element"; then |
| 9428 | haveit=yes |
| 9429 | break |
| 9430 | fi |
| 9431 | done |
| 9432 | if test -z "$haveit"; then |
| 9433 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9434 | fi |
| 9435 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9436 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9437 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9438 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9439 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9440 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9441 | |
| 9442 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9443 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9444 | |
| 9445 | fi |
| 9446 | |
| 9447 | POSUB=po |
| 9448 | fi |
| 9449 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9450 | |
| 9451 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9452 | BUILD_INCLUDED_LIBINTL=yes |
| 9453 | fi |
| 9454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9455 | |
| 9456 | |
| 9457 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9458 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9459 | nls_cv_header_intl= |
| 9460 | nls_cv_header_libgt= |
| 9461 | |
| 9462 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9464 | |
| 9465 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9466 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9467 | |
| 9468 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9469 | |
| 9470 | |
| 9471 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9472 | INTLOBJS="\$(GETTOBJS)" |
| 9473 | fi |
| 9474 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9475 | |
| 9476 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9477 | |
| 9478 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9479 | |
| 9480 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9481 | |
| 9482 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9483 | |
| 9484 | |
| 9485 | |
| 9486 | |
| 9487 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9488 | { $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] | 9489 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9490 | set x ${MAKE-make} |
| 9491 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9492 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9493 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9494 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9495 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9496 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9497 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9498 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | _ACEOF |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9500 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9501 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9502 | *@@@%%%=?*=@@@%%%*) |
| 9503 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9504 | *) |
| 9505 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9506 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9507 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9508 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9509 | 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] | 9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9511 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9512 | SET_MAKE= |
| 9513 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9515 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9516 | SET_MAKE="MAKE=${MAKE-make}" |
| 9517 | fi |
| 9518 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9519 | { $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] | 9520 | $as_echo_n "checking for GNU make... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9521 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9522 | $as_echo_n "(cached) " >&6 |
| 9523 | else |
| 9524 | _cv_gnu_make_command='' ; |
| 9525 | for a in "$MAKE" make gmake gnumake ; do |
| 9526 | if test -z "$a" ; then continue ; fi ; |
| 9527 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9528 | _cv_gnu_make_command=$a ; |
| 9529 | break; |
| 9530 | fi |
| 9531 | done ; |
| 9532 | |
| 9533 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9534 | { $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] | 9535 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9536 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9537 | ifGNUmake='' ; |
| 9538 | ifNotGNUmake='#' ; |
| 9539 | else |
| 9540 | ifGNUmake='#' ; |
| 9541 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9543 | $as_echo "\"Not found\"" >&6; }; |
| 9544 | fi |
| 9545 | |
| 9546 | |
| 9547 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9548 | # Extract the first word of "ln", so it can be a program name with args. |
| 9549 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9550 | { $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] | 9551 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9552 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9553 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9554 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9555 | case $LN in |
| 9556 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9557 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9558 | ;; |
| 9559 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9561 | for as_dir in $PATH |
| 9562 | do |
| 9563 | IFS=$as_save_IFS |
| 9564 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9565 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9566 | 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] | 9567 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9568 | $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] | 9569 | break 2 |
| 9570 | fi |
| 9571 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9572 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9573 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9574 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9575 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9576 | ;; |
| 9577 | esac |
| 9578 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9579 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9580 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9582 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9583 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9585 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9586 | fi |
| 9587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9588 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9589 | { $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] | 9590 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | LN_S=$as_ln_s |
| 9592 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9594 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9595 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9596 | { $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] | 9597 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9598 | fi |
| 9599 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9600 | # Extract the first word of "mv", so it can be a program name with args. |
| 9601 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9602 | { $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] | 9603 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9604 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9605 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9606 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9607 | case $MV in |
| 9608 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9609 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9610 | ;; |
| 9611 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9613 | for as_dir in $PATH |
| 9614 | do |
| 9615 | IFS=$as_save_IFS |
| 9616 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9617 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9618 | 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] | 9619 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9620 | $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] | 9621 | break 2 |
| 9622 | fi |
| 9623 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9624 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9625 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9626 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9627 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9628 | ;; |
| 9629 | esac |
| 9630 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9631 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9632 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9634 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9635 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9637 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9638 | fi |
| 9639 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9640 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9641 | # Extract the first word of "cp", so it can be a program name with args. |
| 9642 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9643 | { $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] | 9644 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9645 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9646 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9647 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9648 | case $CP in |
| 9649 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9650 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9651 | ;; |
| 9652 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9654 | for as_dir in $PATH |
| 9655 | do |
| 9656 | IFS=$as_save_IFS |
| 9657 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9658 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9659 | 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] | 9660 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9661 | $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] | 9662 | break 2 |
| 9663 | fi |
| 9664 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9665 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9666 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9667 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9668 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9669 | ;; |
| 9670 | esac |
| 9671 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9672 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9673 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9675 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9676 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9678 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9679 | fi |
| 9680 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9681 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9682 | # Extract the first word of "rm", so it can be a program name with args. |
| 9683 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9684 | { $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] | 9685 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9686 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9687 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9688 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9689 | case $RM in |
| 9690 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9691 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9692 | ;; |
| 9693 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9695 | for as_dir in $PATH |
| 9696 | do |
| 9697 | IFS=$as_save_IFS |
| 9698 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9699 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9700 | 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] | 9701 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9702 | $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] | 9703 | break 2 |
| 9704 | fi |
| 9705 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9706 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9707 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9708 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9709 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9710 | ;; |
| 9711 | esac |
| 9712 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9713 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9714 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9716 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9717 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9719 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9720 | fi |
| 9721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9722 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9723 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9724 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9725 | { $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] | 9726 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9727 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9728 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9729 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9730 | case $CHMOD in |
| 9731 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9732 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9733 | ;; |
| 9734 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9736 | for as_dir in $PATH |
| 9737 | do |
| 9738 | IFS=$as_save_IFS |
| 9739 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9740 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9741 | 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] | 9742 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9743 | $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] | 9744 | break 2 |
| 9745 | fi |
| 9746 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9747 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9748 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9749 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9750 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9751 | ;; |
| 9752 | esac |
| 9753 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9754 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9755 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9757 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9758 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9760 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9761 | fi |
| 9762 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9763 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9764 | for ac_prog in gawk mawk nawk awk |
| 9765 | do |
| 9766 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9767 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9768 | { $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] | 9769 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9770 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9771 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9772 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9773 | if test -n "$AWK"; then |
| 9774 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9775 | else |
| 9776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9777 | for as_dir in $PATH |
| 9778 | do |
| 9779 | IFS=$as_save_IFS |
| 9780 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9781 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9782 | 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] | 9783 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9784 | $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] | 9785 | break 2 |
| 9786 | fi |
| 9787 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9788 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9789 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9790 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9791 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9792 | fi |
| 9793 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9794 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9796 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9797 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9799 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9800 | fi |
| 9801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9803 | test -n "$AWK" && break |
| 9804 | done |
| 9805 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9807 | $as_echo_n "checking for egrep... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9808 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9809 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9810 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9811 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9812 | then ac_cv_path_EGREP="$GREP -E" |
| 9813 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9814 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9815 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9816 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9818 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9819 | do |
| 9820 | IFS=$as_save_IFS |
| 9821 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9822 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9824 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9825 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9826 | # 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] | 9827 | # Check for GNU $ac_path_EGREP |
| 9828 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9829 | *GNU*) |
| 9830 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9831 | *) |
| 9832 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9833 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9834 | while : |
| 9835 | do |
| 9836 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9837 | mv "conftest.tmp" "conftest.in" |
| 9838 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9839 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9840 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9841 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9842 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9843 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9844 | # Best one so far, save it but keep looking for a better one |
| 9845 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9846 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9848 | # 10*(2^10) chars as input seems more than enough |
| 9849 | test $ac_count -gt 10 && break |
| 9850 | done |
| 9851 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9852 | esac |
| 9853 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9854 | $ac_path_EGREP_found && break 3 |
| 9855 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9856 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9857 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9858 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9859 | if test -z "$ac_cv_path_EGREP"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9860 | 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] | 9861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9862 | else |
| 9863 | ac_cv_path_EGREP=$EGREP |
| 9864 | fi |
| 9865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9866 | fi |
| 9867 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9868 | { $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] | 9869 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9870 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9871 | |
| 9872 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9873 | # Extract the first word of "sed", so it can be a program name with args. |
| 9874 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9876 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9877 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9878 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9879 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | case $SED in |
| 9881 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9882 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9883 | ;; |
| 9884 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9886 | for as_dir in $PATH |
| 9887 | do |
| 9888 | IFS=$as_save_IFS |
| 9889 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9890 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9891 | 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] | 9892 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9893 | $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] | 9894 | break 2 |
| 9895 | fi |
| 9896 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9897 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9898 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9899 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9900 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9901 | ;; |
| 9902 | esac |
| 9903 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9904 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9905 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9907 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9908 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9910 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9911 | fi |
| 9912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9913 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9914 | # Extract the first word of "perl", so it can be a program name with args. |
| 9915 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9916 | { $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] | 9917 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9918 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9919 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9920 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9921 | case $PERL in |
| 9922 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9923 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9924 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9925 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9927 | for as_dir in $PATH |
| 9928 | do |
| 9929 | IFS=$as_save_IFS |
| 9930 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9931 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9932 | 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] | 9933 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9934 | $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] | 9935 | break 2 |
| 9936 | fi |
| 9937 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9938 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9939 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9940 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9941 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9942 | ;; |
| 9943 | esac |
| 9944 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9945 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9946 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9948 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9949 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9951 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9952 | fi |
| 9953 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9954 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9955 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9956 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9957 | { $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] | 9958 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9959 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9960 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9961 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9962 | case $LDCONFIG in |
| 9963 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9964 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9965 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9966 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9968 | for as_dir in $PATH |
| 9969 | do |
| 9970 | IFS=$as_save_IFS |
| 9971 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9972 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 9973 | 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] | 9974 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9975 | $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] | 9976 | break 2 |
| 9977 | fi |
| 9978 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9979 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9980 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9981 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9982 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9983 | ;; |
| 9984 | esac |
| 9985 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9986 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9987 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9989 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9990 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9992 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9993 | fi |
| 9994 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9995 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9996 | if test -n "$ac_tool_prefix"; then |
| 9997 | # 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] | 9998 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9999 | { $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] | 10000 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10001 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10002 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10003 | else |
| 10004 | if test -n "$AR"; then |
| 10005 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10008 | for as_dir in $PATH |
| 10009 | do |
| 10010 | IFS=$as_save_IFS |
| 10011 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10012 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10013 | 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] | 10014 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10015 | $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] | 10016 | break 2 |
| 10017 | fi |
| 10018 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10019 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10020 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10021 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10022 | fi |
| 10023 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10024 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10025 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10027 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10030 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10031 | fi |
| 10032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10035 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10036 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10037 | # Extract the first word of "ar", so it can be a program name with args. |
| 10038 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | { $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] | 10040 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10041 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10042 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10043 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10044 | if test -n "$ac_ct_AR"; then |
| 10045 | 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] | 10046 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10048 | for as_dir in $PATH |
| 10049 | do |
| 10050 | IFS=$as_save_IFS |
| 10051 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10052 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10053 | 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] | 10054 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10055 | $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] | 10056 | break 2 |
| 10057 | fi |
| 10058 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10059 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10060 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10062 | fi |
| 10063 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10064 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10065 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10066 | { $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] | 10067 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10068 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10070 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10071 | fi |
| 10072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10073 | if test "x$ac_ct_AR" = x; then |
| 10074 | AR="ar" |
| 10075 | else |
| 10076 | case $cross_compiling:$ac_tool_warned in |
| 10077 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10078 | { $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] | 10079 | $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] | 10080 | ac_tool_warned=yes ;; |
| 10081 | esac |
| 10082 | AR=$ac_ct_AR |
| 10083 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10085 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10086 | fi |
| 10087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10088 | if test -n "$ac_tool_prefix"; then |
| 10089 | # 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] | 10090 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10091 | { $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] | 10092 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10093 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10094 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10095 | else |
| 10096 | if test -n "$RANLIB"; then |
| 10097 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10098 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10100 | for as_dir in $PATH |
| 10101 | do |
| 10102 | IFS=$as_save_IFS |
| 10103 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10104 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10105 | 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] | 10106 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10107 | $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] | 10108 | break 2 |
| 10109 | fi |
| 10110 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10111 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10112 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10113 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10114 | fi |
| 10115 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10116 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10117 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10119 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10120 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10122 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10123 | fi |
| 10124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10127 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10128 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10129 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10130 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10131 | { $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] | 10132 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10133 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10134 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10135 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10136 | if test -n "$ac_ct_RANLIB"; then |
| 10137 | 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] | 10138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10140 | for as_dir in $PATH |
| 10141 | do |
| 10142 | IFS=$as_save_IFS |
| 10143 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10144 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10145 | 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] | 10146 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10147 | $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] | 10148 | break 2 |
| 10149 | fi |
| 10150 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10151 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10152 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10153 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10154 | fi |
| 10155 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10156 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10157 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10158 | { $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] | 10159 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10160 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10162 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10163 | fi |
| 10164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10165 | if test "x$ac_ct_RANLIB" = x; then |
| 10166 | RANLIB=":" |
| 10167 | else |
| 10168 | case $cross_compiling:$ac_tool_warned in |
| 10169 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10170 | { $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] | 10171 | $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] | 10172 | ac_tool_warned=yes ;; |
| 10173 | esac |
| 10174 | RANLIB=$ac_ct_RANLIB |
| 10175 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10176 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10177 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10178 | fi |
| 10179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10180 | if test -n "$ac_tool_prefix"; then |
| 10181 | # 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] | 10182 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10183 | { $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] | 10184 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10185 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10186 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10187 | else |
| 10188 | if test -n "$STRIP"; then |
| 10189 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10190 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10192 | for as_dir in $PATH |
| 10193 | do |
| 10194 | IFS=$as_save_IFS |
| 10195 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10196 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10197 | 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] | 10198 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10199 | $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] | 10200 | break 2 |
| 10201 | fi |
| 10202 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10203 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10204 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10205 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10206 | fi |
| 10207 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10208 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10209 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10211 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10212 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10214 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10215 | fi |
| 10216 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10217 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10219 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10220 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10221 | # Extract the first word of "strip", so it can be a program name with args. |
| 10222 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | { $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] | 10224 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10225 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10226 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10227 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10228 | if test -n "$ac_ct_STRIP"; then |
| 10229 | 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] | 10230 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10232 | for as_dir in $PATH |
| 10233 | do |
| 10234 | IFS=$as_save_IFS |
| 10235 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10236 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10237 | 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] | 10238 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10239 | $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] | 10240 | break 2 |
| 10241 | fi |
| 10242 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10243 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10244 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10245 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10246 | fi |
| 10247 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10248 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10249 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10250 | { $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] | 10251 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10252 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10254 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10255 | fi |
| 10256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10257 | if test "x$ac_ct_STRIP" = x; then |
| 10258 | STRIP=":" |
| 10259 | else |
| 10260 | case $cross_compiling:$ac_tool_warned in |
| 10261 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10262 | { $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] | 10263 | $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] | 10264 | ac_tool_warned=yes ;; |
| 10265 | esac |
| 10266 | STRIP=$ac_ct_STRIP |
| 10267 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10268 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10269 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10270 | fi |
| 10271 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10272 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10273 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10274 | { $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] | 10275 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10276 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10277 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10278 | else |
| 10279 | if test -n "$MAKEINFO"; then |
| 10280 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10281 | else |
| 10282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10283 | for as_dir in $PATH |
| 10284 | do |
| 10285 | IFS=$as_save_IFS |
| 10286 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10287 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10288 | 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] | 10289 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10290 | $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] | 10291 | break 2 |
| 10292 | fi |
| 10293 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10294 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10295 | IFS=$as_save_IFS |
| 10296 | |
| 10297 | fi |
| 10298 | fi |
| 10299 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10300 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10302 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10303 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10305 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10306 | fi |
| 10307 | |
| 10308 | |
| 10309 | if test "_$MAKEINFO" = "_"; then |
| 10310 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10311 | else |
| 10312 | case "$MAKEINFO" in |
| 10313 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10315 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10316 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10317 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10318 | ;; |
| 10319 | *) |
| 10320 | ;; |
| 10321 | esac |
| 10322 | fi |
| 10323 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10324 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10325 | # See if we need a separate native compiler. |
| 10326 | if test $cross_compiling = no; then |
| 10327 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10328 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10329 | else |
| 10330 | for ac_prog in gcc cc |
| 10331 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10332 | # 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] | 10333 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10334 | { $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] | 10335 | $as_echo_n "checking for $ac_word... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10336 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10337 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10338 | else |
| 10339 | if test -n "$BUILD_CC"; then |
| 10340 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10341 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10343 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10344 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10345 | IFS=$as_save_IFS |
| 10346 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10347 | for ac_exec_ext in '' $ac_executable_extensions; do |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10348 | 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] | 10349 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10350 | $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] | 10351 | break 2 |
| 10352 | fi |
| 10353 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10354 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10355 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10357 | fi |
| 10358 | fi |
| 10359 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10360 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10362 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10363 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10365 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10366 | fi |
| 10367 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10368 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10369 | test -n "$BUILD_CC" && break |
| 10370 | done |
| 10371 | |
| 10372 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10373 | 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] | 10374 | do : |
| 10375 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10376 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10377 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10378 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10379 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10380 | _ACEOF |
| 10381 | |
| 10382 | fi |
| 10383 | |
| 10384 | done |
| 10385 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10386 | for ac_header in sys/disk.h sys/mount.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_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10390 | #if HAVE_SYS_QUEUE_H |
| 10391 | #include <sys/queue.h> |
| 10392 | #endif |
| 10393 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10394 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10395 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10396 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10397 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10398 | _ACEOF |
| 10399 | |
| 10400 | fi |
| 10401 | |
| 10402 | done |
| 10403 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10404 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10405 | do : |
| 10406 | 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] | 10407 | #if HAVE_SYS_TYPES_H |
| 10408 | #include <sys/types.h> |
| 10409 | #endif |
| 10410 | #if HAVE_SYS_SOCKET |
| 10411 | #include <sys/socket.h> |
| 10412 | #endif |
| 10413 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10414 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10415 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10416 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10417 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10418 | _ACEOF |
| 10419 | |
| 10420 | fi |
| 10421 | |
| 10422 | done |
| 10423 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10424 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10425 | do : |
| 10426 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10427 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10428 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10429 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10432 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10433 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10434 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10435 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10436 | |
| 10437 | fi |
| 10438 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10439 | fi |
| 10440 | done |
| 10441 | |
| 10442 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10443 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10444 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10445 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
| 10446 | |
| 10447 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10448 | |
| 10449 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10450 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10451 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10452 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10453 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 10454 | |
| 10455 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10456 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10457 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10458 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10459 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10460 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10461 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
| 10462 | |
| 10463 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10464 | |
| 10465 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10466 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10467 | 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] | 10468 | #define _LARGEFILE64_SOURCE |
| 10469 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10470 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10471 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
| 10472 | |
| 10473 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10474 | |
| 10475 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10476 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10477 | # The cast to long int works around a bug in the HP C Compiler |
| 10478 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10479 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10480 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10481 | { $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] | 10482 | $as_echo_n "checking size of short... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10483 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10484 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10485 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10486 | 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] | 10487 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10488 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10489 | if test "$ac_cv_type_short" = yes; then |
| 10490 | { { $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] | 10491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10492 | as_fn_error 77 "cannot compute sizeof (short) |
| 10493 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10494 | else |
| 10495 | ac_cv_sizeof_short=0 |
| 10496 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10497 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10499 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10500 | { $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] | 10501 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10502 | |
| 10503 | |
| 10504 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10505 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10506 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10507 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10508 | |
| 10509 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10510 | # The cast to long int works around a bug in the HP C Compiler |
| 10511 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10512 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10513 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10514 | { $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] | 10515 | $as_echo_n "checking size of int... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10516 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10517 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10518 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10519 | 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] | 10520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10522 | if test "$ac_cv_type_int" = yes; then |
| 10523 | { { $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] | 10524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10525 | as_fn_error 77 "cannot compute sizeof (int) |
| 10526 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10527 | else |
| 10528 | ac_cv_sizeof_int=0 |
| 10529 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10530 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10531 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10532 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10533 | { $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] | 10534 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10535 | |
| 10536 | |
| 10537 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10538 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10539 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10540 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10541 | |
| 10542 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10543 | # The cast to long int works around a bug in the HP C Compiler |
| 10544 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10545 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10546 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10547 | { $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] | 10548 | $as_echo_n "checking size of long... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10549 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10550 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10551 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10552 | 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] | 10553 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10554 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10555 | if test "$ac_cv_type_long" = yes; then |
| 10556 | { { $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] | 10557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10558 | as_fn_error 77 "cannot compute sizeof (long) |
| 10559 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10560 | else |
| 10561 | ac_cv_sizeof_long=0 |
| 10562 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10563 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10565 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10566 | { $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] | 10567 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10568 | |
| 10569 | |
| 10570 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10571 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10572 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10573 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10574 | |
| 10575 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10576 | # The cast to long int works around a bug in the HP C Compiler |
| 10577 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10578 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10579 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10580 | { $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] | 10581 | $as_echo_n "checking size of long long... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10582 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10583 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10584 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10585 | 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] | 10586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10587 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10588 | if test "$ac_cv_type_long_long" = yes; then |
| 10589 | { { $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] | 10590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10591 | as_fn_error 77 "cannot compute sizeof (long long) |
| 10592 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10593 | else |
| 10594 | ac_cv_sizeof_long_long=0 |
| 10595 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10596 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10597 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10598 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10599 | { $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] | 10600 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10601 | |
| 10602 | |
| 10603 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10604 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10605 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10606 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10607 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10608 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10609 | # The cast to long int works around a bug in the HP C Compiler |
| 10610 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10611 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10612 | # This bug is HP SR number 8606223364. |
| 10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 10614 | $as_echo_n "checking size of off_t... " >&6; } |
| 10615 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 10616 | $as_echo_n "(cached) " >&6 |
| 10617 | else |
| 10618 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 10619 | |
| 10620 | else |
| 10621 | if test "$ac_cv_type_off_t" = yes; then |
| 10622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10624 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 10625 | See \`config.log' for more details" "$LINENO" 5; } |
| 10626 | else |
| 10627 | ac_cv_sizeof_off_t=0 |
| 10628 | fi |
| 10629 | fi |
| 10630 | |
| 10631 | fi |
| 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 10633 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 10634 | |
| 10635 | |
| 10636 | |
| 10637 | cat >>confdefs.h <<_ACEOF |
| 10638 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 10639 | _ACEOF |
| 10640 | |
| 10641 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10642 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10643 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10644 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10645 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10646 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 10647 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10648 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10649 | |
| 10650 | |
| 10651 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10652 | { $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] | 10653 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10654 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10655 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10656 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10657 | ac_cv_c_bigendian=unknown |
| 10658 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10660 | /* end confdefs.h. */ |
| 10661 | #ifndef __APPLE_CC__ |
| 10662 | not a universal capable compiler |
| 10663 | #endif |
| 10664 | typedef int dummy; |
| 10665 | |
| 10666 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10667 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10668 | |
| 10669 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10670 | # there are at least two -arch flags with different values. |
| 10671 | ac_arch= |
| 10672 | ac_prev= |
| 10673 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10674 | if test -n "$ac_prev"; then |
| 10675 | case $ac_word in |
| 10676 | i?86 | x86_64 | ppc | ppc64) |
| 10677 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10678 | ac_arch=$ac_word |
| 10679 | else |
| 10680 | ac_cv_c_bigendian=universal |
| 10681 | break |
| 10682 | fi |
| 10683 | ;; |
| 10684 | esac |
| 10685 | ac_prev= |
| 10686 | elif test "x$ac_word" = "x-arch"; then |
| 10687 | ac_prev=arch |
| 10688 | fi |
| 10689 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10690 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10692 | if test $ac_cv_c_bigendian = unknown; then |
| 10693 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10695 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10696 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10697 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10699 | int |
| 10700 | main () |
| 10701 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10702 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10703 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10704 | && LITTLE_ENDIAN) |
| 10705 | bogus endian macros |
| 10706 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10707 | |
| 10708 | ; |
| 10709 | return 0; |
| 10710 | } |
| 10711 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10712 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10713 | # 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] | 10714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10715 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10716 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10717 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10719 | int |
| 10720 | main () |
| 10721 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10722 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10723 | not big endian |
| 10724 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10725 | |
| 10726 | ; |
| 10727 | return 0; |
| 10728 | } |
| 10729 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10730 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10731 | ac_cv_c_bigendian=yes |
| 10732 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10733 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10736 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10738 | fi |
| 10739 | if test $ac_cv_c_bigendian = unknown; then |
| 10740 | # 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] | 10741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10742 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10743 | #include <limits.h> |
| 10744 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10745 | int |
| 10746 | main () |
| 10747 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10748 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10749 | bogus endian macros |
| 10750 | #endif |
| 10751 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10752 | ; |
| 10753 | return 0; |
| 10754 | } |
| 10755 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10756 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10757 | # 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] | 10758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10759 | /* end confdefs.h. */ |
| 10760 | #include <limits.h> |
| 10761 | |
| 10762 | int |
| 10763 | main () |
| 10764 | { |
| 10765 | #ifndef _BIG_ENDIAN |
| 10766 | not big endian |
| 10767 | #endif |
| 10768 | |
| 10769 | ; |
| 10770 | return 0; |
| 10771 | } |
| 10772 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10773 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10774 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10775 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10776 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10777 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10779 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10781 | fi |
| 10782 | if test $ac_cv_c_bigendian = unknown; then |
| 10783 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10784 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10785 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10787 | /* end confdefs.h. */ |
| 10788 | short int ascii_mm[] = |
| 10789 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10790 | short int ascii_ii[] = |
| 10791 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10792 | int use_ascii (int i) { |
| 10793 | return ascii_mm[i] + ascii_ii[i]; |
| 10794 | } |
| 10795 | short int ebcdic_ii[] = |
| 10796 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10797 | short int ebcdic_mm[] = |
| 10798 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10799 | int use_ebcdic (int i) { |
| 10800 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10801 | } |
| 10802 | extern int foo; |
| 10803 | |
| 10804 | int |
| 10805 | main () |
| 10806 | { |
| 10807 | return use_ascii (foo) == use_ebcdic (foo); |
| 10808 | ; |
| 10809 | return 0; |
| 10810 | } |
| 10811 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10812 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10813 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10814 | ac_cv_c_bigendian=yes |
| 10815 | fi |
| 10816 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10817 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10818 | ac_cv_c_bigendian=no |
| 10819 | else |
| 10820 | # finding both strings is unlikely to happen, but who knows? |
| 10821 | ac_cv_c_bigendian=unknown |
| 10822 | fi |
| 10823 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10824 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10826 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10828 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10829 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10830 | int |
| 10831 | main () |
| 10832 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10833 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10834 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10835 | union |
| 10836 | { |
| 10837 | long int l; |
| 10838 | char c[sizeof (long int)]; |
| 10839 | } u; |
| 10840 | u.l = 1; |
| 10841 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10842 | |
| 10843 | ; |
| 10844 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10845 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10846 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10847 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10848 | ac_cv_c_bigendian=no |
| 10849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10850 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10851 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10852 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10853 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10854 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10855 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10856 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10857 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10858 | { $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] | 10859 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10860 | case $ac_cv_c_bigendian in #( |
| 10861 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10862 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10863 | ;; #( |
| 10864 | no) |
| 10865 | ;; #( |
| 10866 | universal) |
| 10867 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10868 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10869 | |
| 10870 | ;; #( |
| 10871 | *) |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10872 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10873 | 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] | 10874 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10875 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10876 | 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] | 10877 | ASM_TYPES_HEADER=./asm_types.h |
| 10878 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10879 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10880 | > public_config.h |
| 10881 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10882 | uniq tmp_config.$$ >> public_config.h |
| 10883 | else |
| 10884 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10885 | fi |
| 10886 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10887 | uniq tmp_config.$$ >> public_config.h |
| 10888 | else |
| 10889 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10890 | fi |
| 10891 | rm -f tmp_config.$$ |
| 10892 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10893 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10894 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10895 | do : |
| 10896 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10897 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10898 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10899 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10900 | _ACEOF |
| 10901 | |
| 10902 | fi |
| 10903 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10904 | done |
| 10905 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10906 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10907 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10908 | |
| 10909 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10910 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10911 | _ACEOF |
| 10912 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10914 | fi |
| 10915 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10916 | { $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] | 10917 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10918 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10919 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10920 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10922 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10923 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10924 | int |
| 10925 | main () |
| 10926 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10927 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10928 | ; |
| 10929 | return 0; |
| 10930 | } |
| 10931 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10932 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10933 | e2fsprogs_cv_struct_st_flags=yes |
| 10934 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10935 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10936 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10938 | fi |
| 10939 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10940 | { $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] | 10941 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10942 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10943 | { $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] | 10944 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10945 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10946 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10947 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10949 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10950 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10951 | int |
| 10952 | main () |
| 10953 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10954 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10959 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10960 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10961 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10962 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10965 | fi |
| 10966 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10967 | { $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] | 10968 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10969 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10970 | |
| 10971 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10972 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10973 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10974 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10975 | 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] | 10976 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10977 | " |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10978 | 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] | 10979 | |
| 10980 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10981 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10982 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10983 | |
| 10984 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10985 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10986 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10987 | { $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] | 10988 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 10989 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10990 | $as_echo_n "(cached) " >&6 |
| 10991 | else |
| 10992 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10994 | /* end confdefs.h. */ |
| 10995 | |
| 10996 | /* Override any GCC internal prototype to avoid an error. |
| 10997 | Use char because int might match the return type of a GCC |
| 10998 | builtin and then its argument prototype would still apply. */ |
| 10999 | #ifdef __cplusplus |
| 11000 | extern "C" |
| 11001 | #endif |
| 11002 | char blkid_probe_all (); |
| 11003 | int |
| 11004 | main () |
| 11005 | { |
| 11006 | return blkid_probe_all (); |
| 11007 | ; |
| 11008 | return 0; |
| 11009 | } |
| 11010 | _ACEOF |
| 11011 | for ac_lib in '' blkid; do |
| 11012 | if test -z "$ac_lib"; then |
| 11013 | ac_res="none required" |
| 11014 | else |
| 11015 | ac_res=-l$ac_lib |
| 11016 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11017 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11018 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11019 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11020 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11021 | rm -f core conftest.err conftest.$ac_objext \ |
| 11022 | conftest$ac_exeext |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11023 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11024 | break |
| 11025 | fi |
| 11026 | done |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11027 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11028 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11029 | else |
| 11030 | ac_cv_search_blkid_probe_all=no |
| 11031 | fi |
| 11032 | rm conftest.$ac_ext |
| 11033 | LIBS=$ac_func_search_save_LIBS |
| 11034 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11035 | { $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] | 11036 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 11037 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11038 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11039 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11040 | |
| 11041 | fi |
| 11042 | |
| 11043 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11044 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom 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] | 11045 | do : |
| 11046 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11047 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11048 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11049 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11050 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11051 | _ACEOF |
| 11052 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11053 | fi |
| 11054 | done |
| 11055 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11056 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11057 | { $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] | 11058 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11059 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11060 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11061 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11062 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11063 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11065 | /* end confdefs.h. */ |
| 11066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11067 | /* Override any GCC internal prototype to avoid an error. |
| 11068 | Use char because int might match the return type of a GCC |
| 11069 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11070 | #ifdef __cplusplus |
| 11071 | extern "C" |
| 11072 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11073 | char socket (); |
| 11074 | int |
| 11075 | main () |
| 11076 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11077 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11078 | ; |
| 11079 | return 0; |
| 11080 | } |
| 11081 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11082 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11083 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11084 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11085 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11086 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11087 | rm -f core conftest.err conftest.$ac_objext \ |
| 11088 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11089 | LIBS=$ac_check_lib_save_LIBS |
| 11090 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11091 | { $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] | 11092 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11093 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11094 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11095 | fi |
| 11096 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11097 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11099 | $as_echo_n "checking for optreset... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11100 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11101 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11102 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11104 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11105 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11106 | |
| 11107 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11108 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11109 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11110 | ac_cv_have_optreset=yes |
| 11111 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11112 | ac_cv_have_optreset=no |
| 11113 | fi |
| 11114 | rm -f conftest* |
| 11115 | |
| 11116 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11117 | { $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] | 11118 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11119 | if test $ac_cv_have_optreset = yes; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11120 | |
| 11121 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11122 | |
| 11123 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11124 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11125 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11126 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11127 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11128 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11129 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11130 | { $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] | 11131 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11132 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11133 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11134 | else |
| 11135 | ac_check_lib_save_LIBS=$LIBS |
| 11136 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11138 | /* end confdefs.h. */ |
| 11139 | |
| 11140 | /* Override any GCC internal prototype to avoid an error. |
| 11141 | Use char because int might match the return type of a GCC |
| 11142 | builtin and then its argument prototype would still apply. */ |
| 11143 | #ifdef __cplusplus |
| 11144 | extern "C" |
| 11145 | #endif |
| 11146 | char sem_init (); |
| 11147 | int |
| 11148 | main () |
| 11149 | { |
| 11150 | return sem_init (); |
| 11151 | ; |
| 11152 | return 0; |
| 11153 | } |
| 11154 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11155 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11156 | ac_cv_lib_pthread_sem_init=yes |
| 11157 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11158 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11159 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11160 | rm -f core conftest.err conftest.$ac_objext \ |
| 11161 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11162 | LIBS=$ac_check_lib_save_LIBS |
| 11163 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11164 | { $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] | 11165 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11166 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11167 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11168 | |
| 11169 | SEM_INIT_LIB=-lpthread |
| 11170 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11171 | { $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] | 11172 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11173 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11174 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11175 | else |
| 11176 | ac_check_lib_save_LIBS=$LIBS |
| 11177 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11179 | /* end confdefs.h. */ |
| 11180 | |
| 11181 | /* Override any GCC internal prototype to avoid an error. |
| 11182 | Use char because int might match the return type of a GCC |
| 11183 | builtin and then its argument prototype would still apply. */ |
| 11184 | #ifdef __cplusplus |
| 11185 | extern "C" |
| 11186 | #endif |
| 11187 | char sem_init (); |
| 11188 | int |
| 11189 | main () |
| 11190 | { |
| 11191 | return sem_init (); |
| 11192 | ; |
| 11193 | return 0; |
| 11194 | } |
| 11195 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11196 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11197 | ac_cv_lib_rt_sem_init=yes |
| 11198 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11199 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11200 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11201 | rm -f core conftest.err conftest.$ac_objext \ |
| 11202 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11203 | LIBS=$ac_check_lib_save_LIBS |
| 11204 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11205 | { $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] | 11206 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11207 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11208 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11209 | |
| 11210 | SEM_INIT_LIB=-lrt |
| 11211 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11212 | { $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] | 11213 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11214 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11215 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11216 | else |
| 11217 | ac_check_lib_save_LIBS=$LIBS |
| 11218 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11220 | /* end confdefs.h. */ |
| 11221 | |
| 11222 | /* Override any GCC internal prototype to avoid an error. |
| 11223 | Use char because int might match the return type of a GCC |
| 11224 | builtin and then its argument prototype would still apply. */ |
| 11225 | #ifdef __cplusplus |
| 11226 | extern "C" |
| 11227 | #endif |
| 11228 | char sem_init (); |
| 11229 | int |
| 11230 | main () |
| 11231 | { |
| 11232 | return sem_init (); |
| 11233 | ; |
| 11234 | return 0; |
| 11235 | } |
| 11236 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11237 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11238 | ac_cv_lib_posix4_sem_init=yes |
| 11239 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11240 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11241 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11242 | rm -f core conftest.err conftest.$ac_objext \ |
| 11243 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11244 | LIBS=$ac_check_lib_save_LIBS |
| 11245 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11246 | { $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] | 11247 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11248 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11249 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11250 | |
| 11251 | SEM_INIT_LIB=-lposix4 |
| 11252 | fi |
| 11253 | |
| 11254 | fi |
| 11255 | |
| 11256 | fi |
| 11257 | |
| 11258 | fi |
| 11259 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11260 | { $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] | 11261 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11262 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11263 | UNI_DIFF_OPTS=-u |
| 11264 | else |
| 11265 | UNI_DIFF_OPTS=-c |
| 11266 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11267 | { $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] | 11268 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11269 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11270 | case "$host_os" in |
| 11271 | linux*) |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11272 | |
| 11273 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11274 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11275 | ;; |
| 11276 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11277 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11278 | CYGWIN_CMT="#" |
| 11279 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11280 | case "$host_os" in |
| 11281 | linux*) |
| 11282 | LINUX_CMT= |
| 11283 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11284 | cygwin) |
| 11285 | CYGWIN_CMT= |
| 11286 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11287 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11288 | esac |
| 11289 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11290 | |
| 11291 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11292 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11293 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11294 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11295 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11296 | { $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] | 11297 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11298 | fi |
| 11299 | ;; |
| 11300 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11301 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11302 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11303 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11304 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11305 | { $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] | 11306 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11307 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11308 | { $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] | 11309 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11310 | mandir=/usr/share/man |
| 11311 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11312 | fi |
| 11313 | ;; |
| 11314 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11315 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11316 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11317 | root_prefix="$ac_default_prefix" |
| 11318 | else |
| 11319 | root_prefix="$prefix" |
| 11320 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11321 | root_bindir=$bindir |
| 11322 | root_sbindir=$sbindir |
| 11323 | root_libdir=$libdir |
| 11324 | root_sysconfdir=$sysconfdir |
| 11325 | else |
| 11326 | root_bindir='${root_prefix}/bin' |
| 11327 | root_sbindir='${root_prefix}/sbin' |
| 11328 | root_libdir='${root_prefix}/lib' |
| 11329 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11330 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11331 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11332 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11333 | { $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] | 11334 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11335 | fi |
| 11336 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11337 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11338 | { $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] | 11339 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11340 | fi |
| 11341 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11342 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11343 | { $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] | 11344 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11345 | fi |
| 11346 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11347 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11348 | { $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] | 11349 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11350 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11351 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11356 | |
| 11357 | # Check whether --with-multiarch was given. |
| 11358 | if test "${with_multiarch+set}" = set; then : |
| 11359 | withval=$with_multiarch; libdir=$libdir/$withval |
| 11360 | root_libdir=$root_libdir/$withval |
| 11361 | |
| 11362 | fi |
| 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 11364 | $as_echo_n "checking whether we can link with -static... " >&6; } |
| 11365 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11366 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11367 | else |
| 11368 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11371 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11372 | int |
| 11373 | main () |
| 11374 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11375 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | ; |
| 11377 | return 0; |
| 11378 | } |
| 11379 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11380 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11381 | ac_cv_e2fsprogs_use_static=yes |
| 11382 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11383 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11384 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11385 | rm -f core conftest.err conftest.$ac_objext \ |
| 11386 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11387 | LDFLAGS=$SAVE_LDFLAGS |
| 11388 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11389 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11390 | case "$host_os" in |
| 11391 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11392 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11393 | ;; |
| 11394 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11395 | { $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] | 11396 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11397 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11398 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11399 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11400 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11401 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11402 | case "$host_os" in |
| 11403 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11404 | { $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] | 11405 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11406 | |
| 11407 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11408 | |
| 11409 | ;; |
| 11410 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11411 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11412 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11413 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11414 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11415 | if test "$cross_compiling" = yes ; then |
| 11416 | DO_TEST_SUITE= |
| 11417 | else |
| 11418 | DO_TEST_SUITE=check |
| 11419 | fi |
| 11420 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11421 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11422 | if test -n "$CPPFLAGS" ; then |
| 11423 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11424 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11425 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11426 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11427 | fi |
| 11428 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11429 | if test $cross_compiling = no; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11430 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11431 | BUILD_LDFLAGS="$LDFLAGS" |
| 11432 | else |
| 11433 | BUILD_CFLAGS= |
| 11434 | BUILD_LDFLAGS= |
| 11435 | fi |
| 11436 | |
| 11437 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11438 | test -d lib || mkdir lib |
| 11439 | test -d include || mkdir include |
| 11440 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11441 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11442 | for i in MCONFIG Makefile e2fsprogs.spec \ |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11443 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11444 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11445 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11446 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11447 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11448 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11449 | 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] | 11450 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11451 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11452 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11453 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11454 | if test -d `dirname ${srcdir}/$i` ; then |
| 11455 | outlist="$outlist $i" |
| 11456 | fi |
| 11457 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11458 | ac_config_files="$ac_config_files $outlist" |
| 11459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11460 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11461 | # This file is a shell script that caches the results of configure |
| 11462 | # 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] | 11463 | # scripts and configure runs, see configure's option --config-cache. |
| 11464 | # It is not useful on other systems. If it contains results you don't |
| 11465 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11466 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11467 | # config.status only pays attention to the cache file if you give it |
| 11468 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11469 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11471 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11472 | # following values. |
| 11473 | |
| 11474 | _ACEOF |
| 11475 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11476 | # The following way of writing the cache mishandles newlines in values, |
| 11477 | # 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] | 11478 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11479 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11480 | # 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] | 11481 | ( |
| 11482 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11483 | eval ac_val=\$$ac_var |
| 11484 | case $ac_val in #( |
| 11485 | *${as_nl}*) |
| 11486 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11487 | *_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] | 11488 | $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] | 11489 | esac |
| 11490 | case $ac_var in #( |
| 11491 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11492 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11493 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11494 | esac ;; |
| 11495 | esac |
| 11496 | done |
| 11497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11498 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11499 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11500 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11501 | # `set' does not quote correctly, so add quotes: double-quote |
| 11502 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11503 | sed -n \ |
| 11504 | "s/'/'\\\\''/g; |
| 11505 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11506 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11507 | *) |
| 11508 | # `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] | 11509 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11510 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11511 | esac | |
| 11512 | sort |
| 11513 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11514 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11515 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11517 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11518 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11519 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11520 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11521 | :end' >>confcache |
| 11522 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11523 | if test -w "$cache_file"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11524 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11525 | { $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] | 11526 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11527 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11528 | cat confcache >"$cache_file" |
| 11529 | else |
| 11530 | case $cache_file in #( |
| 11531 | */* | ?:*) |
| 11532 | mv -f confcache "$cache_file"$$ && |
| 11533 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11534 | *) |
| 11535 | mv -f confcache "$cache_file" ;; |
| 11536 | esac |
| 11537 | fi |
| 11538 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11540 | { $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] | 11541 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11542 | fi |
| 11543 | fi |
| 11544 | rm -f confcache |
| 11545 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11546 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11547 | # Let make expand exec_prefix. |
| 11548 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11549 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11550 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | ac_libobjs= |
| 11553 | ac_ltlibobjs= |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11554 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11555 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11556 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11557 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11558 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11559 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11560 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11561 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11562 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11563 | done |
| 11564 | LIBOBJS=$ac_libobjs |
| 11565 | |
| 11566 | LTLIBOBJS=$ac_ltlibobjs |
| 11567 | |
| 11568 | |
| 11569 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11570 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11571 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11572 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11573 | ac_clean_files_save=$ac_clean_files |
| 11574 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11576 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11577 | as_write_fail=0 |
| 11578 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11579 | #! $SHELL |
| 11580 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11581 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11582 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11583 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11584 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11585 | debug=false |
| 11586 | ac_cs_recheck=false |
| 11587 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11588 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11589 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11590 | export SHELL |
| 11591 | _ASEOF |
| 11592 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11593 | ## -------------------- ## |
| 11594 | ## M4sh Initialization. ## |
| 11595 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11596 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11597 | # Be more Bourne compatible |
| 11598 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11599 | 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] | 11600 | emulate sh |
| 11601 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11602 | # 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] | 11603 | # is contrary to our usage. Disable this feature. |
| 11604 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11605 | setopt NO_GLOB_SUBST |
| 11606 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11607 | case `(set -o) 2>/dev/null` in #( |
| 11608 | *posix*) : |
| 11609 | set -o posix ;; #( |
| 11610 | *) : |
| 11611 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11612 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11613 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11614 | |
| 11615 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11616 | as_nl=' |
| 11617 | ' |
| 11618 | export as_nl |
| 11619 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11620 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11621 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11622 | 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] | 11623 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11624 | # but without wasting forks for bash or zsh. |
| 11625 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11626 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11627 | as_echo='print -r --' |
| 11628 | as_echo_n='print -rn --' |
| 11629 | 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] | 11630 | as_echo='printf %s\n' |
| 11631 | as_echo_n='printf %s' |
| 11632 | else |
| 11633 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11634 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11635 | as_echo_n='/usr/ucb/echo -n' |
| 11636 | else |
| 11637 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11638 | as_echo_n_body='eval |
| 11639 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11640 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11641 | *"$as_nl"*) |
| 11642 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11643 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11644 | esac; |
| 11645 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11646 | ' |
| 11647 | export as_echo_n_body |
| 11648 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11649 | fi |
| 11650 | export as_echo_body |
| 11651 | as_echo='sh -c $as_echo_body as_echo' |
| 11652 | fi |
| 11653 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11654 | # The user is always right. |
| 11655 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11656 | PATH_SEPARATOR=: |
| 11657 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11658 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11659 | PATH_SEPARATOR=';' |
| 11660 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11661 | fi |
| 11662 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11663 | |
| 11664 | # IFS |
| 11665 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11666 | # there to prevent editors from complaining about space-tab. |
| 11667 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11668 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11669 | IFS=" "" $as_nl" |
| 11670 | |
| 11671 | # Find who we are. Look in the path if we contain no directory separator. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11672 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11673 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11674 | *[\\/]* ) as_myself=$0 ;; |
| 11675 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11676 | for as_dir in $PATH |
| 11677 | do |
| 11678 | IFS=$as_save_IFS |
| 11679 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11680 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11681 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11682 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11683 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11684 | ;; |
| 11685 | esac |
| 11686 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11687 | # in which case we are not to be found in the path. |
| 11688 | if test "x$as_myself" = x; then |
| 11689 | as_myself=$0 |
| 11690 | fi |
| 11691 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11692 | $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] | 11693 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11694 | fi |
| 11695 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11696 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11697 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11698 | # suppresses any "Segmentation fault" message there. '((' could |
| 11699 | # trigger a bug in pdksh 5.2.14. |
| 11700 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11701 | do eval test x\${$as_var+set} = xset \ |
| 11702 | && ( (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] | 11703 | done |
| 11704 | PS1='$ ' |
| 11705 | PS2='> ' |
| 11706 | PS4='+ ' |
| 11707 | |
| 11708 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11709 | LC_ALL=C |
| 11710 | export LC_ALL |
| 11711 | LANGUAGE=C |
| 11712 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11713 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11714 | # CDPATH. |
| 11715 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11716 | |
| 11717 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11718 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11719 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11720 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11721 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11722 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11723 | as_fn_error () |
| 11724 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11725 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11726 | if test "$4"; then |
| 11727 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11728 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11729 | fi |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11730 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11731 | as_fn_exit $as_status |
| 11732 | } # as_fn_error |
| 11733 | |
| 11734 | |
| 11735 | # as_fn_set_status STATUS |
| 11736 | # ----------------------- |
| 11737 | # Set $? to STATUS, without forking. |
| 11738 | as_fn_set_status () |
| 11739 | { |
| 11740 | return $1 |
| 11741 | } # as_fn_set_status |
| 11742 | |
| 11743 | # as_fn_exit STATUS |
| 11744 | # ----------------- |
| 11745 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11746 | as_fn_exit () |
| 11747 | { |
| 11748 | set +e |
| 11749 | as_fn_set_status $1 |
| 11750 | exit $1 |
| 11751 | } # as_fn_exit |
| 11752 | |
| 11753 | # as_fn_unset VAR |
| 11754 | # --------------- |
| 11755 | # Portably unset VAR. |
| 11756 | as_fn_unset () |
| 11757 | { |
| 11758 | { eval $1=; unset $1;} |
| 11759 | } |
| 11760 | as_unset=as_fn_unset |
| 11761 | # as_fn_append VAR VALUE |
| 11762 | # ---------------------- |
| 11763 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11764 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11765 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11766 | # implementations. |
| 11767 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11768 | eval 'as_fn_append () |
| 11769 | { |
| 11770 | eval $1+=\$2 |
| 11771 | }' |
| 11772 | else |
| 11773 | as_fn_append () |
| 11774 | { |
| 11775 | eval $1=\$$1\$2 |
| 11776 | } |
| 11777 | fi # as_fn_append |
| 11778 | |
| 11779 | # as_fn_arith ARG... |
| 11780 | # ------------------ |
| 11781 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11782 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11783 | # must be portable across $(()) and expr. |
| 11784 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11785 | eval 'as_fn_arith () |
| 11786 | { |
| 11787 | as_val=$(( $* )) |
| 11788 | }' |
| 11789 | else |
| 11790 | as_fn_arith () |
| 11791 | { |
| 11792 | as_val=`expr "$@" || test $? -eq 1` |
| 11793 | } |
| 11794 | fi # as_fn_arith |
| 11795 | |
| 11796 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11797 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11798 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11799 | as_expr=expr |
| 11800 | else |
| 11801 | as_expr=false |
| 11802 | fi |
| 11803 | |
| 11804 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11805 | as_basename=basename |
| 11806 | else |
| 11807 | as_basename=false |
| 11808 | fi |
| 11809 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11810 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11811 | as_dirname=dirname |
| 11812 | else |
| 11813 | as_dirname=false |
| 11814 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11816 | as_me=`$as_basename -- "$0" || |
| 11817 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11818 | X"$0" : 'X\(//\)$' \| \ |
| 11819 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11820 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11821 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11822 | s//\1/ |
| 11823 | q |
| 11824 | } |
| 11825 | /^X\/\(\/\/\)$/{ |
| 11826 | s//\1/ |
| 11827 | q |
| 11828 | } |
| 11829 | /^X\/\(\/\).*/{ |
| 11830 | s//\1/ |
| 11831 | q |
| 11832 | } |
| 11833 | s/.*/./; q'` |
| 11834 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11835 | # Avoid depending upon Character Ranges. |
| 11836 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11837 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11838 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11839 | as_cr_digits='0123456789' |
| 11840 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11841 | |
| 11842 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11843 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11844 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11845 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11846 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11847 | xy) ECHO_C='\c';; |
| 11848 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11849 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11850 | esac;; |
| 11851 | *) |
| 11852 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11853 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11854 | |
| 11855 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11856 | if test -d conf$$.dir; then |
| 11857 | rm -f conf$$.dir/conf$$.file |
| 11858 | else |
| 11859 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11860 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11861 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11862 | if (echo >conf$$.file) 2>/dev/null; then |
| 11863 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11864 | as_ln_s='ln -s' |
| 11865 | # ... but there are two gotchas: |
| 11866 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11867 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11868 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11869 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11870 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11871 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11872 | as_ln_s=ln |
| 11873 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11874 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11875 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11876 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11877 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11878 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11879 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11880 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11881 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11882 | |
| 11883 | # as_fn_mkdir_p |
| 11884 | # ------------- |
| 11885 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11886 | as_fn_mkdir_p () |
| 11887 | { |
| 11888 | |
| 11889 | case $as_dir in #( |
| 11890 | -*) as_dir=./$as_dir;; |
| 11891 | esac |
| 11892 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11893 | as_dirs= |
| 11894 | while :; do |
| 11895 | case $as_dir in #( |
| 11896 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11897 | *) as_qdir=$as_dir;; |
| 11898 | esac |
| 11899 | as_dirs="'$as_qdir' $as_dirs" |
| 11900 | as_dir=`$as_dirname -- "$as_dir" || |
| 11901 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11902 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11903 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11904 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11905 | $as_echo X"$as_dir" | |
| 11906 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11907 | s//\1/ |
| 11908 | q |
| 11909 | } |
| 11910 | /^X\(\/\/\)[^/].*/{ |
| 11911 | s//\1/ |
| 11912 | q |
| 11913 | } |
| 11914 | /^X\(\/\/\)$/{ |
| 11915 | s//\1/ |
| 11916 | q |
| 11917 | } |
| 11918 | /^X\(\/\).*/{ |
| 11919 | s//\1/ |
| 11920 | q |
| 11921 | } |
| 11922 | s/.*/./; q'` |
| 11923 | test -d "$as_dir" && break |
| 11924 | done |
| 11925 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11926 | } || 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] | 11927 | |
| 11928 | |
| 11929 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11930 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11931 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11932 | else |
| 11933 | test -d ./-p && rmdir ./-p |
| 11934 | as_mkdir_p=false |
| 11935 | fi |
| 11936 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11937 | |
| 11938 | # as_fn_executable_p FILE |
| 11939 | # ----------------------- |
| 11940 | # Test if FILE is an executable regular file. |
| 11941 | as_fn_executable_p () |
| 11942 | { |
| 11943 | test -f "$1" && test -x "$1" |
| 11944 | } # as_fn_executable_p |
| 11945 | as_test_x='test -x' |
| 11946 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11947 | |
| 11948 | # Sed expression to map a string onto a valid CPP name. |
| 11949 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11950 | |
| 11951 | # Sed expression to map a string onto a valid variable name. |
| 11952 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11953 | |
| 11954 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11956 | ## ----------------------------------- ## |
| 11957 | ## Main body of $CONFIG_STATUS script. ## |
| 11958 | ## ----------------------------------- ## |
| 11959 | _ASEOF |
| 11960 | 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] | 11961 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11963 | # 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] | 11964 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11965 | # values after options handling. |
| 11966 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11967 | This file was extended by $as_me, which was |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11968 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11969 | |
| 11970 | CONFIG_FILES = $CONFIG_FILES |
| 11971 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11972 | CONFIG_LINKS = $CONFIG_LINKS |
| 11973 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11974 | $ $0 $@ |
| 11975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11976 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11977 | " |
| 11978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11979 | _ACEOF |
| 11980 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11981 | case $ac_config_files in *" |
| 11982 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11983 | esac |
| 11984 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11985 | case $ac_config_headers in *" |
| 11986 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 11987 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11988 | |
| 11989 | |
| 11990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11991 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11992 | config_files="$ac_config_files" |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 11993 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11994 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11996 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11997 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11999 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12000 | \`$as_me' instantiates files and other configuration actions |
| 12001 | from templates according to the current configuration. Unless the files |
| 12002 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12003 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12004 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12005 | |
| 12006 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12007 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12008 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12009 | -q, --quiet, --silent |
| 12010 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12011 | -d, --debug don't remove temporary files |
| 12012 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12013 | --file=FILE[:TEMPLATE] |
| 12014 | instantiate the configuration file FILE |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12015 | --header=FILE[:TEMPLATE] |
| 12016 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12017 | |
| 12018 | Configuration files: |
| 12019 | $config_files |
| 12020 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12021 | Configuration headers: |
| 12022 | $config_headers |
| 12023 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12024 | Configuration commands: |
| 12025 | $config_commands |
| 12026 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12027 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12029 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12030 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12031 | 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] | 12032 | ac_cs_version="\\ |
| 12033 | config.status |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12034 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12035 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12036 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12037 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12038 | This config.status script is free software; the Free Software Foundation |
| 12039 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12040 | |
| 12041 | ac_pwd='$ac_pwd' |
| 12042 | srcdir='$srcdir' |
| 12043 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12044 | AWK='$AWK' |
| 12045 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12046 | _ACEOF |
| 12047 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12048 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12049 | # 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] | 12050 | ac_need_defaults=: |
| 12051 | while test $# != 0 |
| 12052 | do |
| 12053 | case $1 in |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12054 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12055 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12056 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12057 | ac_shift=: |
| 12058 | ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12059 | --*=) |
| 12060 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12061 | ac_optarg= |
| 12062 | ac_shift=: |
| 12063 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12064 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12065 | ac_option=$1 |
| 12066 | ac_optarg=$2 |
| 12067 | ac_shift=shift |
| 12068 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12069 | esac |
| 12070 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12071 | case $ac_option in |
| 12072 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12073 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12074 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12075 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12076 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12077 | --config | --confi | --conf | --con | --co | --c ) |
| 12078 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12079 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12080 | debug=: ;; |
| 12081 | --file | --fil | --fi | --f ) |
| 12082 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12083 | case $ac_optarg in |
| 12084 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12085 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12086 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12087 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | ac_need_defaults=false;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12089 | --header | --heade | --head | --hea ) |
| 12090 | $ac_shift |
| 12091 | case $ac_optarg in |
| 12092 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12093 | esac |
| 12094 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 12095 | ac_need_defaults=false;; |
| 12096 | --he | --h) |
| 12097 | # Conflict between --help and --header |
| 12098 | as_fn_error $? "ambiguous option: \`$1' |
| 12099 | Try \`$0 --help' for more information.";; |
| 12100 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12101 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12103 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12104 | ac_cs_silent=: ;; |
| 12105 | |
| 12106 | # This is an error. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12107 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12108 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12109 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12110 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12111 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12112 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12113 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | shift |
| 12115 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12116 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12117 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12119 | if $ac_cs_silent; then |
| 12120 | exec 6>/dev/null |
| 12121 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12122 | fi |
| 12123 | |
| 12124 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12125 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12126 | if \$ac_cs_recheck; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12127 | 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] | 12128 | shift |
| 12129 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12130 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12131 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12132 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12133 | fi |
| 12134 | |
| 12135 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12137 | exec 5>>config.log |
| 12138 | { |
| 12139 | echo |
| 12140 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12141 | ## Running $as_me. ## |
| 12142 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12143 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12144 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12145 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12146 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12148 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12149 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12150 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12151 | # 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] | 12152 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12153 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12154 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12155 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12156 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12157 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12159 | _ACEOF |
| 12160 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12162 | |
| 12163 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12164 | for ac_config_target in $ac_config_targets |
| 12165 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | case $ac_config_target in |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12167 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12168 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12169 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12170 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12171 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12172 | esac |
| 12173 | done |
| 12174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12175 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12176 | # If the user did not use the arguments to specify the items to instantiate, |
| 12177 | # then the envvar interface is used. Set only those that are not. |
| 12178 | # We use the long form for the default assignment because of an extremely |
| 12179 | # bizarre bug on SunOS 4.1.3. |
| 12180 | if $ac_need_defaults; then |
| 12181 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12182 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12183 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12184 | fi |
| 12185 | |
| 12186 | # 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] | 12187 | # 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] | 12188 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12189 | # Hook for its removal unless debugging. |
| 12190 | # Note that there is a small window in which the directory will not be cleaned: |
| 12191 | # 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] | 12192 | $debug || |
| 12193 | { |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12194 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12195 | trap 'exit_status=$? |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12196 | : "${ac_tmp:=$tmp}" |
| 12197 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12198 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12199 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12200 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12201 | # Create a (secure) tmp directory for tmp files. |
| 12202 | |
| 12203 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12204 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12205 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12206 | } || |
| 12207 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12208 | tmp=./conf$$-$RANDOM |
| 12209 | (umask 077 && mkdir "$tmp") |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12210 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12211 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12212 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12213 | # Set up the scripts for CONFIG_FILES section. |
| 12214 | # No need to generate them if there are no CONFIG_FILES. |
| 12215 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12216 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12217 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12218 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12219 | ac_cs_awk_getline=: |
| 12220 | ac_cs_awk_pipe_init= |
| 12221 | ac_cs_awk_read_file=' |
| 12222 | while ((getline aline < (F[key])) > 0) |
| 12223 | print(aline) |
| 12224 | close(F[key])' |
| 12225 | ac_cs_awk_pipe_fini= |
| 12226 | else |
| 12227 | ac_cs_awk_getline=false |
| 12228 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12229 | ac_cs_awk_read_file=' |
| 12230 | print "|#_!!_#|" |
| 12231 | print "cat " F[key] " &&" |
| 12232 | '$ac_cs_awk_pipe_init |
| 12233 | # The final `:' finishes the AND list. |
| 12234 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12235 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12236 | ac_cr=`echo X | tr X '\015'` |
| 12237 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12238 | # But we know of no other shell where ac_cr would be empty at this |
| 12239 | # point, so we can use a bashism as a fallback. |
| 12240 | if test "x$ac_cr" = x; then |
| 12241 | eval ac_cr=\$\'\\r\' |
| 12242 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12243 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12244 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12245 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12246 | else |
| 12247 | ac_cs_awk_cr=$ac_cr |
| 12248 | fi |
| 12249 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12250 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | _ACEOF |
| 12252 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12253 | # Create commands to substitute file output variables. |
| 12254 | { |
| 12255 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12256 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12257 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12258 | echo "_ACAWK" && |
| 12259 | echo "_ACEOF" |
| 12260 | } >conf$$files.sh && |
| 12261 | . ./conf$$files.sh || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12262 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12263 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12264 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12265 | { |
| 12266 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12267 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12268 | echo "_ACEOF" |
| 12269 | } >conf$$subs.sh || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12270 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12271 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12272 | ac_delim='%!_!# ' |
| 12273 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12274 | . ./conf$$subs.sh || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12275 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12276 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12277 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12278 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12279 | break |
| 12280 | elif $ac_last_try; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12281 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12282 | else |
| 12283 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12284 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12285 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12286 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12287 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12289 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12290 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12291 | sed -n ' |
| 12292 | h |
| 12293 | s/^/S["/; s/!.*/"]=/ |
| 12294 | p |
| 12295 | g |
| 12296 | s/^[^!]*!// |
| 12297 | :repl |
| 12298 | t repl |
| 12299 | s/'"$ac_delim"'$// |
| 12300 | t delim |
| 12301 | :nl |
| 12302 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12303 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12304 | t more1 |
| 12305 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12306 | p |
| 12307 | n |
| 12308 | b repl |
| 12309 | :more1 |
| 12310 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12311 | p |
| 12312 | g |
| 12313 | s/.\{148\}// |
| 12314 | t nl |
| 12315 | :delim |
| 12316 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12317 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12318 | t more2 |
| 12319 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12320 | p |
| 12321 | b |
| 12322 | :more2 |
| 12323 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12324 | p |
| 12325 | g |
| 12326 | s/.\{148\}// |
| 12327 | t delim |
| 12328 | ' <conf$$subs.awk | sed ' |
| 12329 | /^[^""]/{ |
| 12330 | N |
| 12331 | s/\n// |
| 12332 | } |
| 12333 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12334 | rm -f conf$$subs.awk |
| 12335 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12336 | _ACAWK |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12337 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12338 | for (key in S) S_is_set[key] = 1 |
| 12339 | FS = "" |
| 12340 | \$ac_cs_awk_pipe_init |
| 12341 | } |
| 12342 | { |
| 12343 | line = $ 0 |
| 12344 | nfields = split(line, field, "@") |
| 12345 | substed = 0 |
| 12346 | len = length(field[1]) |
| 12347 | for (i = 2; i < nfields; i++) { |
| 12348 | key = field[i] |
| 12349 | keylen = length(key) |
| 12350 | if (S_is_set[key]) { |
| 12351 | value = S[key] |
| 12352 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12353 | len += length(value) + length(field[++i]) |
| 12354 | substed = 1 |
| 12355 | } else |
| 12356 | len += 1 + keylen |
| 12357 | } |
| 12358 | if (nfields == 3 && !substed) { |
| 12359 | key = field[2] |
| 12360 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12361 | \$ac_cs_awk_read_file |
| 12362 | next |
| 12363 | } |
| 12364 | } |
| 12365 | print line |
| 12366 | } |
| 12367 | \$ac_cs_awk_pipe_fini |
| 12368 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12369 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12370 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12371 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12372 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12373 | else |
| 12374 | cat |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12375 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12376 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12377 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12378 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12379 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12380 | # ${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] | 12381 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12382 | # (actually we leave an empty line to preserve line numbers). |
| 12383 | if test "x$srcdir" = x.; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12384 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12385 | h |
| 12386 | s/// |
| 12387 | s/^/:/ |
| 12388 | s/[ ]*$/:/ |
| 12389 | s/:\$(srcdir):/:/g |
| 12390 | s/:\${srcdir}:/:/g |
| 12391 | s/:@srcdir@:/:/g |
| 12392 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12393 | s/:*$// |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12394 | x |
| 12395 | s/\(=[ ]*\).*/\1/ |
| 12396 | G |
| 12397 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12398 | s/^[^=]*=[ ]*$// |
| 12399 | }' |
| 12400 | fi |
| 12401 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12402 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12403 | fi # test -n "$CONFIG_FILES" |
| 12404 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12405 | # Set up the scripts for CONFIG_HEADERS section. |
| 12406 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12407 | # This happens for instance with `./config.status Makefile'. |
| 12408 | if test -n "$CONFIG_HEADERS"; then |
| 12409 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 12410 | BEGIN { |
| 12411 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12412 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12413 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12414 | # here-document in config.status, that substitutes the proper values into |
| 12415 | # config.h.in to produce config.h. |
| 12416 | |
| 12417 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12418 | # handling of long lines. |
| 12419 | ac_delim='%!_!# ' |
| 12420 | for ac_last_try in false false :; do |
| 12421 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12422 | if test -z "$ac_tt"; then |
| 12423 | break |
| 12424 | elif $ac_last_try; then |
| 12425 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 12426 | else |
| 12427 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12428 | fi |
| 12429 | done |
| 12430 | |
| 12431 | # For the awk script, D is an array of macro values keyed by name, |
| 12432 | # likewise P contains macro parameters if any. Preserve backslash |
| 12433 | # newline sequences. |
| 12434 | |
| 12435 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12436 | sed -n ' |
| 12437 | s/.\{148\}/&'"$ac_delim"'/g |
| 12438 | t rset |
| 12439 | :rset |
| 12440 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12441 | t def |
| 12442 | d |
| 12443 | :def |
| 12444 | s/\\$// |
| 12445 | t bsnl |
| 12446 | s/["\\]/\\&/g |
| 12447 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12448 | D["\1"]=" \3"/p |
| 12449 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12450 | d |
| 12451 | :bsnl |
| 12452 | s/["\\]/\\&/g |
| 12453 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12454 | D["\1"]=" \3\\\\\\n"\\/p |
| 12455 | t cont |
| 12456 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12457 | t cont |
| 12458 | d |
| 12459 | :cont |
| 12460 | n |
| 12461 | s/.\{148\}/&'"$ac_delim"'/g |
| 12462 | t clear |
| 12463 | :clear |
| 12464 | s/\\$// |
| 12465 | t bsnlc |
| 12466 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12467 | d |
| 12468 | :bsnlc |
| 12469 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12470 | b cont |
| 12471 | ' <confdefs.h | sed ' |
| 12472 | s/'"$ac_delim"'/"\\\ |
| 12473 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12474 | |
| 12475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12476 | for (key in D) D_is_set[key] = 1 |
| 12477 | FS = "" |
| 12478 | } |
| 12479 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12480 | line = \$ 0 |
| 12481 | split(line, arg, " ") |
| 12482 | if (arg[1] == "#") { |
| 12483 | defundef = arg[2] |
| 12484 | mac1 = arg[3] |
| 12485 | } else { |
| 12486 | defundef = substr(arg[1], 2) |
| 12487 | mac1 = arg[2] |
| 12488 | } |
| 12489 | split(mac1, mac2, "(") #) |
| 12490 | macro = mac2[1] |
| 12491 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12492 | if (D_is_set[macro]) { |
| 12493 | # Preserve the white space surrounding the "#". |
| 12494 | print prefix "define", macro P[macro] D[macro] |
| 12495 | next |
| 12496 | } else { |
| 12497 | # Replace #undef with comments. This is necessary, for example, |
| 12498 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12499 | # on some systems where configure will not decide to define it. |
| 12500 | if (defundef == "undef") { |
| 12501 | print "/*", prefix defundef, macro, "*/" |
| 12502 | next |
| 12503 | } |
| 12504 | } |
| 12505 | } |
| 12506 | { print } |
| 12507 | _ACAWK |
| 12508 | _ACEOF |
| 12509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12510 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 12511 | fi # test -n "$CONFIG_HEADERS" |
| 12512 | |
| 12513 | |
| 12514 | 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] | 12515 | shift |
| 12516 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12517 | do |
| 12518 | case $ac_tag in |
| 12519 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12520 | esac |
| 12521 | case $ac_mode$ac_tag in |
| 12522 | :[FHL]*:*);; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12523 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12524 | :[FH]-) ac_tag=-:-;; |
| 12525 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12526 | esac |
| 12527 | ac_save_IFS=$IFS |
| 12528 | IFS=: |
| 12529 | set x $ac_tag |
| 12530 | IFS=$ac_save_IFS |
| 12531 | shift |
| 12532 | ac_file=$1 |
| 12533 | shift |
| 12534 | |
| 12535 | case $ac_mode in |
| 12536 | :L) ac_source=$1;; |
| 12537 | :[FH]) |
| 12538 | ac_file_inputs= |
| 12539 | for ac_f |
| 12540 | do |
| 12541 | case $ac_f in |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12542 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12543 | *) # Look for the file first in the build tree, then in the source tree |
| 12544 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12545 | # because $ac_f cannot contain `:'. |
| 12546 | test -f "$ac_f" || |
| 12547 | case $ac_f in |
| 12548 | [\\/$]*) false;; |
| 12549 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12550 | esac || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12551 | 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] | 12552 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12553 | 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] | 12554 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12555 | done |
| 12556 | |
| 12557 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12558 | # use $as_me), people would be surprised to read: |
| 12559 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12560 | configure_input='Generated from '` |
| 12561 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12562 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12563 | if test x"$ac_file" != x-; then |
| 12564 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12566 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12567 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12568 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12569 | case $configure_input in #( |
| 12570 | *\&* | *\|* | *\\* ) |
| 12571 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12572 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12573 | *) ac_sed_conf_input=$configure_input;; |
| 12574 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12575 | |
| 12576 | case $ac_tag in |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12577 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12578 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12579 | esac |
| 12580 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12581 | esac |
| 12582 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12583 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12584 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12585 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12586 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12587 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12588 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12589 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12590 | s//\1/ |
| 12591 | q |
| 12592 | } |
| 12593 | /^X\(\/\/\)[^/].*/{ |
| 12594 | s//\1/ |
| 12595 | q |
| 12596 | } |
| 12597 | /^X\(\/\/\)$/{ |
| 12598 | s//\1/ |
| 12599 | q |
| 12600 | } |
| 12601 | /^X\(\/\).*/{ |
| 12602 | s//\1/ |
| 12603 | q |
| 12604 | } |
| 12605 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12606 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | ac_builddir=. |
| 12608 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12609 | case "$ac_dir" in |
| 12610 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12611 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12612 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12613 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12614 | 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] | 12615 | case $ac_top_builddir_sub in |
| 12616 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12617 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12618 | esac ;; |
| 12619 | esac |
| 12620 | ac_abs_top_builddir=$ac_pwd |
| 12621 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12622 | # for backward compatibility: |
| 12623 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12624 | |
| 12625 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12626 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12627 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12628 | ac_top_srcdir=$ac_top_builddir_sub |
| 12629 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12630 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12631 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12632 | ac_top_srcdir=$srcdir |
| 12633 | ac_abs_top_srcdir=$srcdir ;; |
| 12634 | *) # Relative name. |
| 12635 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12636 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12637 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12638 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12639 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12642 | case $ac_mode in |
| 12643 | :F) |
| 12644 | # |
| 12645 | # CONFIG_FILE |
| 12646 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12647 | |
| 12648 | case $INSTALL in |
| 12649 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12650 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12651 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12652 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12653 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12655 | # If the template does not know about datarootdir, expand it. |
| 12656 | # FIXME: This hack should be removed a few years after 2.60. |
| 12657 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12658 | ac_sed_dataroot=' |
| 12659 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12660 | p |
| 12661 | q |
| 12662 | } |
| 12663 | /@datadir@/p |
| 12664 | /@docdir@/p |
| 12665 | /@infodir@/p |
| 12666 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12667 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12668 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12669 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12670 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12671 | { $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] | 12672 | $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] | 12673 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12675 | ac_datarootdir_hack=' |
| 12676 | s&@datadir@&$datadir&g |
| 12677 | s&@docdir@&$docdir&g |
| 12678 | s&@infodir@&$infodir&g |
| 12679 | s&@localedir@&$localedir&g |
| 12680 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12681 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12682 | esac |
| 12683 | _ACEOF |
| 12684 | |
| 12685 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12686 | # Shell code in configure.ac might set extrasub. |
| 12687 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12689 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | $extrasub |
| 12691 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12692 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12693 | :t |
| 12694 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12695 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12696 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12697 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12698 | s&@srcdir@&$ac_srcdir&;t t |
| 12699 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12700 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12701 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12702 | s&@builddir@&$ac_builddir&;t t |
| 12703 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12704 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12705 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12706 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12707 | " |
| 12708 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12709 | if $ac_cs_awk_getline; then |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12710 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12711 | else |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12712 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 12713 | fi \ |
| 12714 | >$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] | 12715 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12716 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12717 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12718 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12719 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12721 | 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] | 12722 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12723 | 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] | 12724 | |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12725 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12726 | case $ac_file in |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12727 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12728 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12729 | esac \ |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12730 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12731 | ;; |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12732 | :H) |
| 12733 | # |
| 12734 | # CONFIG_HEADER |
| 12735 | # |
| 12736 | if test x"$ac_file" != x-; then |
| 12737 | { |
| 12738 | $as_echo "/* $configure_input */" \ |
| 12739 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 12740 | } >"$ac_tmp/config.h" \ |
| 12741 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12742 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12744 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12745 | else |
| 12746 | rm -f "$ac_file" |
| 12747 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 12748 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12749 | fi |
| 12750 | else |
| 12751 | $as_echo "/* $configure_input */" \ |
| 12752 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 12753 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 12754 | fi |
| 12755 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12756 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12757 | :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] | 12758 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12759 | ;; |
| 12760 | esac |
| 12761 | |
| 12762 | |
| 12763 | case $ac_file$ac_mode in |
| 12764 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12765 | for ac_file in $CONFIG_FILES; do |
| 12766 | # Support "outfile[:infile[:infile...]]" |
| 12767 | case "$ac_file" in |
| 12768 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12769 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12770 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12771 | case "$ac_file" in */Makefile.in) |
| 12772 | # Adjust a relative srcdir. |
| 12773 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12774 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12775 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12776 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12777 | # In autoconf-2.50 it is called $srcdir. |
| 12778 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12779 | case "$ac_given_srcdir" in |
| 12780 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12781 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12782 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12783 | esac |
| 12784 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12785 | rm -f "$ac_dir/POTFILES" |
| 12786 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12787 | 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] | 12788 | POMAKEFILEDEPS="POTFILES.in" |
| 12789 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12790 | # on $ac_dir but don't depend on user-specified configuration |
| 12791 | # parameters. |
| 12792 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12793 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12794 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12795 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12796 | fi |
| 12797 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12798 | # Hide the ALL_LINGUAS assigment from automake. |
| 12799 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12800 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12801 | else |
| 12802 | # The set of available languages was given in configure.in. |
| 12803 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12804 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | # Compute POFILES |
| 12806 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12807 | # Compute UPDATEPOFILES |
| 12808 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12809 | # Compute DUMMYPOFILES |
| 12810 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12811 | # Compute GMOFILES |
| 12812 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12813 | case "$ac_given_srcdir" in |
| 12814 | .) srcdirpre= ;; |
| 12815 | *) srcdirpre='$(srcdir)/' ;; |
| 12816 | esac |
| 12817 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12818 | UPDATEPOFILES= |
| 12819 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12821 | for lang in $ALL_LINGUAS; do |
| 12822 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12823 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12824 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12825 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12826 | done |
| 12827 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12828 | # environment variable. |
| 12829 | INST_LINGUAS= |
| 12830 | if test -n "$ALL_LINGUAS"; then |
| 12831 | for presentlang in $ALL_LINGUAS; do |
| 12832 | useit=no |
| 12833 | if test "%UNSET%" != "$LINGUAS"; then |
| 12834 | desiredlanguages="$LINGUAS" |
| 12835 | else |
| 12836 | desiredlanguages="$ALL_LINGUAS" |
| 12837 | fi |
| 12838 | for desiredlang in $desiredlanguages; do |
| 12839 | # Use the presentlang catalog if desiredlang is |
| 12840 | # a. equal to presentlang, or |
| 12841 | # b. a variant of presentlang (because in this case, |
| 12842 | # presentlang can be used as a fallback for messages |
| 12843 | # which are not translated in the desiredlang catalog). |
| 12844 | case "$desiredlang" in |
| 12845 | "$presentlang"*) useit=yes;; |
| 12846 | esac |
| 12847 | done |
| 12848 | if test $useit = yes; then |
| 12849 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12850 | fi |
| 12851 | done |
| 12852 | fi |
| 12853 | CATALOGS= |
| 12854 | if test -n "$INST_LINGUAS"; then |
| 12855 | for lang in $INST_LINGUAS; do |
| 12856 | CATALOGS="$CATALOGS $lang.gmo" |
| 12857 | done |
| 12858 | fi |
| 12859 | 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] | 12860 | 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] | 12861 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12862 | if test -f "$f"; then |
| 12863 | case "$f" in |
| 12864 | *.orig | *.bak | *~) ;; |
| 12865 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12866 | esac |
| 12867 | fi |
| 12868 | done |
| 12869 | fi |
| 12870 | ;; |
| 12871 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12872 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12873 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12874 | esac |
| 12875 | done # for ac_tag |
| 12876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12877 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12878 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12879 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12880 | ac_clean_files=$ac_clean_files_save |
| 12881 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12882 | test $ac_write_fail = 0 || |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12883 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12884 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12885 | |
| 12886 | # configure is writing to config.log, and then calls config.status. |
| 12887 | # config.status does its own redirection, appending to config.log. |
| 12888 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12889 | # by configure, so config.status won't be able to write to it; its |
| 12890 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12891 | # effectively closing config.log, so it can be properly (re)opened and |
| 12892 | # appended to by config.status. When coming back to configure, we |
| 12893 | # need to make the FD available again. |
| 12894 | if test "$no_create" != yes; then |
| 12895 | ac_cs_success=: |
| 12896 | ac_config_status_args= |
| 12897 | test "$silent" = yes && |
| 12898 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12899 | exec 5>/dev/null |
| 12900 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12901 | exec 5>>config.log |
| 12902 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12903 | # would make configure fail if this is the last instruction. |
JP Abgrall | e0ed740 | 2014-03-19 19:08:39 -0700 | [diff] [blame] | 12904 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12905 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12906 | 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] | 12907 | { $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] | 12908 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12909 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12910 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12911 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |