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. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | # |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [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 | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 622 | gt_needs= |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 623 | ac_header_list= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 624 | gl_use_threads_default= |
| 625 | ac_func_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 627 | LIBOBJS |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 628 | LDFLAGS_SHLIB |
| 629 | CFLAGS_STLIB |
| 630 | CFLAGS_SHLIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 631 | BUILD_LDFLAGS |
| 632 | BUILD_CFLAGS |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 633 | MKINSTALLDIRS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 634 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | DO_TEST_SUITE |
| 636 | ET_DIR |
| 637 | SS_DIR |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 638 | LDFLAGS_STATIC |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 639 | root_sysconfdir |
| 640 | root_libdir |
| 641 | root_sbindir |
| 642 | root_bindir |
| 643 | root_prefix |
| 644 | UNIX_CMT |
| 645 | CYGWIN_CMT |
| 646 | LINUX_CMT |
| 647 | UNI_DIFF_OPTS |
| 648 | SEM_INIT_LIB |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 649 | FUSE_CMT |
| 650 | FUSE_LIB |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 651 | MAGIC_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 652 | SOCKET_LIB |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame^] | 653 | SIZEOF_TIME_T |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 654 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 655 | SIZEOF_LONG_LONG |
| 656 | SIZEOF_LONG |
| 657 | SIZEOF_INT |
| 658 | SIZEOF_SHORT |
| 659 | BUILD_CC |
| 660 | MAKEINFO |
| 661 | STRIP |
| 662 | AR |
| 663 | LDCONFIG |
| 664 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 665 | AWK |
| 666 | CHMOD |
| 667 | RM |
| 668 | CP |
| 669 | MV |
| 670 | LN_S |
| 671 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 672 | ifNotGNUmake |
| 673 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 674 | BINARY_TYPE |
| 675 | POSUB |
| 676 | LTLIBINTL |
| 677 | LIBINTL |
| 678 | INTLLIBS |
| 679 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 680 | INTLOBJS |
| 681 | GENCAT |
| 682 | INSTOBJEXT |
| 683 | DATADIRNAME |
| 684 | CATOBJEXT |
| 685 | USE_INCLUDED_LIBINTL |
| 686 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 687 | LTLIBC |
| 688 | WINDRES |
| 689 | WOE32 |
| 690 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 691 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 692 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 693 | HAVE_SNPRINTF |
| 694 | HAVE_ASPRINTF |
| 695 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 696 | INTL_DEFAULT_VERBOSITY |
| 697 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 698 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 699 | INTLBISON |
| 700 | LTLIBICONV |
| 701 | LIBICONV |
| 702 | LTLIBMULTITHREAD |
| 703 | LIBMULTITHREAD |
| 704 | LTLIBTHREAD |
| 705 | LIBTHREAD |
| 706 | LIBPTH_PREFIX |
| 707 | LTLIBPTH |
| 708 | LIBPTH |
| 709 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 710 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 711 | HAVE_VISIBILITY |
| 712 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 713 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 714 | GLIBC2 |
| 715 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 716 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 717 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 718 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 719 | GMSGFMT_015 |
| 720 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 721 | GMSGFMT |
| 722 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 723 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 724 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 725 | SED |
| 726 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 727 | INSTALL_DATA |
| 728 | INSTALL_SCRIPT |
| 729 | INSTALL_PROGRAM |
| 730 | SET_MAKE |
| 731 | VERSION |
| 732 | PACKAGE |
| 733 | GETTEXT_PACKAGE |
| 734 | UUIDD_CMT |
| 735 | E2INITRD_MAN |
| 736 | E2INITRD_PROG |
| 737 | FSCK_MAN |
| 738 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 739 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 740 | RESIZER_CMT |
| 741 | IMAGER_CMT |
| 742 | DEBUGFS_CMT |
| 743 | BLKID_CMT |
| 744 | DEPPROFILED_LIBBLKID |
| 745 | PROFILED_LIBBLKID |
| 746 | DEPSTATIC_LIBBLKID |
| 747 | STATIC_LIBBLKID |
| 748 | DEPLIBBLKID |
| 749 | LIBBLKID |
| 750 | UUID_CMT |
| 751 | DEPPROFILED_LIBUUID |
| 752 | PROFILED_LIBUUID |
| 753 | DEPSTATIC_LIBUUID |
| 754 | STATIC_LIBUUID |
| 755 | DEPLIBUUID |
| 756 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 757 | PKG_CONFIG_LIBDIR |
| 758 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 759 | PKG_CONFIG |
| 760 | TEST_IO_CMT |
| 761 | PRIVATE_LIBS_CMT |
| 762 | LDFLAG_DYNAMIC |
| 763 | PROFILED_LIB_EXT |
| 764 | STATIC_LIB_EXT |
| 765 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 766 | PROFILE_CMT |
| 767 | BSDLIB_CMT |
| 768 | ELF_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 769 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 770 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 771 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 772 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 773 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 774 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 775 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 776 | EGREP |
| 777 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 778 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 779 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 780 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 781 | OBJEXT |
| 782 | EXEEXT |
| 783 | ac_ct_CC |
| 784 | CPPFLAGS |
| 785 | LDFLAGS |
| 786 | CFLAGS |
| 787 | CC |
| 788 | host_os |
| 789 | host_vendor |
| 790 | host_cpu |
| 791 | host |
| 792 | build_os |
| 793 | build_vendor |
| 794 | build_cpu |
| 795 | build |
| 796 | E2FSPROGS_PKGVER |
| 797 | E2FSPROGS_VERSION |
| 798 | E2FSPROGS_DAY |
| 799 | E2FSPROGS_MONTH |
| 800 | E2FSPROGS_YEAR |
| 801 | target_alias |
| 802 | host_alias |
| 803 | build_alias |
| 804 | LIBS |
| 805 | ECHO_T |
| 806 | ECHO_N |
| 807 | ECHO_C |
| 808 | DEFS |
| 809 | mandir |
| 810 | localedir |
| 811 | libdir |
| 812 | psdir |
| 813 | pdfdir |
| 814 | dvidir |
| 815 | htmldir |
| 816 | infodir |
| 817 | docdir |
| 818 | oldincludedir |
| 819 | includedir |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 820 | runstatedir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 821 | localstatedir |
| 822 | sharedstatedir |
| 823 | sysconfdir |
| 824 | datadir |
| 825 | datarootdir |
| 826 | libexecdir |
| 827 | sbindir |
| 828 | bindir |
| 829 | program_transform_name |
| 830 | prefix |
| 831 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 832 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 833 | PACKAGE_BUGREPORT |
| 834 | PACKAGE_STRING |
| 835 | PACKAGE_VERSION |
| 836 | PACKAGE_TARNAME |
| 837 | PACKAGE_NAME |
| 838 | PATH_SEPARATOR |
| 839 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 840 | ac_subst_files='MCONFIG |
| 841 | MAKEFILE_ELF |
| 842 | MAKEFILE_BSDLIB |
| 843 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 844 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 845 | ASM_TYPES_HEADER |
| 846 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 847 | ac_user_opts=' |
| 848 | enable_option_checking |
| 849 | with_diet_libc |
| 850 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 851 | with_ccopts |
| 852 | with_ldopts |
| 853 | with_root_prefix |
| 854 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 855 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 856 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 857 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 858 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 859 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 860 | enable_elf_shlibs |
| 861 | enable_bsd_shlibs |
| 862 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 863 | enable_gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 864 | enable_hardening |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 865 | enable_jbd_debug |
| 866 | enable_blkid_debug |
| 867 | enable_testio_debug |
| 868 | enable_libuuid |
| 869 | enable_libblkid |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 870 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 871 | enable_debugfs |
| 872 | enable_imager |
| 873 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 874 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 875 | enable_fsck |
| 876 | enable_e2initrd_helper |
| 877 | enable_tls |
| 878 | enable_uuidd |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 879 | enable_mmp |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 880 | enable_bmap_stats |
| 881 | enable_bmap_stats_ops |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 882 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 883 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 884 | with_gnu_ld |
| 885 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 886 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 887 | with_libiconv_prefix |
| 888 | with_included_gettext |
| 889 | with_libintl_prefix |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 890 | enable_fuse2fs |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 891 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 892 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 893 | ac_precious_vars='build_alias |
| 894 | host_alias |
| 895 | target_alias |
| 896 | CC |
| 897 | CFLAGS |
| 898 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 899 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 900 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 901 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 902 | PKG_CONFIG |
| 903 | PKG_CONFIG_PATH |
| 904 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 905 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 906 | |
| 907 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 908 | ac_init_help= |
| 909 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 910 | ac_unrecognized_opts= |
| 911 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 912 | # The variables have the same names as the options, with |
| 913 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 914 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 917 | no_recursion= |
| 918 | prefix=NONE |
| 919 | program_prefix=NONE |
| 920 | program_suffix=NONE |
| 921 | program_transform_name=s,x,x, |
| 922 | silent= |
| 923 | site= |
| 924 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 925 | verbose= |
| 926 | x_includes=NONE |
| 927 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 928 | |
| 929 | # Installation directory options. |
| 930 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 931 | # and all the variables that are supposed to be based on exec_prefix |
| 932 | # by default will actually change. |
| 933 | # 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] | 934 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 935 | bindir='${exec_prefix}/bin' |
| 936 | sbindir='${exec_prefix}/sbin' |
| 937 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 938 | datarootdir='${prefix}/share' |
| 939 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 940 | sysconfdir='${prefix}/etc' |
| 941 | sharedstatedir='${prefix}/com' |
| 942 | localstatedir='${prefix}/var' |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 943 | runstatedir='${localstatedir}/run' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 944 | includedir='${prefix}/include' |
| 945 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 946 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 947 | infodir='${datarootdir}/info' |
| 948 | htmldir='${docdir}' |
| 949 | dvidir='${docdir}' |
| 950 | pdfdir='${docdir}' |
| 951 | psdir='${docdir}' |
| 952 | libdir='${exec_prefix}/lib' |
| 953 | localedir='${datarootdir}/locale' |
| 954 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 955 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 956 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 957 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 958 | for ac_option |
| 959 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 960 | # If the previous option needs an argument, assign it. |
| 961 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 962 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 963 | ac_prev= |
| 964 | continue |
| 965 | fi |
| 966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 967 | case $ac_option in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 968 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 969 | *=) ac_optarg= ;; |
| 970 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 971 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 972 | |
| 973 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 975 | case $ac_dashdash$ac_option in |
| 976 | --) |
| 977 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 978 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 979 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 980 | ac_prev=bindir ;; |
| 981 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 982 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | |
| 984 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 985 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 986 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 987 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 988 | |
| 989 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 990 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 991 | ac_prev=cache_file ;; |
| 992 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 993 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | cache_file=$ac_optarg ;; |
| 995 | |
| 996 | --config-cache | -C) |
| 997 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 998 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 999 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1000 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1001 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1002 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1004 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1005 | | --dataroo | --dataro | --datar) |
| 1006 | ac_prev=datarootdir ;; |
| 1007 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1008 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1009 | datarootdir=$ac_optarg ;; |
| 1010 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1011 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1013 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1016 | ac_useropt_orig=$ac_useropt |
| 1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1018 | case $ac_user_opts in |
| 1019 | *" |
| 1020 | "enable_$ac_useropt" |
| 1021 | "*) ;; |
| 1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1023 | ac_unrecognized_sep=', ';; |
| 1024 | esac |
| 1025 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1026 | |
| 1027 | -docdir | --docdir | --docdi | --doc | --do) |
| 1028 | ac_prev=docdir ;; |
| 1029 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1030 | docdir=$ac_optarg ;; |
| 1031 | |
| 1032 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1033 | ac_prev=dvidir ;; |
| 1034 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1035 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1036 | |
| 1037 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1038 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1039 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1040 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1041 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1042 | ac_useropt_orig=$ac_useropt |
| 1043 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1044 | case $ac_user_opts in |
| 1045 | *" |
| 1046 | "enable_$ac_useropt" |
| 1047 | "*) ;; |
| 1048 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1049 | ac_unrecognized_sep=', ';; |
| 1050 | esac |
| 1051 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1052 | |
| 1053 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1054 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1055 | | --exec | --exe | --ex) |
| 1056 | ac_prev=exec_prefix ;; |
| 1057 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1058 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1059 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1060 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1061 | |
| 1062 | -gas | --gas | --ga | --g) |
| 1063 | # Obsolete; use --with-gas. |
| 1064 | with_gas=yes ;; |
| 1065 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | -help | --help | --hel | --he | -h) |
| 1067 | ac_init_help=long ;; |
| 1068 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1069 | ac_init_help=recursive ;; |
| 1070 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1071 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1072 | |
| 1073 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1074 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1075 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1076 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1078 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1079 | ac_prev=htmldir ;; |
| 1080 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1081 | | --ht=*) |
| 1082 | htmldir=$ac_optarg ;; |
| 1083 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1084 | -includedir | --includedir | --includedi | --included | --include \ |
| 1085 | | --includ | --inclu | --incl | --inc) |
| 1086 | ac_prev=includedir ;; |
| 1087 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1088 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1089 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1090 | |
| 1091 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1092 | ac_prev=infodir ;; |
| 1093 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1095 | |
| 1096 | -libdir | --libdir | --libdi | --libd) |
| 1097 | ac_prev=libdir ;; |
| 1098 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1099 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1100 | |
| 1101 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1102 | | --libexe | --libex | --libe) |
| 1103 | ac_prev=libexecdir ;; |
| 1104 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1105 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1106 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1108 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1109 | ac_prev=localedir ;; |
| 1110 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1111 | localedir=$ac_optarg ;; |
| 1112 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1113 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1114 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1115 | ac_prev=localstatedir ;; |
| 1116 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1117 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1118 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1119 | |
| 1120 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1121 | ac_prev=mandir ;; |
| 1122 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1123 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1124 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1125 | -nfp | --nfp | --nf) |
| 1126 | # Obsolete; use --without-fp. |
| 1127 | with_fp=no ;; |
| 1128 | |
| 1129 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1130 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1131 | no_create=yes ;; |
| 1132 | |
| 1133 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1134 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1135 | no_recursion=yes ;; |
| 1136 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1137 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1138 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1139 | | --oldin | --oldi | --old | --ol | --o) |
| 1140 | ac_prev=oldincludedir ;; |
| 1141 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1142 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1143 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1144 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1145 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1147 | ac_prev=prefix ;; |
| 1148 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1149 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | |
| 1151 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1152 | | --program-pre | --program-pr | --program-p) |
| 1153 | ac_prev=program_prefix ;; |
| 1154 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1155 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1156 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1157 | |
| 1158 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1159 | | --program-suf | --program-su | --program-s) |
| 1160 | ac_prev=program_suffix ;; |
| 1161 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1162 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1163 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1164 | |
| 1165 | -program-transform-name | --program-transform-name \ |
| 1166 | | --program-transform-nam | --program-transform-na \ |
| 1167 | | --program-transform-n | --program-transform- \ |
| 1168 | | --program-transform | --program-transfor \ |
| 1169 | | --program-transfo | --program-transf \ |
| 1170 | | --program-trans | --program-tran \ |
| 1171 | | --progr-tra | --program-tr | --program-t) |
| 1172 | ac_prev=program_transform_name ;; |
| 1173 | -program-transform-name=* | --program-transform-name=* \ |
| 1174 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1175 | | --program-transform-n=* | --program-transform-=* \ |
| 1176 | | --program-transform=* | --program-transfor=* \ |
| 1177 | | --program-transfo=* | --program-transf=* \ |
| 1178 | | --program-trans=* | --program-tran=* \ |
| 1179 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1180 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1182 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1183 | ac_prev=pdfdir ;; |
| 1184 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1185 | pdfdir=$ac_optarg ;; |
| 1186 | |
| 1187 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1188 | ac_prev=psdir ;; |
| 1189 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1190 | psdir=$ac_optarg ;; |
| 1191 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1193 | | -silent | --silent | --silen | --sile | --sil) |
| 1194 | silent=yes ;; |
| 1195 | |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1196 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1197 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1198 | | --run | --ru | --r) |
| 1199 | ac_prev=runstatedir ;; |
| 1200 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1201 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1202 | | --run=* | --ru=* | --r=*) |
| 1203 | runstatedir=$ac_optarg ;; |
| 1204 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1205 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1206 | ac_prev=sbindir ;; |
| 1207 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1208 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1209 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1210 | |
| 1211 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1212 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1213 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1214 | | --sha | --sh) |
| 1215 | ac_prev=sharedstatedir ;; |
| 1216 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1217 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1218 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1219 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1220 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1221 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1222 | -site | --site | --sit) |
| 1223 | ac_prev=site ;; |
| 1224 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1225 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1226 | |
| 1227 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1228 | ac_prev=srcdir ;; |
| 1229 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1230 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1231 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1232 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1233 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1234 | ac_prev=sysconfdir ;; |
| 1235 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1236 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1238 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1239 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1240 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1241 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1242 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1243 | |
| 1244 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1245 | verbose=yes ;; |
| 1246 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1247 | -version | --version | --versio | --versi | --vers | -V) |
| 1248 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1249 | |
| 1250 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1251 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1253 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1254 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1255 | ac_useropt_orig=$ac_useropt |
| 1256 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1257 | case $ac_user_opts in |
| 1258 | *" |
| 1259 | "with_$ac_useropt" |
| 1260 | "*) ;; |
| 1261 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1262 | ac_unrecognized_sep=', ';; |
| 1263 | esac |
| 1264 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | |
| 1266 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1267 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1268 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1269 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1270 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1271 | ac_useropt_orig=$ac_useropt |
| 1272 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1273 | case $ac_user_opts in |
| 1274 | *" |
| 1275 | "with_$ac_useropt" |
| 1276 | "*) ;; |
| 1277 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1278 | ac_unrecognized_sep=', ';; |
| 1279 | esac |
| 1280 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1281 | |
| 1282 | --x) |
| 1283 | # Obsolete; use --with-x. |
| 1284 | with_x=yes ;; |
| 1285 | |
| 1286 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1287 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1288 | ac_prev=x_includes ;; |
| 1289 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1290 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1291 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1292 | |
| 1293 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1294 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1295 | ac_prev=x_libraries ;; |
| 1296 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1297 | | --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] | 1298 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1299 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1300 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1301 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1302 | ;; |
| 1303 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1304 | *=*) |
| 1305 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1306 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1307 | case $ac_envvar in #( |
| 1308 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1309 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1310 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1311 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | export $ac_envvar ;; |
| 1313 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1314 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1316 | $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] | 1317 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1318 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1319 | : "${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] | 1320 | ;; |
| 1321 | |
| 1322 | esac |
| 1323 | done |
| 1324 | |
| 1325 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1326 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1327 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1328 | fi |
| 1329 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1330 | if test -n "$ac_unrecognized_opts"; then |
| 1331 | case $enable_option_checking in |
| 1332 | no) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1333 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1334 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1335 | esac |
| 1336 | fi |
| 1337 | |
| 1338 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1339 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1340 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1341 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1342 | libdir localedir mandir runstatedir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1343 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1344 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1345 | # Remove trailing slashes. |
| 1346 | case $ac_val in |
| 1347 | */ ) |
| 1348 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1349 | eval $ac_var=\$ac_val;; |
| 1350 | esac |
| 1351 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1352 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1353 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1354 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1355 | esac |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1356 | 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] | 1357 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1358 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1359 | # There might be people who depend on the old broken behavior: `$host' |
| 1360 | # used to hold the argument of --host etc. |
| 1361 | # FIXME: To remove some day. |
| 1362 | build=$build_alias |
| 1363 | host=$host_alias |
| 1364 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1365 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1366 | # FIXME: To remove some day. |
| 1367 | if test "x$host_alias" != x; then |
| 1368 | if test "x$build_alias" = x; then |
| 1369 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1370 | elif test "x$build_alias" != "x$host_alias"; then |
| 1371 | cross_compiling=yes |
| 1372 | fi |
| 1373 | fi |
| 1374 | |
| 1375 | ac_tool_prefix= |
| 1376 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1377 | |
| 1378 | test "$silent" = yes && exec 6>/dev/null |
| 1379 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1381 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1382 | ac_ls_di=`ls -di .` && |
| 1383 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1384 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1385 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1386 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1387 | |
| 1388 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1389 | # Find the source files, if location was not specified. |
| 1390 | if test -z "$srcdir"; then |
| 1391 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1392 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1393 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1394 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1395 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1396 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1397 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1398 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1400 | s//\1/ |
| 1401 | q |
| 1402 | } |
| 1403 | /^X\(\/\/\)[^/].*/{ |
| 1404 | s//\1/ |
| 1405 | q |
| 1406 | } |
| 1407 | /^X\(\/\/\)$/{ |
| 1408 | s//\1/ |
| 1409 | q |
| 1410 | } |
| 1411 | /^X\(\/\).*/{ |
| 1412 | s//\1/ |
| 1413 | q |
| 1414 | } |
| 1415 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1416 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1417 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1418 | srcdir=.. |
| 1419 | fi |
| 1420 | else |
| 1421 | ac_srcdir_defaulted=no |
| 1422 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1423 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1424 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1425 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1427 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1428 | ac_abs_confdir=`( |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1429 | 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] | 1430 | pwd)` |
| 1431 | # When building in place, set srcdir=. |
| 1432 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1433 | srcdir=. |
| 1434 | fi |
| 1435 | # Remove unnecessary trailing slashes from srcdir. |
| 1436 | # Double slashes in file names in object file debugging info |
| 1437 | # mess up M-x gdb in Emacs. |
| 1438 | case $srcdir in |
| 1439 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1440 | esac |
| 1441 | for ac_var in $ac_precious_vars; do |
| 1442 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1443 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1444 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1445 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1446 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | # |
| 1449 | # Report the --help message. |
| 1450 | # |
| 1451 | if test "$ac_init_help" = "long"; then |
| 1452 | # Omit some internal or obsolete options to make the list less imposing. |
| 1453 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1454 | cat <<_ACEOF |
| 1455 | \`configure' configures this package to adapt to many kinds of systems. |
| 1456 | |
| 1457 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1458 | |
| 1459 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1460 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1461 | |
| 1462 | Defaults for the options are specified in brackets. |
| 1463 | |
| 1464 | Configuration: |
| 1465 | -h, --help display this help and exit |
| 1466 | --help=short display options specific to this package |
| 1467 | --help=recursive display the short help of all the included packages |
| 1468 | -V, --version display version information and exit |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1469 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | --cache-file=FILE cache test results in FILE [disabled] |
| 1471 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1472 | -n, --no-create do not create output files |
| 1473 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1474 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1475 | Installation directories: |
| 1476 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1477 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1478 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1479 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1480 | |
| 1481 | By default, \`make install' will install all the files in |
| 1482 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1483 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1484 | for instance \`--prefix=\$HOME'. |
| 1485 | |
| 1486 | For better control, use the options below. |
| 1487 | |
| 1488 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1489 | --bindir=DIR user executables [EPREFIX/bin] |
| 1490 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1491 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1492 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1493 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1494 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1495 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1496 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1497 | --includedir=DIR C header files [PREFIX/include] |
| 1498 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1499 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1500 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1501 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1502 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1503 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1504 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1505 | --htmldir=DIR html documentation [DOCDIR] |
| 1506 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1507 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1508 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1509 | _ACEOF |
| 1510 | |
| 1511 | cat <<\_ACEOF |
| 1512 | |
| 1513 | System types: |
| 1514 | --build=BUILD configure for building on BUILD [guessed] |
| 1515 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1516 | _ACEOF |
| 1517 | fi |
| 1518 | |
| 1519 | if test -n "$ac_init_help"; then |
| 1520 | |
| 1521 | cat <<\_ACEOF |
| 1522 | |
| 1523 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1524 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1525 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1526 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1527 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1528 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1529 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1530 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1531 | --enable-symlink-build use symlinks while building instead of hard links |
| 1532 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1533 | --enable-elf-shlibs select ELF shared libraries |
| 1534 | --enable-bsd-shlibs select BSD shared libraries |
| 1535 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1536 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 1537 | --enable-hardening build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1538 | --enable-jbd-debug enable journal debugging |
| 1539 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1540 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 1541 | --enable-libuuid build and use private uuid library |
| 1542 | --enable-libblkid build and use private blkid library |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1543 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1544 | --disable-debugfs disable support of debugfs program |
| 1545 | --disable-imager disable support of e2image program |
| 1546 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1547 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1548 | --enable-fsck build fsck wrapper program |
| 1549 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1550 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1551 | --disable-uuidd disable building the uuid daemon |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1552 | --disable-mmp disable support mmp, Multi Mount Protection |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 1553 | --disable-bmap-stats disable collection of bitmap stats. |
| 1554 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1555 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1556 | --enable-threads={posix|solaris|pth|windows} |
| 1557 | specify multithreading API |
| 1558 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1559 | --disable-rpath do not hardcode runtime library paths |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 1560 | --disable-fuse2fs do not build fuse2fs |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1561 | |
| 1562 | Optional Packages: |
| 1563 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1564 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1565 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1566 | --with-cc no longer supported, use CC= instead |
| 1567 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1568 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1569 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1570 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1571 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1572 | --without-libpth-prefix don't search for libpth in includedir and libdir |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1573 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1574 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1575 | --with-included-gettext use the GNU gettext library included here |
| 1576 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1577 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1578 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1579 | |
| 1580 | Some influential environment variables: |
| 1581 | CC C compiler command |
| 1582 | CFLAGS C compiler flags |
| 1583 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1584 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1585 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1586 | 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] | 1587 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1588 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1589 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1590 | PKG_CONFIG_PATH |
| 1591 | directories to add to pkg-config's search path |
| 1592 | PKG_CONFIG_LIBDIR |
| 1593 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1594 | |
| 1595 | Use these variables to override the choices made by `configure' or to help |
| 1596 | it to find libraries and programs with nonstandard names/locations. |
| 1597 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1598 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1599 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1600 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1601 | fi |
| 1602 | |
| 1603 | if test "$ac_init_help" = "recursive"; then |
| 1604 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1605 | 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] | 1606 | test -d "$ac_dir" || |
| 1607 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1608 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1609 | ac_builddir=. |
| 1610 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1611 | case "$ac_dir" in |
| 1612 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1613 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1614 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1615 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1616 | 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] | 1617 | case $ac_top_builddir_sub in |
| 1618 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1619 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1620 | esac ;; |
| 1621 | esac |
| 1622 | ac_abs_top_builddir=$ac_pwd |
| 1623 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1624 | # for backward compatibility: |
| 1625 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1626 | |
| 1627 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1628 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1629 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1630 | ac_top_srcdir=$ac_top_builddir_sub |
| 1631 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1632 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1633 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1634 | ac_top_srcdir=$srcdir |
| 1635 | ac_abs_top_srcdir=$srcdir ;; |
| 1636 | *) # Relative name. |
| 1637 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1638 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1639 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1640 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1641 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1642 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1643 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1644 | # Check for guested configure. |
| 1645 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1646 | echo && |
| 1647 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1648 | elif test -f "$ac_srcdir/configure"; then |
| 1649 | echo && |
| 1650 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1651 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1652 | $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] | 1653 | fi || ac_status=$? |
| 1654 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1655 | done |
| 1656 | fi |
| 1657 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1658 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1659 | if $ac_init_version; then |
| 1660 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1661 | configure |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1662 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1663 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1664 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1665 | This configure script is free software; the Free Software Foundation |
| 1666 | gives unlimited permission to copy, distribute and modify it. |
| 1667 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1668 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1669 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1670 | |
| 1671 | ## ------------------------ ## |
| 1672 | ## Autoconf initialization. ## |
| 1673 | ## ------------------------ ## |
| 1674 | |
| 1675 | # ac_fn_c_try_compile LINENO |
| 1676 | # -------------------------- |
| 1677 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1678 | ac_fn_c_try_compile () |
| 1679 | { |
| 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1681 | rm -f conftest.$ac_objext |
| 1682 | if { { ac_try="$ac_compile" |
| 1683 | case "(($ac_try" in |
| 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1685 | *) ac_try_echo=$ac_try;; |
| 1686 | esac |
| 1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1688 | $as_echo "$ac_try_echo"; } >&5 |
| 1689 | (eval "$ac_compile") 2>conftest.err |
| 1690 | ac_status=$? |
| 1691 | if test -s conftest.err; then |
| 1692 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1693 | cat conftest.er1 >&5 |
| 1694 | mv -f conftest.er1 conftest.err |
| 1695 | fi |
| 1696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1697 | test $ac_status = 0; } && { |
| 1698 | test -z "$ac_c_werror_flag" || |
| 1699 | test ! -s conftest.err |
| 1700 | } && test -s conftest.$ac_objext; then : |
| 1701 | ac_retval=0 |
| 1702 | else |
| 1703 | $as_echo "$as_me: failed program was:" >&5 |
| 1704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1705 | |
| 1706 | ac_retval=1 |
| 1707 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1708 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1709 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1710 | |
| 1711 | } # ac_fn_c_try_compile |
| 1712 | |
| 1713 | # ac_fn_c_try_link LINENO |
| 1714 | # ----------------------- |
| 1715 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1716 | ac_fn_c_try_link () |
| 1717 | { |
| 1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1720 | if { { ac_try="$ac_link" |
| 1721 | case "(($ac_try" in |
| 1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1723 | *) ac_try_echo=$ac_try;; |
| 1724 | esac |
| 1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1726 | $as_echo "$ac_try_echo"; } >&5 |
| 1727 | (eval "$ac_link") 2>conftest.err |
| 1728 | ac_status=$? |
| 1729 | if test -s conftest.err; then |
| 1730 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1731 | cat conftest.er1 >&5 |
| 1732 | mv -f conftest.er1 conftest.err |
| 1733 | fi |
| 1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1735 | test $ac_status = 0; } && { |
| 1736 | test -z "$ac_c_werror_flag" || |
| 1737 | test ! -s conftest.err |
| 1738 | } && test -s conftest$ac_exeext && { |
| 1739 | test "$cross_compiling" = yes || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1740 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1741 | }; then : |
| 1742 | ac_retval=0 |
| 1743 | else |
| 1744 | $as_echo "$as_me: failed program was:" >&5 |
| 1745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1746 | |
| 1747 | ac_retval=1 |
| 1748 | fi |
| 1749 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1750 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1751 | # interfere with the next link command; also delete a directory that is |
| 1752 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1753 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1755 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1756 | |
| 1757 | } # ac_fn_c_try_link |
| 1758 | |
| 1759 | # ac_fn_c_try_cpp LINENO |
| 1760 | # ---------------------- |
| 1761 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1762 | ac_fn_c_try_cpp () |
| 1763 | { |
| 1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1765 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1766 | case "(($ac_try" in |
| 1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1768 | *) ac_try_echo=$ac_try;; |
| 1769 | esac |
| 1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1771 | $as_echo "$ac_try_echo"; } >&5 |
| 1772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1773 | ac_status=$? |
| 1774 | if test -s conftest.err; then |
| 1775 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1776 | cat conftest.er1 >&5 |
| 1777 | mv -f conftest.er1 conftest.err |
| 1778 | fi |
| 1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1780 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1781 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1782 | test ! -s conftest.err |
| 1783 | }; then : |
| 1784 | ac_retval=0 |
| 1785 | else |
| 1786 | $as_echo "$as_me: failed program was:" >&5 |
| 1787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1788 | |
| 1789 | ac_retval=1 |
| 1790 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1792 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1793 | |
| 1794 | } # ac_fn_c_try_cpp |
| 1795 | |
| 1796 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1797 | # ------------------------------------------------------- |
| 1798 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1799 | # the include files in INCLUDES and setting the cache variable VAR |
| 1800 | # accordingly. |
| 1801 | ac_fn_c_check_header_mongrel () |
| 1802 | { |
| 1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1804 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1806 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1807 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1808 | $as_echo_n "(cached) " >&6 |
| 1809 | fi |
| 1810 | eval ac_res=\$$3 |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1812 | $as_echo "$ac_res" >&6; } |
| 1813 | else |
| 1814 | # Is the header compilable? |
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1816 | $as_echo_n "checking $2 usability... " >&6; } |
| 1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1818 | /* end confdefs.h. */ |
| 1819 | $4 |
| 1820 | #include <$2> |
| 1821 | _ACEOF |
| 1822 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1823 | ac_header_compiler=yes |
| 1824 | else |
| 1825 | ac_header_compiler=no |
| 1826 | fi |
| 1827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1829 | $as_echo "$ac_header_compiler" >&6; } |
| 1830 | |
| 1831 | # Is the header present? |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1833 | $as_echo_n "checking $2 presence... " >&6; } |
| 1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1835 | /* end confdefs.h. */ |
| 1836 | #include <$2> |
| 1837 | _ACEOF |
| 1838 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1839 | ac_header_preproc=yes |
| 1840 | else |
| 1841 | ac_header_preproc=no |
| 1842 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1843 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1845 | $as_echo "$ac_header_preproc" >&6; } |
| 1846 | |
| 1847 | # So? What about this header? |
| 1848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1849 | yes:no: ) |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1851 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1853 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1854 | ;; |
| 1855 | no:yes:* ) |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1857 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1859 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1861 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1863 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1866 | ;; |
| 1867 | esac |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1869 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1870 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1871 | $as_echo_n "(cached) " >&6 |
| 1872 | else |
| 1873 | eval "$3=\$ac_header_compiler" |
| 1874 | fi |
| 1875 | eval ac_res=\$$3 |
| 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1877 | $as_echo "$ac_res" >&6; } |
| 1878 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1880 | |
| 1881 | } # ac_fn_c_check_header_mongrel |
| 1882 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1883 | # ac_fn_c_try_run LINENO |
| 1884 | # ---------------------- |
| 1885 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1886 | # that executables *can* be run. |
| 1887 | ac_fn_c_try_run () |
| 1888 | { |
| 1889 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1890 | if { { ac_try="$ac_link" |
| 1891 | case "(($ac_try" in |
| 1892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1893 | *) ac_try_echo=$ac_try;; |
| 1894 | esac |
| 1895 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1896 | $as_echo "$ac_try_echo"; } >&5 |
| 1897 | (eval "$ac_link") 2>&5 |
| 1898 | ac_status=$? |
| 1899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1900 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1901 | { { case "(($ac_try" in |
| 1902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1903 | *) ac_try_echo=$ac_try;; |
| 1904 | esac |
| 1905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1906 | $as_echo "$ac_try_echo"; } >&5 |
| 1907 | (eval "$ac_try") 2>&5 |
| 1908 | ac_status=$? |
| 1909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1910 | test $ac_status = 0; }; }; then : |
| 1911 | ac_retval=0 |
| 1912 | else |
| 1913 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1914 | $as_echo "$as_me: failed program was:" >&5 |
| 1915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1916 | |
| 1917 | ac_retval=$ac_status |
| 1918 | fi |
| 1919 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1920 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1921 | as_fn_set_status $ac_retval |
| 1922 | |
| 1923 | } # ac_fn_c_try_run |
| 1924 | |
| 1925 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1926 | # ------------------------------------------------------- |
| 1927 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1928 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1929 | ac_fn_c_check_header_compile () |
| 1930 | { |
| 1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1933 | $as_echo_n "checking for $2... " >&6; } |
| 1934 | if eval \${$3+:} false; then : |
| 1935 | $as_echo_n "(cached) " >&6 |
| 1936 | else |
| 1937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1938 | /* end confdefs.h. */ |
| 1939 | $4 |
| 1940 | #include <$2> |
| 1941 | _ACEOF |
| 1942 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1943 | eval "$3=yes" |
| 1944 | else |
| 1945 | eval "$3=no" |
| 1946 | fi |
| 1947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1948 | fi |
| 1949 | eval ac_res=\$$3 |
| 1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1951 | $as_echo "$ac_res" >&6; } |
| 1952 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1953 | |
| 1954 | } # ac_fn_c_check_header_compile |
| 1955 | |
| 1956 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1957 | # ------------------------------------------- |
| 1958 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1959 | # variable VAR accordingly. |
| 1960 | ac_fn_c_check_type () |
| 1961 | { |
| 1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1964 | $as_echo_n "checking for $2... " >&6; } |
| 1965 | if eval \${$3+:} false; then : |
| 1966 | $as_echo_n "(cached) " >&6 |
| 1967 | else |
| 1968 | eval "$3=no" |
| 1969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1970 | /* end confdefs.h. */ |
| 1971 | $4 |
| 1972 | int |
| 1973 | main () |
| 1974 | { |
| 1975 | if (sizeof ($2)) |
| 1976 | return 0; |
| 1977 | ; |
| 1978 | return 0; |
| 1979 | } |
| 1980 | _ACEOF |
| 1981 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1983 | /* end confdefs.h. */ |
| 1984 | $4 |
| 1985 | int |
| 1986 | main () |
| 1987 | { |
| 1988 | if (sizeof (($2))) |
| 1989 | return 0; |
| 1990 | ; |
| 1991 | return 0; |
| 1992 | } |
| 1993 | _ACEOF |
| 1994 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1995 | |
| 1996 | else |
| 1997 | eval "$3=yes" |
| 1998 | fi |
| 1999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2000 | fi |
| 2001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2002 | fi |
| 2003 | eval ac_res=\$$3 |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2005 | $as_echo "$ac_res" >&6; } |
| 2006 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2007 | |
| 2008 | } # ac_fn_c_check_type |
| 2009 | |
| 2010 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2011 | # ---------------------------------- |
| 2012 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2013 | ac_fn_c_check_func () |
| 2014 | { |
| 2015 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2017 | $as_echo_n "checking for $2... " >&6; } |
| 2018 | if eval \${$3+:} false; then : |
| 2019 | $as_echo_n "(cached) " >&6 |
| 2020 | else |
| 2021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2022 | /* end confdefs.h. */ |
| 2023 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2024 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2025 | #define $2 innocuous_$2 |
| 2026 | |
| 2027 | /* System header to define __stub macros and hopefully few prototypes, |
| 2028 | which can conflict with char $2 (); below. |
| 2029 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2030 | <limits.h> exists even on freestanding compilers. */ |
| 2031 | |
| 2032 | #ifdef __STDC__ |
| 2033 | # include <limits.h> |
| 2034 | #else |
| 2035 | # include <assert.h> |
| 2036 | #endif |
| 2037 | |
| 2038 | #undef $2 |
| 2039 | |
| 2040 | /* Override any GCC internal prototype to avoid an error. |
| 2041 | Use char because int might match the return type of a GCC |
| 2042 | builtin and then its argument prototype would still apply. */ |
| 2043 | #ifdef __cplusplus |
| 2044 | extern "C" |
| 2045 | #endif |
| 2046 | char $2 (); |
| 2047 | /* The GNU C library defines this for functions which it implements |
| 2048 | to always fail with ENOSYS. Some functions are actually named |
| 2049 | something starting with __ and the normal name is an alias. */ |
| 2050 | #if defined __stub_$2 || defined __stub___$2 |
| 2051 | choke me |
| 2052 | #endif |
| 2053 | |
| 2054 | int |
| 2055 | main () |
| 2056 | { |
| 2057 | return $2 (); |
| 2058 | ; |
| 2059 | return 0; |
| 2060 | } |
| 2061 | _ACEOF |
| 2062 | if ac_fn_c_try_link "$LINENO"; then : |
| 2063 | eval "$3=yes" |
| 2064 | else |
| 2065 | eval "$3=no" |
| 2066 | fi |
| 2067 | rm -f core conftest.err conftest.$ac_objext \ |
| 2068 | conftest$ac_exeext conftest.$ac_ext |
| 2069 | fi |
| 2070 | eval ac_res=\$$3 |
| 2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2072 | $as_echo "$ac_res" >&6; } |
| 2073 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2074 | |
| 2075 | } # ac_fn_c_check_func |
| 2076 | |
| 2077 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2078 | # --------------------------------------------- |
| 2079 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2080 | # accordingly. |
| 2081 | ac_fn_c_check_decl () |
| 2082 | { |
| 2083 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2084 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2085 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2087 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2088 | if eval \${$3+:} false; then : |
| 2089 | $as_echo_n "(cached) " >&6 |
| 2090 | else |
| 2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2092 | /* end confdefs.h. */ |
| 2093 | $4 |
| 2094 | int |
| 2095 | main () |
| 2096 | { |
| 2097 | #ifndef $as_decl_name |
| 2098 | #ifdef __cplusplus |
| 2099 | (void) $as_decl_use; |
| 2100 | #else |
| 2101 | (void) $as_decl_name; |
| 2102 | #endif |
| 2103 | #endif |
| 2104 | |
| 2105 | ; |
| 2106 | return 0; |
| 2107 | } |
| 2108 | _ACEOF |
| 2109 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2110 | eval "$3=yes" |
| 2111 | else |
| 2112 | eval "$3=no" |
| 2113 | fi |
| 2114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2115 | fi |
| 2116 | eval ac_res=\$$3 |
| 2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2118 | $as_echo "$ac_res" >&6; } |
| 2119 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2120 | |
| 2121 | } # ac_fn_c_check_decl |
| 2122 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2123 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2124 | # -------------------------------------------- |
| 2125 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2126 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2127 | # computed |
| 2128 | ac_fn_c_compute_int () |
| 2129 | { |
| 2130 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2131 | if test "$cross_compiling" = yes; then |
| 2132 | # Depending upon the size, compute the lo and hi bounds. |
| 2133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2134 | /* end confdefs.h. */ |
| 2135 | $4 |
| 2136 | int |
| 2137 | main () |
| 2138 | { |
| 2139 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2140 | test_array [0] = 0; |
| 2141 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2142 | |
| 2143 | ; |
| 2144 | return 0; |
| 2145 | } |
| 2146 | _ACEOF |
| 2147 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2148 | ac_lo=0 ac_mid=0 |
| 2149 | while :; do |
| 2150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2151 | /* end confdefs.h. */ |
| 2152 | $4 |
| 2153 | int |
| 2154 | main () |
| 2155 | { |
| 2156 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2157 | test_array [0] = 0; |
| 2158 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2159 | |
| 2160 | ; |
| 2161 | return 0; |
| 2162 | } |
| 2163 | _ACEOF |
| 2164 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2165 | ac_hi=$ac_mid; break |
| 2166 | else |
| 2167 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2168 | if test $ac_lo -le $ac_mid; then |
| 2169 | ac_lo= ac_hi= |
| 2170 | break |
| 2171 | fi |
| 2172 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2173 | fi |
| 2174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2175 | done |
| 2176 | else |
| 2177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2178 | /* end confdefs.h. */ |
| 2179 | $4 |
| 2180 | int |
| 2181 | main () |
| 2182 | { |
| 2183 | static int test_array [1 - 2 * !(($2) < 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2184 | test_array [0] = 0; |
| 2185 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2186 | |
| 2187 | ; |
| 2188 | return 0; |
| 2189 | } |
| 2190 | _ACEOF |
| 2191 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2192 | ac_hi=-1 ac_mid=-1 |
| 2193 | while :; do |
| 2194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2195 | /* end confdefs.h. */ |
| 2196 | $4 |
| 2197 | int |
| 2198 | main () |
| 2199 | { |
| 2200 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2201 | test_array [0] = 0; |
| 2202 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2203 | |
| 2204 | ; |
| 2205 | return 0; |
| 2206 | } |
| 2207 | _ACEOF |
| 2208 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2209 | ac_lo=$ac_mid; break |
| 2210 | else |
| 2211 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2212 | if test $ac_mid -le $ac_hi; then |
| 2213 | ac_lo= ac_hi= |
| 2214 | break |
| 2215 | fi |
| 2216 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2217 | fi |
| 2218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2219 | done |
| 2220 | else |
| 2221 | ac_lo= ac_hi= |
| 2222 | fi |
| 2223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2224 | fi |
| 2225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2226 | # Binary search between lo and hi bounds. |
| 2227 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2228 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2230 | /* end confdefs.h. */ |
| 2231 | $4 |
| 2232 | int |
| 2233 | main () |
| 2234 | { |
| 2235 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2236 | test_array [0] = 0; |
| 2237 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2238 | |
| 2239 | ; |
| 2240 | return 0; |
| 2241 | } |
| 2242 | _ACEOF |
| 2243 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2244 | ac_hi=$ac_mid |
| 2245 | else |
| 2246 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2247 | fi |
| 2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2249 | done |
| 2250 | case $ac_lo in #(( |
| 2251 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2252 | '') ac_retval=1 ;; |
| 2253 | esac |
| 2254 | else |
| 2255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2256 | /* end confdefs.h. */ |
| 2257 | $4 |
| 2258 | static long int longval () { return $2; } |
| 2259 | static unsigned long int ulongval () { return $2; } |
| 2260 | #include <stdio.h> |
| 2261 | #include <stdlib.h> |
| 2262 | int |
| 2263 | main () |
| 2264 | { |
| 2265 | |
| 2266 | FILE *f = fopen ("conftest.val", "w"); |
| 2267 | if (! f) |
| 2268 | return 1; |
| 2269 | if (($2) < 0) |
| 2270 | { |
| 2271 | long int i = longval (); |
| 2272 | if (i != ($2)) |
| 2273 | return 1; |
| 2274 | fprintf (f, "%ld", i); |
| 2275 | } |
| 2276 | else |
| 2277 | { |
| 2278 | unsigned long int i = ulongval (); |
| 2279 | if (i != ($2)) |
| 2280 | return 1; |
| 2281 | fprintf (f, "%lu", i); |
| 2282 | } |
| 2283 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2284 | on some platforms. */ |
| 2285 | return ferror (f) || fclose (f) != 0; |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | if ac_fn_c_try_run "$LINENO"; then : |
| 2292 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2293 | else |
| 2294 | ac_retval=1 |
| 2295 | fi |
| 2296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2297 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2298 | rm -f conftest.val |
| 2299 | |
| 2300 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2301 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2302 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2303 | |
| 2304 | } # ac_fn_c_compute_int |
| 2305 | |
| 2306 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2307 | # ---------------------------------------------------- |
| 2308 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2309 | # INCLUDES, setting cache variable VAR accordingly. |
| 2310 | ac_fn_c_check_member () |
| 2311 | { |
| 2312 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2314 | $as_echo_n "checking for $2.$3... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2315 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2316 | $as_echo_n "(cached) " >&6 |
| 2317 | else |
| 2318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2319 | /* end confdefs.h. */ |
| 2320 | $5 |
| 2321 | int |
| 2322 | main () |
| 2323 | { |
| 2324 | static $2 ac_aggr; |
| 2325 | if (ac_aggr.$3) |
| 2326 | return 0; |
| 2327 | ; |
| 2328 | return 0; |
| 2329 | } |
| 2330 | _ACEOF |
| 2331 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2332 | eval "$4=yes" |
| 2333 | else |
| 2334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2335 | /* end confdefs.h. */ |
| 2336 | $5 |
| 2337 | int |
| 2338 | main () |
| 2339 | { |
| 2340 | static $2 ac_aggr; |
| 2341 | if (sizeof ac_aggr.$3) |
| 2342 | return 0; |
| 2343 | ; |
| 2344 | return 0; |
| 2345 | } |
| 2346 | _ACEOF |
| 2347 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2348 | eval "$4=yes" |
| 2349 | else |
| 2350 | eval "$4=no" |
| 2351 | fi |
| 2352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2353 | fi |
| 2354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2355 | fi |
| 2356 | eval ac_res=\$$4 |
| 2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2358 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2359 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2360 | |
| 2361 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2362 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2363 | This file contains any messages produced by compilers while |
| 2364 | running configure, to aid debugging if configure makes a mistake. |
| 2365 | |
| 2366 | It was created by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2367 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2368 | |
| 2369 | $ $0 $@ |
| 2370 | |
| 2371 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2372 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2373 | { |
| 2374 | cat <<_ASUNAME |
| 2375 | ## --------- ## |
| 2376 | ## Platform. ## |
| 2377 | ## --------- ## |
| 2378 | |
| 2379 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2380 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2381 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2382 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2383 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2384 | |
| 2385 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2386 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2387 | |
| 2388 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2389 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2390 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2391 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2393 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2394 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2395 | |
| 2396 | _ASUNAME |
| 2397 | |
| 2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2399 | for as_dir in $PATH |
| 2400 | do |
| 2401 | IFS=$as_save_IFS |
| 2402 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2403 | $as_echo "PATH: $as_dir" |
| 2404 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2405 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2406 | |
| 2407 | } >&5 |
| 2408 | |
| 2409 | cat >&5 <<_ACEOF |
| 2410 | |
| 2411 | |
| 2412 | ## ----------- ## |
| 2413 | ## Core tests. ## |
| 2414 | ## ----------- ## |
| 2415 | |
| 2416 | _ACEOF |
| 2417 | |
| 2418 | |
| 2419 | # Keep a trace of the command line. |
| 2420 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2421 | # Strip out --silent because we don't want to record it for future runs. |
| 2422 | # Also quote any args containing shell meta-characters. |
| 2423 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2424 | ac_configure_args= |
| 2425 | ac_configure_args0= |
| 2426 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2427 | ac_must_keep_next=false |
| 2428 | for ac_pass in 1 2 |
| 2429 | do |
| 2430 | for ac_arg |
| 2431 | do |
| 2432 | case $ac_arg in |
| 2433 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2434 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2435 | | -silent | --silent | --silen | --sile | --sil) |
| 2436 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2438 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2439 | esac |
| 2440 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2441 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2442 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2443 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2444 | if test $ac_must_keep_next = true; then |
| 2445 | ac_must_keep_next=false # Got value, back to normal. |
| 2446 | else |
| 2447 | case $ac_arg in |
| 2448 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2449 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2450 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2451 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2452 | case "$ac_configure_args0 " in |
| 2453 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2454 | esac |
| 2455 | ;; |
| 2456 | -* ) ac_must_keep_next=true ;; |
| 2457 | esac |
| 2458 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2459 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | ;; |
| 2461 | esac |
| 2462 | done |
| 2463 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2464 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2465 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | |
| 2467 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2468 | # config.log. We remove comments because anyway the quotes in there |
| 2469 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2470 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2471 | # 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] | 2472 | trap 'exit_status=$? |
| 2473 | # Save into config.log some information that might help in debugging. |
| 2474 | { |
| 2475 | echo |
| 2476 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2477 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2478 | ## Cache variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2479 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2480 | echo |
| 2481 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2482 | ( |
| 2483 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2484 | eval ac_val=\$$ac_var |
| 2485 | case $ac_val in #( |
| 2486 | *${as_nl}*) |
| 2487 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2488 | *_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] | 2489 | $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] | 2490 | esac |
| 2491 | case $ac_var in #( |
| 2492 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2493 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2494 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2495 | esac ;; |
| 2496 | esac |
| 2497 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2498 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2499 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2500 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2501 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2502 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2503 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2504 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2505 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2506 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2507 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2508 | esac | |
| 2509 | sort |
| 2510 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | echo |
| 2512 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2513 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2514 | ## Output variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2515 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2516 | echo |
| 2517 | for ac_var in $ac_subst_vars |
| 2518 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | eval ac_val=\$$ac_var |
| 2520 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2521 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2522 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2523 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2524 | done | sort |
| 2525 | echo |
| 2526 | |
| 2527 | if test -n "$ac_subst_files"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2528 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2529 | ## File substitutions. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2530 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | echo |
| 2532 | for ac_var in $ac_subst_files |
| 2533 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2534 | eval ac_val=\$$ac_var |
| 2535 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2536 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2537 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2538 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2539 | done | sort |
| 2540 | echo |
| 2541 | fi |
| 2542 | |
| 2543 | if test -s confdefs.h; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2544 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | ## confdefs.h. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2546 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2547 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2548 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | echo |
| 2550 | fi |
| 2551 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2552 | $as_echo "$as_me: caught signal $ac_signal" |
| 2553 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2554 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2555 | rm -f core *.core core.conftest.* && |
| 2556 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2557 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2558 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2559 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2560 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | done |
| 2562 | ac_signal=0 |
| 2563 | |
| 2564 | # 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] | 2565 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2566 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2567 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2568 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2569 | # Predefined preprocessor variables. |
| 2570 | |
| 2571 | cat >>confdefs.h <<_ACEOF |
| 2572 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2573 | _ACEOF |
| 2574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2575 | cat >>confdefs.h <<_ACEOF |
| 2576 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2577 | _ACEOF |
| 2578 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2579 | cat >>confdefs.h <<_ACEOF |
| 2580 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2581 | _ACEOF |
| 2582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2583 | cat >>confdefs.h <<_ACEOF |
| 2584 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2585 | _ACEOF |
| 2586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | cat >>confdefs.h <<_ACEOF |
| 2588 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2589 | _ACEOF |
| 2590 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2591 | cat >>confdefs.h <<_ACEOF |
| 2592 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2593 | _ACEOF |
| 2594 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2595 | |
| 2596 | # 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] | 2597 | # Prefer an explicitly selected file to automatically selected ones. |
| 2598 | ac_site_file1=NONE |
| 2599 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2600 | if test -n "$CONFIG_SITE"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2601 | # We do not want a PATH search for config.site. |
| 2602 | case $CONFIG_SITE in #(( |
| 2603 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2604 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2605 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2606 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2607 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2608 | ac_site_file1=$prefix/share/config.site |
| 2609 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2610 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2611 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2612 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2613 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2614 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2616 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2617 | 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] | 2618 | { $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] | 2619 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2620 | sed 's/^/| /' "$ac_site_file" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2621 | . "$ac_site_file" \ |
| 2622 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2624 | as_fn_error $? "failed to load site script $ac_site_file |
| 2625 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2626 | fi |
| 2627 | done |
| 2628 | |
| 2629 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2630 | # Some versions of bash will fail to source /dev/null (special files |
| 2631 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2632 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2633 | { $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] | 2634 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2635 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2636 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2637 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2638 | esac |
| 2639 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2640 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2641 | { $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] | 2642 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2643 | >$cache_file |
| 2644 | fi |
| 2645 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2646 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2647 | as_fn_append ac_header_list " stdlib.h" |
| 2648 | as_fn_append ac_header_list " unistd.h" |
| 2649 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2650 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2651 | # Check that the precious variables saved in the cache have kept the same |
| 2652 | # value. |
| 2653 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2654 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2656 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2657 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2658 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2659 | case $ac_old_set,$ac_new_set in |
| 2660 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2661 | { $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] | 2662 | $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] | 2663 | ac_cache_corrupted=: ;; |
| 2664 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2665 | { $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] | 2666 | $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] | 2667 | ac_cache_corrupted=: ;; |
| 2668 | ,);; |
| 2669 | *) |
| 2670 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2671 | # differences in whitespace do not lead to failure. |
| 2672 | ac_old_val_w=`echo x $ac_old_val` |
| 2673 | ac_new_val_w=`echo x $ac_new_val` |
| 2674 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2675 | { $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] | 2676 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2677 | ac_cache_corrupted=: |
| 2678 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2679 | { $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] | 2680 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2681 | eval $ac_var=\$ac_old_val |
| 2682 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2683 | { $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] | 2684 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2685 | { $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] | 2686 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2687 | fi;; |
| 2688 | esac |
| 2689 | # Pass precious variables to config.status. |
| 2690 | if test "$ac_new_set" = set; then |
| 2691 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2692 | *\'*) 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] | 2693 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2694 | esac |
| 2695 | case " $ac_configure_args " in |
| 2696 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2697 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2698 | esac |
| 2699 | fi |
| 2700 | done |
| 2701 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2702 | { $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] | 2703 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2704 | { $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] | 2705 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2706 | 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] | 2707 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2708 | ## -------------------- ## |
| 2709 | ## Main body of script. ## |
| 2710 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2711 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2712 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2713 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2717 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2718 | |
| 2719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2720 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2721 | for ac_dir in config "$srcdir"/config; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2722 | if test -f "$ac_dir/install-sh"; then |
| 2723 | ac_aux_dir=$ac_dir |
| 2724 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2725 | break |
| 2726 | elif test -f "$ac_dir/install.sh"; then |
| 2727 | ac_aux_dir=$ac_dir |
| 2728 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2729 | break |
| 2730 | elif test -f "$ac_dir/shtool"; then |
| 2731 | ac_aux_dir=$ac_dir |
| 2732 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2733 | break |
| 2734 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2735 | done |
| 2736 | if test -z "$ac_aux_dir"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2737 | 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] | 2738 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2739 | |
| 2740 | # These three variables are undocumented and unsupported, |
| 2741 | # and are intended to be withdrawn in a future Autoconf release. |
| 2742 | # They can cause serious problems if a builder's source tree is in a directory |
| 2743 | # whose full name contains unusual characters. |
| 2744 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2745 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2746 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2747 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2748 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2749 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2750 | |
| 2751 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2752 | MCONFIG=./MCONFIG |
| 2753 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2754 | BINARY_TYPE=bin |
| 2755 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2756 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2757 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2758 | | tr \" " "` |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2759 | E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2760 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2761 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2762 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2763 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2764 | E2FSPROGS_YEAR=$YEAR |
| 2765 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2766 | E2FSPROGS_YEAR=19$YEAR |
| 2767 | else |
| 2768 | E2FSPROGS_YEAR=20$YEAR |
| 2769 | fi |
| 2770 | |
| 2771 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2772 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2773 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2774 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2775 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2776 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2777 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2778 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2779 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2780 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2781 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2782 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2783 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2784 | *) { $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] | 2785 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2786 | esac |
| 2787 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2788 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2789 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2790 | |
| 2791 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2792 | |
| 2793 | case $E2FSPROGS_VERSION in |
| 2794 | *-WIP|pre-*) |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2795 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2796 | ;; |
| 2797 | *) |
| 2798 | E2FSPROGS_PKGVER="$base_ver" |
| 2799 | ;; |
| 2800 | esac |
| 2801 | |
| 2802 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2803 | { $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] | 2804 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2805 | { $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] | 2806 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2807 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2808 | |
| 2809 | |
| 2810 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2811 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2812 | WITH_DIET_LIBC= |
| 2813 | |
| 2814 | # Check whether --with-diet-libc was given. |
| 2815 | if test "${with_diet_libc+set}" = set; then : |
| 2816 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2817 | WITH_DIET_LIBC=yes |
| 2818 | if test -z "$LIBS" |
| 2819 | then |
| 2820 | LIBS="-lcompat" |
| 2821 | else |
| 2822 | LIBS="$LIBS -lcompat" |
| 2823 | fi |
| 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2825 | $as_echo "CC=$CC" >&6; } |
| 2826 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2827 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2828 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2829 | 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] | 2830 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2831 | { $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] | 2832 | $as_echo_n "checking build system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2833 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2834 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2835 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2836 | ac_build_alias=$build_alias |
| 2837 | test "x$ac_build_alias" = x && |
| 2838 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2839 | test "x$ac_build_alias" = x && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2840 | 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] | 2841 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2842 | 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] | 2843 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2844 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2845 | { $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] | 2846 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2847 | case $ac_cv_build in |
| 2848 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2849 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2850 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2851 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2852 | ac_save_IFS=$IFS; IFS='-' |
| 2853 | set x $ac_cv_build |
| 2854 | shift |
| 2855 | build_cpu=$1 |
| 2856 | build_vendor=$2 |
| 2857 | shift; shift |
| 2858 | # Remember, the first character of IFS is used to create $*, |
| 2859 | # except with old shells: |
| 2860 | build_os=$* |
| 2861 | IFS=$ac_save_IFS |
| 2862 | 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] | 2863 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2864 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2865 | { $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] | 2866 | $as_echo_n "checking host system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2867 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2868 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2869 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | if test "x$host_alias" = x; then |
| 2871 | ac_cv_host=$ac_cv_build |
| 2872 | else |
| 2873 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2874 | 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] | 2875 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2877 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2878 | { $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] | 2879 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2880 | case $ac_cv_host in |
| 2881 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2882 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2883 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2884 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2885 | ac_save_IFS=$IFS; IFS='-' |
| 2886 | set x $ac_cv_host |
| 2887 | shift |
| 2888 | host_cpu=$1 |
| 2889 | host_vendor=$2 |
| 2890 | shift; shift |
| 2891 | # Remember, the first character of IFS is used to create $*, |
| 2892 | # except with old shells: |
| 2893 | host_os=$* |
| 2894 | IFS=$ac_save_IFS |
| 2895 | 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] | 2896 | |
| 2897 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2898 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2899 | ac_ext=c |
| 2900 | ac_cpp='$CPP $CPPFLAGS' |
| 2901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2904 | if test -n "$ac_tool_prefix"; then |
| 2905 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2906 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2907 | { $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] | 2908 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2909 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2910 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2911 | else |
| 2912 | if test -n "$CC"; then |
| 2913 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2914 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2916 | for as_dir in $PATH |
| 2917 | do |
| 2918 | IFS=$as_save_IFS |
| 2919 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2920 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2921 | 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] | 2922 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2923 | $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] | 2924 | break 2 |
| 2925 | fi |
| 2926 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2927 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2928 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2929 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2930 | fi |
| 2931 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2932 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2933 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2935 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2936 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2938 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2939 | fi |
| 2940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2942 | fi |
| 2943 | if test -z "$ac_cv_prog_CC"; then |
| 2944 | ac_ct_CC=$CC |
| 2945 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2946 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2947 | { $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] | 2948 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2949 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2950 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2951 | else |
| 2952 | if test -n "$ac_ct_CC"; then |
| 2953 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2954 | else |
| 2955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2956 | for as_dir in $PATH |
| 2957 | do |
| 2958 | IFS=$as_save_IFS |
| 2959 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2960 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2961 | 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] | 2962 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2963 | $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] | 2964 | break 2 |
| 2965 | fi |
| 2966 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2967 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2968 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2969 | |
| 2970 | fi |
| 2971 | fi |
| 2972 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2973 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2974 | { $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] | 2975 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2976 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2978 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2979 | fi |
| 2980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2981 | if test "x$ac_ct_CC" = x; then |
| 2982 | CC="" |
| 2983 | else |
| 2984 | case $cross_compiling:$ac_tool_warned in |
| 2985 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2986 | { $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] | 2987 | $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] | 2988 | ac_tool_warned=yes ;; |
| 2989 | esac |
| 2990 | CC=$ac_ct_CC |
| 2991 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2992 | else |
| 2993 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2994 | fi |
| 2995 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2996 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2997 | if test -n "$ac_tool_prefix"; then |
| 2998 | # 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] | 2999 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3000 | { $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] | 3001 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3002 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3003 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3004 | else |
| 3005 | if test -n "$CC"; then |
| 3006 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3007 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3009 | for as_dir in $PATH |
| 3010 | do |
| 3011 | IFS=$as_save_IFS |
| 3012 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3013 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3014 | 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] | 3015 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3016 | $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] | 3017 | break 2 |
| 3018 | fi |
| 3019 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3020 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3021 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3022 | |
| 3023 | fi |
| 3024 | fi |
| 3025 | CC=$ac_cv_prog_CC |
| 3026 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3028 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3029 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3031 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3032 | fi |
| 3033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3034 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3036 | fi |
| 3037 | if test -z "$CC"; then |
| 3038 | # Extract the first word of "cc", so it can be a program name with args. |
| 3039 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3040 | { $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] | 3041 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3042 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3043 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3044 | else |
| 3045 | if test -n "$CC"; then |
| 3046 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3047 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3048 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3050 | for as_dir in $PATH |
| 3051 | do |
| 3052 | IFS=$as_save_IFS |
| 3053 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3055 | 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] | 3056 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3057 | ac_prog_rejected=yes |
| 3058 | continue |
| 3059 | fi |
| 3060 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3061 | $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] | 3062 | break 2 |
| 3063 | fi |
| 3064 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3065 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3066 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3067 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3068 | if test $ac_prog_rejected = yes; then |
| 3069 | # We found a bogon in the path, so make sure we never use it. |
| 3070 | set dummy $ac_cv_prog_CC |
| 3071 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3072 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3073 | # We chose a different compiler from the bogus one. |
| 3074 | # However, it has the same basename, so the bogon will be chosen |
| 3075 | # first if we set CC to just the basename; use the full file name. |
| 3076 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3077 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | fi |
| 3080 | fi |
| 3081 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3082 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3083 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3085 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3086 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3088 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3089 | fi |
| 3090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3091 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3092 | fi |
| 3093 | if test -z "$CC"; then |
| 3094 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3095 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3096 | do |
| 3097 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3098 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3099 | { $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] | 3100 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3101 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3102 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3103 | else |
| 3104 | if test -n "$CC"; then |
| 3105 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3106 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3108 | for as_dir in $PATH |
| 3109 | do |
| 3110 | IFS=$as_save_IFS |
| 3111 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3112 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3113 | 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] | 3114 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3115 | $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] | 3116 | break 2 |
| 3117 | fi |
| 3118 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3119 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3120 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3121 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3122 | fi |
| 3123 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3124 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3125 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3127 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3128 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3130 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3131 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3132 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3134 | test -n "$CC" && break |
| 3135 | done |
| 3136 | fi |
| 3137 | if test -z "$CC"; then |
| 3138 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3139 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3140 | do |
| 3141 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3142 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3143 | { $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] | 3144 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3145 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3146 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | else |
| 3148 | if test -n "$ac_ct_CC"; then |
| 3149 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3150 | else |
| 3151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3152 | for as_dir in $PATH |
| 3153 | do |
| 3154 | IFS=$as_save_IFS |
| 3155 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3157 | 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] | 3158 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3159 | $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] | 3160 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3161 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3162 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3163 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3164 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3165 | |
| 3166 | fi |
| 3167 | fi |
| 3168 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3169 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3170 | { $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] | 3171 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3174 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3175 | fi |
| 3176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3178 | test -n "$ac_ct_CC" && break |
| 3179 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3181 | if test "x$ac_ct_CC" = x; then |
| 3182 | CC="" |
| 3183 | else |
| 3184 | case $cross_compiling:$ac_tool_warned in |
| 3185 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3186 | { $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] | 3187 | $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] | 3188 | ac_tool_warned=yes ;; |
| 3189 | esac |
| 3190 | CC=$ac_ct_CC |
| 3191 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3192 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3194 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3195 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3196 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3197 | 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] | 3198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3199 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3200 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3201 | |
| 3202 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3203 | $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] | 3204 | set X $ac_compile |
| 3205 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3206 | for ac_option in --version -v -V -qversion; do |
| 3207 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3208 | case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3213 | $as_echo "$ac_try_echo"; } >&5 |
| 3214 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3215 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3216 | if test -s conftest.err; then |
| 3217 | sed '10a\ |
| 3218 | ... rest of stderr output deleted ... |
| 3219 | 10q' conftest.err >conftest.er1 |
| 3220 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3221 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3222 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3224 | test $ac_status = 0; } |
| 3225 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3226 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3228 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3230 | int |
| 3231 | main () |
| 3232 | { |
| 3233 | |
| 3234 | ; |
| 3235 | return 0; |
| 3236 | } |
| 3237 | _ACEOF |
| 3238 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3239 | 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] | 3240 | # Try to create an executable without -o first, disregard a.out. |
| 3241 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3242 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3244 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3245 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3246 | |
| 3247 | # The possible output files: |
| 3248 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3249 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3250 | ac_rmfiles= |
| 3251 | for ac_file in $ac_files |
| 3252 | do |
| 3253 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3254 | *.$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] | 3255 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3256 | esac |
| 3257 | done |
| 3258 | rm -f $ac_rmfiles |
| 3259 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3260 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3261 | case "(($ac_try" in |
| 3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3263 | *) ac_try_echo=$ac_try;; |
| 3264 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3266 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3267 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3270 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3271 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3272 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3273 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3274 | # so that the user can short-circuit this test for compilers unknown to |
| 3275 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3276 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3277 | do |
| 3278 | test -f "$ac_file" || continue |
| 3279 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3280 | *.$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] | 3281 | ;; |
| 3282 | [ab].out ) |
| 3283 | # We found the default executable, but exeext='' is most |
| 3284 | # certainly right. |
| 3285 | break;; |
| 3286 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3287 | 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] | 3288 | then :; else |
| 3289 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3290 | fi |
| 3291 | # We set ac_cv_exeext here because the later test for it is not |
| 3292 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3293 | # argument, so we may need to know it at that point already. |
| 3294 | # Even if this section looks crufty: it has the advantage of |
| 3295 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | break;; |
| 3297 | * ) |
| 3298 | break;; |
| 3299 | esac |
| 3300 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3301 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3303 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3304 | ac_file='' |
| 3305 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3306 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3308 | $as_echo "no" >&6; } |
| 3309 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3311 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3312 | { { $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] | 3313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3314 | as_fn_error 77 "C compiler cannot create executables |
| 3315 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3316 | else |
| 3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3318 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3319 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3321 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3323 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3324 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3325 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3326 | 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] | 3327 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3328 | { $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] | 3329 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3330 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3331 | case "(($ac_try" in |
| 3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3333 | *) ac_try_echo=$ac_try;; |
| 3334 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3336 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3337 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3338 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3340 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3341 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3342 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3343 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3344 | # `rm'. |
| 3345 | for ac_file in conftest.exe conftest conftest.*; do |
| 3346 | test -f "$ac_file" || continue |
| 3347 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3348 | *.$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] | 3349 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3350 | break;; |
| 3351 | * ) break;; |
| 3352 | esac |
| 3353 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3354 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3355 | { { $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] | 3356 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3357 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3358 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3359 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3360 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3361 | { $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] | 3362 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3363 | |
| 3364 | rm -f conftest.$ac_ext |
| 3365 | EXEEXT=$ac_cv_exeext |
| 3366 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3368 | /* end confdefs.h. */ |
| 3369 | #include <stdio.h> |
| 3370 | int |
| 3371 | main () |
| 3372 | { |
| 3373 | FILE *f = fopen ("conftest.out", "w"); |
| 3374 | return ferror (f) || fclose (f) != 0; |
| 3375 | |
| 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | ac_clean_files="$ac_clean_files conftest.out" |
| 3381 | # Check that the compiler produces executables we can run. If not, either |
| 3382 | # the compiler is broken, or we cross compile. |
| 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3384 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3385 | if test "$cross_compiling" != yes; then |
| 3386 | { { ac_try="$ac_link" |
| 3387 | case "(($ac_try" in |
| 3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3389 | *) ac_try_echo=$ac_try;; |
| 3390 | esac |
| 3391 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3392 | $as_echo "$ac_try_echo"; } >&5 |
| 3393 | (eval "$ac_link") 2>&5 |
| 3394 | ac_status=$? |
| 3395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3396 | test $ac_status = 0; } |
| 3397 | if { ac_try='./conftest$ac_cv_exeext' |
| 3398 | { { case "(($ac_try" in |
| 3399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3400 | *) ac_try_echo=$ac_try;; |
| 3401 | esac |
| 3402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3403 | $as_echo "$ac_try_echo"; } >&5 |
| 3404 | (eval "$ac_try") 2>&5 |
| 3405 | ac_status=$? |
| 3406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3407 | test $ac_status = 0; }; }; then |
| 3408 | cross_compiling=no |
| 3409 | else |
| 3410 | if test "$cross_compiling" = maybe; then |
| 3411 | cross_compiling=yes |
| 3412 | else |
| 3413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3415 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3416 | If you meant to cross compile, use \`--host'. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3417 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3418 | fi |
| 3419 | fi |
| 3420 | fi |
| 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3422 | $as_echo "$cross_compiling" >&6; } |
| 3423 | |
| 3424 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3425 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3426 | { $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] | 3427 | $as_echo_n "checking for suffix of object files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3428 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3429 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3430 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3432 | /* end confdefs.h. */ |
| 3433 | |
| 3434 | int |
| 3435 | main () |
| 3436 | { |
| 3437 | |
| 3438 | ; |
| 3439 | return 0; |
| 3440 | } |
| 3441 | _ACEOF |
| 3442 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3443 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3444 | case "(($ac_try" in |
| 3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3446 | *) ac_try_echo=$ac_try;; |
| 3447 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3449 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3450 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3451 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3453 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3454 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3455 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3456 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3457 | *.$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] | 3458 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3459 | break;; |
| 3460 | esac |
| 3461 | done |
| 3462 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3463 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3465 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3466 | { { $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] | 3467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3468 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3469 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3472 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3473 | { $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] | 3474 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3475 | OBJEXT=$ac_cv_objext |
| 3476 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3477 | { $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] | 3478 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3479 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3480 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3481 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3483 | /* end confdefs.h. */ |
| 3484 | |
| 3485 | int |
| 3486 | main () |
| 3487 | { |
| 3488 | #ifndef __GNUC__ |
| 3489 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3490 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3492 | ; |
| 3493 | return 0; |
| 3494 | } |
| 3495 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3496 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3497 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3498 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3499 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 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 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3502 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3504 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3505 | { $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] | 3506 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3507 | if test $ac_compiler_gnu = yes; then |
| 3508 | GCC=yes |
| 3509 | else |
| 3510 | GCC= |
| 3511 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3512 | ac_test_CFLAGS=${CFLAGS+set} |
| 3513 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3514 | { $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] | 3515 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3516 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3517 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3518 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3519 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3520 | ac_c_werror_flag=yes |
| 3521 | ac_cv_prog_cc_g=no |
| 3522 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3524 | /* end confdefs.h. */ |
| 3525 | |
| 3526 | int |
| 3527 | main () |
| 3528 | { |
| 3529 | |
| 3530 | ; |
| 3531 | return 0; |
| 3532 | } |
| 3533 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3534 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3535 | ac_cv_prog_cc_g=yes |
| 3536 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3537 | CFLAGS="" |
| 3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3539 | /* end confdefs.h. */ |
| 3540 | |
| 3541 | int |
| 3542 | main () |
| 3543 | { |
| 3544 | |
| 3545 | ; |
| 3546 | return 0; |
| 3547 | } |
| 3548 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3549 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3550 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3551 | else |
| 3552 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3553 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3555 | /* end confdefs.h. */ |
| 3556 | |
| 3557 | int |
| 3558 | main () |
| 3559 | { |
| 3560 | |
| 3561 | ; |
| 3562 | return 0; |
| 3563 | } |
| 3564 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3565 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3566 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3567 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3569 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3573 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3574 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3575 | { $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] | 3576 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3577 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3578 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3579 | elif test $ac_cv_prog_cc_g = yes; then |
| 3580 | if test "$GCC" = yes; then |
| 3581 | CFLAGS="-g -O2" |
| 3582 | else |
| 3583 | CFLAGS="-g" |
| 3584 | fi |
| 3585 | else |
| 3586 | if test "$GCC" = yes; then |
| 3587 | CFLAGS="-O2" |
| 3588 | else |
| 3589 | CFLAGS= |
| 3590 | fi |
| 3591 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3592 | { $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] | 3593 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3594 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3595 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3596 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3597 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3598 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3600 | /* end confdefs.h. */ |
| 3601 | #include <stdarg.h> |
| 3602 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3603 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3604 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3605 | struct buf { int x; }; |
| 3606 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3607 | static char *e (p, i) |
| 3608 | char **p; |
| 3609 | int i; |
| 3610 | { |
| 3611 | return p[i]; |
| 3612 | } |
| 3613 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3614 | { |
| 3615 | char *s; |
| 3616 | va_list v; |
| 3617 | va_start (v,p); |
| 3618 | s = g (p, va_arg (v,int)); |
| 3619 | va_end (v); |
| 3620 | return s; |
| 3621 | } |
| 3622 | |
| 3623 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3624 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3625 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3626 | 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] | 3627 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3628 | 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] | 3629 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3630 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3632 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3633 | inside strings and character constants. */ |
| 3634 | #define FOO(x) 'x' |
| 3635 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3636 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3637 | int test (int i, double x); |
| 3638 | struct s1 {int (*f) (int a);}; |
| 3639 | struct s2 {int (*f) (double a);}; |
| 3640 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3641 | int argc; |
| 3642 | char **argv; |
| 3643 | int |
| 3644 | main () |
| 3645 | { |
| 3646 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3647 | ; |
| 3648 | return 0; |
| 3649 | } |
| 3650 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3652 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3653 | do |
| 3654 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3655 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3656 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3657 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3658 | rm -f core conftest.err conftest.$ac_objext |
| 3659 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3660 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3661 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3662 | CC=$ac_save_CC |
| 3663 | |
| 3664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3665 | # AC_CACHE_VAL |
| 3666 | case "x$ac_cv_prog_cc_c89" in |
| 3667 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3669 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3670 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3672 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3673 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3674 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3675 | { $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] | 3676 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3677 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3678 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3679 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3680 | fi |
| 3681 | |
| 3682 | ac_ext=c |
| 3683 | ac_cpp='$CPP $CPPFLAGS' |
| 3684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3687 | |
| 3688 | |
| 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3690 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3691 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3692 | $as_echo_n "(cached) " >&6 |
| 3693 | else |
| 3694 | ac_check_lib_save_LIBS=$LIBS |
| 3695 | LIBS="-ldl $LIBS" |
| 3696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3697 | /* end confdefs.h. */ |
| 3698 | |
| 3699 | /* Override any GCC internal prototype to avoid an error. |
| 3700 | Use char because int might match the return type of a GCC |
| 3701 | builtin and then its argument prototype would still apply. */ |
| 3702 | #ifdef __cplusplus |
| 3703 | extern "C" |
| 3704 | #endif |
| 3705 | char dlopen (); |
| 3706 | int |
| 3707 | main () |
| 3708 | { |
| 3709 | return dlopen (); |
| 3710 | ; |
| 3711 | return 0; |
| 3712 | } |
| 3713 | _ACEOF |
| 3714 | if ac_fn_c_try_link "$LINENO"; then : |
| 3715 | ac_cv_lib_dl_dlopen=yes |
| 3716 | else |
| 3717 | ac_cv_lib_dl_dlopen=no |
| 3718 | fi |
| 3719 | rm -f core conftest.err conftest.$ac_objext \ |
| 3720 | conftest$ac_exeext conftest.$ac_ext |
| 3721 | LIBS=$ac_check_lib_save_LIBS |
| 3722 | fi |
| 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3724 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3725 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3726 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3727 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3728 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3729 | |
| 3730 | fi |
| 3731 | |
| 3732 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3733 | |
| 3734 | # Check whether --with-cc was given. |
| 3735 | if test "${with_cc+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3736 | 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] | 3737 | fi |
| 3738 | |
| 3739 | |
| 3740 | # Check whether --with-ccopts was given. |
| 3741 | if test "${with_ccopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3742 | 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] | 3743 | fi |
| 3744 | |
| 3745 | |
| 3746 | # Check whether --with-ldopts was given. |
| 3747 | if test "${with_ldopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3748 | 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] | 3749 | fi |
| 3750 | |
| 3751 | ac_ext=c |
| 3752 | ac_cpp='$CPP $CPPFLAGS' |
| 3753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3756 | if test -n "$ac_tool_prefix"; then |
| 3757 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3758 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3760 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3761 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3762 | $as_echo_n "(cached) " >&6 |
| 3763 | else |
| 3764 | if test -n "$CC"; then |
| 3765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3766 | else |
| 3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3768 | for as_dir in $PATH |
| 3769 | do |
| 3770 | IFS=$as_save_IFS |
| 3771 | test -z "$as_dir" && as_dir=. |
| 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3773 | 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] | 3774 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3776 | break 2 |
| 3777 | fi |
| 3778 | done |
| 3779 | done |
| 3780 | IFS=$as_save_IFS |
| 3781 | |
| 3782 | fi |
| 3783 | fi |
| 3784 | CC=$ac_cv_prog_CC |
| 3785 | if test -n "$CC"; then |
| 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3787 | $as_echo "$CC" >&6; } |
| 3788 | else |
| 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3790 | $as_echo "no" >&6; } |
| 3791 | fi |
| 3792 | |
| 3793 | |
| 3794 | fi |
| 3795 | if test -z "$ac_cv_prog_CC"; then |
| 3796 | ac_ct_CC=$CC |
| 3797 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3798 | set dummy gcc; ac_word=$2 |
| 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3800 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3801 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3802 | $as_echo_n "(cached) " >&6 |
| 3803 | else |
| 3804 | if test -n "$ac_ct_CC"; then |
| 3805 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3806 | else |
| 3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3808 | for as_dir in $PATH |
| 3809 | do |
| 3810 | IFS=$as_save_IFS |
| 3811 | test -z "$as_dir" && as_dir=. |
| 3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3813 | 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] | 3814 | ac_cv_prog_ac_ct_CC="gcc" |
| 3815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3816 | break 2 |
| 3817 | fi |
| 3818 | done |
| 3819 | done |
| 3820 | IFS=$as_save_IFS |
| 3821 | |
| 3822 | fi |
| 3823 | fi |
| 3824 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3825 | if test -n "$ac_ct_CC"; then |
| 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3827 | $as_echo "$ac_ct_CC" >&6; } |
| 3828 | else |
| 3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3830 | $as_echo "no" >&6; } |
| 3831 | fi |
| 3832 | |
| 3833 | if test "x$ac_ct_CC" = x; then |
| 3834 | CC="" |
| 3835 | else |
| 3836 | case $cross_compiling:$ac_tool_warned in |
| 3837 | yes:) |
| 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3839 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3840 | ac_tool_warned=yes ;; |
| 3841 | esac |
| 3842 | CC=$ac_ct_CC |
| 3843 | fi |
| 3844 | else |
| 3845 | CC="$ac_cv_prog_CC" |
| 3846 | fi |
| 3847 | |
| 3848 | if test -z "$CC"; then |
| 3849 | if test -n "$ac_tool_prefix"; then |
| 3850 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3851 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3853 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3854 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3855 | $as_echo_n "(cached) " >&6 |
| 3856 | else |
| 3857 | if test -n "$CC"; then |
| 3858 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3859 | else |
| 3860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3861 | for as_dir in $PATH |
| 3862 | do |
| 3863 | IFS=$as_save_IFS |
| 3864 | test -z "$as_dir" && as_dir=. |
| 3865 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3866 | 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] | 3867 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3869 | break 2 |
| 3870 | fi |
| 3871 | done |
| 3872 | done |
| 3873 | IFS=$as_save_IFS |
| 3874 | |
| 3875 | fi |
| 3876 | fi |
| 3877 | CC=$ac_cv_prog_CC |
| 3878 | if test -n "$CC"; then |
| 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3880 | $as_echo "$CC" >&6; } |
| 3881 | else |
| 3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3883 | $as_echo "no" >&6; } |
| 3884 | fi |
| 3885 | |
| 3886 | |
| 3887 | fi |
| 3888 | fi |
| 3889 | if test -z "$CC"; then |
| 3890 | # Extract the first word of "cc", so it can be a program name with args. |
| 3891 | set dummy cc; ac_word=$2 |
| 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3893 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3894 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3895 | $as_echo_n "(cached) " >&6 |
| 3896 | else |
| 3897 | if test -n "$CC"; then |
| 3898 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3899 | else |
| 3900 | ac_prog_rejected=no |
| 3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3902 | for as_dir in $PATH |
| 3903 | do |
| 3904 | IFS=$as_save_IFS |
| 3905 | test -z "$as_dir" && as_dir=. |
| 3906 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3907 | 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] | 3908 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3909 | ac_prog_rejected=yes |
| 3910 | continue |
| 3911 | fi |
| 3912 | ac_cv_prog_CC="cc" |
| 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3914 | break 2 |
| 3915 | fi |
| 3916 | done |
| 3917 | done |
| 3918 | IFS=$as_save_IFS |
| 3919 | |
| 3920 | if test $ac_prog_rejected = yes; then |
| 3921 | # We found a bogon in the path, so make sure we never use it. |
| 3922 | set dummy $ac_cv_prog_CC |
| 3923 | shift |
| 3924 | if test $# != 0; then |
| 3925 | # We chose a different compiler from the bogus one. |
| 3926 | # However, it has the same basename, so the bogon will be chosen |
| 3927 | # first if we set CC to just the basename; use the full file name. |
| 3928 | shift |
| 3929 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3930 | fi |
| 3931 | fi |
| 3932 | fi |
| 3933 | fi |
| 3934 | CC=$ac_cv_prog_CC |
| 3935 | if test -n "$CC"; then |
| 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3937 | $as_echo "$CC" >&6; } |
| 3938 | else |
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3940 | $as_echo "no" >&6; } |
| 3941 | fi |
| 3942 | |
| 3943 | |
| 3944 | fi |
| 3945 | if test -z "$CC"; then |
| 3946 | if test -n "$ac_tool_prefix"; then |
| 3947 | for ac_prog in cl.exe |
| 3948 | do |
| 3949 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3950 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3952 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3953 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3954 | $as_echo_n "(cached) " >&6 |
| 3955 | else |
| 3956 | if test -n "$CC"; then |
| 3957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3958 | else |
| 3959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3960 | for as_dir in $PATH |
| 3961 | do |
| 3962 | IFS=$as_save_IFS |
| 3963 | test -z "$as_dir" && as_dir=. |
| 3964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3965 | 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] | 3966 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3968 | break 2 |
| 3969 | fi |
| 3970 | done |
| 3971 | done |
| 3972 | IFS=$as_save_IFS |
| 3973 | |
| 3974 | fi |
| 3975 | fi |
| 3976 | CC=$ac_cv_prog_CC |
| 3977 | if test -n "$CC"; then |
| 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3979 | $as_echo "$CC" >&6; } |
| 3980 | else |
| 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3982 | $as_echo "no" >&6; } |
| 3983 | fi |
| 3984 | |
| 3985 | |
| 3986 | test -n "$CC" && break |
| 3987 | done |
| 3988 | fi |
| 3989 | if test -z "$CC"; then |
| 3990 | ac_ct_CC=$CC |
| 3991 | for ac_prog in cl.exe |
| 3992 | do |
| 3993 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3994 | set dummy $ac_prog; ac_word=$2 |
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3996 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3997 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3998 | $as_echo_n "(cached) " >&6 |
| 3999 | else |
| 4000 | if test -n "$ac_ct_CC"; then |
| 4001 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4002 | else |
| 4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4004 | for as_dir in $PATH |
| 4005 | do |
| 4006 | IFS=$as_save_IFS |
| 4007 | test -z "$as_dir" && as_dir=. |
| 4008 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4009 | 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] | 4010 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4012 | break 2 |
| 4013 | fi |
| 4014 | done |
| 4015 | done |
| 4016 | IFS=$as_save_IFS |
| 4017 | |
| 4018 | fi |
| 4019 | fi |
| 4020 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4021 | if test -n "$ac_ct_CC"; then |
| 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4023 | $as_echo "$ac_ct_CC" >&6; } |
| 4024 | else |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4026 | $as_echo "no" >&6; } |
| 4027 | fi |
| 4028 | |
| 4029 | |
| 4030 | test -n "$ac_ct_CC" && break |
| 4031 | done |
| 4032 | |
| 4033 | if test "x$ac_ct_CC" = x; then |
| 4034 | CC="" |
| 4035 | else |
| 4036 | case $cross_compiling:$ac_tool_warned in |
| 4037 | yes:) |
| 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4040 | ac_tool_warned=yes ;; |
| 4041 | esac |
| 4042 | CC=$ac_ct_CC |
| 4043 | fi |
| 4044 | fi |
| 4045 | |
| 4046 | fi |
| 4047 | |
| 4048 | |
| 4049 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4051 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4052 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4053 | |
| 4054 | # Provide some information about the compiler. |
| 4055 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4056 | set X $ac_compile |
| 4057 | ac_compiler=$2 |
| 4058 | for ac_option in --version -v -V -qversion; do |
| 4059 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4060 | case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4065 | $as_echo "$ac_try_echo"; } >&5 |
| 4066 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4067 | ac_status=$? |
| 4068 | if test -s conftest.err; then |
| 4069 | sed '10a\ |
| 4070 | ... rest of stderr output deleted ... |
| 4071 | 10q' conftest.err >conftest.er1 |
| 4072 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4073 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4074 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4076 | test $ac_status = 0; } |
| 4077 | done |
| 4078 | |
| 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4080 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4081 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4082 | $as_echo_n "(cached) " >&6 |
| 4083 | else |
| 4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4085 | /* end confdefs.h. */ |
| 4086 | |
| 4087 | int |
| 4088 | main () |
| 4089 | { |
| 4090 | #ifndef __GNUC__ |
| 4091 | choke me |
| 4092 | #endif |
| 4093 | |
| 4094 | ; |
| 4095 | return 0; |
| 4096 | } |
| 4097 | _ACEOF |
| 4098 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4099 | ac_compiler_gnu=yes |
| 4100 | else |
| 4101 | ac_compiler_gnu=no |
| 4102 | fi |
| 4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4104 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4105 | |
| 4106 | fi |
| 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4108 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4109 | if test $ac_compiler_gnu = yes; then |
| 4110 | GCC=yes |
| 4111 | else |
| 4112 | GCC= |
| 4113 | fi |
| 4114 | ac_test_CFLAGS=${CFLAGS+set} |
| 4115 | ac_save_CFLAGS=$CFLAGS |
| 4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4117 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4118 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4119 | $as_echo_n "(cached) " >&6 |
| 4120 | else |
| 4121 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4122 | ac_c_werror_flag=yes |
| 4123 | ac_cv_prog_cc_g=no |
| 4124 | CFLAGS="-g" |
| 4125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4126 | /* end confdefs.h. */ |
| 4127 | |
| 4128 | int |
| 4129 | main () |
| 4130 | { |
| 4131 | |
| 4132 | ; |
| 4133 | return 0; |
| 4134 | } |
| 4135 | _ACEOF |
| 4136 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4137 | ac_cv_prog_cc_g=yes |
| 4138 | else |
| 4139 | CFLAGS="" |
| 4140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4141 | /* end confdefs.h. */ |
| 4142 | |
| 4143 | int |
| 4144 | main () |
| 4145 | { |
| 4146 | |
| 4147 | ; |
| 4148 | return 0; |
| 4149 | } |
| 4150 | _ACEOF |
| 4151 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4152 | |
| 4153 | else |
| 4154 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4155 | CFLAGS="-g" |
| 4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4157 | /* end confdefs.h. */ |
| 4158 | |
| 4159 | int |
| 4160 | main () |
| 4161 | { |
| 4162 | |
| 4163 | ; |
| 4164 | return 0; |
| 4165 | } |
| 4166 | _ACEOF |
| 4167 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4168 | ac_cv_prog_cc_g=yes |
| 4169 | fi |
| 4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4171 | fi |
| 4172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4173 | fi |
| 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4175 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4176 | fi |
| 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4178 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4179 | if test "$ac_test_CFLAGS" = set; then |
| 4180 | CFLAGS=$ac_save_CFLAGS |
| 4181 | elif test $ac_cv_prog_cc_g = yes; then |
| 4182 | if test "$GCC" = yes; then |
| 4183 | CFLAGS="-g -O2" |
| 4184 | else |
| 4185 | CFLAGS="-g" |
| 4186 | fi |
| 4187 | else |
| 4188 | if test "$GCC" = yes; then |
| 4189 | CFLAGS="-O2" |
| 4190 | else |
| 4191 | CFLAGS= |
| 4192 | fi |
| 4193 | fi |
| 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4195 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4196 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4197 | $as_echo_n "(cached) " >&6 |
| 4198 | else |
| 4199 | ac_cv_prog_cc_c89=no |
| 4200 | ac_save_CC=$CC |
| 4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4202 | /* end confdefs.h. */ |
| 4203 | #include <stdarg.h> |
| 4204 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4205 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4206 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4207 | struct buf { int x; }; |
| 4208 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4209 | static char *e (p, i) |
| 4210 | char **p; |
| 4211 | int i; |
| 4212 | { |
| 4213 | return p[i]; |
| 4214 | } |
| 4215 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4216 | { |
| 4217 | char *s; |
| 4218 | va_list v; |
| 4219 | va_start (v,p); |
| 4220 | s = g (p, va_arg (v,int)); |
| 4221 | va_end (v); |
| 4222 | return s; |
| 4223 | } |
| 4224 | |
| 4225 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4226 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4227 | These don't provoke an error unfortunately, instead are silently treated |
| 4228 | as 'x'. The following induces an error, until -std is added to get |
| 4229 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4230 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4231 | that's true only with -std. */ |
| 4232 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4233 | |
| 4234 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4235 | inside strings and character constants. */ |
| 4236 | #define FOO(x) 'x' |
| 4237 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4238 | |
| 4239 | int test (int i, double x); |
| 4240 | struct s1 {int (*f) (int a);}; |
| 4241 | struct s2 {int (*f) (double a);}; |
| 4242 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4243 | int argc; |
| 4244 | char **argv; |
| 4245 | int |
| 4246 | main () |
| 4247 | { |
| 4248 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4249 | ; |
| 4250 | return 0; |
| 4251 | } |
| 4252 | _ACEOF |
| 4253 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4254 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4255 | do |
| 4256 | CC="$ac_save_CC $ac_arg" |
| 4257 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4258 | ac_cv_prog_cc_c89=$ac_arg |
| 4259 | fi |
| 4260 | rm -f core conftest.err conftest.$ac_objext |
| 4261 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4262 | done |
| 4263 | rm -f conftest.$ac_ext |
| 4264 | CC=$ac_save_CC |
| 4265 | |
| 4266 | fi |
| 4267 | # AC_CACHE_VAL |
| 4268 | case "x$ac_cv_prog_cc_c89" in |
| 4269 | x) |
| 4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4271 | $as_echo "none needed" >&6; } ;; |
| 4272 | xno) |
| 4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4274 | $as_echo "unsupported" >&6; } ;; |
| 4275 | *) |
| 4276 | CC="$CC $ac_cv_prog_cc_c89" |
| 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4278 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4279 | esac |
| 4280 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4281 | |
| 4282 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4284 | ac_ext=c |
| 4285 | ac_cpp='$CPP $CPPFLAGS' |
| 4286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4289 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4290 | if test "$GCC" = yes; then |
| 4291 | RDYNAMIC="-rdynamic" |
| 4292 | |
| 4293 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4294 | ac_ext=c |
| 4295 | ac_cpp='$CPP $CPPFLAGS' |
| 4296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4299 | { $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] | 4300 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4301 | # On Suns, sometimes $CPP names a directory. |
| 4302 | if test -n "$CPP" && test -d "$CPP"; then |
| 4303 | CPP= |
| 4304 | fi |
| 4305 | if test -z "$CPP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4306 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4307 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4308 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4309 | # Double quotes because CPP needs to be expanded |
| 4310 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4311 | do |
| 4312 | ac_preproc_ok=false |
| 4313 | for ac_c_preproc_warn_flag in '' yes |
| 4314 | do |
| 4315 | # Use a header file that comes with gcc, so configuring glibc |
| 4316 | # with a fresh cross-compiler works. |
| 4317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4318 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4319 | # 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] | 4320 | # 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] | 4321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4322 | /* end confdefs.h. */ |
| 4323 | #ifdef __STDC__ |
| 4324 | # include <limits.h> |
| 4325 | #else |
| 4326 | # include <assert.h> |
| 4327 | #endif |
| 4328 | Syntax error |
| 4329 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4330 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4331 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4332 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4333 | # Broken: fails on valid input. |
| 4334 | continue |
| 4335 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4336 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4337 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4338 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4339 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4341 | /* end confdefs.h. */ |
| 4342 | #include <ac_nonexistent.h> |
| 4343 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4344 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4345 | # Broken: success on invalid input. |
| 4346 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4347 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4348 | # Passes both tests. |
| 4349 | ac_preproc_ok=: |
| 4350 | break |
| 4351 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4352 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4353 | |
| 4354 | done |
| 4355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4356 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4357 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4358 | break |
| 4359 | fi |
| 4360 | |
| 4361 | done |
| 4362 | ac_cv_prog_CPP=$CPP |
| 4363 | |
| 4364 | fi |
| 4365 | CPP=$ac_cv_prog_CPP |
| 4366 | else |
| 4367 | ac_cv_prog_CPP=$CPP |
| 4368 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4370 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4371 | ac_preproc_ok=false |
| 4372 | for ac_c_preproc_warn_flag in '' yes |
| 4373 | do |
| 4374 | # Use a header file that comes with gcc, so configuring glibc |
| 4375 | # with a fresh cross-compiler works. |
| 4376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4377 | # <limits.h> exists even on freestanding compilers. |
| 4378 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4379 | # 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] | 4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4381 | /* end confdefs.h. */ |
| 4382 | #ifdef __STDC__ |
| 4383 | # include <limits.h> |
| 4384 | #else |
| 4385 | # include <assert.h> |
| 4386 | #endif |
| 4387 | Syntax error |
| 4388 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4389 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4390 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4391 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4392 | # Broken: fails on valid input. |
| 4393 | continue |
| 4394 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4395 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4396 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4397 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4398 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4400 | /* end confdefs.h. */ |
| 4401 | #include <ac_nonexistent.h> |
| 4402 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4403 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4404 | # Broken: success on invalid input. |
| 4405 | continue |
| 4406 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4407 | # Passes both tests. |
| 4408 | ac_preproc_ok=: |
| 4409 | break |
| 4410 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4411 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4412 | |
| 4413 | done |
| 4414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4415 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4416 | if $ac_preproc_ok; then : |
| 4417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4418 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4419 | { { $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] | 4420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4421 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4422 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4423 | fi |
| 4424 | |
| 4425 | ac_ext=c |
| 4426 | ac_cpp='$CPP $CPPFLAGS' |
| 4427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4430 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4431 | { $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] | 4432 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4433 | if test "$GCC" = yes |
| 4434 | then |
| 4435 | case "$host_cpu" in |
| 4436 | alpha) addcflags="-mieee" ;; |
| 4437 | esac |
| 4438 | fi |
| 4439 | if test "x$addcflags" != x |
| 4440 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4442 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4443 | CFLAGS="$addcflags $CFLAGS" |
| 4444 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4446 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4447 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4448 | |
| 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4450 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4451 | if ${ac_cv_path_GREP+:} false; then : |
| 4452 | $as_echo_n "(cached) " >&6 |
| 4453 | else |
| 4454 | if test -z "$GREP"; then |
| 4455 | ac_path_GREP_found=false |
| 4456 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4458 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4459 | do |
| 4460 | IFS=$as_save_IFS |
| 4461 | test -z "$as_dir" && as_dir=. |
| 4462 | for ac_prog in grep ggrep; do |
| 4463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4464 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4465 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4466 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4467 | # Check for GNU $ac_path_GREP |
| 4468 | case `"$ac_path_GREP" --version 2>&1` in |
| 4469 | *GNU*) |
| 4470 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4471 | *) |
| 4472 | ac_count=0 |
| 4473 | $as_echo_n 0123456789 >"conftest.in" |
| 4474 | while : |
| 4475 | do |
| 4476 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4477 | mv "conftest.tmp" "conftest.in" |
| 4478 | cp "conftest.in" "conftest.nl" |
| 4479 | $as_echo 'GREP' >> "conftest.nl" |
| 4480 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4481 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4482 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4483 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4484 | # Best one so far, save it but keep looking for a better one |
| 4485 | ac_cv_path_GREP="$ac_path_GREP" |
| 4486 | ac_path_GREP_max=$ac_count |
| 4487 | fi |
| 4488 | # 10*(2^10) chars as input seems more than enough |
| 4489 | test $ac_count -gt 10 && break |
| 4490 | done |
| 4491 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4492 | esac |
| 4493 | |
| 4494 | $ac_path_GREP_found && break 3 |
| 4495 | done |
| 4496 | done |
| 4497 | done |
| 4498 | IFS=$as_save_IFS |
| 4499 | if test -z "$ac_cv_path_GREP"; then |
| 4500 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4501 | fi |
| 4502 | else |
| 4503 | ac_cv_path_GREP=$GREP |
| 4504 | fi |
| 4505 | |
| 4506 | fi |
| 4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4508 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4509 | GREP="$ac_cv_path_GREP" |
| 4510 | |
| 4511 | |
| 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4513 | $as_echo_n "checking for egrep... " >&6; } |
| 4514 | if ${ac_cv_path_EGREP+:} false; then : |
| 4515 | $as_echo_n "(cached) " >&6 |
| 4516 | else |
| 4517 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4518 | then ac_cv_path_EGREP="$GREP -E" |
| 4519 | else |
| 4520 | if test -z "$EGREP"; then |
| 4521 | ac_path_EGREP_found=false |
| 4522 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4525 | do |
| 4526 | IFS=$as_save_IFS |
| 4527 | test -z "$as_dir" && as_dir=. |
| 4528 | for ac_prog in egrep; do |
| 4529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4530 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4531 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4532 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4533 | # Check for GNU $ac_path_EGREP |
| 4534 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4535 | *GNU*) |
| 4536 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4537 | *) |
| 4538 | ac_count=0 |
| 4539 | $as_echo_n 0123456789 >"conftest.in" |
| 4540 | while : |
| 4541 | do |
| 4542 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4543 | mv "conftest.tmp" "conftest.in" |
| 4544 | cp "conftest.in" "conftest.nl" |
| 4545 | $as_echo 'EGREP' >> "conftest.nl" |
| 4546 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4548 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4549 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4550 | # Best one so far, save it but keep looking for a better one |
| 4551 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4552 | ac_path_EGREP_max=$ac_count |
| 4553 | fi |
| 4554 | # 10*(2^10) chars as input seems more than enough |
| 4555 | test $ac_count -gt 10 && break |
| 4556 | done |
| 4557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4558 | esac |
| 4559 | |
| 4560 | $ac_path_EGREP_found && break 3 |
| 4561 | done |
| 4562 | done |
| 4563 | done |
| 4564 | IFS=$as_save_IFS |
| 4565 | if test -z "$ac_cv_path_EGREP"; then |
| 4566 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4567 | fi |
| 4568 | else |
| 4569 | ac_cv_path_EGREP=$EGREP |
| 4570 | fi |
| 4571 | |
| 4572 | fi |
| 4573 | fi |
| 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4575 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4576 | EGREP="$ac_cv_path_EGREP" |
| 4577 | |
| 4578 | |
| 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4580 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4581 | if ${ac_cv_header_stdc+:} false; then : |
| 4582 | $as_echo_n "(cached) " >&6 |
| 4583 | else |
| 4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4585 | /* end confdefs.h. */ |
| 4586 | #include <stdlib.h> |
| 4587 | #include <stdarg.h> |
| 4588 | #include <string.h> |
| 4589 | #include <float.h> |
| 4590 | |
| 4591 | int |
| 4592 | main () |
| 4593 | { |
| 4594 | |
| 4595 | ; |
| 4596 | return 0; |
| 4597 | } |
| 4598 | _ACEOF |
| 4599 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4600 | ac_cv_header_stdc=yes |
| 4601 | else |
| 4602 | ac_cv_header_stdc=no |
| 4603 | fi |
| 4604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4605 | |
| 4606 | if test $ac_cv_header_stdc = yes; then |
| 4607 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4609 | /* end confdefs.h. */ |
| 4610 | #include <string.h> |
| 4611 | |
| 4612 | _ACEOF |
| 4613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4614 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4615 | |
| 4616 | else |
| 4617 | ac_cv_header_stdc=no |
| 4618 | fi |
| 4619 | rm -f conftest* |
| 4620 | |
| 4621 | fi |
| 4622 | |
| 4623 | if test $ac_cv_header_stdc = yes; then |
| 4624 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4626 | /* end confdefs.h. */ |
| 4627 | #include <stdlib.h> |
| 4628 | |
| 4629 | _ACEOF |
| 4630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4631 | $EGREP "free" >/dev/null 2>&1; then : |
| 4632 | |
| 4633 | else |
| 4634 | ac_cv_header_stdc=no |
| 4635 | fi |
| 4636 | rm -f conftest* |
| 4637 | |
| 4638 | fi |
| 4639 | |
| 4640 | if test $ac_cv_header_stdc = yes; then |
| 4641 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4642 | if test "$cross_compiling" = yes; then : |
| 4643 | : |
| 4644 | else |
| 4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4646 | /* end confdefs.h. */ |
| 4647 | #include <ctype.h> |
| 4648 | #include <stdlib.h> |
| 4649 | #if ((' ' & 0x0FF) == 0x020) |
| 4650 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4651 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4652 | #else |
| 4653 | # define ISLOWER(c) \ |
| 4654 | (('a' <= (c) && (c) <= 'i') \ |
| 4655 | || ('j' <= (c) && (c) <= 'r') \ |
| 4656 | || ('s' <= (c) && (c) <= 'z')) |
| 4657 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4658 | #endif |
| 4659 | |
| 4660 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4661 | int |
| 4662 | main () |
| 4663 | { |
| 4664 | int i; |
| 4665 | for (i = 0; i < 256; i++) |
| 4666 | if (XOR (islower (i), ISLOWER (i)) |
| 4667 | || toupper (i) != TOUPPER (i)) |
| 4668 | return 2; |
| 4669 | return 0; |
| 4670 | } |
| 4671 | _ACEOF |
| 4672 | if ac_fn_c_try_run "$LINENO"; then : |
| 4673 | |
| 4674 | else |
| 4675 | ac_cv_header_stdc=no |
| 4676 | fi |
| 4677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4678 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4679 | fi |
| 4680 | |
| 4681 | fi |
| 4682 | fi |
| 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4684 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4685 | if test $ac_cv_header_stdc = yes; then |
| 4686 | |
| 4687 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4688 | |
| 4689 | fi |
| 4690 | |
| 4691 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4692 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4693 | inttypes.h stdint.h unistd.h |
| 4694 | do : |
| 4695 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4696 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4697 | " |
| 4698 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4699 | cat >>confdefs.h <<_ACEOF |
| 4700 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4701 | _ACEOF |
| 4702 | |
| 4703 | fi |
| 4704 | |
| 4705 | done |
| 4706 | |
| 4707 | |
| 4708 | |
| 4709 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4710 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4711 | MINIX=yes |
| 4712 | else |
| 4713 | MINIX= |
| 4714 | fi |
| 4715 | |
| 4716 | |
| 4717 | if test "$MINIX" = yes; then |
| 4718 | |
| 4719 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4720 | |
| 4721 | |
| 4722 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4723 | |
| 4724 | |
| 4725 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4726 | |
| 4727 | fi |
| 4728 | |
| 4729 | |
| 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4731 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4732 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4733 | $as_echo_n "(cached) " >&6 |
| 4734 | else |
| 4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4736 | /* end confdefs.h. */ |
| 4737 | |
| 4738 | # define __EXTENSIONS__ 1 |
| 4739 | $ac_includes_default |
| 4740 | int |
| 4741 | main () |
| 4742 | { |
| 4743 | |
| 4744 | ; |
| 4745 | return 0; |
| 4746 | } |
| 4747 | _ACEOF |
| 4748 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4749 | ac_cv_safe_to_define___extensions__=yes |
| 4750 | else |
| 4751 | ac_cv_safe_to_define___extensions__=no |
| 4752 | fi |
| 4753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4754 | fi |
| 4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4756 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4757 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4758 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4759 | |
| 4760 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4761 | |
| 4762 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4763 | |
| 4764 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4765 | |
| 4766 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4767 | |
| 4768 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4769 | LIB_EXT=.a |
| 4770 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4771 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4773 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4774 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4775 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4776 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4777 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4778 | fi |
| 4779 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4780 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4781 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4782 | then |
| 4783 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4784 | { $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] | 4785 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4786 | else |
| 4787 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4788 | { $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] | 4789 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4790 | fi |
| 4791 | |
| 4792 | else |
| 4793 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4794 | { $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] | 4795 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4796 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4797 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4799 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4800 | # Check whether --enable-symlink-install was given. |
| 4801 | if test "${enable_symlink_install+set}" = set; then : |
| 4802 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4803 | then |
| 4804 | LINK_INSTALL_FLAGS=-f |
| 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4806 | $as_echo "Disabling symlinks for install" >&6; } |
| 4807 | else |
| 4808 | LINK_INSTALL_FLAGS=-sf |
| 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4810 | $as_echo "Enabling symlinks for install" >&6; } |
| 4811 | fi |
| 4812 | |
| 4813 | else |
| 4814 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4816 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4817 | |
| 4818 | fi |
| 4819 | |
| 4820 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4821 | relative_symlink_defined= |
| 4822 | # Check whether --enable-relative-symlinks was given. |
| 4823 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4824 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4825 | then |
| 4826 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4827 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4829 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4830 | else |
| 4831 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4832 | relative_symlink_defined=yes |
| 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4834 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4835 | fi |
| 4836 | fi |
| 4837 | |
| 4838 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4839 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4840 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4841 | then |
| 4842 | SYMLINK_RELATIVE=yes |
| 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4844 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4845 | else |
| 4846 | SYMLINK_RELATIVE=--relative |
| 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4848 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4849 | fi |
| 4850 | |
| 4851 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4852 | if test -z "$relative_symlink_defined" |
| 4853 | then |
| 4854 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4856 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4857 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4858 | |
| 4859 | fi |
| 4860 | |
| 4861 | |
| 4862 | # Check whether --enable-symlink-build was given. |
| 4863 | if test "${enable_symlink_build+set}" = set; then : |
| 4864 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4865 | then |
| 4866 | LINK_BUILD_FLAGS= |
| 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4868 | $as_echo "Disabling symlinks for build" >&6; } |
| 4869 | else |
| 4870 | LINK_BUILD_FLAGS=-s |
| 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4872 | $as_echo "Enabling symlinks for build" >&6; } |
| 4873 | fi |
| 4874 | |
| 4875 | else |
| 4876 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4878 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4879 | |
| 4880 | fi |
| 4881 | |
| 4882 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4883 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4884 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4885 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4886 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4887 | { $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] | 4888 | $as_echo "Disabling verbose make commands" >&6; } |
| 4889 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4890 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4891 | Q=@ |
| 4892 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4893 | { $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] | 4894 | $as_echo "Enabling verbose make commands" >&6; } |
| 4895 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4896 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4897 | Q= |
| 4898 | fi |
| 4899 | |
| 4900 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4901 | { $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] | 4902 | $as_echo "Disabling verbose make commands" >&6; } |
| 4903 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4904 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4905 | Q=@ |
| 4906 | |
| 4907 | fi |
| 4908 | |
| 4909 | |
| 4910 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4911 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4912 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4913 | LDFLAG_DYNAMIC= |
| 4914 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4915 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4916 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4917 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4918 | then |
| 4919 | ELF_CMT=# |
| 4920 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4921 | { $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] | 4922 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4923 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4924 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4925 | ELF_CMT= |
| 4926 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4927 | case "$host_os" in |
| 4928 | solaris2.*) |
| 4929 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4930 | ;; |
| 4931 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4932 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4933 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4934 | PRIVATE_LIBS_CMT=# |
| 4935 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4936 | { $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] | 4937 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4938 | fi |
| 4939 | |
| 4940 | else |
| 4941 | MAKEFILE_ELF=/dev/null |
| 4942 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4943 | { $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] | 4944 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4946 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4947 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4948 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4949 | |
| 4950 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4951 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4952 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4953 | then |
| 4954 | BSDLIB_CMT=# |
| 4955 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4956 | { $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] | 4957 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4958 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4959 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4960 | BSDLIB_CMT= |
| 4961 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4962 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4963 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4964 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4965 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4966 | LIB_EXT=.dylib |
| 4967 | ;; |
| 4968 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4969 | { $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] | 4970 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4971 | fi |
| 4972 | |
| 4973 | else |
| 4974 | MAKEFILE_BSDLIB=/dev/null |
| 4975 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4976 | { $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] | 4977 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4978 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4979 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4980 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4982 | |
| 4983 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4984 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4985 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4986 | then |
| 4987 | PROFILE_CMT=# |
| 4988 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | { $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] | 4990 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4991 | else |
| 4992 | PROFILE_CMT= |
| 4993 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4994 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4995 | { $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] | 4996 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4997 | fi |
| 4998 | |
| 4999 | else |
| 5000 | PROFILE_CMT=# |
| 5001 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5002 | { $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] | 5003 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5004 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5005 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5006 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5008 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5009 | # Check whether --enable-gcov was given. |
| 5010 | if test "${enable_gcov+set}" = set; then : |
| 5011 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5012 | then |
| 5013 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5014 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5016 | $as_echo "Enabling gcov support" >&6; } |
| 5017 | fi |
| 5018 | |
| 5019 | fi |
| 5020 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 5021 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
| 5022 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" |
| 5023 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 5024 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} |
| 5025 | # Check whether --enable-hardening was given. |
| 5026 | if test "${enable_hardening+set}" = set; then : |
| 5027 | enableval=$enable_hardening; if test "$enableval" = "yes" |
| 5028 | then |
| 5029 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" |
| 5030 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" |
| 5031 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" |
| 5032 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" |
| 5033 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" |
| 5034 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" |
| 5035 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" |
| 5036 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" |
| 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 |
| 5038 | $as_echo "Enabling hardening support" >&6; } |
| 5039 | fi |
| 5040 | |
| 5041 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5042 | |
| 5043 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5045 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5046 | |
| 5047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5048 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5049 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5050 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5051 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5052 | { $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] | 5053 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5054 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5055 | |
| 5056 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5057 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5058 | { $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] | 5059 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5060 | fi |
| 5061 | |
| 5062 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5063 | { $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] | 5064 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5066 | fi |
| 5067 | |
| 5068 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5069 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5070 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5071 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5072 | { $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] | 5073 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5074 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5075 | |
| 5076 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5077 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5078 | { $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] | 5079 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5080 | fi |
| 5081 | |
| 5082 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5083 | { $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] | 5084 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5086 | fi |
| 5087 | |
| 5088 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5089 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5090 | enableval=$enable_testio_debug; |
| 5091 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5092 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5093 | { $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] | 5094 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5095 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5096 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5097 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5098 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5099 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5100 | { $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] | 5101 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5102 | fi |
| 5103 | |
| 5104 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5105 | { $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] | 5106 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5107 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5108 | |
| 5109 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5111 | fi |
| 5112 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5113 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5114 | |
| 5115 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5121 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5122 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5123 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5124 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5125 | { $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] | 5126 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5127 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5128 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5129 | else |
| 5130 | case $PKG_CONFIG in |
| 5131 | [\\/]* | ?:[\\/]*) |
| 5132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5133 | ;; |
| 5134 | *) |
| 5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5136 | for as_dir in $PATH |
| 5137 | do |
| 5138 | IFS=$as_save_IFS |
| 5139 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5141 | 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] | 5142 | 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] | 5143 | $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] | 5144 | break 2 |
| 5145 | fi |
| 5146 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5147 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5148 | IFS=$as_save_IFS |
| 5149 | |
| 5150 | ;; |
| 5151 | esac |
| 5152 | fi |
| 5153 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5154 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5156 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5157 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5159 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5160 | fi |
| 5161 | |
| 5162 | |
| 5163 | fi |
| 5164 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5165 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5166 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5167 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5168 | { $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] | 5169 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5170 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5171 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5172 | else |
| 5173 | case $ac_pt_PKG_CONFIG in |
| 5174 | [\\/]* | ?:[\\/]*) |
| 5175 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5176 | ;; |
| 5177 | *) |
| 5178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5179 | for as_dir in $PATH |
| 5180 | do |
| 5181 | IFS=$as_save_IFS |
| 5182 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5184 | 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] | 5185 | 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] | 5186 | $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] | 5187 | break 2 |
| 5188 | fi |
| 5189 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5190 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5191 | IFS=$as_save_IFS |
| 5192 | |
| 5193 | ;; |
| 5194 | esac |
| 5195 | fi |
| 5196 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5197 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5198 | { $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] | 5199 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5200 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5202 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5203 | fi |
| 5204 | |
| 5205 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5206 | PKG_CONFIG="" |
| 5207 | else |
| 5208 | case $cross_compiling:$ac_tool_warned in |
| 5209 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5210 | { $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] | 5211 | $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] | 5212 | ac_tool_warned=yes ;; |
| 5213 | esac |
| 5214 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5215 | fi |
| 5216 | else |
| 5217 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5218 | fi |
| 5219 | |
| 5220 | fi |
| 5221 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5222 | _pkg_min_version=0.9.0 |
| 5223 | { $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] | 5224 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5225 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5227 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5228 | else |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5230 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5231 | PKG_CONFIG="" |
| 5232 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5233 | fi |
| 5234 | LIBUUID= |
| 5235 | DEPLIBUUID= |
| 5236 | STATIC_LIBUUID= |
| 5237 | DEPSTATIC_LIBUUID= |
| 5238 | PROFILED_LIBUUID= |
| 5239 | DEPPROFILED_LIBUUID= |
| 5240 | UUID_CMT= |
| 5241 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5242 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5243 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5244 | then |
| 5245 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5246 | 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] | 5247 | fi |
| 5248 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5249 | { $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] | 5250 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5251 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5252 | $as_echo_n "(cached) " >&6 |
| 5253 | else |
| 5254 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5255 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5257 | /* end confdefs.h. */ |
| 5258 | |
| 5259 | /* Override any GCC internal prototype to avoid an error. |
| 5260 | Use char because int might match the return type of a GCC |
| 5261 | builtin and then its argument prototype would still apply. */ |
| 5262 | #ifdef __cplusplus |
| 5263 | extern "C" |
| 5264 | #endif |
| 5265 | char uuid_generate (); |
| 5266 | int |
| 5267 | main () |
| 5268 | { |
| 5269 | return uuid_generate (); |
| 5270 | ; |
| 5271 | return 0; |
| 5272 | } |
| 5273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5274 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5275 | ac_cv_lib_uuid_uuid_generate=yes |
| 5276 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5277 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5278 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5279 | rm -f core conftest.err conftest.$ac_objext \ |
| 5280 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5281 | LIBS=$ac_check_lib_save_LIBS |
| 5282 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5283 | { $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] | 5284 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5285 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5286 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5287 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5288 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5289 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5290 | fi |
| 5291 | |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5292 | PROFILED_LIBUUID=$LIBUUID |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5293 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5294 | { $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] | 5295 | $as_echo "Disabling private uuid library" >&6; } |
| 5296 | else |
| 5297 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5298 | DEPLIBUUID=$LIBUUID |
| 5299 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5300 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5301 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5302 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5303 | { $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] | 5304 | $as_echo "Enabling private uuid library" >&6; } |
| 5305 | fi |
| 5306 | |
| 5307 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5308 | if test -n "$PKG_CONFIG"; then |
| 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 5310 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 5311 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
| 5312 | $as_echo_n "(cached) " >&6 |
| 5313 | else |
| 5314 | ac_check_lib_save_LIBS=$LIBS |
| 5315 | LIBS="-luuid $LIBS" |
| 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5317 | /* end confdefs.h. */ |
| 5318 | |
| 5319 | /* Override any GCC internal prototype to avoid an error. |
| 5320 | Use char because int might match the return type of a GCC |
| 5321 | builtin and then its argument prototype would still apply. */ |
| 5322 | #ifdef __cplusplus |
| 5323 | extern "C" |
| 5324 | #endif |
| 5325 | char uuid_generate (); |
| 5326 | int |
| 5327 | main () |
| 5328 | { |
| 5329 | return uuid_generate (); |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | if ac_fn_c_try_link "$LINENO"; then : |
| 5335 | ac_cv_lib_uuid_uuid_generate=yes |
| 5336 | else |
| 5337 | ac_cv_lib_uuid_uuid_generate=no |
| 5338 | fi |
| 5339 | rm -f core conftest.err conftest.$ac_objext \ |
| 5340 | conftest$ac_exeext conftest.$ac_ext |
| 5341 | LIBS=$ac_check_lib_save_LIBS |
| 5342 | fi |
| 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 5344 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 5345 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
| 5346 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5347 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5348 | fi |
| 5349 | |
| 5350 | fi |
| 5351 | if test -n "$LIBUUID"; then |
| 5352 | PROFILED_LIBUUID=$LIBUUID |
| 5353 | UUID_CMT=# |
| 5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
| 5355 | $as_echo "Using system uuid by default" >&6; } |
| 5356 | else |
| 5357 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5358 | DEPLIBUUID=$LIBUUID |
| 5359 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5360 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5361 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5362 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 5363 | { $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] | 5364 | $as_echo "Enabling private uuid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5365 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5366 | |
| 5367 | fi |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5383 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5384 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5385 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5386 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5387 | { $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] | 5388 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5389 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5390 | $as_echo_n "(cached) " >&6 |
| 5391 | else |
| 5392 | case $PKG_CONFIG in |
| 5393 | [\\/]* | ?:[\\/]*) |
| 5394 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5395 | ;; |
| 5396 | *) |
| 5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5398 | for as_dir in $PATH |
| 5399 | do |
| 5400 | IFS=$as_save_IFS |
| 5401 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5402 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5403 | 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] | 5404 | 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] | 5405 | $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] | 5406 | break 2 |
| 5407 | fi |
| 5408 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5409 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5410 | IFS=$as_save_IFS |
| 5411 | |
| 5412 | ;; |
| 5413 | esac |
| 5414 | fi |
| 5415 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5416 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5418 | $as_echo "$PKG_CONFIG" >&6; } |
| 5419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5421 | $as_echo "no" >&6; } |
| 5422 | fi |
| 5423 | |
| 5424 | |
| 5425 | fi |
| 5426 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5427 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5428 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5429 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5430 | { $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] | 5431 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5432 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5433 | $as_echo_n "(cached) " >&6 |
| 5434 | else |
| 5435 | case $ac_pt_PKG_CONFIG in |
| 5436 | [\\/]* | ?:[\\/]*) |
| 5437 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5438 | ;; |
| 5439 | *) |
| 5440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5441 | for as_dir in $PATH |
| 5442 | do |
| 5443 | IFS=$as_save_IFS |
| 5444 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5446 | 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] | 5447 | 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] | 5448 | $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] | 5449 | break 2 |
| 5450 | fi |
| 5451 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5452 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5453 | IFS=$as_save_IFS |
| 5454 | |
| 5455 | ;; |
| 5456 | esac |
| 5457 | fi |
| 5458 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5459 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5460 | { $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] | 5461 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5462 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5464 | $as_echo "no" >&6; } |
| 5465 | fi |
| 5466 | |
| 5467 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5468 | PKG_CONFIG="" |
| 5469 | else |
| 5470 | case $cross_compiling:$ac_tool_warned in |
| 5471 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5472 | { $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] | 5473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5474 | ac_tool_warned=yes ;; |
| 5475 | esac |
| 5476 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5477 | fi |
| 5478 | else |
| 5479 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5480 | fi |
| 5481 | |
| 5482 | fi |
| 5483 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5484 | _pkg_min_version=0.9.0 |
| 5485 | { $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] | 5486 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5487 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5489 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5490 | else |
| 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5492 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5493 | PKG_CONFIG="" |
| 5494 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5495 | fi |
| 5496 | LIBBLKID= |
| 5497 | DEPLIBBLKID= |
| 5498 | STATIC_LIBBLKID= |
| 5499 | DEPSTATIC_LIBBLKID= |
| 5500 | PROFILED_LIBBLKID= |
| 5501 | DEPPROFILED_LIBBLKID= |
| 5502 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5503 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5504 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5505 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5506 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5507 | then |
| 5508 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5509 | 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] | 5510 | fi |
| 5511 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5512 | { $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] | 5513 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5514 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5515 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5516 | else |
| 5517 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5518 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5520 | /* end confdefs.h. */ |
| 5521 | |
| 5522 | /* Override any GCC internal prototype to avoid an error. |
| 5523 | Use char because int might match the return type of a GCC |
| 5524 | builtin and then its argument prototype would still apply. */ |
| 5525 | #ifdef __cplusplus |
| 5526 | extern "C" |
| 5527 | #endif |
| 5528 | char blkid_get_cache (); |
| 5529 | int |
| 5530 | main () |
| 5531 | { |
| 5532 | return blkid_get_cache (); |
| 5533 | ; |
| 5534 | return 0; |
| 5535 | } |
| 5536 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5537 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5538 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5540 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5541 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5542 | rm -f core conftest.err conftest.$ac_objext \ |
| 5543 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5544 | LIBS=$ac_check_lib_save_LIBS |
| 5545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5546 | { $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] | 5547 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5548 | 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] | 5549 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5550 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5551 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5552 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5553 | fi |
| 5554 | |
| 5555 | BLKID_CMT=# |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5556 | PROFILED_LIBBLKID=$LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5557 | { $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] | 5558 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5559 | else |
| 5560 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5561 | DEPLIBBLKID=$LIBBLKID |
| 5562 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5563 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5564 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5565 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5566 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5567 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5568 | { $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] | 5569 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5570 | fi |
| 5571 | |
| 5572 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5573 | if test -n "$PKG_CONFIG"; then |
| 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
| 5575 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
| 5576 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
| 5577 | $as_echo_n "(cached) " >&6 |
| 5578 | else |
| 5579 | ac_check_lib_save_LIBS=$LIBS |
| 5580 | LIBS="-lblkid $LIBS" |
| 5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5582 | /* end confdefs.h. */ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5583 | |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5584 | /* Override any GCC internal prototype to avoid an error. |
| 5585 | Use char because int might match the return type of a GCC |
| 5586 | builtin and then its argument prototype would still apply. */ |
| 5587 | #ifdef __cplusplus |
| 5588 | extern "C" |
| 5589 | #endif |
| 5590 | char blkid_get_cache (); |
| 5591 | int |
| 5592 | main () |
| 5593 | { |
| 5594 | return blkid_get_cache (); |
| 5595 | ; |
| 5596 | return 0; |
| 5597 | } |
| 5598 | _ACEOF |
| 5599 | if ac_fn_c_try_link "$LINENO"; then : |
| 5600 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5601 | else |
| 5602 | ac_cv_lib_blkid_blkid_get_cache=no |
| 5603 | fi |
| 5604 | rm -f core conftest.err conftest.$ac_objext \ |
| 5605 | conftest$ac_exeext conftest.$ac_ext |
| 5606 | LIBS=$ac_check_lib_save_LIBS |
| 5607 | fi |
| 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 5609 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 5610 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
| 5611 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5612 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5613 | fi |
| 5614 | |
| 5615 | fi |
| 5616 | if test -n "$LIBBLKID"; then |
| 5617 | BLKID_CMT=# |
| 5618 | PROFILED_LIBBLKID=$LIBBLKID |
| 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
| 5620 | $as_echo "Using system blkid library by default" >&6; } |
| 5621 | else |
| 5622 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5623 | DEPLIBBLKID=$LIBBLKID |
| 5624 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5625 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5626 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5627 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 5628 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
| 5629 | |
| 5630 | { $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] | 5631 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5632 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5633 | |
| 5634 | fi |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5643 | |
| 5644 | # Check whether --enable-backtrace was given. |
| 5645 | if test "${enable_backtrace+set}" = set; then : |
| 5646 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5647 | then |
| 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5649 | $as_echo "Disabling use of backtrace" >&6; } |
| 5650 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5651 | |
| 5652 | else |
| 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5654 | $as_echo "Enabling use of backtrace" >&6; } |
| 5655 | fi |
| 5656 | |
| 5657 | else |
| 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5659 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5660 | |
| 5661 | fi |
| 5662 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5663 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5664 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5665 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5666 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5667 | { $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] | 5668 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5669 | DEBUGFS_CMT="#" |
| 5670 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5671 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5672 | { $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] | 5673 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5674 | fi |
| 5675 | |
| 5676 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5677 | { $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] | 5678 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5679 | DEBUGFS_CMT= |
| 5680 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5681 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5682 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5683 | |
| 5684 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5685 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5686 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5687 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5688 | { $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] | 5689 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5690 | IMAGER_CMT="#" |
| 5691 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5692 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5693 | { $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] | 5694 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5695 | fi |
| 5696 | |
| 5697 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5698 | { $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] | 5699 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5700 | IMAGER_CMT= |
| 5701 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5702 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5703 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5704 | |
| 5705 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5706 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5707 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5708 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5709 | { $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] | 5710 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5711 | RESIZER_CMT="#" |
| 5712 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5713 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5714 | { $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] | 5715 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5716 | fi |
| 5717 | |
| 5718 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5719 | { $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] | 5720 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5721 | RESIZER_CMT= |
| 5722 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5723 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5725 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5726 | # Check whether --enable-defrag was given. |
| 5727 | if test "${enable_defrag+set}" = set; then : |
| 5728 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5729 | then |
| 5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5731 | $as_echo "Disabling e4defrag support" >&6; } |
| 5732 | DEFRAG_CMT="#" |
| 5733 | else |
| 5734 | DEFRAG_CMT= |
| 5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5736 | $as_echo "Enabling e4defrag support" >&6; } |
| 5737 | fi |
| 5738 | |
| 5739 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5740 | if test -z "$WITH_DIET_LIBC" |
| 5741 | then |
| 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5743 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5744 | DEFRAG_CMT= |
| 5745 | else |
| 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5747 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5748 | DEFRAG_CMT="#" |
| 5749 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5750 | |
| 5751 | fi |
| 5752 | |
| 5753 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5754 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5755 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5756 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5757 | then |
| 5758 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5759 | { $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] | 5760 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5761 | else |
| 5762 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5763 | { $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] | 5764 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5765 | fi |
| 5766 | |
| 5767 | else |
| 5768 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5769 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5770 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5771 | { $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] | 5772 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5773 | ;; |
| 5774 | *) |
| 5775 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5776 | { $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] | 5777 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5778 | esac |
| 5779 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5780 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5781 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5782 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5783 | |
| 5784 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5785 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5786 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5787 | then |
| 5788 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5789 | { $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] | 5790 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5791 | else |
| 5792 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5793 | { $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] | 5794 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5795 | fi |
| 5796 | |
| 5797 | else |
| 5798 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5799 | { $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] | 5800 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5802 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5803 | |
| 5804 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5805 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5806 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5807 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5808 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5809 | then |
| 5810 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5811 | { $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] | 5812 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5813 | else |
| 5814 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5815 | { $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] | 5816 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5817 | fi |
| 5818 | |
| 5819 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5820 | if test -n "$WITH_DIET_LIBC" |
| 5821 | then |
| 5822 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5823 | { $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] | 5824 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5825 | else |
| 5826 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5827 | { $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] | 5828 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5829 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5830 | |
| 5831 | fi |
| 5832 | |
| 5833 | if test "$try_tls" = "yes" |
| 5834 | then |
| 5835 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5836 | { $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] | 5837 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5838 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5839 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5840 | else |
| 5841 | |
| 5842 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5843 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5844 | case $ax_tls_keyword in |
| 5845 | none) ac_cv_tls=none ; break ;; |
| 5846 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5848 | /* end confdefs.h. */ |
| 5849 | #include <stdlib.h> |
| 5850 | static void |
| 5851 | foo(void) { |
| 5852 | static $ax_tls_keyword int bar; |
| 5853 | exit(1); |
| 5854 | } |
| 5855 | int |
| 5856 | main () |
| 5857 | { |
| 5858 | |
| 5859 | ; |
| 5860 | return 0; |
| 5861 | } |
| 5862 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5863 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5864 | ac_cv_tls=$ax_tls_keyword ; break |
| 5865 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5866 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5867 | |
| 5868 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5870 | esac |
| 5871 | done |
| 5872 | |
| 5873 | fi |
| 5874 | |
| 5875 | |
| 5876 | if test "$ac_cv_tls" != "none"; then |
| 5877 | |
| 5878 | cat >>confdefs.h <<_ACEOF |
| 5879 | #define TLS $ac_cv_tls |
| 5880 | _ACEOF |
| 5881 | |
| 5882 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5883 | { $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] | 5884 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5885 | |
| 5886 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5887 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5888 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5889 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5890 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5891 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5892 | { $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] | 5893 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5894 | UUIDD_CMT="#" |
| 5895 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5896 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5897 | |
| 5898 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5900 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5901 | fi |
| 5902 | |
| 5903 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5904 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5905 | |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5906 | if test -z "$UUID_CMT" |
| 5907 | then |
| 5908 | UUIDD_CMT="" |
| 5909 | { $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] | 5910 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5911 | else |
| 5912 | UUIDD_CMT="#" |
| 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
| 5914 | $as_echo "Disabling uuidd by default" >&6; } |
| 5915 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5916 | |
| 5917 | fi |
| 5918 | |
| 5919 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5920 | |
| 5921 | # Check whether --enable-mmp was given. |
| 5922 | if test "${enable_mmp+set}" = set; then : |
| 5923 | enableval=$enable_mmp; if test "$enableval" = "no" |
| 5924 | then |
| 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
| 5926 | $as_echo "Disabling mmp support" >&6; } |
| 5927 | else |
| 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
| 5929 | $as_echo "Enabling mmp support" >&6; } |
| 5930 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5931 | |
| 5932 | fi |
| 5933 | |
| 5934 | else |
| 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 5936 | $as_echo "Enabling mmp support by default" >&6; } |
| 5937 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5938 | |
| 5939 | |
| 5940 | fi |
| 5941 | |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 5942 | |
| 5943 | # Check whether --enable-bmap-stats was given. |
| 5944 | if test "${enable_bmap_stats+set}" = set; then : |
| 5945 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
| 5946 | then |
| 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
| 5948 | $as_echo "Disabling bitmap statistics support" >&6; } |
| 5949 | else |
| 5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
| 5951 | $as_echo "Enabling bitmap statistics support" >&6; } |
| 5952 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5953 | |
| 5954 | fi |
| 5955 | |
| 5956 | else |
| 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 |
| 5958 | $as_echo "Enabling bitmap statistics support by default" >&6; } |
| 5959 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5960 | |
| 5961 | |
| 5962 | fi |
| 5963 | |
| 5964 | |
| 5965 | # Check whether --enable-bmap-stats-ops was given. |
| 5966 | if test "${enable_bmap_stats_ops+set}" = set; then : |
| 5967 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
| 5968 | then |
| 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
| 5970 | $as_echo "Disabling additional bitmap statistics" >&6; } |
| 5971 | else |
| 5972 | if test "x${enable_bmap_stats}" = "xno"; then : |
| 5973 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5975 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
| 5976 | See \`config.log' for more details" "$LINENO" 5; } |
| 5977 | fi |
| 5978 | |
| 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
| 5980 | $as_echo "Enabling additional bitmap statistics" >&6; } |
| 5981 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h |
| 5982 | |
| 5983 | fi |
| 5984 | |
| 5985 | else |
| 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 |
| 5987 | $as_echo "Disabling additional bitmap statistics by default" >&6; } |
| 5988 | |
| 5989 | fi |
| 5990 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5991 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5992 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5993 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5994 | PACKAGE=e2fsprogs |
| 5995 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5996 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5997 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5999 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6001 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6002 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6003 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6004 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6005 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6006 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6007 | |
| 6008 | |
| 6009 | |
| 6010 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6011 | { $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] | 6012 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6013 | set x ${MAKE-make} |
| 6014 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6015 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6016 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6019 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6020 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6021 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6022 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6023 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6024 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6025 | *@@@%%%=?*=@@@%%%*) |
| 6026 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6027 | *) |
| 6028 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6029 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6030 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6031 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6032 | 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] | 6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6034 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6035 | SET_MAKE= |
| 6036 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6038 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6039 | SET_MAKE="MAKE=${MAKE-make}" |
| 6040 | fi |
| 6041 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6042 | # Find a good install program. We prefer a C program (faster), |
| 6043 | # so one script is as good as another. But avoid the broken or |
| 6044 | # incompatible versions: |
| 6045 | # SysV /etc/install, /usr/sbin/install |
| 6046 | # SunOS /usr/etc/install |
| 6047 | # IRIX /sbin/install |
| 6048 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6050 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6051 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6052 | # 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] | 6053 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6054 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6055 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6056 | { $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] | 6057 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6058 | if test -z "$INSTALL"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6059 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6060 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6061 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6063 | for as_dir in $PATH |
| 6064 | do |
| 6065 | IFS=$as_save_IFS |
| 6066 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6067 | # Account for people who put trailing slashes in PATH elements. |
| 6068 | case $as_dir/ in #(( |
| 6069 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6070 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6071 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6072 | /usr/ucb/* ) ;; |
| 6073 | *) |
| 6074 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6075 | # Don't use installbsd from OSF since it installs stuff as root |
| 6076 | # by default. |
| 6077 | for ac_prog in ginstall scoinst install; do |
| 6078 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6079 | 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] | 6080 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6081 | 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] | 6082 | # AIX install. It has an incompatible calling convention. |
| 6083 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6084 | elif test $ac_prog = install && |
| 6085 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6086 | # program-specific install script used by HP pwplus--don't use. |
| 6087 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6088 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6089 | rm -rf conftest.one conftest.two conftest.dir |
| 6090 | echo one > conftest.one |
| 6091 | echo two > conftest.two |
| 6092 | mkdir conftest.dir |
| 6093 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6094 | test -s conftest.one && test -s conftest.two && |
| 6095 | test -s conftest.dir/conftest.one && |
| 6096 | test -s conftest.dir/conftest.two |
| 6097 | then |
| 6098 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6099 | break 3 |
| 6100 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6101 | fi |
| 6102 | fi |
| 6103 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6104 | done |
| 6105 | ;; |
| 6106 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6107 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6108 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6109 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6110 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6111 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6112 | |
| 6113 | fi |
| 6114 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6116 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6117 | # As a last resort, use the slow shell script. Don't cache a |
| 6118 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6119 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6120 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6122 | fi |
| 6123 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6125 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6126 | |
| 6127 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6128 | # It thinks the first close brace ends the variable substitution. |
| 6129 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6130 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6131 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6132 | |
| 6133 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6134 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6136 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6137 | if test -z "$MKDIR_P"; then |
| 6138 | if ${ac_cv_path_mkdir+:} false; then : |
| 6139 | $as_echo_n "(cached) " >&6 |
| 6140 | else |
| 6141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6142 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6143 | do |
| 6144 | IFS=$as_save_IFS |
| 6145 | test -z "$as_dir" && as_dir=. |
| 6146 | for ac_prog in mkdir gmkdir; do |
| 6147 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6148 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6149 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6150 | 'mkdir (GNU coreutils) '* | \ |
| 6151 | 'mkdir (coreutils) '* | \ |
| 6152 | 'mkdir (fileutils) '4.1*) |
| 6153 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6154 | break 3;; |
| 6155 | esac |
| 6156 | done |
| 6157 | done |
| 6158 | done |
| 6159 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6160 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6161 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6162 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6163 | test -d ./--version && rmdir ./--version |
| 6164 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6165 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6166 | else |
| 6167 | # As a last resort, use the slow shell script. Don't cache a |
| 6168 | # value for MKDIR_P within a source directory, because that will |
| 6169 | # break other packages using the cache if that directory is |
| 6170 | # removed, or if the value is a relative name. |
| 6171 | MKDIR_P="$ac_install_sh -d" |
| 6172 | fi |
| 6173 | fi |
| 6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6175 | $as_echo "$MKDIR_P" >&6; } |
| 6176 | |
| 6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6178 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6179 | if ${ac_cv_path_SED+:} false; then : |
| 6180 | $as_echo_n "(cached) " >&6 |
| 6181 | else |
| 6182 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6183 | for ac_i in 1 2 3 4 5 6 7; do |
| 6184 | ac_script="$ac_script$as_nl$ac_script" |
| 6185 | done |
| 6186 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6187 | { ac_script=; unset ac_script;} |
| 6188 | if test -z "$SED"; then |
| 6189 | ac_path_SED_found=false |
| 6190 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6192 | for as_dir in $PATH |
| 6193 | do |
| 6194 | IFS=$as_save_IFS |
| 6195 | test -z "$as_dir" && as_dir=. |
| 6196 | for ac_prog in sed gsed; do |
| 6197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6198 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6199 | as_fn_executable_p "$ac_path_SED" || continue |
| 6200 | # Check for GNU ac_path_SED and select it if it is found. |
| 6201 | # Check for GNU $ac_path_SED |
| 6202 | case `"$ac_path_SED" --version 2>&1` in |
| 6203 | *GNU*) |
| 6204 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6205 | *) |
| 6206 | ac_count=0 |
| 6207 | $as_echo_n 0123456789 >"conftest.in" |
| 6208 | while : |
| 6209 | do |
| 6210 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6211 | mv "conftest.tmp" "conftest.in" |
| 6212 | cp "conftest.in" "conftest.nl" |
| 6213 | $as_echo '' >> "conftest.nl" |
| 6214 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6215 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6216 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6217 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6218 | # Best one so far, save it but keep looking for a better one |
| 6219 | ac_cv_path_SED="$ac_path_SED" |
| 6220 | ac_path_SED_max=$ac_count |
| 6221 | fi |
| 6222 | # 10*(2^10) chars as input seems more than enough |
| 6223 | test $ac_count -gt 10 && break |
| 6224 | done |
| 6225 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6226 | esac |
| 6227 | |
| 6228 | $ac_path_SED_found && break 3 |
| 6229 | done |
| 6230 | done |
| 6231 | done |
| 6232 | IFS=$as_save_IFS |
| 6233 | if test -z "$ac_cv_path_SED"; then |
| 6234 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6235 | fi |
| 6236 | else |
| 6237 | ac_cv_path_SED=$SED |
| 6238 | fi |
| 6239 | |
| 6240 | fi |
| 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6242 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6243 | SED="$ac_cv_path_SED" |
| 6244 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | |
| 6246 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6247 | { $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] | 6248 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6249 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6250 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6251 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6252 | else |
| 6253 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6254 | fi |
| 6255 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6257 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | |
| 6259 | |
| 6260 | |
| 6261 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6262 | GETTEXT_MACRO_VERSION=0.18 |
| 6263 | |
| 6264 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6265 | |
| 6266 | |
| 6267 | # Prepare PATH_SEPARATOR. |
| 6268 | # The user is always right. |
| 6269 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6270 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6271 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6272 | # so we have to set that as well for the test. |
| 6273 | PATH_SEPARATOR=: |
| 6274 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6275 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6276 | || PATH_SEPARATOR=';' |
| 6277 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6278 | fi |
| 6279 | |
| 6280 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6281 | # as systems may use methods other than mode bits to determine executability. |
| 6282 | cat >conf$$.file <<_ASEOF |
| 6283 | #! /bin/sh |
| 6284 | exit 0 |
| 6285 | _ASEOF |
| 6286 | chmod +x conf$$.file |
| 6287 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6288 | ac_executable_p="test -x" |
| 6289 | else |
| 6290 | ac_executable_p="test -f" |
| 6291 | fi |
| 6292 | rm -f conf$$.file |
| 6293 | |
| 6294 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6295 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6296 | { $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] | 6297 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6298 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6299 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6300 | else |
| 6301 | case "$MSGFMT" in |
| 6302 | [\\/]* | ?:[\\/]*) |
| 6303 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6304 | ;; |
| 6305 | *) |
| 6306 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6307 | for ac_dir in $PATH; do |
| 6308 | IFS="$ac_save_IFS" |
| 6309 | test -z "$ac_dir" && ac_dir=. |
| 6310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6311 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6312 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6313 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6314 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6315 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6316 | break 2 |
| 6317 | fi |
| 6318 | fi |
| 6319 | done |
| 6320 | done |
| 6321 | IFS="$ac_save_IFS" |
| 6322 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6323 | ;; |
| 6324 | esac |
| 6325 | fi |
| 6326 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6327 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6329 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6330 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6332 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6333 | fi |
| 6334 | |
| 6335 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6336 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6337 | { $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] | 6338 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6339 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6340 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6341 | else |
| 6342 | case $GMSGFMT in |
| 6343 | [\\/]* | ?:[\\/]*) |
| 6344 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6345 | ;; |
| 6346 | *) |
| 6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6348 | for as_dir in $PATH |
| 6349 | do |
| 6350 | IFS=$as_save_IFS |
| 6351 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6352 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6353 | 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] | 6354 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6355 | $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] | 6356 | break 2 |
| 6357 | fi |
| 6358 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6359 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6360 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | |
| 6362 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6363 | ;; |
| 6364 | esac |
| 6365 | fi |
| 6366 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6367 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6369 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6370 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6372 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6373 | fi |
| 6374 | |
| 6375 | |
| 6376 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6377 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6378 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6379 | *) MSGFMT_015=$MSGFMT ;; |
| 6380 | esac |
| 6381 | |
| 6382 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6383 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6384 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6385 | esac |
| 6386 | |
| 6387 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6388 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6389 | # Prepare PATH_SEPARATOR. |
| 6390 | # The user is always right. |
| 6391 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6392 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6393 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6394 | # so we have to set that as well for the test. |
| 6395 | PATH_SEPARATOR=: |
| 6396 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6397 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6398 | || PATH_SEPARATOR=';' |
| 6399 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | fi |
| 6401 | |
| 6402 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6403 | # as systems may use methods other than mode bits to determine executability. |
| 6404 | cat >conf$$.file <<_ASEOF |
| 6405 | #! /bin/sh |
| 6406 | exit 0 |
| 6407 | _ASEOF |
| 6408 | chmod +x conf$$.file |
| 6409 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6410 | ac_executable_p="test -x" |
| 6411 | else |
| 6412 | ac_executable_p="test -f" |
| 6413 | fi |
| 6414 | rm -f conf$$.file |
| 6415 | |
| 6416 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6417 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6418 | { $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] | 6419 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6420 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6421 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6422 | else |
| 6423 | case "$XGETTEXT" in |
| 6424 | [\\/]* | ?:[\\/]*) |
| 6425 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6426 | ;; |
| 6427 | *) |
| 6428 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6429 | for ac_dir in $PATH; do |
| 6430 | IFS="$ac_save_IFS" |
| 6431 | test -z "$ac_dir" && ac_dir=. |
| 6432 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6433 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6434 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6435 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6436 | (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 |
| 6437 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6438 | break 2 |
| 6439 | fi |
| 6440 | fi |
| 6441 | done |
| 6442 | done |
| 6443 | IFS="$ac_save_IFS" |
| 6444 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6445 | ;; |
| 6446 | esac |
| 6447 | fi |
| 6448 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6449 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6451 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6452 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6454 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6455 | fi |
| 6456 | |
| 6457 | rm -f messages.po |
| 6458 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6459 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6460 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6461 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6462 | esac |
| 6463 | |
| 6464 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6465 | |
| 6466 | # Prepare PATH_SEPARATOR. |
| 6467 | # The user is always right. |
| 6468 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6469 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6470 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6471 | # so we have to set that as well for the test. |
| 6472 | PATH_SEPARATOR=: |
| 6473 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6474 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6475 | || PATH_SEPARATOR=';' |
| 6476 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6477 | fi |
| 6478 | |
| 6479 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6480 | # as systems may use methods other than mode bits to determine executability. |
| 6481 | cat >conf$$.file <<_ASEOF |
| 6482 | #! /bin/sh |
| 6483 | exit 0 |
| 6484 | _ASEOF |
| 6485 | chmod +x conf$$.file |
| 6486 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6487 | ac_executable_p="test -x" |
| 6488 | else |
| 6489 | ac_executable_p="test -f" |
| 6490 | fi |
| 6491 | rm -f conf$$.file |
| 6492 | |
| 6493 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6494 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6495 | { $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] | 6496 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6497 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6498 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6499 | else |
| 6500 | case "$MSGMERGE" in |
| 6501 | [\\/]* | ?:[\\/]*) |
| 6502 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6503 | ;; |
| 6504 | *) |
| 6505 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6506 | for ac_dir in $PATH; do |
| 6507 | IFS="$ac_save_IFS" |
| 6508 | test -z "$ac_dir" && ac_dir=. |
| 6509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6510 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6511 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6512 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6513 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6514 | break 2 |
| 6515 | fi |
| 6516 | fi |
| 6517 | done |
| 6518 | done |
| 6519 | IFS="$ac_save_IFS" |
| 6520 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6521 | ;; |
| 6522 | esac |
| 6523 | fi |
| 6524 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6525 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6527 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6528 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6530 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6531 | fi |
| 6532 | |
| 6533 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6534 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6537 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6538 | |
| 6539 | |
| 6540 | ac_config_commands="$ac_config_commands po-directories" |
| 6541 | |
| 6542 | |
| 6543 | |
| 6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6545 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6546 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6547 | $as_echo_n "(cached) " >&6 |
| 6548 | else |
| 6549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6550 | /* end confdefs.h. */ |
| 6551 | |
| 6552 | #include <features.h> |
| 6553 | #ifdef __GNU_LIBRARY__ |
| 6554 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6555 | Lucky GNU user |
| 6556 | #endif |
| 6557 | #endif |
| 6558 | |
| 6559 | _ACEOF |
| 6560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6561 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6562 | ac_cv_gnu_library_2=yes |
| 6563 | else |
| 6564 | ac_cv_gnu_library_2=no |
| 6565 | fi |
| 6566 | rm -f conftest* |
| 6567 | |
| 6568 | |
| 6569 | |
| 6570 | fi |
| 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6572 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6573 | |
| 6574 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6575 | |
| 6576 | |
| 6577 | if test -n "$ac_tool_prefix"; then |
| 6578 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6579 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6580 | { $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] | 6581 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6582 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6583 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6584 | else |
| 6585 | if test -n "$RANLIB"; then |
| 6586 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6587 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6589 | for as_dir in $PATH |
| 6590 | do |
| 6591 | IFS=$as_save_IFS |
| 6592 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6593 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6594 | 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] | 6595 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6596 | $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] | 6597 | break 2 |
| 6598 | fi |
| 6599 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6601 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6602 | |
| 6603 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6604 | fi |
| 6605 | RANLIB=$ac_cv_prog_RANLIB |
| 6606 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6608 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6611 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6612 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6614 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6615 | fi |
| 6616 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6617 | ac_ct_RANLIB=$RANLIB |
| 6618 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6619 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6620 | { $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] | 6621 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6622 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6623 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6624 | else |
| 6625 | if test -n "$ac_ct_RANLIB"; then |
| 6626 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6627 | else |
| 6628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6629 | for as_dir in $PATH |
| 6630 | do |
| 6631 | IFS=$as_save_IFS |
| 6632 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6633 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6634 | 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] | 6635 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6636 | $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] | 6637 | break 2 |
| 6638 | fi |
| 6639 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6641 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6643 | fi |
| 6644 | fi |
| 6645 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6646 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6647 | { $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] | 6648 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6651 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6652 | fi |
| 6653 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6654 | if test "x$ac_ct_RANLIB" = x; then |
| 6655 | RANLIB=":" |
| 6656 | else |
| 6657 | case $cross_compiling:$ac_tool_warned in |
| 6658 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6659 | { $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] | 6660 | $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] | 6661 | ac_tool_warned=yes ;; |
| 6662 | esac |
| 6663 | RANLIB=$ac_ct_RANLIB |
| 6664 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6665 | else |
| 6666 | RANLIB="$ac_cv_prog_RANLIB" |
| 6667 | fi |
| 6668 | |
| 6669 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6670 | |
| 6671 | CFLAG_VISIBILITY= |
| 6672 | HAVE_VISIBILITY=0 |
| 6673 | if test -n "$GCC"; then |
| 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6675 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6676 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6677 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6678 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6679 | |
| 6680 | gl_save_CFLAGS="$CFLAGS" |
| 6681 | CFLAGS="$CFLAGS -Werror" |
| 6682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | /* end confdefs.h. */ |
| 6684 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | int |
| 6686 | main () |
| 6687 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6688 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6689 | ; |
| 6690 | return 0; |
| 6691 | } |
| 6692 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6693 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6694 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6695 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6696 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6699 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6700 | fi |
| 6701 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6703 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6705 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6706 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6707 | $as_echo_n "(cached) " >&6 |
| 6708 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6709 | |
| 6710 | gl_save_CFLAGS="$CFLAGS" |
| 6711 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6712 | if test $gl_cv_cc_vis_werror = yes; then |
| 6713 | CFLAGS="$CFLAGS -Werror" |
| 6714 | fi |
| 6715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6716 | /* end confdefs.h. */ |
| 6717 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6718 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6719 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6720 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6721 | void dummyfunc (void) {} |
| 6722 | |
| 6723 | int |
| 6724 | main () |
| 6725 | { |
| 6726 | |
| 6727 | ; |
| 6728 | return 0; |
| 6729 | } |
| 6730 | _ACEOF |
| 6731 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6732 | gl_cv_cc_visibility=yes |
| 6733 | else |
| 6734 | gl_cv_cc_visibility=no |
| 6735 | fi |
| 6736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6737 | CFLAGS="$gl_save_CFLAGS" |
| 6738 | fi |
| 6739 | |
| 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6741 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6742 | if test $gl_cv_cc_visibility = yes; then |
| 6743 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6744 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6745 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6746 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6747 | |
| 6748 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6749 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6750 | cat >>confdefs.h <<_ACEOF |
| 6751 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6752 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6753 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6756 | $as_echo_n "checking for inline... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6757 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6758 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6759 | else |
| 6760 | ac_cv_c_inline=no |
| 6761 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6763 | /* end confdefs.h. */ |
| 6764 | #ifndef __cplusplus |
| 6765 | typedef int foo_t; |
| 6766 | static $ac_kw foo_t static_foo () {return 0; } |
| 6767 | $ac_kw foo_t foo () {return 0; } |
| 6768 | #endif |
| 6769 | |
| 6770 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6771 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6772 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6775 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6776 | done |
| 6777 | |
| 6778 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6779 | { $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] | 6780 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6782 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6783 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | *) |
| 6785 | case $ac_cv_c_inline in |
| 6786 | no) ac_val=;; |
| 6787 | *) ac_val=$ac_cv_c_inline;; |
| 6788 | esac |
| 6789 | cat >>confdefs.h <<_ACEOF |
| 6790 | #ifndef __cplusplus |
| 6791 | #define inline $ac_val |
| 6792 | #endif |
| 6793 | _ACEOF |
| 6794 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6795 | esac |
| 6796 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6797 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6798 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6799 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | else |
| 6801 | |
| 6802 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6803 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6804 | _ACEOF |
| 6805 | |
| 6806 | fi |
| 6807 | |
| 6808 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6809 | { $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] | 6810 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6811 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6812 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6813 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | /* end confdefs.h. */ |
| 6816 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6817 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6818 | int |
| 6819 | main () |
| 6820 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6821 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6822 | ; |
| 6823 | return 0; |
| 6824 | } |
| 6825 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6826 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6827 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6828 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6829 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6832 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6834 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6835 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6836 | |
| 6837 | cat >>confdefs.h <<_ACEOF |
| 6838 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6839 | _ACEOF |
| 6840 | |
| 6841 | fi |
| 6842 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6843 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6844 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6845 | { $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] | 6846 | $as_echo_n "checking for working alloca.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6847 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6848 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6852 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | int |
| 6854 | main () |
| 6855 | { |
| 6856 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6857 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6858 | ; |
| 6859 | return 0; |
| 6860 | } |
| 6861 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6862 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6864 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6865 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6867 | rm -f core conftest.err conftest.$ac_objext \ |
| 6868 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6869 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6870 | { $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] | 6871 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6872 | if test $ac_cv_working_alloca_h = yes; then |
| 6873 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6874 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | |
| 6876 | fi |
| 6877 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6879 | $as_echo_n "checking for alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6880 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6881 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6882 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6885 | #ifdef __GNUC__ |
| 6886 | # define alloca __builtin_alloca |
| 6887 | #else |
| 6888 | # ifdef _MSC_VER |
| 6889 | # include <malloc.h> |
| 6890 | # define alloca _alloca |
| 6891 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6892 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6893 | # include <alloca.h> |
| 6894 | # else |
| 6895 | # ifdef _AIX |
| 6896 | #pragma alloca |
| 6897 | # else |
| 6898 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6899 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6900 | # endif |
| 6901 | # endif |
| 6902 | # endif |
| 6903 | # endif |
| 6904 | #endif |
| 6905 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6906 | int |
| 6907 | main () |
| 6908 | { |
| 6909 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6910 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | ; |
| 6912 | return 0; |
| 6913 | } |
| 6914 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6915 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6916 | ac_cv_func_alloca_works=yes |
| 6917 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6918 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6919 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6920 | rm -f core conftest.err conftest.$ac_objext \ |
| 6921 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6922 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6923 | { $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] | 6924 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6925 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6926 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6927 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6928 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6929 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6930 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6932 | # that cause trouble. Some versions do not even contain alloca or |
| 6933 | # contain a buggy version. If you still want to use their alloca, |
| 6934 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6936 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6937 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6938 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6939 | |
| 6940 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6941 | { $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] | 6942 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6943 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6944 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6945 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6948 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6949 | webecray |
| 6950 | #else |
| 6951 | wenotbecray |
| 6952 | #endif |
| 6953 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6954 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6956 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6957 | ac_cv_os_cray=yes |
| 6958 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6959 | ac_cv_os_cray=no |
| 6960 | fi |
| 6961 | rm -f conftest* |
| 6962 | |
| 6963 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6964 | { $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] | 6965 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6966 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6968 | 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] | 6969 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6970 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6971 | |
| 6972 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6973 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6975 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6977 | fi |
| 6978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6980 | fi |
| 6981 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6982 | { $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] | 6983 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6984 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6985 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6986 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6987 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6988 | ac_cv_c_stack_direction=0 |
| 6989 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6992 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6993 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6994 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6995 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6996 | int dir, dummy = 0; |
| 6997 | if (! addr) |
| 6998 | addr = &dummy; |
| 6999 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7000 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7001 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7002 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | |
| 7004 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7005 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7006 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7007 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7008 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7009 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7010 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7011 | ac_cv_c_stack_direction=1 |
| 7012 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7013 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7014 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7015 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7016 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7018 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7019 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7020 | { $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] | 7021 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7023 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7024 | _ACEOF |
| 7025 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7026 | |
| 7027 | fi |
| 7028 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7029 | |
| 7030 | |
| 7031 | |
| 7032 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7033 | do : |
| 7034 | 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] | 7035 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7036 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7037 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7038 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7039 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7040 | _ACEOF |
| 7041 | |
| 7042 | fi |
| 7043 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7044 | done |
| 7045 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7046 | |
| 7047 | |
| 7048 | |
| 7049 | |
| 7050 | |
| 7051 | |
| 7052 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7053 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7054 | do : |
| 7055 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7056 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7058 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7059 | _ACEOF |
| 7060 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7061 | fi |
| 7062 | done |
| 7063 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7064 | { $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] | 7065 | $as_echo_n "checking for working mmap... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7066 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7067 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7068 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7069 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7070 | ac_cv_func_mmap_fixed_mapped=no |
| 7071 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7073 | /* end confdefs.h. */ |
| 7074 | $ac_includes_default |
| 7075 | /* malloc might have been renamed as rpl_malloc. */ |
| 7076 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7077 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7078 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7079 | Here is a matrix of mmap possibilities: |
| 7080 | mmap private not fixed |
| 7081 | mmap private fixed at somewhere currently unmapped |
| 7082 | mmap private fixed at somewhere already mapped |
| 7083 | mmap shared not fixed |
| 7084 | mmap shared fixed at somewhere currently unmapped |
| 7085 | mmap shared fixed at somewhere already mapped |
| 7086 | For private mappings, we should verify that changes cannot be read() |
| 7087 | back from the file, nor mmap's back from the file at a different |
| 7088 | address. (There have been systems where private was not correctly |
| 7089 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7090 | 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] | 7091 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7092 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7093 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | |
| 7095 | Grep wants private fixed already mapped. |
| 7096 | The main things grep needs to know about mmap are: |
| 7097 | * does it exist and is it safe to write into the mmap'd area |
| 7098 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7099 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7100 | #include <fcntl.h> |
| 7101 | #include <sys/mman.h> |
| 7102 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7103 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7104 | char *malloc (); |
| 7105 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7108 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7109 | # ifdef _SC_PAGESIZE |
| 7110 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7111 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7112 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7113 | # include <sys/param.h> |
| 7114 | # ifdef EXEC_PAGESIZE |
| 7115 | # define getpagesize() EXEC_PAGESIZE |
| 7116 | # else /* no EXEC_PAGESIZE */ |
| 7117 | # ifdef NBPG |
| 7118 | # define getpagesize() NBPG * CLSIZE |
| 7119 | # ifndef CLSIZE |
| 7120 | # define CLSIZE 1 |
| 7121 | # endif /* no CLSIZE */ |
| 7122 | # else /* no NBPG */ |
| 7123 | # ifdef NBPC |
| 7124 | # define getpagesize() NBPC |
| 7125 | # else /* no NBPC */ |
| 7126 | # ifdef PAGESIZE |
| 7127 | # define getpagesize() PAGESIZE |
| 7128 | # endif /* PAGESIZE */ |
| 7129 | # endif /* no NBPC */ |
| 7130 | # endif /* no NBPG */ |
| 7131 | # endif /* no EXEC_PAGESIZE */ |
| 7132 | # else /* no HAVE_SYS_PARAM_H */ |
| 7133 | # define getpagesize() 8192 /* punt totally */ |
| 7134 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7135 | # endif /* no _SC_PAGESIZE */ |
| 7136 | |
| 7137 | #endif /* no HAVE_GETPAGESIZE */ |
| 7138 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7139 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7141 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7142 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7143 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7144 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7145 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7146 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7147 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7148 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7149 | /* First, make a file with some known garbage in it. */ |
| 7150 | data = (char *) malloc (pagesize); |
| 7151 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7152 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7153 | for (i = 0; i < pagesize; ++i) |
| 7154 | *(data + i) = rand (); |
| 7155 | umask (0); |
| 7156 | fd = creat ("conftest.mmap", 0600); |
| 7157 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7158 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7159 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7160 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7161 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7162 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7163 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7164 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7165 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7166 | if (fd2 < 0) |
| 7167 | return 4; |
| 7168 | cdata2 = ""; |
| 7169 | if (write (fd2, cdata2, 1) != 1) |
| 7170 | return 5; |
| 7171 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7172 | if (data2 == MAP_FAILED) |
| 7173 | return 6; |
| 7174 | for (i = 0; i < pagesize; ++i) |
| 7175 | if (*(data2 + i)) |
| 7176 | return 7; |
| 7177 | close (fd2); |
| 7178 | if (munmap (data2, pagesize)) |
| 7179 | return 8; |
| 7180 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7181 | /* Next, try to mmap the file at a fixed address which already has |
| 7182 | something else allocated at it. If we can, also make sure that |
| 7183 | we see the same garbage. */ |
| 7184 | fd = open ("conftest.mmap", O_RDWR); |
| 7185 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7186 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7187 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7188 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7189 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7190 | for (i = 0; i < pagesize; ++i) |
| 7191 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7192 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | /* Finally, make sure that changes to the mapped area do not |
| 7195 | percolate back to the file as seen by read(). (This is a bug on |
| 7196 | some variants of i386 svr4.0.) */ |
| 7197 | for (i = 0; i < pagesize; ++i) |
| 7198 | *(data2 + i) = *(data2 + i) + 1; |
| 7199 | data3 = (char *) malloc (pagesize); |
| 7200 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7201 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7202 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7203 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7204 | for (i = 0; i < pagesize; ++i) |
| 7205 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7206 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7207 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7208 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7209 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7210 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7211 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7212 | ac_cv_func_mmap_fixed_mapped=yes |
| 7213 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7214 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7215 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7216 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7217 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7219 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7221 | { $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] | 7222 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7223 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7224 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7225 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7226 | |
| 7227 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7228 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7229 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7232 | { $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] | 7233 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7234 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7235 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7236 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7237 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7238 | gt_cv_int_divbyzero_sigfpe= |
| 7239 | case "$host_os" in |
| 7240 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7241 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7242 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7243 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7244 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7245 | i[34567]86 | x86_64) |
| 7246 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7247 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7248 | ;; |
| 7249 | esac |
| 7250 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7251 | if test "$cross_compiling" = yes; then : |
| 7252 | |
| 7253 | # Guess based on the CPU. |
| 7254 | case "$host_cpu" in |
| 7255 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7256 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7257 | *) |
| 7258 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7259 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7260 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7261 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7263 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7264 | |
| 7265 | #include <stdlib.h> |
| 7266 | #include <signal.h> |
| 7267 | |
| 7268 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7269 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7270 | { |
| 7271 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7272 | exit (sig != SIGFPE); |
| 7273 | } |
| 7274 | |
| 7275 | int x = 1; |
| 7276 | int y = 0; |
| 7277 | int z; |
| 7278 | int nan; |
| 7279 | |
| 7280 | int main () |
| 7281 | { |
| 7282 | signal (SIGFPE, sigfpe_handler); |
| 7283 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7284 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7285 | signal (SIGTRAP, sigfpe_handler); |
| 7286 | #endif |
| 7287 | /* Linux/SPARC yields signal SIGILL. */ |
| 7288 | #if defined (__sparc__) && defined (__linux__) |
| 7289 | signal (SIGILL, sigfpe_handler); |
| 7290 | #endif |
| 7291 | |
| 7292 | z = x / y; |
| 7293 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7294 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7295 | } |
| 7296 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7297 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7298 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7299 | gt_cv_int_divbyzero_sigfpe=yes |
| 7300 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7301 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7302 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7304 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7305 | fi |
| 7306 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7307 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7308 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7309 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7310 | { $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] | 7311 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7312 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7313 | *yes) value=1;; |
| 7314 | *) value=0;; |
| 7315 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7316 | |
| 7317 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7318 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7319 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7320 | |
| 7321 | |
| 7322 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7324 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7325 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7326 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7329 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7330 | |
| 7331 | #include <sys/types.h> |
| 7332 | #include <inttypes.h> |
| 7333 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7334 | int |
| 7335 | main () |
| 7336 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7337 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | ; |
| 7339 | return 0; |
| 7340 | } |
| 7341 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7342 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7343 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7344 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7345 | gl_cv_header_inttypes_h=no |
| 7346 | fi |
| 7347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7348 | fi |
| 7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7350 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7351 | if test $gl_cv_header_inttypes_h = yes; then |
| 7352 | |
| 7353 | cat >>confdefs.h <<_ACEOF |
| 7354 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7355 | _ACEOF |
| 7356 | |
| 7357 | fi |
| 7358 | |
| 7359 | |
| 7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7361 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7362 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7363 | $as_echo_n "(cached) " >&6 |
| 7364 | else |
| 7365 | ac_cv_type_unsigned_long_long_int=yes |
| 7366 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7368 | /* end confdefs.h. */ |
| 7369 | |
| 7370 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7371 | implementations with broken preprocessors. Perhaps this can |
| 7372 | be revisited in 2012. In the meantime, code should not expect |
| 7373 | #if to work with literals wider than 32 bits. */ |
| 7374 | /* Test literals. */ |
| 7375 | long long int ll = 9223372036854775807ll; |
| 7376 | long long int nll = -9223372036854775807LL; |
| 7377 | unsigned long long int ull = 18446744073709551615ULL; |
| 7378 | /* Test constant expressions. */ |
| 7379 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7380 | ? 1 : -1)]; |
| 7381 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7382 | ? 1 : -1)]; |
| 7383 | int i = 63; |
| 7384 | int |
| 7385 | main () |
| 7386 | { |
| 7387 | /* Test availability of runtime routines for shift and division. */ |
| 7388 | long long int llmax = 9223372036854775807ll; |
| 7389 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7390 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7391 | | (llmax / ll) | (llmax % ll) |
| 7392 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7393 | | (ullmax / ull) | (ullmax % ull)); |
| 7394 | ; |
| 7395 | return 0; |
| 7396 | } |
| 7397 | |
| 7398 | _ACEOF |
| 7399 | if ac_fn_c_try_link "$LINENO"; then : |
| 7400 | |
| 7401 | else |
| 7402 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7403 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7404 | rm -f core conftest.err conftest.$ac_objext \ |
| 7405 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7406 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7407 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7409 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7410 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7411 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7412 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7413 | |
| 7414 | fi |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7419 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7420 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7421 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7422 | && ac_type='unsigned long long' \ |
| 7423 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7424 | |
| 7425 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7426 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7427 | _ACEOF |
| 7428 | |
| 7429 | else |
| 7430 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7431 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7432 | |
| 7433 | fi |
| 7434 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7435 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7436 | for ac_header in inttypes.h |
| 7437 | do : |
| 7438 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7439 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7440 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7441 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7442 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7443 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7444 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7445 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7446 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7447 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7448 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7449 | { $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] | 7450 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7451 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7452 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7453 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7454 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7456 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7457 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7458 | #include <inttypes.h> |
| 7459 | #ifdef PRId32 |
| 7460 | char *p = PRId32; |
| 7461 | #endif |
| 7462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7463 | int |
| 7464 | main () |
| 7465 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7466 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7467 | ; |
| 7468 | return 0; |
| 7469 | } |
| 7470 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7471 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7472 | gt_cv_inttypes_pri_broken=no |
| 7473 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7474 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7475 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7477 | |
| 7478 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7479 | { $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] | 7480 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7481 | fi |
| 7482 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7483 | |
| 7484 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7485 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7486 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7487 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7488 | PRI_MACROS_BROKEN=1 |
| 7489 | else |
| 7490 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7491 | fi |
| 7492 | |
| 7493 | |
| 7494 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | # Check whether --enable-threads was given. |
| 7500 | if test "${enable_threads+set}" = set; then : |
| 7501 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7502 | else |
| 7503 | if test -n "$gl_use_threads_default"; then |
| 7504 | gl_use_threads="$gl_use_threads_default" |
| 7505 | else |
| 7506 | case "$host_os" in |
| 7507 | osf*) gl_use_threads=no ;; |
| 7508 | cygwin*) |
| 7509 | case `uname -r` in |
| 7510 | 1.[0-5].*) gl_use_threads=no ;; |
| 7511 | *) gl_use_threads=yes ;; |
| 7512 | esac |
| 7513 | ;; |
| 7514 | *) gl_use_threads=yes ;; |
| 7515 | esac |
| 7516 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7517 | |
| 7518 | fi |
| 7519 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7520 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7521 | # For using <pthread.h>: |
| 7522 | case "$host_os" in |
| 7523 | osf*) |
| 7524 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7525 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7526 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7527 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7528 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7529 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7530 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7531 | ;; |
| 7532 | esac |
| 7533 | # Some systems optimize for single-threaded programs by default, and |
| 7534 | # need special flags to disable these optimizations. For example, the |
| 7535 | # definition of 'errno' in <errno.h>. |
| 7536 | case "$host_os" in |
| 7537 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7538 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7539 | esac |
| 7540 | fi |
| 7541 | |
| 7542 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7543 | |
| 7544 | |
| 7545 | |
| 7546 | if test "X$prefix" = "XNONE"; then |
| 7547 | acl_final_prefix="$ac_default_prefix" |
| 7548 | else |
| 7549 | acl_final_prefix="$prefix" |
| 7550 | fi |
| 7551 | if test "X$exec_prefix" = "XNONE"; then |
| 7552 | acl_final_exec_prefix='${prefix}' |
| 7553 | else |
| 7554 | acl_final_exec_prefix="$exec_prefix" |
| 7555 | fi |
| 7556 | acl_save_prefix="$prefix" |
| 7557 | prefix="$acl_final_prefix" |
| 7558 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7559 | prefix="$acl_save_prefix" |
| 7560 | |
| 7561 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7562 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7563 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7564 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7565 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7566 | else |
| 7567 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7568 | fi |
| 7569 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | # Prepare PATH_SEPARATOR. |
| 7571 | # The user is always right. |
| 7572 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7573 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7574 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7575 | # so we have to set that as well for the test. |
| 7576 | PATH_SEPARATOR=: |
| 7577 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7578 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7579 | || PATH_SEPARATOR=';' |
| 7580 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7581 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7583 | ac_prog=ld |
| 7584 | if test "$GCC" = yes; then |
| 7585 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7587 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7588 | case $host in |
| 7589 | *-*-mingw*) |
| 7590 | # gcc leaves a trailing carriage return which upsets mingw |
| 7591 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7592 | *) |
| 7593 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7594 | esac |
| 7595 | case $ac_prog in |
| 7596 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7597 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7598 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7599 | # Canonicalize the pathname of ld |
| 7600 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7601 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7602 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7603 | done |
| 7604 | test -z "$LD" && LD="$ac_prog" |
| 7605 | ;; |
| 7606 | "") |
| 7607 | # If it fails, then pretend we aren't using GCC. |
| 7608 | ac_prog=ld |
| 7609 | ;; |
| 7610 | *) |
| 7611 | # If it is relative, then search for the first ld in PATH. |
| 7612 | with_gnu_ld=unknown |
| 7613 | ;; |
| 7614 | esac |
| 7615 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7616 | { $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] | 7617 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7618 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7619 | { $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] | 7620 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7621 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7622 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7623 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7624 | else |
| 7625 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7626 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7627 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7628 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | test -z "$ac_dir" && ac_dir=. |
| 7630 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7631 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7632 | # Check to see if the program is GNU ld. I'd rather use --version, |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7633 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7634 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7635 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7636 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7637 | test "$with_gnu_ld" != no && break |
| 7638 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7640 | test "$with_gnu_ld" != yes && break |
| 7641 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7642 | esac |
| 7643 | fi |
| 7644 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7645 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7646 | else |
| 7647 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7648 | fi |
| 7649 | fi |
| 7650 | |
| 7651 | LD="$acl_cv_path_LD" |
| 7652 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7654 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7657 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7659 | 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] | 7660 | { $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] | 7661 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7662 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7663 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7664 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7665 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7666 | case `$LD -v 2>&1 </dev/null` in |
| 7667 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7668 | acl_cv_prog_gnu_ld=yes |
| 7669 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7671 | acl_cv_prog_gnu_ld=no |
| 7672 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7673 | esac |
| 7674 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7675 | { $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] | 7676 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7677 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7678 | |
| 7679 | |
| 7680 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7681 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7682 | { $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] | 7683 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7684 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7685 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7686 | else |
| 7687 | |
| 7688 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7689 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7690 | . ./conftest.sh |
| 7691 | rm -f ./conftest.sh |
| 7692 | acl_cv_rpath=done |
| 7693 | |
| 7694 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7695 | { $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] | 7696 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7697 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7698 | acl_libext="$acl_cv_libext" |
| 7699 | acl_shlibext="$acl_cv_shlibext" |
| 7700 | acl_libname_spec="$acl_cv_libname_spec" |
| 7701 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7702 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7703 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7704 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7705 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7706 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7707 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7708 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7709 | else |
| 7710 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7711 | fi |
| 7712 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7713 | |
| 7714 | |
| 7715 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7716 | acl_libdirstem=lib |
| 7717 | acl_libdirstem2= |
| 7718 | case "$host_os" in |
| 7719 | solaris*) |
| 7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7721 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7722 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7723 | $as_echo_n "(cached) " >&6 |
| 7724 | else |
| 7725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7726 | /* end confdefs.h. */ |
| 7727 | |
| 7728 | #ifdef _LP64 |
| 7729 | sixtyfour bits |
| 7730 | #endif |
| 7731 | |
| 7732 | _ACEOF |
| 7733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7734 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7735 | gl_cv_solaris_64bit=yes |
| 7736 | else |
| 7737 | gl_cv_solaris_64bit=no |
| 7738 | fi |
| 7739 | rm -f conftest* |
| 7740 | |
| 7741 | |
| 7742 | fi |
| 7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7744 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7745 | if test $gl_cv_solaris_64bit = yes; then |
| 7746 | acl_libdirstem=lib/64 |
| 7747 | case "$host_cpu" in |
| 7748 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7749 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7750 | esac |
| 7751 | fi |
| 7752 | ;; |
| 7753 | *) |
| 7754 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7755 | if test -n "$searchpath"; then |
| 7756 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7757 | for searchdir in $searchpath; do |
| 7758 | if test -d "$searchdir"; then |
| 7759 | case "$searchdir" in |
| 7760 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7761 | */../ | */.. ) |
| 7762 | # Better ignore directories of this form. They are misleading. |
| 7763 | ;; |
| 7764 | *) searchdir=`cd "$searchdir" && pwd` |
| 7765 | case "$searchdir" in |
| 7766 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7767 | esac ;; |
| 7768 | esac |
| 7769 | fi |
| 7770 | done |
| 7771 | IFS="$acl_save_IFS" |
| 7772 | fi |
| 7773 | ;; |
| 7774 | esac |
| 7775 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7776 | |
| 7777 | |
| 7778 | |
| 7779 | gl_threads_api=none |
| 7780 | LIBTHREAD= |
| 7781 | LTLIBTHREAD= |
| 7782 | LIBMULTITHREAD= |
| 7783 | LTLIBMULTITHREAD= |
| 7784 | if test "$gl_use_threads" != no; then |
| 7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7786 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7787 | if ${gl_cv_have_weak+:} false; then : |
| 7788 | $as_echo_n "(cached) " >&6 |
| 7789 | else |
| 7790 | gl_cv_have_weak=no |
| 7791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7792 | /* end confdefs.h. */ |
| 7793 | extern void xyzzy (); |
| 7794 | #pragma weak xyzzy |
| 7795 | int |
| 7796 | main () |
| 7797 | { |
| 7798 | xyzzy(); |
| 7799 | ; |
| 7800 | return 0; |
| 7801 | } |
| 7802 | _ACEOF |
| 7803 | if ac_fn_c_try_link "$LINENO"; then : |
| 7804 | gl_cv_have_weak=maybe |
| 7805 | fi |
| 7806 | rm -f core conftest.err conftest.$ac_objext \ |
| 7807 | conftest$ac_exeext conftest.$ac_ext |
| 7808 | if test $gl_cv_have_weak = maybe; then |
| 7809 | if test "$cross_compiling" = yes; then : |
| 7810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7811 | /* end confdefs.h. */ |
| 7812 | #ifdef __ELF__ |
| 7813 | Extensible Linking Format |
| 7814 | #endif |
| 7815 | |
| 7816 | _ACEOF |
| 7817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7818 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7819 | gl_cv_have_weak="guessing yes" |
| 7820 | else |
| 7821 | gl_cv_have_weak="guessing no" |
| 7822 | fi |
| 7823 | rm -f conftest* |
| 7824 | |
| 7825 | |
| 7826 | else |
| 7827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7828 | /* end confdefs.h. */ |
| 7829 | |
| 7830 | #include <stdio.h> |
| 7831 | #pragma weak fputs |
| 7832 | int main () |
| 7833 | { |
| 7834 | return (fputs == NULL); |
| 7835 | } |
| 7836 | _ACEOF |
| 7837 | if ac_fn_c_try_run "$LINENO"; then : |
| 7838 | gl_cv_have_weak=yes |
| 7839 | else |
| 7840 | gl_cv_have_weak=no |
| 7841 | fi |
| 7842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7843 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7844 | fi |
| 7845 | |
| 7846 | fi |
| 7847 | |
| 7848 | fi |
| 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 7850 | $as_echo "$gl_cv_have_weak" >&6; } |
| 7851 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7852 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 7853 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 7854 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7855 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 7856 | gl_have_pthread_h=yes |
| 7857 | else |
| 7858 | gl_have_pthread_h=no |
| 7859 | fi |
| 7860 | |
| 7861 | |
| 7862 | if test "$gl_have_pthread_h" = yes; then |
| 7863 | # Other possible tests: |
| 7864 | # -lpthreads (FSU threads, PCthreads) |
| 7865 | # -lgthreads |
| 7866 | gl_have_pthread= |
| 7867 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 7868 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 7869 | # the second one only in libpthread, and lock.c needs it. |
| 7870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7871 | /* end confdefs.h. */ |
| 7872 | #include <pthread.h> |
| 7873 | int |
| 7874 | main () |
| 7875 | { |
| 7876 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 7877 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 7878 | ; |
| 7879 | return 0; |
| 7880 | } |
| 7881 | _ACEOF |
| 7882 | if ac_fn_c_try_link "$LINENO"; then : |
| 7883 | gl_have_pthread=yes |
| 7884 | fi |
| 7885 | rm -f core conftest.err conftest.$ac_objext \ |
| 7886 | conftest$ac_exeext conftest.$ac_ext |
| 7887 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 7888 | # since it is defined as a macro on OSF/1.) |
| 7889 | if test -n "$gl_have_pthread"; then |
| 7890 | # The program links fine without libpthread. But it may actually |
| 7891 | # need to link with libpthread in order to create multiple threads. |
| 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7893 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7894 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7895 | $as_echo_n "(cached) " >&6 |
| 7896 | else |
| 7897 | ac_check_lib_save_LIBS=$LIBS |
| 7898 | LIBS="-lpthread $LIBS" |
| 7899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7900 | /* end confdefs.h. */ |
| 7901 | |
| 7902 | /* Override any GCC internal prototype to avoid an error. |
| 7903 | Use char because int might match the return type of a GCC |
| 7904 | builtin and then its argument prototype would still apply. */ |
| 7905 | #ifdef __cplusplus |
| 7906 | extern "C" |
| 7907 | #endif |
| 7908 | char pthread_kill (); |
| 7909 | int |
| 7910 | main () |
| 7911 | { |
| 7912 | return pthread_kill (); |
| 7913 | ; |
| 7914 | return 0; |
| 7915 | } |
| 7916 | _ACEOF |
| 7917 | if ac_fn_c_try_link "$LINENO"; then : |
| 7918 | ac_cv_lib_pthread_pthread_kill=yes |
| 7919 | else |
| 7920 | ac_cv_lib_pthread_pthread_kill=no |
| 7921 | fi |
| 7922 | rm -f core conftest.err conftest.$ac_objext \ |
| 7923 | conftest$ac_exeext conftest.$ac_ext |
| 7924 | LIBS=$ac_check_lib_save_LIBS |
| 7925 | fi |
| 7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7927 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7928 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7929 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7930 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 7931 | # Therefore pthread_in_use() needs to actually try to create a |
| 7932 | # thread: pthread_create from libc will fail, whereas |
| 7933 | # pthread_create will actually create a thread. |
| 7934 | case "$host_os" in |
| 7935 | solaris* | hpux*) |
| 7936 | |
| 7937 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 7938 | |
| 7939 | esac |
| 7940 | |
| 7941 | fi |
| 7942 | |
| 7943 | else |
| 7944 | # Some library is needed. Try libpthread and libc_r. |
| 7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7946 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7947 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7948 | $as_echo_n "(cached) " >&6 |
| 7949 | else |
| 7950 | ac_check_lib_save_LIBS=$LIBS |
| 7951 | LIBS="-lpthread $LIBS" |
| 7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7953 | /* end confdefs.h. */ |
| 7954 | |
| 7955 | /* Override any GCC internal prototype to avoid an error. |
| 7956 | Use char because int might match the return type of a GCC |
| 7957 | builtin and then its argument prototype would still apply. */ |
| 7958 | #ifdef __cplusplus |
| 7959 | extern "C" |
| 7960 | #endif |
| 7961 | char pthread_kill (); |
| 7962 | int |
| 7963 | main () |
| 7964 | { |
| 7965 | return pthread_kill (); |
| 7966 | ; |
| 7967 | return 0; |
| 7968 | } |
| 7969 | _ACEOF |
| 7970 | if ac_fn_c_try_link "$LINENO"; then : |
| 7971 | ac_cv_lib_pthread_pthread_kill=yes |
| 7972 | else |
| 7973 | ac_cv_lib_pthread_pthread_kill=no |
| 7974 | fi |
| 7975 | rm -f core conftest.err conftest.$ac_objext \ |
| 7976 | conftest$ac_exeext conftest.$ac_ext |
| 7977 | LIBS=$ac_check_lib_save_LIBS |
| 7978 | fi |
| 7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7980 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7981 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7982 | gl_have_pthread=yes |
| 7983 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 7984 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7985 | fi |
| 7986 | |
| 7987 | if test -z "$gl_have_pthread"; then |
| 7988 | # For FreeBSD 4. |
| 7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 7990 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 7991 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 7992 | $as_echo_n "(cached) " >&6 |
| 7993 | else |
| 7994 | ac_check_lib_save_LIBS=$LIBS |
| 7995 | LIBS="-lc_r $LIBS" |
| 7996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7997 | /* end confdefs.h. */ |
| 7998 | |
| 7999 | /* Override any GCC internal prototype to avoid an error. |
| 8000 | Use char because int might match the return type of a GCC |
| 8001 | builtin and then its argument prototype would still apply. */ |
| 8002 | #ifdef __cplusplus |
| 8003 | extern "C" |
| 8004 | #endif |
| 8005 | char pthread_kill (); |
| 8006 | int |
| 8007 | main () |
| 8008 | { |
| 8009 | return pthread_kill (); |
| 8010 | ; |
| 8011 | return 0; |
| 8012 | } |
| 8013 | _ACEOF |
| 8014 | if ac_fn_c_try_link "$LINENO"; then : |
| 8015 | ac_cv_lib_c_r_pthread_kill=yes |
| 8016 | else |
| 8017 | ac_cv_lib_c_r_pthread_kill=no |
| 8018 | fi |
| 8019 | rm -f core conftest.err conftest.$ac_objext \ |
| 8020 | conftest$ac_exeext conftest.$ac_ext |
| 8021 | LIBS=$ac_check_lib_save_LIBS |
| 8022 | fi |
| 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8024 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8025 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8026 | gl_have_pthread=yes |
| 8027 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8028 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8029 | fi |
| 8030 | |
| 8031 | fi |
| 8032 | fi |
| 8033 | if test -n "$gl_have_pthread"; then |
| 8034 | gl_threads_api=posix |
| 8035 | |
| 8036 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8037 | |
| 8038 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8039 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8040 | |
| 8041 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8042 | |
| 8043 | LIBTHREAD= |
| 8044 | LTLIBTHREAD= |
| 8045 | fi |
| 8046 | fi |
| 8047 | fi |
| 8048 | fi |
| 8049 | fi |
| 8050 | if test -z "$gl_have_pthread"; then |
| 8051 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8052 | gl_have_solaristhread= |
| 8053 | gl_save_LIBS="$LIBS" |
| 8054 | LIBS="$LIBS -lthread" |
| 8055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8056 | /* end confdefs.h. */ |
| 8057 | |
| 8058 | #include <thread.h> |
| 8059 | #include <synch.h> |
| 8060 | |
| 8061 | int |
| 8062 | main () |
| 8063 | { |
| 8064 | thr_self(); |
| 8065 | ; |
| 8066 | return 0; |
| 8067 | } |
| 8068 | _ACEOF |
| 8069 | if ac_fn_c_try_link "$LINENO"; then : |
| 8070 | gl_have_solaristhread=yes |
| 8071 | fi |
| 8072 | rm -f core conftest.err conftest.$ac_objext \ |
| 8073 | conftest$ac_exeext conftest.$ac_ext |
| 8074 | LIBS="$gl_save_LIBS" |
| 8075 | if test -n "$gl_have_solaristhread"; then |
| 8076 | gl_threads_api=solaris |
| 8077 | LIBTHREAD=-lthread |
| 8078 | LTLIBTHREAD=-lthread |
| 8079 | LIBMULTITHREAD="$LIBTHREAD" |
| 8080 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8081 | |
| 8082 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8083 | |
| 8084 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8085 | |
| 8086 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8087 | |
| 8088 | LIBTHREAD= |
| 8089 | LTLIBTHREAD= |
| 8090 | fi |
| 8091 | fi |
| 8092 | fi |
| 8093 | fi |
| 8094 | if test "$gl_use_threads" = pth; then |
| 8095 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
| 8100 | |
| 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8102 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8103 | if ${ac_cv_libpth_libs+:} false; then : |
| 8104 | $as_echo_n "(cached) " >&6 |
| 8105 | else |
| 8106 | |
| 8107 | |
| 8108 | |
| 8109 | |
| 8110 | |
| 8111 | |
| 8112 | |
| 8113 | |
| 8114 | use_additional=yes |
| 8115 | |
| 8116 | acl_save_prefix="$prefix" |
| 8117 | prefix="$acl_final_prefix" |
| 8118 | acl_save_exec_prefix="$exec_prefix" |
| 8119 | exec_prefix="$acl_final_exec_prefix" |
| 8120 | |
| 8121 | eval additional_includedir=\"$includedir\" |
| 8122 | eval additional_libdir=\"$libdir\" |
| 8123 | |
| 8124 | exec_prefix="$acl_save_exec_prefix" |
| 8125 | prefix="$acl_save_prefix" |
| 8126 | |
| 8127 | |
| 8128 | # Check whether --with-libpth-prefix was given. |
| 8129 | if test "${with_libpth_prefix+set}" = set; then : |
| 8130 | withval=$with_libpth_prefix; |
| 8131 | if test "X$withval" = "Xno"; then |
| 8132 | use_additional=no |
| 8133 | else |
| 8134 | if test "X$withval" = "X"; then |
| 8135 | |
| 8136 | acl_save_prefix="$prefix" |
| 8137 | prefix="$acl_final_prefix" |
| 8138 | acl_save_exec_prefix="$exec_prefix" |
| 8139 | exec_prefix="$acl_final_exec_prefix" |
| 8140 | |
| 8141 | eval additional_includedir=\"$includedir\" |
| 8142 | eval additional_libdir=\"$libdir\" |
| 8143 | |
| 8144 | exec_prefix="$acl_save_exec_prefix" |
| 8145 | prefix="$acl_save_prefix" |
| 8146 | |
| 8147 | else |
| 8148 | additional_includedir="$withval/include" |
| 8149 | additional_libdir="$withval/$acl_libdirstem" |
| 8150 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8151 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8152 | additional_libdir="$withval/$acl_libdirstem2" |
| 8153 | fi |
| 8154 | fi |
| 8155 | fi |
| 8156 | |
| 8157 | fi |
| 8158 | |
| 8159 | LIBPTH= |
| 8160 | LTLIBPTH= |
| 8161 | INCPTH= |
| 8162 | LIBPTH_PREFIX= |
| 8163 | HAVE_LIBPTH= |
| 8164 | rpathdirs= |
| 8165 | ltrpathdirs= |
| 8166 | names_already_handled= |
| 8167 | names_next_round='pth ' |
| 8168 | while test -n "$names_next_round"; do |
| 8169 | names_this_round="$names_next_round" |
| 8170 | names_next_round= |
| 8171 | for name in $names_this_round; do |
| 8172 | already_handled= |
| 8173 | for n in $names_already_handled; do |
| 8174 | if test "$n" = "$name"; then |
| 8175 | already_handled=yes |
| 8176 | break |
| 8177 | fi |
| 8178 | done |
| 8179 | if test -z "$already_handled"; then |
| 8180 | names_already_handled="$names_already_handled $name" |
| 8181 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8182 | eval value=\"\$HAVE_LIB$uppername\" |
| 8183 | if test -n "$value"; then |
| 8184 | if test "$value" = yes; then |
| 8185 | eval value=\"\$LIB$uppername\" |
| 8186 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8187 | eval value=\"\$LTLIB$uppername\" |
| 8188 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8189 | else |
| 8190 | : |
| 8191 | fi |
| 8192 | else |
| 8193 | found_dir= |
| 8194 | found_la= |
| 8195 | found_so= |
| 8196 | found_a= |
| 8197 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8198 | if test -n "$acl_shlibext"; then |
| 8199 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8200 | else |
| 8201 | shrext= |
| 8202 | fi |
| 8203 | if test $use_additional = yes; then |
| 8204 | dir="$additional_libdir" |
| 8205 | if test -n "$acl_shlibext"; then |
| 8206 | if test -f "$dir/$libname$shrext"; then |
| 8207 | found_dir="$dir" |
| 8208 | found_so="$dir/$libname$shrext" |
| 8209 | else |
| 8210 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8211 | ver=`(cd "$dir" && \ |
| 8212 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8213 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8214 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8215 | | sed 1q ) 2>/dev/null` |
| 8216 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8217 | found_dir="$dir" |
| 8218 | found_so="$dir/$libname$shrext.$ver" |
| 8219 | fi |
| 8220 | else |
| 8221 | eval library_names=\"$acl_library_names_spec\" |
| 8222 | for f in $library_names; do |
| 8223 | if test -f "$dir/$f"; then |
| 8224 | found_dir="$dir" |
| 8225 | found_so="$dir/$f" |
| 8226 | break |
| 8227 | fi |
| 8228 | done |
| 8229 | fi |
| 8230 | fi |
| 8231 | fi |
| 8232 | if test "X$found_dir" = "X"; then |
| 8233 | if test -f "$dir/$libname.$acl_libext"; then |
| 8234 | found_dir="$dir" |
| 8235 | found_a="$dir/$libname.$acl_libext" |
| 8236 | fi |
| 8237 | fi |
| 8238 | if test "X$found_dir" != "X"; then |
| 8239 | if test -f "$dir/$libname.la"; then |
| 8240 | found_la="$dir/$libname.la" |
| 8241 | fi |
| 8242 | fi |
| 8243 | fi |
| 8244 | if test "X$found_dir" = "X"; then |
| 8245 | for x in $LDFLAGS $LTLIBPTH; do |
| 8246 | |
| 8247 | acl_save_prefix="$prefix" |
| 8248 | prefix="$acl_final_prefix" |
| 8249 | acl_save_exec_prefix="$exec_prefix" |
| 8250 | exec_prefix="$acl_final_exec_prefix" |
| 8251 | eval x=\"$x\" |
| 8252 | exec_prefix="$acl_save_exec_prefix" |
| 8253 | prefix="$acl_save_prefix" |
| 8254 | |
| 8255 | case "$x" in |
| 8256 | -L*) |
| 8257 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8258 | if test -n "$acl_shlibext"; then |
| 8259 | if test -f "$dir/$libname$shrext"; then |
| 8260 | found_dir="$dir" |
| 8261 | found_so="$dir/$libname$shrext" |
| 8262 | else |
| 8263 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8264 | ver=`(cd "$dir" && \ |
| 8265 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8266 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8267 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8268 | | sed 1q ) 2>/dev/null` |
| 8269 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8270 | found_dir="$dir" |
| 8271 | found_so="$dir/$libname$shrext.$ver" |
| 8272 | fi |
| 8273 | else |
| 8274 | eval library_names=\"$acl_library_names_spec\" |
| 8275 | for f in $library_names; do |
| 8276 | if test -f "$dir/$f"; then |
| 8277 | found_dir="$dir" |
| 8278 | found_so="$dir/$f" |
| 8279 | break |
| 8280 | fi |
| 8281 | done |
| 8282 | fi |
| 8283 | fi |
| 8284 | fi |
| 8285 | if test "X$found_dir" = "X"; then |
| 8286 | if test -f "$dir/$libname.$acl_libext"; then |
| 8287 | found_dir="$dir" |
| 8288 | found_a="$dir/$libname.$acl_libext" |
| 8289 | fi |
| 8290 | fi |
| 8291 | if test "X$found_dir" != "X"; then |
| 8292 | if test -f "$dir/$libname.la"; then |
| 8293 | found_la="$dir/$libname.la" |
| 8294 | fi |
| 8295 | fi |
| 8296 | ;; |
| 8297 | esac |
| 8298 | if test "X$found_dir" != "X"; then |
| 8299 | break |
| 8300 | fi |
| 8301 | done |
| 8302 | fi |
| 8303 | if test "X$found_dir" != "X"; then |
| 8304 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8305 | if test "X$found_so" != "X"; then |
| 8306 | if test "$enable_rpath" = no \ |
| 8307 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8308 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8309 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8310 | else |
| 8311 | haveit= |
| 8312 | for x in $ltrpathdirs; do |
| 8313 | if test "X$x" = "X$found_dir"; then |
| 8314 | haveit=yes |
| 8315 | break |
| 8316 | fi |
| 8317 | done |
| 8318 | if test -z "$haveit"; then |
| 8319 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8320 | fi |
| 8321 | if test "$acl_hardcode_direct" = yes; then |
| 8322 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8323 | else |
| 8324 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8325 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8326 | haveit= |
| 8327 | for x in $rpathdirs; do |
| 8328 | if test "X$x" = "X$found_dir"; then |
| 8329 | haveit=yes |
| 8330 | break |
| 8331 | fi |
| 8332 | done |
| 8333 | if test -z "$haveit"; then |
| 8334 | rpathdirs="$rpathdirs $found_dir" |
| 8335 | fi |
| 8336 | else |
| 8337 | haveit= |
| 8338 | for x in $LDFLAGS $LIBPTH; do |
| 8339 | |
| 8340 | acl_save_prefix="$prefix" |
| 8341 | prefix="$acl_final_prefix" |
| 8342 | acl_save_exec_prefix="$exec_prefix" |
| 8343 | exec_prefix="$acl_final_exec_prefix" |
| 8344 | eval x=\"$x\" |
| 8345 | exec_prefix="$acl_save_exec_prefix" |
| 8346 | prefix="$acl_save_prefix" |
| 8347 | |
| 8348 | if test "X$x" = "X-L$found_dir"; then |
| 8349 | haveit=yes |
| 8350 | break |
| 8351 | fi |
| 8352 | done |
| 8353 | if test -z "$haveit"; then |
| 8354 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8355 | fi |
| 8356 | if test "$acl_hardcode_minus_L" != no; then |
| 8357 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8358 | else |
| 8359 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8360 | fi |
| 8361 | fi |
| 8362 | fi |
| 8363 | fi |
| 8364 | else |
| 8365 | if test "X$found_a" != "X"; then |
| 8366 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8367 | else |
| 8368 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8369 | fi |
| 8370 | fi |
| 8371 | additional_includedir= |
| 8372 | case "$found_dir" in |
| 8373 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8374 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8375 | if test "$name" = 'pth'; then |
| 8376 | LIBPTH_PREFIX="$basedir" |
| 8377 | fi |
| 8378 | additional_includedir="$basedir/include" |
| 8379 | ;; |
| 8380 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8381 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8382 | if test "$name" = 'pth'; then |
| 8383 | LIBPTH_PREFIX="$basedir" |
| 8384 | fi |
| 8385 | additional_includedir="$basedir/include" |
| 8386 | ;; |
| 8387 | esac |
| 8388 | if test "X$additional_includedir" != "X"; then |
| 8389 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8390 | haveit= |
| 8391 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8392 | if test -n "$GCC"; then |
| 8393 | case $host_os in |
| 8394 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8395 | esac |
| 8396 | fi |
| 8397 | fi |
| 8398 | if test -z "$haveit"; then |
| 8399 | for x in $CPPFLAGS $INCPTH; do |
| 8400 | |
| 8401 | acl_save_prefix="$prefix" |
| 8402 | prefix="$acl_final_prefix" |
| 8403 | acl_save_exec_prefix="$exec_prefix" |
| 8404 | exec_prefix="$acl_final_exec_prefix" |
| 8405 | eval x=\"$x\" |
| 8406 | exec_prefix="$acl_save_exec_prefix" |
| 8407 | prefix="$acl_save_prefix" |
| 8408 | |
| 8409 | if test "X$x" = "X-I$additional_includedir"; then |
| 8410 | haveit=yes |
| 8411 | break |
| 8412 | fi |
| 8413 | done |
| 8414 | if test -z "$haveit"; then |
| 8415 | if test -d "$additional_includedir"; then |
| 8416 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8417 | fi |
| 8418 | fi |
| 8419 | fi |
| 8420 | fi |
| 8421 | fi |
| 8422 | if test -n "$found_la"; then |
| 8423 | save_libdir="$libdir" |
| 8424 | case "$found_la" in |
| 8425 | */* | *\\*) . "$found_la" ;; |
| 8426 | *) . "./$found_la" ;; |
| 8427 | esac |
| 8428 | libdir="$save_libdir" |
| 8429 | for dep in $dependency_libs; do |
| 8430 | case "$dep" in |
| 8431 | -L*) |
| 8432 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8433 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8434 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8435 | haveit= |
| 8436 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8437 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8438 | if test -n "$GCC"; then |
| 8439 | case $host_os in |
| 8440 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8441 | esac |
| 8442 | fi |
| 8443 | fi |
| 8444 | if test -z "$haveit"; then |
| 8445 | haveit= |
| 8446 | for x in $LDFLAGS $LIBPTH; do |
| 8447 | |
| 8448 | acl_save_prefix="$prefix" |
| 8449 | prefix="$acl_final_prefix" |
| 8450 | acl_save_exec_prefix="$exec_prefix" |
| 8451 | exec_prefix="$acl_final_exec_prefix" |
| 8452 | eval x=\"$x\" |
| 8453 | exec_prefix="$acl_save_exec_prefix" |
| 8454 | prefix="$acl_save_prefix" |
| 8455 | |
| 8456 | if test "X$x" = "X-L$additional_libdir"; then |
| 8457 | haveit=yes |
| 8458 | break |
| 8459 | fi |
| 8460 | done |
| 8461 | if test -z "$haveit"; then |
| 8462 | if test -d "$additional_libdir"; then |
| 8463 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8464 | fi |
| 8465 | fi |
| 8466 | haveit= |
| 8467 | for x in $LDFLAGS $LTLIBPTH; do |
| 8468 | |
| 8469 | acl_save_prefix="$prefix" |
| 8470 | prefix="$acl_final_prefix" |
| 8471 | acl_save_exec_prefix="$exec_prefix" |
| 8472 | exec_prefix="$acl_final_exec_prefix" |
| 8473 | eval x=\"$x\" |
| 8474 | exec_prefix="$acl_save_exec_prefix" |
| 8475 | prefix="$acl_save_prefix" |
| 8476 | |
| 8477 | if test "X$x" = "X-L$additional_libdir"; then |
| 8478 | haveit=yes |
| 8479 | break |
| 8480 | fi |
| 8481 | done |
| 8482 | if test -z "$haveit"; then |
| 8483 | if test -d "$additional_libdir"; then |
| 8484 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8485 | fi |
| 8486 | fi |
| 8487 | fi |
| 8488 | fi |
| 8489 | ;; |
| 8490 | -R*) |
| 8491 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8492 | if test "$enable_rpath" != no; then |
| 8493 | haveit= |
| 8494 | for x in $rpathdirs; do |
| 8495 | if test "X$x" = "X$dir"; then |
| 8496 | haveit=yes |
| 8497 | break |
| 8498 | fi |
| 8499 | done |
| 8500 | if test -z "$haveit"; then |
| 8501 | rpathdirs="$rpathdirs $dir" |
| 8502 | fi |
| 8503 | haveit= |
| 8504 | for x in $ltrpathdirs; do |
| 8505 | if test "X$x" = "X$dir"; then |
| 8506 | haveit=yes |
| 8507 | break |
| 8508 | fi |
| 8509 | done |
| 8510 | if test -z "$haveit"; then |
| 8511 | ltrpathdirs="$ltrpathdirs $dir" |
| 8512 | fi |
| 8513 | fi |
| 8514 | ;; |
| 8515 | -l*) |
| 8516 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8517 | ;; |
| 8518 | *.la) |
| 8519 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8520 | ;; |
| 8521 | *) |
| 8522 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8523 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8524 | ;; |
| 8525 | esac |
| 8526 | done |
| 8527 | fi |
| 8528 | else |
| 8529 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8530 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8531 | fi |
| 8532 | fi |
| 8533 | fi |
| 8534 | done |
| 8535 | done |
| 8536 | if test "X$rpathdirs" != "X"; then |
| 8537 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8538 | alldirs= |
| 8539 | for found_dir in $rpathdirs; do |
| 8540 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8541 | done |
| 8542 | acl_save_libdir="$libdir" |
| 8543 | libdir="$alldirs" |
| 8544 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8545 | libdir="$acl_save_libdir" |
| 8546 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8547 | else |
| 8548 | for found_dir in $rpathdirs; do |
| 8549 | acl_save_libdir="$libdir" |
| 8550 | libdir="$found_dir" |
| 8551 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8552 | libdir="$acl_save_libdir" |
| 8553 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8554 | done |
| 8555 | fi |
| 8556 | fi |
| 8557 | if test "X$ltrpathdirs" != "X"; then |
| 8558 | for found_dir in $ltrpathdirs; do |
| 8559 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8560 | done |
| 8561 | fi |
| 8562 | |
| 8563 | |
| 8564 | |
| 8565 | |
| 8566 | |
| 8567 | |
| 8568 | ac_cv_libpth_libs="$LIBPTH" |
| 8569 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8570 | ac_cv_libpth_cppflags="$INCPTH" |
| 8571 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8572 | |
| 8573 | fi |
| 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8575 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8576 | LIBPTH="$ac_cv_libpth_libs" |
| 8577 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8578 | INCPTH="$ac_cv_libpth_cppflags" |
| 8579 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8580 | |
| 8581 | for element in $INCPTH; do |
| 8582 | haveit= |
| 8583 | for x in $CPPFLAGS; do |
| 8584 | |
| 8585 | acl_save_prefix="$prefix" |
| 8586 | prefix="$acl_final_prefix" |
| 8587 | acl_save_exec_prefix="$exec_prefix" |
| 8588 | exec_prefix="$acl_final_exec_prefix" |
| 8589 | eval x=\"$x\" |
| 8590 | exec_prefix="$acl_save_exec_prefix" |
| 8591 | prefix="$acl_save_prefix" |
| 8592 | |
| 8593 | if test "X$x" = "X$element"; then |
| 8594 | haveit=yes |
| 8595 | break |
| 8596 | fi |
| 8597 | done |
| 8598 | if test -z "$haveit"; then |
| 8599 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8600 | fi |
| 8601 | done |
| 8602 | |
| 8603 | |
| 8604 | |
| 8605 | |
| 8606 | HAVE_LIBPTH=yes |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | gl_have_pth= |
| 8611 | gl_save_LIBS="$LIBS" |
| 8612 | LIBS="$LIBS $LIBPTH" |
| 8613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8614 | /* end confdefs.h. */ |
| 8615 | #include <pth.h> |
| 8616 | int |
| 8617 | main () |
| 8618 | { |
| 8619 | pth_self(); |
| 8620 | ; |
| 8621 | return 0; |
| 8622 | } |
| 8623 | _ACEOF |
| 8624 | if ac_fn_c_try_link "$LINENO"; then : |
| 8625 | gl_have_pth=yes |
| 8626 | fi |
| 8627 | rm -f core conftest.err conftest.$ac_objext \ |
| 8628 | conftest$ac_exeext conftest.$ac_ext |
| 8629 | LIBS="$gl_save_LIBS" |
| 8630 | if test -n "$gl_have_pth"; then |
| 8631 | gl_threads_api=pth |
| 8632 | LIBTHREAD="$LIBPTH" |
| 8633 | LTLIBTHREAD="$LTLIBPTH" |
| 8634 | LIBMULTITHREAD="$LIBTHREAD" |
| 8635 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8636 | |
| 8637 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8638 | |
| 8639 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8640 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8641 | |
| 8642 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8643 | |
| 8644 | LIBTHREAD= |
| 8645 | LTLIBTHREAD= |
| 8646 | fi |
| 8647 | fi |
| 8648 | else |
| 8649 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8650 | fi |
| 8651 | fi |
| 8652 | if test -z "$gl_have_pthread"; then |
| 8653 | case "$gl_use_threads" in |
| 8654 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8655 | if { case "$host_os" in |
| 8656 | mingw*) true;; |
| 8657 | *) false;; |
| 8658 | esac |
| 8659 | }; then |
| 8660 | gl_threads_api=windows |
| 8661 | |
| 8662 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8663 | |
| 8664 | fi |
| 8665 | ;; |
| 8666 | esac |
| 8667 | fi |
| 8668 | fi |
| 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8670 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8672 | $as_echo "$gl_threads_api" >&6; } |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | |
| 8678 | |
| 8679 | |
| 8680 | |
| 8681 | |
| 8682 | |
| 8683 | |
| 8684 | if test "$gl_threads_api" = posix; then |
| 8685 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8686 | # pthread_rwlock_* functions. |
| 8687 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8688 | " |
| 8689 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8690 | |
| 8691 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8692 | |
| 8693 | fi |
| 8694 | |
| 8695 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8697 | /* end confdefs.h. */ |
| 8698 | |
| 8699 | #include <pthread.h> |
| 8700 | int |
| 8701 | main () |
| 8702 | { |
| 8703 | |
| 8704 | #if __FreeBSD__ == 4 |
| 8705 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8706 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8707 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8708 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8709 | #else |
| 8710 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8711 | return !x; |
| 8712 | #endif |
| 8713 | |
| 8714 | ; |
| 8715 | return 0; |
| 8716 | } |
| 8717 | _ACEOF |
| 8718 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8719 | |
| 8720 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8721 | |
| 8722 | fi |
| 8723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8724 | fi |
| 8725 | : |
| 8726 | |
| 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | |
| 8732 | |
| 8733 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8734 | |
| 8735 | |
| 8736 | |
| 8737 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8738 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8739 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8740 | acl_save_prefix="$prefix" |
| 8741 | prefix="$acl_final_prefix" |
| 8742 | acl_save_exec_prefix="$exec_prefix" |
| 8743 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8744 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8745 | eval additional_includedir=\"$includedir\" |
| 8746 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8747 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8748 | exec_prefix="$acl_save_exec_prefix" |
| 8749 | prefix="$acl_save_prefix" |
| 8750 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8752 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8753 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8754 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8755 | if test "X$withval" = "Xno"; then |
| 8756 | use_additional=no |
| 8757 | else |
| 8758 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8759 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8760 | acl_save_prefix="$prefix" |
| 8761 | prefix="$acl_final_prefix" |
| 8762 | acl_save_exec_prefix="$exec_prefix" |
| 8763 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8764 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8765 | eval additional_includedir=\"$includedir\" |
| 8766 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8767 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8768 | exec_prefix="$acl_save_exec_prefix" |
| 8769 | prefix="$acl_save_prefix" |
| 8770 | |
| 8771 | else |
| 8772 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8773 | additional_libdir="$withval/$acl_libdirstem" |
| 8774 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8775 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8776 | additional_libdir="$withval/$acl_libdirstem2" |
| 8777 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8778 | fi |
| 8779 | fi |
| 8780 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8781 | fi |
| 8782 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8783 | LIBICONV= |
| 8784 | LTLIBICONV= |
| 8785 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8786 | LIBICONV_PREFIX= |
| 8787 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8788 | rpathdirs= |
| 8789 | ltrpathdirs= |
| 8790 | names_already_handled= |
| 8791 | names_next_round='iconv ' |
| 8792 | while test -n "$names_next_round"; do |
| 8793 | names_this_round="$names_next_round" |
| 8794 | names_next_round= |
| 8795 | for name in $names_this_round; do |
| 8796 | already_handled= |
| 8797 | for n in $names_already_handled; do |
| 8798 | if test "$n" = "$name"; then |
| 8799 | already_handled=yes |
| 8800 | break |
| 8801 | fi |
| 8802 | done |
| 8803 | if test -z "$already_handled"; then |
| 8804 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8805 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8806 | eval value=\"\$HAVE_LIB$uppername\" |
| 8807 | if test -n "$value"; then |
| 8808 | if test "$value" = yes; then |
| 8809 | eval value=\"\$LIB$uppername\" |
| 8810 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8811 | eval value=\"\$LTLIB$uppername\" |
| 8812 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8813 | else |
| 8814 | : |
| 8815 | fi |
| 8816 | else |
| 8817 | found_dir= |
| 8818 | found_la= |
| 8819 | found_so= |
| 8820 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8821 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8822 | if test -n "$acl_shlibext"; then |
| 8823 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8824 | else |
| 8825 | shrext= |
| 8826 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8827 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8828 | dir="$additional_libdir" |
| 8829 | if test -n "$acl_shlibext"; then |
| 8830 | if test -f "$dir/$libname$shrext"; then |
| 8831 | found_dir="$dir" |
| 8832 | found_so="$dir/$libname$shrext" |
| 8833 | else |
| 8834 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8835 | ver=`(cd "$dir" && \ |
| 8836 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8837 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8838 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8839 | | sed 1q ) 2>/dev/null` |
| 8840 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8841 | found_dir="$dir" |
| 8842 | found_so="$dir/$libname$shrext.$ver" |
| 8843 | fi |
| 8844 | else |
| 8845 | eval library_names=\"$acl_library_names_spec\" |
| 8846 | for f in $library_names; do |
| 8847 | if test -f "$dir/$f"; then |
| 8848 | found_dir="$dir" |
| 8849 | found_so="$dir/$f" |
| 8850 | break |
| 8851 | fi |
| 8852 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8853 | fi |
| 8854 | fi |
| 8855 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8856 | if test "X$found_dir" = "X"; then |
| 8857 | if test -f "$dir/$libname.$acl_libext"; then |
| 8858 | found_dir="$dir" |
| 8859 | found_a="$dir/$libname.$acl_libext" |
| 8860 | fi |
| 8861 | fi |
| 8862 | if test "X$found_dir" != "X"; then |
| 8863 | if test -f "$dir/$libname.la"; then |
| 8864 | found_la="$dir/$libname.la" |
| 8865 | fi |
| 8866 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8867 | fi |
| 8868 | if test "X$found_dir" = "X"; then |
| 8869 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8871 | acl_save_prefix="$prefix" |
| 8872 | prefix="$acl_final_prefix" |
| 8873 | acl_save_exec_prefix="$exec_prefix" |
| 8874 | exec_prefix="$acl_final_exec_prefix" |
| 8875 | eval x=\"$x\" |
| 8876 | exec_prefix="$acl_save_exec_prefix" |
| 8877 | prefix="$acl_save_prefix" |
| 8878 | |
| 8879 | case "$x" in |
| 8880 | -L*) |
| 8881 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8882 | if test -n "$acl_shlibext"; then |
| 8883 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8884 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8885 | found_so="$dir/$libname$shrext" |
| 8886 | else |
| 8887 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8888 | ver=`(cd "$dir" && \ |
| 8889 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8890 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8891 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8892 | | sed 1q ) 2>/dev/null` |
| 8893 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8894 | found_dir="$dir" |
| 8895 | found_so="$dir/$libname$shrext.$ver" |
| 8896 | fi |
| 8897 | else |
| 8898 | eval library_names=\"$acl_library_names_spec\" |
| 8899 | for f in $library_names; do |
| 8900 | if test -f "$dir/$f"; then |
| 8901 | found_dir="$dir" |
| 8902 | found_so="$dir/$f" |
| 8903 | break |
| 8904 | fi |
| 8905 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8906 | fi |
| 8907 | fi |
| 8908 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8909 | if test "X$found_dir" = "X"; then |
| 8910 | if test -f "$dir/$libname.$acl_libext"; then |
| 8911 | found_dir="$dir" |
| 8912 | found_a="$dir/$libname.$acl_libext" |
| 8913 | fi |
| 8914 | fi |
| 8915 | if test "X$found_dir" != "X"; then |
| 8916 | if test -f "$dir/$libname.la"; then |
| 8917 | found_la="$dir/$libname.la" |
| 8918 | fi |
| 8919 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8920 | ;; |
| 8921 | esac |
| 8922 | if test "X$found_dir" != "X"; then |
| 8923 | break |
| 8924 | fi |
| 8925 | done |
| 8926 | fi |
| 8927 | if test "X$found_dir" != "X"; then |
| 8928 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8929 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8930 | if test "$enable_rpath" = no \ |
| 8931 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8932 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8933 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8934 | else |
| 8935 | haveit= |
| 8936 | for x in $ltrpathdirs; do |
| 8937 | if test "X$x" = "X$found_dir"; then |
| 8938 | haveit=yes |
| 8939 | break |
| 8940 | fi |
| 8941 | done |
| 8942 | if test -z "$haveit"; then |
| 8943 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8944 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8945 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8946 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8947 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8948 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8949 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8950 | haveit= |
| 8951 | for x in $rpathdirs; do |
| 8952 | if test "X$x" = "X$found_dir"; then |
| 8953 | haveit=yes |
| 8954 | break |
| 8955 | fi |
| 8956 | done |
| 8957 | if test -z "$haveit"; then |
| 8958 | rpathdirs="$rpathdirs $found_dir" |
| 8959 | fi |
| 8960 | else |
| 8961 | haveit= |
| 8962 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8963 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8964 | acl_save_prefix="$prefix" |
| 8965 | prefix="$acl_final_prefix" |
| 8966 | acl_save_exec_prefix="$exec_prefix" |
| 8967 | exec_prefix="$acl_final_exec_prefix" |
| 8968 | eval x=\"$x\" |
| 8969 | exec_prefix="$acl_save_exec_prefix" |
| 8970 | prefix="$acl_save_prefix" |
| 8971 | |
| 8972 | if test "X$x" = "X-L$found_dir"; then |
| 8973 | haveit=yes |
| 8974 | break |
| 8975 | fi |
| 8976 | done |
| 8977 | if test -z "$haveit"; then |
| 8978 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8979 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8980 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8981 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8982 | else |
| 8983 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8984 | fi |
| 8985 | fi |
| 8986 | fi |
| 8987 | fi |
| 8988 | else |
| 8989 | if test "X$found_a" != "X"; then |
| 8990 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8991 | else |
| 8992 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8993 | fi |
| 8994 | fi |
| 8995 | additional_includedir= |
| 8996 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8997 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8998 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8999 | if test "$name" = 'iconv'; then |
| 9000 | LIBICONV_PREFIX="$basedir" |
| 9001 | fi |
| 9002 | additional_includedir="$basedir/include" |
| 9003 | ;; |
| 9004 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 9005 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 9006 | if test "$name" = 'iconv'; then |
| 9007 | LIBICONV_PREFIX="$basedir" |
| 9008 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9009 | additional_includedir="$basedir/include" |
| 9010 | ;; |
| 9011 | esac |
| 9012 | if test "X$additional_includedir" != "X"; then |
| 9013 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9014 | haveit= |
| 9015 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9016 | if test -n "$GCC"; then |
| 9017 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9018 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9019 | esac |
| 9020 | fi |
| 9021 | fi |
| 9022 | if test -z "$haveit"; then |
| 9023 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9025 | acl_save_prefix="$prefix" |
| 9026 | prefix="$acl_final_prefix" |
| 9027 | acl_save_exec_prefix="$exec_prefix" |
| 9028 | exec_prefix="$acl_final_exec_prefix" |
| 9029 | eval x=\"$x\" |
| 9030 | exec_prefix="$acl_save_exec_prefix" |
| 9031 | prefix="$acl_save_prefix" |
| 9032 | |
| 9033 | if test "X$x" = "X-I$additional_includedir"; then |
| 9034 | haveit=yes |
| 9035 | break |
| 9036 | fi |
| 9037 | done |
| 9038 | if test -z "$haveit"; then |
| 9039 | if test -d "$additional_includedir"; then |
| 9040 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9041 | fi |
| 9042 | fi |
| 9043 | fi |
| 9044 | fi |
| 9045 | fi |
| 9046 | if test -n "$found_la"; then |
| 9047 | save_libdir="$libdir" |
| 9048 | case "$found_la" in |
| 9049 | */* | *\\*) . "$found_la" ;; |
| 9050 | *) . "./$found_la" ;; |
| 9051 | esac |
| 9052 | libdir="$save_libdir" |
| 9053 | for dep in $dependency_libs; do |
| 9054 | case "$dep" in |
| 9055 | -L*) |
| 9056 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9057 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9058 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9059 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9060 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9061 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9062 | if test -n "$GCC"; then |
| 9063 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9064 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9065 | esac |
| 9066 | fi |
| 9067 | fi |
| 9068 | if test -z "$haveit"; then |
| 9069 | haveit= |
| 9070 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9071 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9072 | acl_save_prefix="$prefix" |
| 9073 | prefix="$acl_final_prefix" |
| 9074 | acl_save_exec_prefix="$exec_prefix" |
| 9075 | exec_prefix="$acl_final_exec_prefix" |
| 9076 | eval x=\"$x\" |
| 9077 | exec_prefix="$acl_save_exec_prefix" |
| 9078 | prefix="$acl_save_prefix" |
| 9079 | |
| 9080 | if test "X$x" = "X-L$additional_libdir"; then |
| 9081 | haveit=yes |
| 9082 | break |
| 9083 | fi |
| 9084 | done |
| 9085 | if test -z "$haveit"; then |
| 9086 | if test -d "$additional_libdir"; then |
| 9087 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9088 | fi |
| 9089 | fi |
| 9090 | haveit= |
| 9091 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9092 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9093 | acl_save_prefix="$prefix" |
| 9094 | prefix="$acl_final_prefix" |
| 9095 | acl_save_exec_prefix="$exec_prefix" |
| 9096 | exec_prefix="$acl_final_exec_prefix" |
| 9097 | eval x=\"$x\" |
| 9098 | exec_prefix="$acl_save_exec_prefix" |
| 9099 | prefix="$acl_save_prefix" |
| 9100 | |
| 9101 | if test "X$x" = "X-L$additional_libdir"; then |
| 9102 | haveit=yes |
| 9103 | break |
| 9104 | fi |
| 9105 | done |
| 9106 | if test -z "$haveit"; then |
| 9107 | if test -d "$additional_libdir"; then |
| 9108 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9109 | fi |
| 9110 | fi |
| 9111 | fi |
| 9112 | fi |
| 9113 | ;; |
| 9114 | -R*) |
| 9115 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9116 | if test "$enable_rpath" != no; then |
| 9117 | haveit= |
| 9118 | for x in $rpathdirs; do |
| 9119 | if test "X$x" = "X$dir"; then |
| 9120 | haveit=yes |
| 9121 | break |
| 9122 | fi |
| 9123 | done |
| 9124 | if test -z "$haveit"; then |
| 9125 | rpathdirs="$rpathdirs $dir" |
| 9126 | fi |
| 9127 | haveit= |
| 9128 | for x in $ltrpathdirs; do |
| 9129 | if test "X$x" = "X$dir"; then |
| 9130 | haveit=yes |
| 9131 | break |
| 9132 | fi |
| 9133 | done |
| 9134 | if test -z "$haveit"; then |
| 9135 | ltrpathdirs="$ltrpathdirs $dir" |
| 9136 | fi |
| 9137 | fi |
| 9138 | ;; |
| 9139 | -l*) |
| 9140 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9141 | ;; |
| 9142 | *.la) |
| 9143 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9144 | ;; |
| 9145 | *) |
| 9146 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9147 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9148 | ;; |
| 9149 | esac |
| 9150 | done |
| 9151 | fi |
| 9152 | else |
| 9153 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9154 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9155 | fi |
| 9156 | fi |
| 9157 | fi |
| 9158 | done |
| 9159 | done |
| 9160 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9161 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9162 | alldirs= |
| 9163 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9164 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9165 | done |
| 9166 | acl_save_libdir="$libdir" |
| 9167 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9168 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9169 | libdir="$acl_save_libdir" |
| 9170 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9171 | else |
| 9172 | for found_dir in $rpathdirs; do |
| 9173 | acl_save_libdir="$libdir" |
| 9174 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9175 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9176 | libdir="$acl_save_libdir" |
| 9177 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9178 | done |
| 9179 | fi |
| 9180 | fi |
| 9181 | if test "X$ltrpathdirs" != "X"; then |
| 9182 | for found_dir in $ltrpathdirs; do |
| 9183 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9184 | done |
| 9185 | fi |
| 9186 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9187 | |
| 9188 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9189 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9190 | |
| 9191 | |
| 9192 | |
| 9193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9194 | |
| 9195 | |
| 9196 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9197 | |
| 9198 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9199 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9200 | for element in $INCICONV; do |
| 9201 | haveit= |
| 9202 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9203 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9204 | acl_save_prefix="$prefix" |
| 9205 | prefix="$acl_final_prefix" |
| 9206 | acl_save_exec_prefix="$exec_prefix" |
| 9207 | exec_prefix="$acl_final_exec_prefix" |
| 9208 | eval x=\"$x\" |
| 9209 | exec_prefix="$acl_save_exec_prefix" |
| 9210 | prefix="$acl_save_prefix" |
| 9211 | |
| 9212 | if test "X$x" = "X$element"; then |
| 9213 | haveit=yes |
| 9214 | break |
| 9215 | fi |
| 9216 | done |
| 9217 | if test -z "$haveit"; then |
| 9218 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9219 | fi |
| 9220 | done |
| 9221 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9222 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9224 | $as_echo_n "checking for iconv... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9225 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9226 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9227 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9228 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9229 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9230 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9232 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9233 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9234 | #include <stdlib.h> |
| 9235 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9236 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9237 | int |
| 9238 | main () |
| 9239 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9240 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9241 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9242 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9243 | ; |
| 9244 | return 0; |
| 9245 | } |
| 9246 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9247 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9248 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9249 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9250 | rm -f core conftest.err conftest.$ac_objext \ |
| 9251 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9252 | if test "$am_cv_func_iconv" != yes; then |
| 9253 | am_save_LIBS="$LIBS" |
| 9254 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9256 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9257 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9258 | #include <stdlib.h> |
| 9259 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9260 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9261 | int |
| 9262 | main () |
| 9263 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9264 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9265 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9266 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9267 | ; |
| 9268 | return 0; |
| 9269 | } |
| 9270 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9271 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9272 | am_cv_lib_iconv=yes |
| 9273 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9274 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9275 | rm -f core conftest.err conftest.$ac_objext \ |
| 9276 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9277 | LIBS="$am_save_LIBS" |
| 9278 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9279 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9280 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9281 | { $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] | 9282 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9283 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9285 | $as_echo_n "checking for working iconv... " >&6; } |
| 9286 | if ${am_cv_func_iconv_works+:} false; then : |
| 9287 | $as_echo_n "(cached) " >&6 |
| 9288 | else |
| 9289 | |
| 9290 | am_save_LIBS="$LIBS" |
| 9291 | if test $am_cv_lib_iconv = yes; then |
| 9292 | LIBS="$LIBS $LIBICONV" |
| 9293 | fi |
| 9294 | if test "$cross_compiling" = yes; then : |
| 9295 | |
| 9296 | case "$host_os" in |
| 9297 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9298 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9299 | esac |
| 9300 | |
| 9301 | else |
| 9302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9303 | /* end confdefs.h. */ |
| 9304 | |
| 9305 | #include <iconv.h> |
| 9306 | #include <string.h> |
| 9307 | int main () |
| 9308 | { |
| 9309 | int result = 0; |
| 9310 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9311 | returns. */ |
| 9312 | { |
| 9313 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9314 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9315 | { |
| 9316 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9317 | char buf[10]; |
| 9318 | const char *inptr = input; |
| 9319 | size_t inbytesleft = strlen (input); |
| 9320 | char *outptr = buf; |
| 9321 | size_t outbytesleft = sizeof (buf); |
| 9322 | size_t res = iconv (cd_utf8_to_88591, |
| 9323 | (char **) &inptr, &inbytesleft, |
| 9324 | &outptr, &outbytesleft); |
| 9325 | if (res == 0) |
| 9326 | result |= 1; |
| 9327 | iconv_close (cd_utf8_to_88591); |
| 9328 | } |
| 9329 | } |
| 9330 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9331 | successful returns. */ |
| 9332 | { |
| 9333 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9334 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9335 | { |
| 9336 | static const char input[] = "\263"; |
| 9337 | char buf[10]; |
| 9338 | const char *inptr = input; |
| 9339 | size_t inbytesleft = strlen (input); |
| 9340 | char *outptr = buf; |
| 9341 | size_t outbytesleft = sizeof (buf); |
| 9342 | size_t res = iconv (cd_ascii_to_88591, |
| 9343 | (char **) &inptr, &inbytesleft, |
| 9344 | &outptr, &outbytesleft); |
| 9345 | if (res == 0) |
| 9346 | result |= 2; |
| 9347 | iconv_close (cd_ascii_to_88591); |
| 9348 | } |
| 9349 | } |
| 9350 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9351 | { |
| 9352 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9353 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9354 | { |
| 9355 | static const char input[] = "\304"; |
| 9356 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9357 | const char *inptr = input; |
| 9358 | size_t inbytesleft = 1; |
| 9359 | char *outptr = buf; |
| 9360 | size_t outbytesleft = 1; |
| 9361 | size_t res = iconv (cd_88591_to_utf8, |
| 9362 | (char **) &inptr, &inbytesleft, |
| 9363 | &outptr, &outbytesleft); |
| 9364 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9365 | result |= 4; |
| 9366 | iconv_close (cd_88591_to_utf8); |
| 9367 | } |
| 9368 | } |
| 9369 | #if 0 /* This bug could be worked around by the caller. */ |
| 9370 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9371 | { |
| 9372 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9373 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9374 | { |
| 9375 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9376 | char buf[50]; |
| 9377 | const char *inptr = input; |
| 9378 | size_t inbytesleft = strlen (input); |
| 9379 | char *outptr = buf; |
| 9380 | size_t outbytesleft = sizeof (buf); |
| 9381 | size_t res = iconv (cd_88591_to_utf8, |
| 9382 | (char **) &inptr, &inbytesleft, |
| 9383 | &outptr, &outbytesleft); |
| 9384 | if ((int)res > 0) |
| 9385 | result |= 8; |
| 9386 | iconv_close (cd_88591_to_utf8); |
| 9387 | } |
| 9388 | } |
| 9389 | #endif |
| 9390 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9391 | provided. */ |
| 9392 | if (/* Try standardized names. */ |
| 9393 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9394 | /* Try IRIX, OSF/1 names. */ |
| 9395 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9396 | /* Try AIX names. */ |
| 9397 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9398 | /* Try HP-UX names. */ |
| 9399 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9400 | result |= 16; |
| 9401 | return result; |
| 9402 | } |
| 9403 | _ACEOF |
| 9404 | if ac_fn_c_try_run "$LINENO"; then : |
| 9405 | am_cv_func_iconv_works=yes |
| 9406 | else |
| 9407 | am_cv_func_iconv_works=no |
| 9408 | fi |
| 9409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9410 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9411 | fi |
| 9412 | |
| 9413 | LIBS="$am_save_LIBS" |
| 9414 | |
| 9415 | fi |
| 9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9417 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9418 | case "$am_cv_func_iconv_works" in |
| 9419 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9420 | *) am_func_iconv=yes ;; |
| 9421 | esac |
| 9422 | else |
| 9423 | am_func_iconv=no am_cv_lib_iconv=no |
| 9424 | fi |
| 9425 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9426 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9427 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9428 | |
| 9429 | fi |
| 9430 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9431 | { $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] | 9432 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9434 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9435 | else |
| 9436 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9437 | LIBICONV= |
| 9438 | LTLIBICONV= |
| 9439 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9440 | |
| 9441 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9442 | |
| 9443 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9444 | { $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] | 9445 | $as_echo_n "checking for iconv declaration... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9446 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9447 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9448 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9449 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9451 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9452 | |
| 9453 | #include <stdlib.h> |
| 9454 | #include <iconv.h> |
| 9455 | extern |
| 9456 | #ifdef __cplusplus |
| 9457 | "C" |
| 9458 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9459 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9460 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9461 | #else |
| 9462 | size_t iconv(); |
| 9463 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9464 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | int |
| 9466 | main () |
| 9467 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9468 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9469 | ; |
| 9470 | return 0; |
| 9471 | } |
| 9472 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9473 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9474 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9475 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9476 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9477 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9479 | 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] | 9480 | fi |
| 9481 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9482 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9484 | $am_cv_proto_iconv" >&5 |
| 9485 | $as_echo " |
| 9486 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9487 | |
| 9488 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9489 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9490 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9491 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9492 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9493 | fi |
| 9494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9495 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9496 | |
| 9497 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9500 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9501 | int |
| 9502 | main () |
| 9503 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9504 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9509 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9510 | |
| 9511 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9512 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9513 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9514 | rm -f core conftest.err conftest.$ac_objext \ |
| 9515 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9516 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9517 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9518 | do : |
| 9519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9520 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9521 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9522 | cat >>confdefs.h <<_ACEOF |
| 9523 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9524 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9525 | |
| 9526 | fi |
| 9527 | |
| 9528 | done |
| 9529 | |
| 9530 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9531 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9532 | argz_stringify argz_next __fsetlocking |
| 9533 | do : |
| 9534 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9535 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9536 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9537 | cat >>confdefs.h <<_ACEOF |
| 9538 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9539 | _ACEOF |
| 9540 | |
| 9541 | fi |
| 9542 | done |
| 9543 | |
| 9544 | |
| 9545 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9546 | " |
| 9547 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9548 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9549 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9550 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9551 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9552 | |
| 9553 | cat >>confdefs.h <<_ACEOF |
| 9554 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9555 | _ACEOF |
| 9556 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9557 | " |
| 9558 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9559 | ac_have_decl=1 |
| 9560 | else |
| 9561 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9562 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9563 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9564 | cat >>confdefs.h <<_ACEOF |
| 9565 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9566 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9567 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9568 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9569 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9570 | |
| 9571 | for ac_prog in bison |
| 9572 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9573 | # 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] | 9574 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9575 | { $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] | 9576 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9577 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9578 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9579 | else |
| 9580 | if test -n "$INTLBISON"; then |
| 9581 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9582 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9584 | for as_dir in $PATH |
| 9585 | do |
| 9586 | IFS=$as_save_IFS |
| 9587 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9588 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9589 | 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] | 9590 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9591 | $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] | 9592 | break 2 |
| 9593 | fi |
| 9594 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9595 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9596 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9597 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9598 | fi |
| 9599 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9600 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9601 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9603 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9604 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9606 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9607 | fi |
| 9608 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9610 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9611 | done |
| 9612 | |
| 9613 | if test -z "$INTLBISON"; then |
| 9614 | ac_verc_fail=yes |
| 9615 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9616 | { $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] | 9617 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9618 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9619 | case $ac_prog_version in |
| 9620 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9621 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9622 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9623 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9624 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9625 | { $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] | 9626 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9627 | fi |
| 9628 | if test $ac_verc_fail = yes; then |
| 9629 | INTLBISON=: |
| 9630 | fi |
| 9631 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9633 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9635 | $as_echo_n "checking for long long int... " >&6; } |
| 9636 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9637 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9638 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9639 | ac_cv_type_long_long_int=yes |
| 9640 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9641 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9642 | if test $ac_cv_type_long_long_int = yes; then |
| 9643 | if test "$cross_compiling" = yes; then : |
| 9644 | : |
| 9645 | else |
| 9646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9647 | /* end confdefs.h. */ |
| 9648 | #include <limits.h> |
| 9649 | #ifndef LLONG_MAX |
| 9650 | # define HALF \ |
| 9651 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9652 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9653 | #endif |
| 9654 | int |
| 9655 | main () |
| 9656 | { |
| 9657 | long long int n = 1; |
| 9658 | int i; |
| 9659 | for (i = 0; ; i++) |
| 9660 | { |
| 9661 | long long int m = n << i; |
| 9662 | if (m >> i != n) |
| 9663 | return 1; |
| 9664 | if (LLONG_MAX / 2 < m) |
| 9665 | break; |
| 9666 | } |
| 9667 | return 0; |
| 9668 | ; |
| 9669 | return 0; |
| 9670 | } |
| 9671 | _ACEOF |
| 9672 | if ac_fn_c_try_run "$LINENO"; then : |
| 9673 | |
| 9674 | else |
| 9675 | ac_cv_type_long_long_int=no |
| 9676 | fi |
| 9677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9678 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9679 | fi |
| 9680 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9681 | fi |
| 9682 | fi |
| 9683 | fi |
| 9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9685 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9686 | if test $ac_cv_type_long_long_int = yes; then |
| 9687 | |
| 9688 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9689 | |
| 9690 | fi |
| 9691 | |
| 9692 | |
| 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9694 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9695 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9696 | $as_echo_n "(cached) " >&6 |
| 9697 | else |
| 9698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9699 | /* end confdefs.h. */ |
| 9700 | #include <stddef.h> |
| 9701 | wchar_t foo = (wchar_t)'\0'; |
| 9702 | int |
| 9703 | main () |
| 9704 | { |
| 9705 | |
| 9706 | ; |
| 9707 | return 0; |
| 9708 | } |
| 9709 | _ACEOF |
| 9710 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9711 | gt_cv_c_wchar_t=yes |
| 9712 | else |
| 9713 | gt_cv_c_wchar_t=no |
| 9714 | fi |
| 9715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9716 | fi |
| 9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9718 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9719 | if test $gt_cv_c_wchar_t = yes; then |
| 9720 | |
| 9721 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9722 | |
| 9723 | fi |
| 9724 | |
| 9725 | |
| 9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9727 | $as_echo_n "checking for wint_t... " >&6; } |
| 9728 | if ${gt_cv_c_wint_t+:} false; then : |
| 9729 | $as_echo_n "(cached) " >&6 |
| 9730 | else |
| 9731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9732 | /* end confdefs.h. */ |
| 9733 | |
| 9734 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9735 | <wchar.h>. |
| 9736 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9737 | before <wchar.h>. */ |
| 9738 | #include <stddef.h> |
| 9739 | #include <stdio.h> |
| 9740 | #include <time.h> |
| 9741 | #include <wchar.h> |
| 9742 | wint_t foo = (wchar_t)'\0'; |
| 9743 | int |
| 9744 | main () |
| 9745 | { |
| 9746 | |
| 9747 | ; |
| 9748 | return 0; |
| 9749 | } |
| 9750 | _ACEOF |
| 9751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9752 | gt_cv_c_wint_t=yes |
| 9753 | else |
| 9754 | gt_cv_c_wint_t=no |
| 9755 | fi |
| 9756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9757 | fi |
| 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9759 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9760 | if test $gt_cv_c_wint_t = yes; then |
| 9761 | |
| 9762 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9763 | |
| 9764 | fi |
| 9765 | |
| 9766 | |
| 9767 | |
| 9768 | |
| 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9770 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9771 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9772 | $as_echo_n "(cached) " >&6 |
| 9773 | else |
| 9774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9775 | /* end confdefs.h. */ |
| 9776 | |
| 9777 | #include <stddef.h> |
| 9778 | #include <stdlib.h> |
| 9779 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9780 | #include <stdint.h> |
| 9781 | #endif |
| 9782 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9783 | #include <inttypes.h> |
| 9784 | #endif |
| 9785 | |
| 9786 | int |
| 9787 | main () |
| 9788 | { |
| 9789 | intmax_t x = -1; |
| 9790 | return !x; |
| 9791 | ; |
| 9792 | return 0; |
| 9793 | } |
| 9794 | _ACEOF |
| 9795 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9796 | gt_cv_c_intmax_t=yes |
| 9797 | else |
| 9798 | gt_cv_c_intmax_t=no |
| 9799 | fi |
| 9800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9801 | fi |
| 9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9803 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9804 | if test $gt_cv_c_intmax_t = yes; then |
| 9805 | |
| 9806 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9807 | |
| 9808 | fi |
| 9809 | |
| 9810 | |
| 9811 | |
| 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9813 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9814 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9815 | $as_echo_n "(cached) " >&6 |
| 9816 | else |
| 9817 | |
| 9818 | if test "$cross_compiling" = yes; then : |
| 9819 | |
| 9820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9821 | /* end confdefs.h. */ |
| 9822 | |
| 9823 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9824 | notposix |
| 9825 | #endif |
| 9826 | |
| 9827 | _ACEOF |
| 9828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9829 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9830 | gt_cv_func_printf_posix="guessing no" |
| 9831 | else |
| 9832 | gt_cv_func_printf_posix="guessing yes" |
| 9833 | fi |
| 9834 | rm -f conftest* |
| 9835 | |
| 9836 | |
| 9837 | else |
| 9838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9839 | /* end confdefs.h. */ |
| 9840 | |
| 9841 | #include <stdio.h> |
| 9842 | #include <string.h> |
| 9843 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 9844 | dollar expansion (possibly an autoconf bug). */ |
| 9845 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 9846 | static char buf[100]; |
| 9847 | int main () |
| 9848 | { |
| 9849 | sprintf (buf, format, 33, 55); |
| 9850 | return (strcmp (buf, "55 33") != 0); |
| 9851 | } |
| 9852 | _ACEOF |
| 9853 | if ac_fn_c_try_run "$LINENO"; then : |
| 9854 | gt_cv_func_printf_posix=yes |
| 9855 | else |
| 9856 | gt_cv_func_printf_posix=no |
| 9857 | fi |
| 9858 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9859 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9860 | fi |
| 9861 | |
| 9862 | |
| 9863 | fi |
| 9864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 9865 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 9866 | case $gt_cv_func_printf_posix in |
| 9867 | *yes) |
| 9868 | |
| 9869 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 9870 | |
| 9871 | ;; |
| 9872 | esac |
| 9873 | |
| 9874 | |
| 9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 9876 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 9877 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 9878 | $as_echo_n "(cached) " >&6 |
| 9879 | else |
| 9880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9881 | /* end confdefs.h. */ |
| 9882 | |
| 9883 | #include <features.h> |
| 9884 | #ifdef __GNU_LIBRARY__ |
| 9885 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 9886 | Lucky GNU user |
| 9887 | #endif |
| 9888 | #endif |
| 9889 | #ifdef __UCLIBC__ |
| 9890 | Lucky user |
| 9891 | #endif |
| 9892 | |
| 9893 | _ACEOF |
| 9894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9895 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 9896 | ac_cv_gnu_library_2_1=yes |
| 9897 | else |
| 9898 | ac_cv_gnu_library_2_1=no |
| 9899 | fi |
| 9900 | rm -f conftest* |
| 9901 | |
| 9902 | |
| 9903 | |
| 9904 | fi |
| 9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 9906 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 9907 | |
| 9908 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 9909 | |
| 9910 | |
| 9911 | |
| 9912 | for ac_header in stdint.h |
| 9913 | do : |
| 9914 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 9915 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 9916 | cat >>confdefs.h <<_ACEOF |
| 9917 | #define HAVE_STDINT_H 1 |
| 9918 | _ACEOF |
| 9919 | |
| 9920 | fi |
| 9921 | |
| 9922 | done |
| 9923 | |
| 9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 9925 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 9926 | if ${gl_cv_size_max+:} false; then : |
| 9927 | $as_echo_n "(cached) " >&6 |
| 9928 | else |
| 9929 | |
| 9930 | gl_cv_size_max= |
| 9931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9932 | /* end confdefs.h. */ |
| 9933 | |
| 9934 | #include <limits.h> |
| 9935 | #if HAVE_STDINT_H |
| 9936 | #include <stdint.h> |
| 9937 | #endif |
| 9938 | #ifdef SIZE_MAX |
| 9939 | Found it |
| 9940 | #endif |
| 9941 | |
| 9942 | _ACEOF |
| 9943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9944 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 9945 | gl_cv_size_max=yes |
| 9946 | fi |
| 9947 | rm -f conftest* |
| 9948 | |
| 9949 | if test -z "$gl_cv_size_max"; then |
| 9950 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 9951 | #include <limits.h>"; then : |
| 9952 | |
| 9953 | else |
| 9954 | size_t_bits_minus_1= |
| 9955 | fi |
| 9956 | |
| 9957 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 9958 | |
| 9959 | else |
| 9960 | fits_in_uint= |
| 9961 | fi |
| 9962 | |
| 9963 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 9964 | if test $fits_in_uint = 1; then |
| 9965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9966 | /* end confdefs.h. */ |
| 9967 | #include <stddef.h> |
| 9968 | extern size_t foo; |
| 9969 | extern unsigned long foo; |
| 9970 | |
| 9971 | int |
| 9972 | main () |
| 9973 | { |
| 9974 | |
| 9975 | ; |
| 9976 | return 0; |
| 9977 | } |
| 9978 | _ACEOF |
| 9979 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9980 | fits_in_uint=0 |
| 9981 | fi |
| 9982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9983 | fi |
| 9984 | if test $fits_in_uint = 1; then |
| 9985 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9986 | else |
| 9987 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9988 | fi |
| 9989 | else |
| 9990 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 9991 | fi |
| 9992 | fi |
| 9993 | |
| 9994 | fi |
| 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 9996 | $as_echo "$gl_cv_size_max" >&6; } |
| 9997 | if test "$gl_cv_size_max" != yes; then |
| 9998 | |
| 9999 | cat >>confdefs.h <<_ACEOF |
| 10000 | #define SIZE_MAX $gl_cv_size_max |
| 10001 | _ACEOF |
| 10002 | |
| 10003 | fi |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | for ac_header in stdint.h |
| 10009 | do : |
| 10010 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10011 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10012 | cat >>confdefs.h <<_ACEOF |
| 10013 | #define HAVE_STDINT_H 1 |
| 10014 | _ACEOF |
| 10015 | |
| 10016 | fi |
| 10017 | |
| 10018 | done |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | for ac_func in $ac_func_list |
| 10025 | do : |
| 10026 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10027 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10028 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10029 | cat >>confdefs.h <<_ACEOF |
| 10030 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10031 | _ACEOF |
| 10032 | |
| 10033 | fi |
| 10034 | done |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10044 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10045 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10046 | $as_echo_n "(cached) " >&6 |
| 10047 | else |
| 10048 | if test "$cross_compiling" = yes; then : |
| 10049 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10050 | else |
| 10051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10052 | /* end confdefs.h. */ |
| 10053 | #include <sys/types.h> |
| 10054 | #include <sys/stat.h> |
| 10055 | #if HAVE_UNISTD_H |
| 10056 | # include <unistd.h> |
| 10057 | #else /* on Windows with MSVC */ |
| 10058 | # include <io.h> |
| 10059 | # include <stdlib.h> |
| 10060 | # defined sleep(n) _sleep ((n) * 1000) |
| 10061 | #endif |
| 10062 | #include <fcntl.h> |
| 10063 | #ifndef O_NOATIME |
| 10064 | #define O_NOATIME 0 |
| 10065 | #endif |
| 10066 | #ifndef O_NOFOLLOW |
| 10067 | #define O_NOFOLLOW 0 |
| 10068 | #endif |
| 10069 | static int const constants[] = |
| 10070 | { |
| 10071 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10072 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10073 | }; |
| 10074 | |
| 10075 | int |
| 10076 | main () |
| 10077 | { |
| 10078 | |
| 10079 | int result = !constants; |
| 10080 | #if HAVE_SYMLINK |
| 10081 | { |
| 10082 | static char const sym[] = "conftest.sym"; |
| 10083 | if (symlink ("/dev/null", sym) != 0) |
| 10084 | result |= 2; |
| 10085 | else |
| 10086 | { |
| 10087 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10088 | if (fd >= 0) |
| 10089 | { |
| 10090 | close (fd); |
| 10091 | result |= 4; |
| 10092 | } |
| 10093 | } |
| 10094 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10095 | result |= 2; |
| 10096 | else |
| 10097 | { |
| 10098 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10099 | if (fd >= 0) |
| 10100 | { |
| 10101 | close (fd); |
| 10102 | result |= 4; |
| 10103 | } |
| 10104 | } |
| 10105 | unlink (sym); |
| 10106 | } |
| 10107 | #endif |
| 10108 | { |
| 10109 | static char const file[] = "confdefs.h"; |
| 10110 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10111 | if (fd < 0) |
| 10112 | result |= 8; |
| 10113 | else |
| 10114 | { |
| 10115 | struct stat st0; |
| 10116 | if (fstat (fd, &st0) != 0) |
| 10117 | result |= 16; |
| 10118 | else |
| 10119 | { |
| 10120 | char c; |
| 10121 | sleep (1); |
| 10122 | if (read (fd, &c, 1) != 1) |
| 10123 | result |= 24; |
| 10124 | else |
| 10125 | { |
| 10126 | if (close (fd) != 0) |
| 10127 | result |= 32; |
| 10128 | else |
| 10129 | { |
| 10130 | struct stat st1; |
| 10131 | if (stat (file, &st1) != 0) |
| 10132 | result |= 40; |
| 10133 | else |
| 10134 | if (st0.st_atime != st1.st_atime) |
| 10135 | result |= 64; |
| 10136 | } |
| 10137 | } |
| 10138 | } |
| 10139 | } |
| 10140 | } |
| 10141 | return result; |
| 10142 | ; |
| 10143 | return 0; |
| 10144 | } |
| 10145 | _ACEOF |
| 10146 | if ac_fn_c_try_run "$LINENO"; then : |
| 10147 | gl_cv_header_working_fcntl_h=yes |
| 10148 | else |
| 10149 | case $? in #( |
| 10150 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10151 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10152 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10153 | *) gl_cv_header_working_fcntl_h='no';; |
| 10154 | esac |
| 10155 | fi |
| 10156 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10157 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10158 | fi |
| 10159 | |
| 10160 | fi |
| 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10162 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10163 | |
| 10164 | case $gl_cv_header_working_fcntl_h in #( |
| 10165 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10166 | *) ac_val=1;; |
| 10167 | esac |
| 10168 | |
| 10169 | cat >>confdefs.h <<_ACEOF |
| 10170 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10171 | _ACEOF |
| 10172 | |
| 10173 | |
| 10174 | case $gl_cv_header_working_fcntl_h in #( |
| 10175 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10176 | *) ac_val=1;; |
| 10177 | esac |
| 10178 | |
| 10179 | cat >>confdefs.h <<_ACEOF |
| 10180 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10181 | _ACEOF |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10186 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10187 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10188 | $as_echo_n "(cached) " >&6 |
| 10189 | else |
| 10190 | gt_save_LIBS="$LIBS" |
| 10191 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10193 | /* end confdefs.h. */ |
| 10194 | #include <CoreFoundation/CFPreferences.h> |
| 10195 | int |
| 10196 | main () |
| 10197 | { |
| 10198 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10199 | ; |
| 10200 | return 0; |
| 10201 | } |
| 10202 | _ACEOF |
| 10203 | if ac_fn_c_try_link "$LINENO"; then : |
| 10204 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10205 | else |
| 10206 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10207 | fi |
| 10208 | rm -f core conftest.err conftest.$ac_objext \ |
| 10209 | conftest$ac_exeext conftest.$ac_ext |
| 10210 | LIBS="$gt_save_LIBS" |
| 10211 | fi |
| 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10213 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10214 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10215 | |
| 10216 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10217 | |
| 10218 | fi |
| 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10220 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10221 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10222 | $as_echo_n "(cached) " >&6 |
| 10223 | else |
| 10224 | gt_save_LIBS="$LIBS" |
| 10225 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10227 | /* end confdefs.h. */ |
| 10228 | #include <CoreFoundation/CFLocale.h> |
| 10229 | int |
| 10230 | main () |
| 10231 | { |
| 10232 | CFLocaleCopyCurrent(); |
| 10233 | ; |
| 10234 | return 0; |
| 10235 | } |
| 10236 | _ACEOF |
| 10237 | if ac_fn_c_try_link "$LINENO"; then : |
| 10238 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10239 | else |
| 10240 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10241 | fi |
| 10242 | rm -f core conftest.err conftest.$ac_objext \ |
| 10243 | conftest$ac_exeext conftest.$ac_ext |
| 10244 | LIBS="$gt_save_LIBS" |
| 10245 | fi |
| 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10247 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10248 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10249 | |
| 10250 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10251 | |
| 10252 | fi |
| 10253 | INTL_MACOSX_LIBS= |
| 10254 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10255 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10256 | fi |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | |
| 10261 | |
| 10262 | |
| 10263 | |
| 10264 | |
| 10265 | |
| 10266 | |
| 10267 | case "$enable_silent_rules" in |
| 10268 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10269 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10270 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10271 | esac |
| 10272 | |
| 10273 | |
| 10274 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10275 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10276 | |
| 10277 | else |
| 10278 | |
| 10279 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10280 | |
| 10281 | |
| 10282 | fi |
| 10283 | |
| 10284 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10285 | do : |
| 10286 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10287 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10288 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10289 | cat >>confdefs.h <<_ACEOF |
| 10290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10291 | _ACEOF |
| 10292 | |
| 10293 | fi |
| 10294 | |
| 10295 | done |
| 10296 | |
| 10297 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10298 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10299 | do : |
| 10300 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10301 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10302 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10303 | cat >>confdefs.h <<_ACEOF |
| 10304 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10305 | _ACEOF |
| 10306 | |
| 10307 | fi |
| 10308 | done |
| 10309 | |
| 10310 | |
| 10311 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10312 | " |
| 10313 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10314 | ac_have_decl=1 |
| 10315 | else |
| 10316 | ac_have_decl=0 |
| 10317 | fi |
| 10318 | |
| 10319 | cat >>confdefs.h <<_ACEOF |
| 10320 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10321 | _ACEOF |
| 10322 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10323 | " |
| 10324 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10325 | ac_have_decl=1 |
| 10326 | else |
| 10327 | ac_have_decl=0 |
| 10328 | fi |
| 10329 | |
| 10330 | cat >>confdefs.h <<_ACEOF |
| 10331 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10332 | _ACEOF |
| 10333 | |
| 10334 | |
| 10335 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10336 | " |
| 10337 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10338 | ac_have_decl=1 |
| 10339 | else |
| 10340 | ac_have_decl=0 |
| 10341 | fi |
| 10342 | |
| 10343 | cat >>confdefs.h <<_ACEOF |
| 10344 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10345 | _ACEOF |
| 10346 | |
| 10347 | |
| 10348 | case $gt_cv_func_printf_posix in |
| 10349 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10350 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10351 | esac |
| 10352 | |
| 10353 | if test "$ac_cv_func_asprintf" = yes; then |
| 10354 | HAVE_ASPRINTF=1 |
| 10355 | else |
| 10356 | HAVE_ASPRINTF=0 |
| 10357 | fi |
| 10358 | |
| 10359 | if test "$ac_cv_func_snprintf" = yes; then |
| 10360 | HAVE_SNPRINTF=1 |
| 10361 | else |
| 10362 | HAVE_SNPRINTF=0 |
| 10363 | fi |
| 10364 | |
| 10365 | if test "$ac_cv_func_newlocale" = yes; then |
| 10366 | HAVE_NEWLOCALE=1 |
| 10367 | else |
| 10368 | HAVE_NEWLOCALE=0 |
| 10369 | fi |
| 10370 | |
| 10371 | if test "$ac_cv_func_wprintf" = yes; then |
| 10372 | HAVE_WPRINTF=1 |
| 10373 | else |
| 10374 | HAVE_WPRINTF=0 |
| 10375 | fi |
| 10376 | |
| 10377 | |
| 10378 | |
| 10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10380 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10381 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10382 | $as_echo_n "(cached) " >&6 |
| 10383 | else |
| 10384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10385 | /* end confdefs.h. */ |
| 10386 | #include <langinfo.h> |
| 10387 | int |
| 10388 | main () |
| 10389 | { |
| 10390 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10391 | ; |
| 10392 | return 0; |
| 10393 | } |
| 10394 | _ACEOF |
| 10395 | if ac_fn_c_try_link "$LINENO"; then : |
| 10396 | am_cv_langinfo_codeset=yes |
| 10397 | else |
| 10398 | am_cv_langinfo_codeset=no |
| 10399 | fi |
| 10400 | rm -f core conftest.err conftest.$ac_objext \ |
| 10401 | conftest$ac_exeext conftest.$ac_ext |
| 10402 | |
| 10403 | fi |
| 10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10405 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10406 | if test $am_cv_langinfo_codeset = yes; then |
| 10407 | |
| 10408 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10409 | |
| 10410 | fi |
| 10411 | |
| 10412 | |
| 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10414 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10415 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10416 | $as_echo_n "(cached) " >&6 |
| 10417 | else |
| 10418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10419 | /* end confdefs.h. */ |
| 10420 | #include <locale.h> |
| 10421 | int |
| 10422 | main () |
| 10423 | { |
| 10424 | return LC_MESSAGES |
| 10425 | ; |
| 10426 | return 0; |
| 10427 | } |
| 10428 | _ACEOF |
| 10429 | if ac_fn_c_try_link "$LINENO"; then : |
| 10430 | gt_cv_val_LC_MESSAGES=yes |
| 10431 | else |
| 10432 | gt_cv_val_LC_MESSAGES=no |
| 10433 | fi |
| 10434 | rm -f core conftest.err conftest.$ac_objext \ |
| 10435 | conftest$ac_exeext conftest.$ac_ext |
| 10436 | fi |
| 10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10438 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10439 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10440 | |
| 10441 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10442 | |
| 10443 | fi |
| 10444 | |
| 10445 | |
| 10446 | if test "$enable_shared" = yes; then |
| 10447 | case "$host_os" in |
| 10448 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10449 | *) is_woe32dll=no ;; |
| 10450 | esac |
| 10451 | else |
| 10452 | is_woe32dll=no |
| 10453 | fi |
| 10454 | WOE32DLL=$is_woe32dll |
| 10455 | |
| 10456 | |
| 10457 | case "$host_os" in |
| 10458 | mingw* | cygwin*) is_woe32=yes ;; |
| 10459 | *) is_woe32=no ;; |
| 10460 | esac |
| 10461 | WOE32=$is_woe32 |
| 10462 | |
| 10463 | if test $WOE32 = yes; then |
| 10464 | if test -n "$ac_tool_prefix"; then |
| 10465 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10466 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10468 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10469 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10470 | $as_echo_n "(cached) " >&6 |
| 10471 | else |
| 10472 | if test -n "$WINDRES"; then |
| 10473 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10474 | else |
| 10475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10476 | for as_dir in $PATH |
| 10477 | do |
| 10478 | IFS=$as_save_IFS |
| 10479 | test -z "$as_dir" && as_dir=. |
| 10480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10482 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10484 | break 2 |
| 10485 | fi |
| 10486 | done |
| 10487 | done |
| 10488 | IFS=$as_save_IFS |
| 10489 | |
| 10490 | fi |
| 10491 | fi |
| 10492 | WINDRES=$ac_cv_prog_WINDRES |
| 10493 | if test -n "$WINDRES"; then |
| 10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10495 | $as_echo "$WINDRES" >&6; } |
| 10496 | else |
| 10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10498 | $as_echo "no" >&6; } |
| 10499 | fi |
| 10500 | |
| 10501 | |
| 10502 | fi |
| 10503 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10504 | ac_ct_WINDRES=$WINDRES |
| 10505 | # Extract the first word of "windres", so it can be a program name with args. |
| 10506 | set dummy windres; ac_word=$2 |
| 10507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10508 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10509 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10510 | $as_echo_n "(cached) " >&6 |
| 10511 | else |
| 10512 | if test -n "$ac_ct_WINDRES"; then |
| 10513 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10514 | else |
| 10515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10516 | for as_dir in $PATH |
| 10517 | do |
| 10518 | IFS=$as_save_IFS |
| 10519 | test -z "$as_dir" && as_dir=. |
| 10520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10522 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10524 | break 2 |
| 10525 | fi |
| 10526 | done |
| 10527 | done |
| 10528 | IFS=$as_save_IFS |
| 10529 | |
| 10530 | fi |
| 10531 | fi |
| 10532 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10533 | if test -n "$ac_ct_WINDRES"; then |
| 10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10535 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10536 | else |
| 10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10538 | $as_echo "no" >&6; } |
| 10539 | fi |
| 10540 | |
| 10541 | if test "x$ac_ct_WINDRES" = x; then |
| 10542 | WINDRES="" |
| 10543 | else |
| 10544 | case $cross_compiling:$ac_tool_warned in |
| 10545 | yes:) |
| 10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10547 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10548 | ac_tool_warned=yes ;; |
| 10549 | esac |
| 10550 | WINDRES=$ac_ct_WINDRES |
| 10551 | fi |
| 10552 | else |
| 10553 | WINDRES="$ac_cv_prog_WINDRES" |
| 10554 | fi |
| 10555 | |
| 10556 | fi |
| 10557 | |
| 10558 | case "$host_os" in |
| 10559 | hpux*) LTLIBC="" ;; |
| 10560 | *) LTLIBC="-lc" ;; |
| 10561 | esac |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10590 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10591 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10592 | $as_echo_n "(cached) " >&6 |
| 10593 | else |
| 10594 | gt_save_LIBS="$LIBS" |
| 10595 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10597 | /* end confdefs.h. */ |
| 10598 | #include <CoreFoundation/CFPreferences.h> |
| 10599 | int |
| 10600 | main () |
| 10601 | { |
| 10602 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10603 | ; |
| 10604 | return 0; |
| 10605 | } |
| 10606 | _ACEOF |
| 10607 | if ac_fn_c_try_link "$LINENO"; then : |
| 10608 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10609 | else |
| 10610 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10611 | fi |
| 10612 | rm -f core conftest.err conftest.$ac_objext \ |
| 10613 | conftest$ac_exeext conftest.$ac_ext |
| 10614 | LIBS="$gt_save_LIBS" |
| 10615 | fi |
| 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10617 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10618 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10619 | |
| 10620 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10621 | |
| 10622 | fi |
| 10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10624 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10625 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10626 | $as_echo_n "(cached) " >&6 |
| 10627 | else |
| 10628 | gt_save_LIBS="$LIBS" |
| 10629 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10631 | /* end confdefs.h. */ |
| 10632 | #include <CoreFoundation/CFLocale.h> |
| 10633 | int |
| 10634 | main () |
| 10635 | { |
| 10636 | CFLocaleCopyCurrent(); |
| 10637 | ; |
| 10638 | return 0; |
| 10639 | } |
| 10640 | _ACEOF |
| 10641 | if ac_fn_c_try_link "$LINENO"; then : |
| 10642 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10643 | else |
| 10644 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10645 | fi |
| 10646 | rm -f core conftest.err conftest.$ac_objext \ |
| 10647 | conftest$ac_exeext conftest.$ac_ext |
| 10648 | LIBS="$gt_save_LIBS" |
| 10649 | fi |
| 10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10651 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10652 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10653 | |
| 10654 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10655 | |
| 10656 | fi |
| 10657 | INTL_MACOSX_LIBS= |
| 10658 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10659 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10660 | fi |
| 10661 | |
| 10662 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10663 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10664 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10665 | |
| 10666 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10667 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10668 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10669 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10670 | LIBINTL= |
| 10671 | LTLIBINTL= |
| 10672 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10673 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10674 | case " $gt_needs " in |
| 10675 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10676 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10677 | *) gt_api_version=1 ;; |
| 10678 | esac |
| 10679 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10680 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10681 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10682 | if test "$USE_NLS" = "yes"; then |
| 10683 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10684 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10685 | { $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] | 10686 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10687 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10688 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10689 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10690 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10691 | else |
| 10692 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10693 | fi |
| 10694 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10695 | { $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] | 10696 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10697 | |
| 10698 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10699 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10700 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10701 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10702 | if test $gt_api_version -ge 3; then |
| 10703 | gt_revision_test_code=' |
| 10704 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10705 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10706 | #endif |
| 10707 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10708 | ' |
| 10709 | else |
| 10710 | gt_revision_test_code= |
| 10711 | fi |
| 10712 | if test $gt_api_version -ge 2; then |
| 10713 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10714 | else |
| 10715 | gt_expression_test_code= |
| 10716 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10717 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10718 | { $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] | 10719 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10720 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10721 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10722 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10724 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10725 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10726 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10727 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10728 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10729 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10731 | int |
| 10732 | main () |
| 10733 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10734 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10735 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10736 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10737 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10738 | ; |
| 10739 | return 0; |
| 10740 | } |
| 10741 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10742 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10743 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10744 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10745 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10746 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10747 | rm -f core conftest.err conftest.$ac_objext \ |
| 10748 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10749 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10750 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10752 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10753 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10754 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
| 10759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10760 | |
| 10761 | |
| 10762 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10763 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10764 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10765 | acl_save_prefix="$prefix" |
| 10766 | prefix="$acl_final_prefix" |
| 10767 | acl_save_exec_prefix="$exec_prefix" |
| 10768 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10769 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10770 | eval additional_includedir=\"$includedir\" |
| 10771 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10772 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10773 | exec_prefix="$acl_save_exec_prefix" |
| 10774 | prefix="$acl_save_prefix" |
| 10775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10777 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10778 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10779 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10780 | if test "X$withval" = "Xno"; then |
| 10781 | use_additional=no |
| 10782 | else |
| 10783 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10784 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10785 | acl_save_prefix="$prefix" |
| 10786 | prefix="$acl_final_prefix" |
| 10787 | acl_save_exec_prefix="$exec_prefix" |
| 10788 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10789 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10790 | eval additional_includedir=\"$includedir\" |
| 10791 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10792 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10793 | exec_prefix="$acl_save_exec_prefix" |
| 10794 | prefix="$acl_save_prefix" |
| 10795 | |
| 10796 | else |
| 10797 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10798 | additional_libdir="$withval/$acl_libdirstem" |
| 10799 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10800 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10801 | additional_libdir="$withval/$acl_libdirstem2" |
| 10802 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10803 | fi |
| 10804 | fi |
| 10805 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10806 | fi |
| 10807 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10808 | LIBINTL= |
| 10809 | LTLIBINTL= |
| 10810 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10811 | LIBINTL_PREFIX= |
| 10812 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10813 | rpathdirs= |
| 10814 | ltrpathdirs= |
| 10815 | names_already_handled= |
| 10816 | names_next_round='intl ' |
| 10817 | while test -n "$names_next_round"; do |
| 10818 | names_this_round="$names_next_round" |
| 10819 | names_next_round= |
| 10820 | for name in $names_this_round; do |
| 10821 | already_handled= |
| 10822 | for n in $names_already_handled; do |
| 10823 | if test "$n" = "$name"; then |
| 10824 | already_handled=yes |
| 10825 | break |
| 10826 | fi |
| 10827 | done |
| 10828 | if test -z "$already_handled"; then |
| 10829 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10830 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10831 | eval value=\"\$HAVE_LIB$uppername\" |
| 10832 | if test -n "$value"; then |
| 10833 | if test "$value" = yes; then |
| 10834 | eval value=\"\$LIB$uppername\" |
| 10835 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10836 | eval value=\"\$LTLIB$uppername\" |
| 10837 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10838 | else |
| 10839 | : |
| 10840 | fi |
| 10841 | else |
| 10842 | found_dir= |
| 10843 | found_la= |
| 10844 | found_so= |
| 10845 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10846 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 10847 | if test -n "$acl_shlibext"; then |
| 10848 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 10849 | else |
| 10850 | shrext= |
| 10851 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10852 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10853 | dir="$additional_libdir" |
| 10854 | if test -n "$acl_shlibext"; then |
| 10855 | if test -f "$dir/$libname$shrext"; then |
| 10856 | found_dir="$dir" |
| 10857 | found_so="$dir/$libname$shrext" |
| 10858 | else |
| 10859 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10860 | ver=`(cd "$dir" && \ |
| 10861 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10862 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10863 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10864 | | sed 1q ) 2>/dev/null` |
| 10865 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10866 | found_dir="$dir" |
| 10867 | found_so="$dir/$libname$shrext.$ver" |
| 10868 | fi |
| 10869 | else |
| 10870 | eval library_names=\"$acl_library_names_spec\" |
| 10871 | for f in $library_names; do |
| 10872 | if test -f "$dir/$f"; then |
| 10873 | found_dir="$dir" |
| 10874 | found_so="$dir/$f" |
| 10875 | break |
| 10876 | fi |
| 10877 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10878 | fi |
| 10879 | fi |
| 10880 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10881 | if test "X$found_dir" = "X"; then |
| 10882 | if test -f "$dir/$libname.$acl_libext"; then |
| 10883 | found_dir="$dir" |
| 10884 | found_a="$dir/$libname.$acl_libext" |
| 10885 | fi |
| 10886 | fi |
| 10887 | if test "X$found_dir" != "X"; then |
| 10888 | if test -f "$dir/$libname.la"; then |
| 10889 | found_la="$dir/$libname.la" |
| 10890 | fi |
| 10891 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10892 | fi |
| 10893 | if test "X$found_dir" = "X"; then |
| 10894 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10895 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10896 | acl_save_prefix="$prefix" |
| 10897 | prefix="$acl_final_prefix" |
| 10898 | acl_save_exec_prefix="$exec_prefix" |
| 10899 | exec_prefix="$acl_final_exec_prefix" |
| 10900 | eval x=\"$x\" |
| 10901 | exec_prefix="$acl_save_exec_prefix" |
| 10902 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10903 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10904 | case "$x" in |
| 10905 | -L*) |
| 10906 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10907 | if test -n "$acl_shlibext"; then |
| 10908 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10909 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10910 | found_so="$dir/$libname$shrext" |
| 10911 | else |
| 10912 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10913 | ver=`(cd "$dir" && \ |
| 10914 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10915 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10916 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10917 | | sed 1q ) 2>/dev/null` |
| 10918 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10919 | found_dir="$dir" |
| 10920 | found_so="$dir/$libname$shrext.$ver" |
| 10921 | fi |
| 10922 | else |
| 10923 | eval library_names=\"$acl_library_names_spec\" |
| 10924 | for f in $library_names; do |
| 10925 | if test -f "$dir/$f"; then |
| 10926 | found_dir="$dir" |
| 10927 | found_so="$dir/$f" |
| 10928 | break |
| 10929 | fi |
| 10930 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10931 | fi |
| 10932 | fi |
| 10933 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10934 | if test "X$found_dir" = "X"; then |
| 10935 | if test -f "$dir/$libname.$acl_libext"; then |
| 10936 | found_dir="$dir" |
| 10937 | found_a="$dir/$libname.$acl_libext" |
| 10938 | fi |
| 10939 | fi |
| 10940 | if test "X$found_dir" != "X"; then |
| 10941 | if test -f "$dir/$libname.la"; then |
| 10942 | found_la="$dir/$libname.la" |
| 10943 | fi |
| 10944 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10945 | ;; |
| 10946 | esac |
| 10947 | if test "X$found_dir" != "X"; then |
| 10948 | break |
| 10949 | fi |
| 10950 | done |
| 10951 | fi |
| 10952 | if test "X$found_dir" != "X"; then |
| 10953 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10954 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10955 | if test "$enable_rpath" = no \ |
| 10956 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 10957 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10958 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10959 | else |
| 10960 | haveit= |
| 10961 | for x in $ltrpathdirs; do |
| 10962 | if test "X$x" = "X$found_dir"; then |
| 10963 | haveit=yes |
| 10964 | break |
| 10965 | fi |
| 10966 | done |
| 10967 | if test -z "$haveit"; then |
| 10968 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10969 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10970 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10971 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10972 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10973 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10974 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10975 | haveit= |
| 10976 | for x in $rpathdirs; do |
| 10977 | if test "X$x" = "X$found_dir"; then |
| 10978 | haveit=yes |
| 10979 | break |
| 10980 | fi |
| 10981 | done |
| 10982 | if test -z "$haveit"; then |
| 10983 | rpathdirs="$rpathdirs $found_dir" |
| 10984 | fi |
| 10985 | else |
| 10986 | haveit= |
| 10987 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10988 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10989 | acl_save_prefix="$prefix" |
| 10990 | prefix="$acl_final_prefix" |
| 10991 | acl_save_exec_prefix="$exec_prefix" |
| 10992 | exec_prefix="$acl_final_exec_prefix" |
| 10993 | eval x=\"$x\" |
| 10994 | exec_prefix="$acl_save_exec_prefix" |
| 10995 | prefix="$acl_save_prefix" |
| 10996 | |
| 10997 | if test "X$x" = "X-L$found_dir"; then |
| 10998 | haveit=yes |
| 10999 | break |
| 11000 | fi |
| 11001 | done |
| 11002 | if test -z "$haveit"; then |
| 11003 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11004 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11005 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11006 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11007 | else |
| 11008 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11009 | fi |
| 11010 | fi |
| 11011 | fi |
| 11012 | fi |
| 11013 | else |
| 11014 | if test "X$found_a" != "X"; then |
| 11015 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11016 | else |
| 11017 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11018 | fi |
| 11019 | fi |
| 11020 | additional_includedir= |
| 11021 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11022 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11023 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11024 | if test "$name" = 'intl'; then |
| 11025 | LIBINTL_PREFIX="$basedir" |
| 11026 | fi |
| 11027 | additional_includedir="$basedir/include" |
| 11028 | ;; |
| 11029 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11030 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11031 | if test "$name" = 'intl'; then |
| 11032 | LIBINTL_PREFIX="$basedir" |
| 11033 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11034 | additional_includedir="$basedir/include" |
| 11035 | ;; |
| 11036 | esac |
| 11037 | if test "X$additional_includedir" != "X"; then |
| 11038 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11039 | haveit= |
| 11040 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11041 | if test -n "$GCC"; then |
| 11042 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11043 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11044 | esac |
| 11045 | fi |
| 11046 | fi |
| 11047 | if test -z "$haveit"; then |
| 11048 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11049 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11050 | acl_save_prefix="$prefix" |
| 11051 | prefix="$acl_final_prefix" |
| 11052 | acl_save_exec_prefix="$exec_prefix" |
| 11053 | exec_prefix="$acl_final_exec_prefix" |
| 11054 | eval x=\"$x\" |
| 11055 | exec_prefix="$acl_save_exec_prefix" |
| 11056 | prefix="$acl_save_prefix" |
| 11057 | |
| 11058 | if test "X$x" = "X-I$additional_includedir"; then |
| 11059 | haveit=yes |
| 11060 | break |
| 11061 | fi |
| 11062 | done |
| 11063 | if test -z "$haveit"; then |
| 11064 | if test -d "$additional_includedir"; then |
| 11065 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11066 | fi |
| 11067 | fi |
| 11068 | fi |
| 11069 | fi |
| 11070 | fi |
| 11071 | if test -n "$found_la"; then |
| 11072 | save_libdir="$libdir" |
| 11073 | case "$found_la" in |
| 11074 | */* | *\\*) . "$found_la" ;; |
| 11075 | *) . "./$found_la" ;; |
| 11076 | esac |
| 11077 | libdir="$save_libdir" |
| 11078 | for dep in $dependency_libs; do |
| 11079 | case "$dep" in |
| 11080 | -L*) |
| 11081 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11082 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11083 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11084 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11085 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11086 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11087 | if test -n "$GCC"; then |
| 11088 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11089 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11090 | esac |
| 11091 | fi |
| 11092 | fi |
| 11093 | if test -z "$haveit"; then |
| 11094 | haveit= |
| 11095 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11096 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11097 | acl_save_prefix="$prefix" |
| 11098 | prefix="$acl_final_prefix" |
| 11099 | acl_save_exec_prefix="$exec_prefix" |
| 11100 | exec_prefix="$acl_final_exec_prefix" |
| 11101 | eval x=\"$x\" |
| 11102 | exec_prefix="$acl_save_exec_prefix" |
| 11103 | prefix="$acl_save_prefix" |
| 11104 | |
| 11105 | if test "X$x" = "X-L$additional_libdir"; then |
| 11106 | haveit=yes |
| 11107 | break |
| 11108 | fi |
| 11109 | done |
| 11110 | if test -z "$haveit"; then |
| 11111 | if test -d "$additional_libdir"; then |
| 11112 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11113 | fi |
| 11114 | fi |
| 11115 | haveit= |
| 11116 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11117 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11118 | acl_save_prefix="$prefix" |
| 11119 | prefix="$acl_final_prefix" |
| 11120 | acl_save_exec_prefix="$exec_prefix" |
| 11121 | exec_prefix="$acl_final_exec_prefix" |
| 11122 | eval x=\"$x\" |
| 11123 | exec_prefix="$acl_save_exec_prefix" |
| 11124 | prefix="$acl_save_prefix" |
| 11125 | |
| 11126 | if test "X$x" = "X-L$additional_libdir"; then |
| 11127 | haveit=yes |
| 11128 | break |
| 11129 | fi |
| 11130 | done |
| 11131 | if test -z "$haveit"; then |
| 11132 | if test -d "$additional_libdir"; then |
| 11133 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11134 | fi |
| 11135 | fi |
| 11136 | fi |
| 11137 | fi |
| 11138 | ;; |
| 11139 | -R*) |
| 11140 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11141 | if test "$enable_rpath" != no; then |
| 11142 | haveit= |
| 11143 | for x in $rpathdirs; do |
| 11144 | if test "X$x" = "X$dir"; then |
| 11145 | haveit=yes |
| 11146 | break |
| 11147 | fi |
| 11148 | done |
| 11149 | if test -z "$haveit"; then |
| 11150 | rpathdirs="$rpathdirs $dir" |
| 11151 | fi |
| 11152 | haveit= |
| 11153 | for x in $ltrpathdirs; do |
| 11154 | if test "X$x" = "X$dir"; then |
| 11155 | haveit=yes |
| 11156 | break |
| 11157 | fi |
| 11158 | done |
| 11159 | if test -z "$haveit"; then |
| 11160 | ltrpathdirs="$ltrpathdirs $dir" |
| 11161 | fi |
| 11162 | fi |
| 11163 | ;; |
| 11164 | -l*) |
| 11165 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11166 | ;; |
| 11167 | *.la) |
| 11168 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11169 | ;; |
| 11170 | *) |
| 11171 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11172 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11173 | ;; |
| 11174 | esac |
| 11175 | done |
| 11176 | fi |
| 11177 | else |
| 11178 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11179 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11180 | fi |
| 11181 | fi |
| 11182 | fi |
| 11183 | done |
| 11184 | done |
| 11185 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11186 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11187 | alldirs= |
| 11188 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11189 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11190 | done |
| 11191 | acl_save_libdir="$libdir" |
| 11192 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11193 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11194 | libdir="$acl_save_libdir" |
| 11195 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11196 | else |
| 11197 | for found_dir in $rpathdirs; do |
| 11198 | acl_save_libdir="$libdir" |
| 11199 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11200 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11201 | libdir="$acl_save_libdir" |
| 11202 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11203 | done |
| 11204 | fi |
| 11205 | fi |
| 11206 | if test "X$ltrpathdirs" != "X"; then |
| 11207 | for found_dir in $ltrpathdirs; do |
| 11208 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11209 | done |
| 11210 | fi |
| 11211 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11217 | { $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] | 11218 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11219 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11220 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11221 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11222 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11223 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11224 | gt_save_LIBS="$LIBS" |
| 11225 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11227 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11228 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11229 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11230 | $gt_revision_test_code |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11231 | extern int _nl_msg_cat_cntr; |
| 11232 | extern |
| 11233 | #ifdef __cplusplus |
| 11234 | "C" |
| 11235 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11236 | const char *_nl_expand_alias (const char *); |
| 11237 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11238 | int |
| 11239 | main () |
| 11240 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11241 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11242 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11243 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11244 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11245 | ; |
| 11246 | return 0; |
| 11247 | } |
| 11248 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11249 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11250 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11251 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11252 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11253 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11254 | rm -f core conftest.err conftest.$ac_objext \ |
| 11255 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11256 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11257 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11259 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11260 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11261 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11262 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11263 | extern int _nl_msg_cat_cntr; |
| 11264 | extern |
| 11265 | #ifdef __cplusplus |
| 11266 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11267 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11268 | const char *_nl_expand_alias (const char *); |
| 11269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11270 | int |
| 11271 | main () |
| 11272 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11273 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11274 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11275 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11276 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | ; |
| 11278 | return 0; |
| 11279 | } |
| 11280 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11281 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11282 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11283 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11284 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11285 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11286 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11287 | rm -f core conftest.err conftest.$ac_objext \ |
| 11288 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11289 | fi |
| 11290 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11291 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11292 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11293 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11295 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11296 | fi |
| 11297 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11298 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11299 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11300 | && test "$PACKAGE" != gettext-runtime \ |
| 11301 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11302 | gt_use_preinstalled_gnugettext=yes |
| 11303 | else |
| 11304 | LIBINTL= |
| 11305 | LTLIBINTL= |
| 11306 | INCINTL= |
| 11307 | fi |
| 11308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11309 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11310 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11311 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11312 | fi |
| 11313 | fi |
| 11314 | |
| 11315 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11316 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11317 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11318 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11319 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11320 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11321 | fi |
| 11322 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11323 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11324 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11325 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11326 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11327 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11328 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11329 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11330 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11331 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11332 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11333 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11334 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11335 | fi |
| 11336 | fi |
| 11337 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11338 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11339 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11340 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11341 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11342 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11343 | else |
| 11344 | USE_NLS=no |
| 11345 | fi |
| 11346 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11347 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11348 | { $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] | 11349 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11351 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11352 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11353 | { $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] | 11354 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11355 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11356 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | gt_source="external libintl" |
| 11358 | else |
| 11359 | gt_source="libc" |
| 11360 | fi |
| 11361 | else |
| 11362 | gt_source="included intl directory" |
| 11363 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11365 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11366 | fi |
| 11367 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11368 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11370 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11371 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11372 | { $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] | 11373 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11375 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11377 | for element in $INCINTL; do |
| 11378 | haveit= |
| 11379 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11380 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11381 | acl_save_prefix="$prefix" |
| 11382 | prefix="$acl_final_prefix" |
| 11383 | acl_save_exec_prefix="$exec_prefix" |
| 11384 | exec_prefix="$acl_final_exec_prefix" |
| 11385 | eval x=\"$x\" |
| 11386 | exec_prefix="$acl_save_exec_prefix" |
| 11387 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11389 | if test "X$x" = "X$element"; then |
| 11390 | haveit=yes |
| 11391 | break |
| 11392 | fi |
| 11393 | done |
| 11394 | if test -z "$haveit"; then |
| 11395 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11396 | fi |
| 11397 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11398 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11399 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11401 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11402 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11403 | |
| 11404 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11405 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11406 | |
| 11407 | fi |
| 11408 | |
| 11409 | POSUB=po |
| 11410 | fi |
| 11411 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11412 | |
| 11413 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11414 | BUILD_INCLUDED_LIBINTL=yes |
| 11415 | fi |
| 11416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11417 | |
| 11418 | |
| 11419 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11420 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11421 | nls_cv_header_intl= |
| 11422 | nls_cv_header_libgt= |
| 11423 | |
| 11424 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11425 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11426 | |
| 11427 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11428 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11429 | |
| 11430 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11431 | |
| 11432 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11433 | INTLOBJS= |
| 11434 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11435 | INTLOBJS="\$(GETTOBJS)" |
| 11436 | fi |
| 11437 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11438 | |
| 11439 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11440 | |
| 11441 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11442 | |
| 11443 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11444 | |
| 11445 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
| 11450 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11451 | { $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] | 11452 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11453 | set x ${MAKE-make} |
| 11454 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11455 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11456 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11457 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11458 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11459 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11460 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11461 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11462 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11463 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11464 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11465 | *@@@%%%=?*=@@@%%%*) |
| 11466 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11467 | *) |
| 11468 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11469 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11471 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11472 | 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] | 11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11474 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11475 | SET_MAKE= |
| 11476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11478 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11479 | SET_MAKE="MAKE=${MAKE-make}" |
| 11480 | fi |
| 11481 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11482 | { $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] | 11483 | $as_echo_n "checking for GNU make... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11484 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11485 | $as_echo_n "(cached) " >&6 |
| 11486 | else |
| 11487 | _cv_gnu_make_command='' ; |
| 11488 | for a in "$MAKE" make gmake gnumake ; do |
| 11489 | if test -z "$a" ; then continue ; fi ; |
| 11490 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11491 | _cv_gnu_make_command=$a ; |
| 11492 | break; |
| 11493 | fi |
| 11494 | done ; |
| 11495 | |
| 11496 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11497 | { $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] | 11498 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11499 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11500 | ifGNUmake='' ; |
| 11501 | ifNotGNUmake='#' ; |
| 11502 | else |
| 11503 | ifGNUmake='#' ; |
| 11504 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11506 | $as_echo "\"Not found\"" >&6; }; |
| 11507 | fi |
| 11508 | |
| 11509 | |
| 11510 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11511 | # Extract the first word of "ln", so it can be a program name with args. |
| 11512 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | { $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] | 11514 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11515 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11516 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11517 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11518 | case $LN in |
| 11519 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11520 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11521 | ;; |
| 11522 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11524 | for as_dir in $PATH |
| 11525 | do |
| 11526 | IFS=$as_save_IFS |
| 11527 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11528 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11529 | 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] | 11530 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11531 | $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] | 11532 | break 2 |
| 11533 | fi |
| 11534 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11535 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11536 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11537 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11538 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11539 | ;; |
| 11540 | esac |
| 11541 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11542 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11543 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11545 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11546 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11548 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11549 | fi |
| 11550 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11551 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11552 | { $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] | 11553 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11554 | LN_S=$as_ln_s |
| 11555 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11557 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11558 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11559 | { $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] | 11560 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11561 | fi |
| 11562 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11563 | # Extract the first word of "mv", so it can be a program name with args. |
| 11564 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11565 | { $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] | 11566 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11567 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11568 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11569 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11570 | case $MV in |
| 11571 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11572 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11573 | ;; |
| 11574 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11576 | for as_dir in $PATH |
| 11577 | do |
| 11578 | IFS=$as_save_IFS |
| 11579 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11581 | 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] | 11582 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11583 | $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] | 11584 | break 2 |
| 11585 | fi |
| 11586 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11587 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11588 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11590 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11591 | ;; |
| 11592 | esac |
| 11593 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11594 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11595 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11597 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11598 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11600 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11601 | fi |
| 11602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11603 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11604 | # Extract the first word of "cp", so it can be a program name with args. |
| 11605 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11606 | { $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] | 11607 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11608 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11609 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11610 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11611 | case $CP in |
| 11612 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11613 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11614 | ;; |
| 11615 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11617 | for as_dir in $PATH |
| 11618 | do |
| 11619 | IFS=$as_save_IFS |
| 11620 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11622 | 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] | 11623 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11624 | $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] | 11625 | break 2 |
| 11626 | fi |
| 11627 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11628 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11629 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11630 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11631 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11632 | ;; |
| 11633 | esac |
| 11634 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11635 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11636 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11638 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11639 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11641 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11642 | fi |
| 11643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11644 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11645 | # Extract the first word of "rm", so it can be a program name with args. |
| 11646 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11647 | { $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] | 11648 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11649 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11650 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11651 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11652 | case $RM in |
| 11653 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11654 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11655 | ;; |
| 11656 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11658 | for as_dir in $PATH |
| 11659 | do |
| 11660 | IFS=$as_save_IFS |
| 11661 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11662 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11663 | 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] | 11664 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11665 | $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] | 11666 | break 2 |
| 11667 | fi |
| 11668 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11669 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11670 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11671 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11672 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11673 | ;; |
| 11674 | esac |
| 11675 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11676 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11677 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11679 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11680 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11682 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11683 | fi |
| 11684 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11685 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11686 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11687 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11688 | { $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] | 11689 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11690 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11691 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | case $CHMOD in |
| 11694 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11695 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11696 | ;; |
| 11697 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11699 | for as_dir in $PATH |
| 11700 | do |
| 11701 | IFS=$as_save_IFS |
| 11702 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11703 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11704 | 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] | 11705 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11706 | $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] | 11707 | break 2 |
| 11708 | fi |
| 11709 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11710 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11711 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11712 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11713 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11714 | ;; |
| 11715 | esac |
| 11716 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11717 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11718 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11720 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11721 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11723 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11724 | fi |
| 11725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11726 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11727 | for ac_prog in gawk mawk nawk awk |
| 11728 | do |
| 11729 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11730 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11731 | { $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] | 11732 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11733 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11734 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11735 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11736 | if test -n "$AWK"; then |
| 11737 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11738 | else |
| 11739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11740 | for as_dir in $PATH |
| 11741 | do |
| 11742 | IFS=$as_save_IFS |
| 11743 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11745 | 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] | 11746 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11747 | $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] | 11748 | break 2 |
| 11749 | fi |
| 11750 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11751 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11752 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11754 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11755 | fi |
| 11756 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11757 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11759 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11760 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11762 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11763 | fi |
| 11764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11765 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11766 | test -n "$AWK" && break |
| 11767 | done |
| 11768 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11770 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11771 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11772 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11773 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11774 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11775 | then ac_cv_path_EGREP="$GREP -E" |
| 11776 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11777 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11778 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11779 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11781 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11782 | do |
| 11783 | IFS=$as_save_IFS |
| 11784 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11785 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11787 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11788 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11789 | # 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] | 11790 | # Check for GNU $ac_path_EGREP |
| 11791 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11792 | *GNU*) |
| 11793 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11794 | *) |
| 11795 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11796 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11797 | while : |
| 11798 | do |
| 11799 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11800 | mv "conftest.tmp" "conftest.in" |
| 11801 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11802 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11803 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11804 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11805 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11806 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11807 | # Best one so far, save it but keep looking for a better one |
| 11808 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11809 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11810 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11811 | # 10*(2^10) chars as input seems more than enough |
| 11812 | test $ac_count -gt 10 && break |
| 11813 | done |
| 11814 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11815 | esac |
| 11816 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11817 | $ac_path_EGREP_found && break 3 |
| 11818 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11819 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11820 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11821 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11822 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11823 | 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] | 11824 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11825 | else |
| 11826 | ac_cv_path_EGREP=$EGREP |
| 11827 | fi |
| 11828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11829 | fi |
| 11830 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11831 | { $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] | 11832 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11833 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11834 | |
| 11835 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11836 | # Extract the first word of "sed", so it can be a program name with args. |
| 11837 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11838 | { $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] | 11839 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11840 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11841 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11842 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11843 | case $SED in |
| 11844 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11845 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11846 | ;; |
| 11847 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11849 | for as_dir in $PATH |
| 11850 | do |
| 11851 | IFS=$as_save_IFS |
| 11852 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11853 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11854 | 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] | 11855 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11856 | $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] | 11857 | break 2 |
| 11858 | fi |
| 11859 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11860 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11861 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11862 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11863 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11864 | ;; |
| 11865 | esac |
| 11866 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11867 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11868 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11870 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11871 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11873 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11874 | fi |
| 11875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11876 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11877 | # Extract the first word of "perl", so it can be a program name with args. |
| 11878 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11879 | { $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] | 11880 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11881 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11882 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11883 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11884 | case $PERL in |
| 11885 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11886 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11887 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11888 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11890 | for as_dir in $PATH |
| 11891 | do |
| 11892 | IFS=$as_save_IFS |
| 11893 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11894 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11895 | 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] | 11896 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11897 | $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] | 11898 | break 2 |
| 11899 | fi |
| 11900 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11901 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11902 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11903 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11904 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11905 | ;; |
| 11906 | esac |
| 11907 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11908 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11909 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11911 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11912 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11914 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11915 | fi |
| 11916 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11917 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11918 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11919 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11920 | { $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] | 11921 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11922 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11923 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11924 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11925 | case $LDCONFIG in |
| 11926 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11927 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11928 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11929 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11931 | for as_dir in $PATH |
| 11932 | do |
| 11933 | IFS=$as_save_IFS |
| 11934 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11935 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11936 | 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] | 11937 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11938 | $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] | 11939 | break 2 |
| 11940 | fi |
| 11941 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11942 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11943 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11944 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11945 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11946 | ;; |
| 11947 | esac |
| 11948 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11949 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11950 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11952 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11953 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11955 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11956 | fi |
| 11957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11958 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11959 | if test -n "$ac_tool_prefix"; then |
| 11960 | # 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] | 11961 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11962 | { $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] | 11963 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11964 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11965 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11966 | else |
| 11967 | if test -n "$AR"; then |
| 11968 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11969 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11971 | for as_dir in $PATH |
| 11972 | do |
| 11973 | IFS=$as_save_IFS |
| 11974 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11975 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11976 | 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] | 11977 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11978 | $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] | 11979 | break 2 |
| 11980 | fi |
| 11981 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11982 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11983 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11984 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11985 | fi |
| 11986 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11987 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11988 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11990 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11991 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11993 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11994 | fi |
| 11995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11997 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11998 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11999 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12000 | # Extract the first word of "ar", so it can be a program name with args. |
| 12001 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12002 | { $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] | 12003 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12004 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12005 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12007 | if test -n "$ac_ct_AR"; then |
| 12008 | 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] | 12009 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12011 | for as_dir in $PATH |
| 12012 | do |
| 12013 | IFS=$as_save_IFS |
| 12014 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12015 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12016 | 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] | 12017 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12018 | $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] | 12019 | break 2 |
| 12020 | fi |
| 12021 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12022 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12023 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12024 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12025 | fi |
| 12026 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12027 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12028 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12029 | { $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] | 12030 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12031 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12033 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12034 | fi |
| 12035 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12036 | if test "x$ac_ct_AR" = x; then |
| 12037 | AR="ar" |
| 12038 | else |
| 12039 | case $cross_compiling:$ac_tool_warned in |
| 12040 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12041 | { $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] | 12042 | $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] | 12043 | ac_tool_warned=yes ;; |
| 12044 | esac |
| 12045 | AR=$ac_ct_AR |
| 12046 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12047 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12048 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12051 | if test -n "$ac_tool_prefix"; then |
| 12052 | # 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] | 12053 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12054 | { $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] | 12055 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12056 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12057 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12058 | else |
| 12059 | if test -n "$RANLIB"; then |
| 12060 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12061 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12063 | for as_dir in $PATH |
| 12064 | do |
| 12065 | IFS=$as_save_IFS |
| 12066 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12067 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12068 | 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] | 12069 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12070 | $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] | 12071 | break 2 |
| 12072 | fi |
| 12073 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12074 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12075 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12076 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12077 | fi |
| 12078 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12079 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12080 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12082 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12083 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12085 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12086 | fi |
| 12087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12088 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12089 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12090 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12091 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12092 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12093 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12094 | { $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] | 12095 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12096 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12097 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12098 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12099 | if test -n "$ac_ct_RANLIB"; then |
| 12100 | 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] | 12101 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12103 | for as_dir in $PATH |
| 12104 | do |
| 12105 | IFS=$as_save_IFS |
| 12106 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12107 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12108 | 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] | 12109 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12110 | $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] | 12111 | break 2 |
| 12112 | fi |
| 12113 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12114 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12115 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12116 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12117 | fi |
| 12118 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12119 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12120 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12121 | { $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] | 12122 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12123 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12125 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12126 | fi |
| 12127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | if test "x$ac_ct_RANLIB" = x; then |
| 12129 | RANLIB=":" |
| 12130 | else |
| 12131 | case $cross_compiling:$ac_tool_warned in |
| 12132 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12133 | { $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] | 12134 | $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] | 12135 | ac_tool_warned=yes ;; |
| 12136 | esac |
| 12137 | RANLIB=$ac_ct_RANLIB |
| 12138 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12140 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12141 | fi |
| 12142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12143 | if test -n "$ac_tool_prefix"; then |
| 12144 | # 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] | 12145 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12146 | { $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] | 12147 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12148 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12149 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12150 | else |
| 12151 | if test -n "$STRIP"; then |
| 12152 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12153 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12155 | for as_dir in $PATH |
| 12156 | do |
| 12157 | IFS=$as_save_IFS |
| 12158 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12159 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12160 | 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] | 12161 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12162 | $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] | 12163 | break 2 |
| 12164 | fi |
| 12165 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12166 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12167 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12168 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12169 | fi |
| 12170 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12171 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12172 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12174 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12175 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12177 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12178 | fi |
| 12179 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12180 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12181 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12182 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12183 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12184 | # Extract the first word of "strip", so it can be a program name with args. |
| 12185 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12186 | { $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] | 12187 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12188 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12189 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12190 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12191 | if test -n "$ac_ct_STRIP"; then |
| 12192 | 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] | 12193 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12195 | for as_dir in $PATH |
| 12196 | do |
| 12197 | IFS=$as_save_IFS |
| 12198 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12199 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12200 | 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] | 12201 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12202 | $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] | 12203 | break 2 |
| 12204 | fi |
| 12205 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12206 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12207 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12208 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12209 | fi |
| 12210 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12211 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12212 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12213 | { $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] | 12214 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12215 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12217 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12218 | fi |
| 12219 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12220 | if test "x$ac_ct_STRIP" = x; then |
| 12221 | STRIP=":" |
| 12222 | else |
| 12223 | case $cross_compiling:$ac_tool_warned in |
| 12224 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12225 | { $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] | 12226 | $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] | 12227 | ac_tool_warned=yes ;; |
| 12228 | esac |
| 12229 | STRIP=$ac_ct_STRIP |
| 12230 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12231 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12233 | fi |
| 12234 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12235 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12236 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12237 | { $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] | 12238 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12239 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12240 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12241 | else |
| 12242 | if test -n "$MAKEINFO"; then |
| 12243 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12244 | else |
| 12245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12246 | for as_dir in $PATH |
| 12247 | do |
| 12248 | IFS=$as_save_IFS |
| 12249 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12251 | 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] | 12252 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12253 | $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] | 12254 | break 2 |
| 12255 | fi |
| 12256 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12257 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12258 | IFS=$as_save_IFS |
| 12259 | |
| 12260 | fi |
| 12261 | fi |
| 12262 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12263 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12265 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12266 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12268 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12269 | fi |
| 12270 | |
| 12271 | |
| 12272 | if test "_$MAKEINFO" = "_"; then |
| 12273 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12274 | else |
| 12275 | case "$MAKEINFO" in |
| 12276 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12278 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12279 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12280 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12281 | ;; |
| 12282 | *) |
| 12283 | ;; |
| 12284 | esac |
| 12285 | fi |
| 12286 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12287 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12288 | # See if we need a separate native compiler. |
| 12289 | if test $cross_compiling = no; then |
| 12290 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12291 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12292 | else |
| 12293 | for ac_prog in gcc cc |
| 12294 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12295 | # 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] | 12296 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12297 | { $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] | 12298 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12299 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12300 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12301 | else |
| 12302 | if test -n "$BUILD_CC"; then |
| 12303 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12304 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12306 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12307 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12308 | IFS=$as_save_IFS |
| 12309 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12310 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12311 | 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] | 12312 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12313 | $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] | 12314 | break 2 |
| 12315 | fi |
| 12316 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12317 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12318 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12319 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12320 | fi |
| 12321 | fi |
| 12322 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12323 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12325 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12326 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12328 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12329 | fi |
| 12330 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12331 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12332 | test -n "$BUILD_CC" && break |
| 12333 | done |
| 12334 | |
| 12335 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 12336 | 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 attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.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] | 12337 | do : |
| 12338 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12339 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12340 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12341 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12342 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12343 | _ACEOF |
| 12344 | |
| 12345 | fi |
| 12346 | |
| 12347 | done |
| 12348 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12349 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12350 | do : |
| 12351 | 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] | 12352 | #if HAVE_SYS_TYPES_H |
| 12353 | #include <sys/types.h> |
| 12354 | #endif |
| 12355 | #if HAVE_SYS_SOCKET |
| 12356 | #include <sys/socket.h> |
| 12357 | #endif |
| 12358 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12359 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12360 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12361 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12362 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12363 | _ACEOF |
| 12364 | |
| 12365 | fi |
| 12366 | |
| 12367 | done |
| 12368 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12369 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12370 | do : |
| 12371 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12372 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12373 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12374 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12375 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12376 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12377 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12378 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12379 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12380 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12381 | |
| 12382 | fi |
| 12383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12384 | fi |
| 12385 | done |
| 12386 | |
| 12387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12388 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12389 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12390 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12391 | |
| 12392 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12393 | |
| 12394 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12395 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12396 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12397 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12398 | |
| 12399 | cat >>confdefs.h <<_ACEOF |
| 12400 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12401 | _ACEOF |
| 12402 | |
| 12403 | |
| 12404 | fi |
| 12405 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12406 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12407 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12408 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12409 | |
| 12410 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12411 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12412 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12413 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12414 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12415 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12416 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12417 | |
| 12418 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12419 | |
| 12420 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12421 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12422 | 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] | 12423 | #define _LARGEFILE64_SOURCE |
| 12424 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12425 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12426 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12427 | |
| 12428 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12429 | |
| 12430 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12431 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12432 | # The cast to long int works around a bug in the HP C Compiler |
| 12433 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12434 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12435 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12436 | { $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] | 12437 | $as_echo_n "checking size of short... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12438 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12439 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12440 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12441 | 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] | 12442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12443 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12444 | if test "$ac_cv_type_short" = yes; then |
| 12445 | { { $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] | 12446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12447 | as_fn_error 77 "cannot compute sizeof (short) |
| 12448 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12449 | else |
| 12450 | ac_cv_sizeof_short=0 |
| 12451 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12452 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12453 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12454 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12455 | { $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] | 12456 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12457 | |
| 12458 | |
| 12459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12460 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12461 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12462 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12463 | |
| 12464 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12465 | # The cast to long int works around a bug in the HP C Compiler |
| 12466 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12467 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12468 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12469 | { $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] | 12470 | $as_echo_n "checking size of int... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12471 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12472 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12473 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12474 | 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] | 12475 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12477 | if test "$ac_cv_type_int" = yes; then |
| 12478 | { { $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] | 12479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12480 | as_fn_error 77 "cannot compute sizeof (int) |
| 12481 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12482 | else |
| 12483 | ac_cv_sizeof_int=0 |
| 12484 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12485 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12487 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12488 | { $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] | 12489 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12490 | |
| 12491 | |
| 12492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12493 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12494 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12495 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12496 | |
| 12497 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12498 | # The cast to long int works around a bug in the HP C Compiler |
| 12499 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12500 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12501 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12502 | { $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] | 12503 | $as_echo_n "checking size of long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12504 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12505 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12506 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12507 | 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] | 12508 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12509 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12510 | if test "$ac_cv_type_long" = yes; then |
| 12511 | { { $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] | 12512 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12513 | as_fn_error 77 "cannot compute sizeof (long) |
| 12514 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12515 | else |
| 12516 | ac_cv_sizeof_long=0 |
| 12517 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12518 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12520 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12521 | { $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] | 12522 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12523 | |
| 12524 | |
| 12525 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12526 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12527 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12528 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12529 | |
| 12530 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12531 | # The cast to long int works around a bug in the HP C Compiler |
| 12532 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12533 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12534 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12535 | { $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] | 12536 | $as_echo_n "checking size of long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12537 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12538 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12540 | 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] | 12541 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12542 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12543 | if test "$ac_cv_type_long_long" = yes; then |
| 12544 | { { $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] | 12545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12546 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12547 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12548 | else |
| 12549 | ac_cv_sizeof_long_long=0 |
| 12550 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12551 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12552 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12553 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12554 | { $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] | 12555 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12556 | |
| 12557 | |
| 12558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12560 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12561 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12562 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12563 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12564 | # The cast to long int works around a bug in the HP C Compiler |
| 12565 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12566 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12567 | # This bug is HP SR number 8606223364. |
| 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12569 | $as_echo_n "checking size of off_t... " >&6; } |
| 12570 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12571 | $as_echo_n "(cached) " >&6 |
| 12572 | else |
| 12573 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12574 | |
| 12575 | else |
| 12576 | if test "$ac_cv_type_off_t" = yes; then |
| 12577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12579 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12580 | See \`config.log' for more details" "$LINENO" 5; } |
| 12581 | else |
| 12582 | ac_cv_sizeof_off_t=0 |
| 12583 | fi |
| 12584 | fi |
| 12585 | |
| 12586 | fi |
| 12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12588 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12589 | |
| 12590 | |
| 12591 | |
| 12592 | cat >>confdefs.h <<_ACEOF |
| 12593 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12594 | _ACEOF |
| 12595 | |
| 12596 | |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame^] | 12597 | # The cast to long int works around a bug in the HP C Compiler |
| 12598 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12599 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12600 | # This bug is HP SR number 8606223364. |
| 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 12602 | $as_echo_n "checking size of time_t... " >&6; } |
| 12603 | if ${ac_cv_sizeof_time_t+:} false; then : |
| 12604 | $as_echo_n "(cached) " >&6 |
| 12605 | else |
| 12606 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : |
| 12607 | |
| 12608 | else |
| 12609 | if test "$ac_cv_type_time_t" = yes; then |
| 12610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12612 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 12613 | See \`config.log' for more details" "$LINENO" 5; } |
| 12614 | else |
| 12615 | ac_cv_sizeof_time_t=0 |
| 12616 | fi |
| 12617 | fi |
| 12618 | |
| 12619 | fi |
| 12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 12621 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
| 12622 | |
| 12623 | |
| 12624 | |
| 12625 | cat >>confdefs.h <<_ACEOF |
| 12626 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 12627 | _ACEOF |
| 12628 | |
| 12629 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12630 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12631 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12632 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12633 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12634 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
Theodore Ts'o | 2dd680f | 2016-05-29 01:07:40 -0400 | [diff] [blame^] | 12635 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
| 12636 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12637 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12638 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12639 | |
| 12640 | |
| 12641 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12642 | { $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] | 12643 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12644 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12645 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12646 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12647 | ac_cv_c_bigendian=unknown |
| 12648 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12650 | /* end confdefs.h. */ |
| 12651 | #ifndef __APPLE_CC__ |
| 12652 | not a universal capable compiler |
| 12653 | #endif |
| 12654 | typedef int dummy; |
| 12655 | |
| 12656 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12657 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12658 | |
| 12659 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12660 | # there are at least two -arch flags with different values. |
| 12661 | ac_arch= |
| 12662 | ac_prev= |
| 12663 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12664 | if test -n "$ac_prev"; then |
| 12665 | case $ac_word in |
| 12666 | i?86 | x86_64 | ppc | ppc64) |
| 12667 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12668 | ac_arch=$ac_word |
| 12669 | else |
| 12670 | ac_cv_c_bigendian=universal |
| 12671 | break |
| 12672 | fi |
| 12673 | ;; |
| 12674 | esac |
| 12675 | ac_prev= |
| 12676 | elif test "x$ac_word" = "x-arch"; then |
| 12677 | ac_prev=arch |
| 12678 | fi |
| 12679 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12680 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12682 | if test $ac_cv_c_bigendian = unknown; then |
| 12683 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12685 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12686 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12687 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12688 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12689 | int |
| 12690 | main () |
| 12691 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12692 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12693 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12694 | && LITTLE_ENDIAN) |
| 12695 | bogus endian macros |
| 12696 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12697 | |
| 12698 | ; |
| 12699 | return 0; |
| 12700 | } |
| 12701 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12702 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12703 | # 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] | 12704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12705 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12706 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12707 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12708 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12709 | int |
| 12710 | main () |
| 12711 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12712 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12713 | not big endian |
| 12714 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12715 | |
| 12716 | ; |
| 12717 | return 0; |
| 12718 | } |
| 12719 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12720 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12721 | ac_cv_c_bigendian=yes |
| 12722 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12723 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12724 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12726 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12728 | fi |
| 12729 | if test $ac_cv_c_bigendian = unknown; then |
| 12730 | # 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] | 12731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12732 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12733 | #include <limits.h> |
| 12734 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12735 | int |
| 12736 | main () |
| 12737 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12738 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12739 | bogus endian macros |
| 12740 | #endif |
| 12741 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12742 | ; |
| 12743 | return 0; |
| 12744 | } |
| 12745 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12746 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12747 | # 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] | 12748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12749 | /* end confdefs.h. */ |
| 12750 | #include <limits.h> |
| 12751 | |
| 12752 | int |
| 12753 | main () |
| 12754 | { |
| 12755 | #ifndef _BIG_ENDIAN |
| 12756 | not big endian |
| 12757 | #endif |
| 12758 | |
| 12759 | ; |
| 12760 | return 0; |
| 12761 | } |
| 12762 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12763 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12764 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12765 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12766 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12767 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12769 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12771 | fi |
| 12772 | if test $ac_cv_c_bigendian = unknown; then |
| 12773 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12774 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12775 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12777 | /* end confdefs.h. */ |
| 12778 | short int ascii_mm[] = |
| 12779 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12780 | short int ascii_ii[] = |
| 12781 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12782 | int use_ascii (int i) { |
| 12783 | return ascii_mm[i] + ascii_ii[i]; |
| 12784 | } |
| 12785 | short int ebcdic_ii[] = |
| 12786 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12787 | short int ebcdic_mm[] = |
| 12788 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12789 | int use_ebcdic (int i) { |
| 12790 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12791 | } |
| 12792 | extern int foo; |
| 12793 | |
| 12794 | int |
| 12795 | main () |
| 12796 | { |
| 12797 | return use_ascii (foo) == use_ebcdic (foo); |
| 12798 | ; |
| 12799 | return 0; |
| 12800 | } |
| 12801 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12802 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12803 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12804 | ac_cv_c_bigendian=yes |
| 12805 | fi |
| 12806 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12807 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12808 | ac_cv_c_bigendian=no |
| 12809 | else |
| 12810 | # finding both strings is unlikely to happen, but who knows? |
| 12811 | ac_cv_c_bigendian=unknown |
| 12812 | fi |
| 12813 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12814 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12816 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12818 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12819 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | int |
| 12821 | main () |
| 12822 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12823 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12824 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12825 | union |
| 12826 | { |
| 12827 | long int l; |
| 12828 | char c[sizeof (long int)]; |
| 12829 | } u; |
| 12830 | u.l = 1; |
| 12831 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12832 | |
| 12833 | ; |
| 12834 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12835 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12836 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12837 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12838 | ac_cv_c_bigendian=no |
| 12839 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12840 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12841 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12843 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12844 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12845 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12846 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12847 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12848 | { $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] | 12849 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12850 | case $ac_cv_c_bigendian in #( |
| 12851 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12852 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12853 | ;; #( |
| 12854 | no) |
| 12855 | ;; #( |
| 12856 | universal) |
| 12857 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12858 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12859 | |
| 12860 | ;; #( |
| 12861 | *) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12862 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12863 | 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] | 12864 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12865 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12866 | if test $cross_compiling = no; then |
| 12867 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12868 | else |
| 12869 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12870 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12871 | ASM_TYPES_HEADER=./asm_types.h |
| 12872 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 12873 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 12874 | > public_config.h |
| 12875 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 12876 | uniq tmp_config.$$ >> public_config.h |
| 12877 | else |
| 12878 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 12879 | fi |
| 12880 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 12881 | uniq tmp_config.$$ >> public_config.h |
| 12882 | else |
| 12883 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 12884 | fi |
| 12885 | rm -f tmp_config.$$ |
| 12886 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 12887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12888 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12889 | do : |
| 12890 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12891 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12892 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12893 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12894 | _ACEOF |
| 12895 | |
| 12896 | fi |
| 12897 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 12898 | done |
| 12899 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12900 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12901 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12902 | |
| 12903 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12904 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12905 | _ACEOF |
| 12906 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12908 | fi |
| 12909 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12910 | { $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] | 12911 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12912 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12913 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12914 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12916 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12917 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12918 | int |
| 12919 | main () |
| 12920 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12921 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12922 | ; |
| 12923 | return 0; |
| 12924 | } |
| 12925 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12926 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12927 | e2fsprogs_cv_struct_st_flags=yes |
| 12928 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12929 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12930 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12932 | fi |
| 12933 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12934 | { $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] | 12935 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12936 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12937 | { $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] | 12938 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12939 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12940 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12941 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12944 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12945 | int |
| 12946 | main () |
| 12947 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12948 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12949 | ; |
| 12950 | return 0; |
| 12951 | } |
| 12952 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12953 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12954 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 12955 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12956 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12957 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12959 | fi |
| 12960 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12961 | { $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] | 12962 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12963 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12964 | |
| 12965 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12966 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12967 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12968 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12969 | 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] | 12970 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12971 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12972 | 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] | 12973 | |
| 12974 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12975 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12976 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12977 | |
| 12978 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12979 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12980 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12981 | { $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] | 12982 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12983 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12984 | $as_echo_n "(cached) " >&6 |
| 12985 | else |
| 12986 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12988 | /* end confdefs.h. */ |
| 12989 | |
| 12990 | /* Override any GCC internal prototype to avoid an error. |
| 12991 | Use char because int might match the return type of a GCC |
| 12992 | builtin and then its argument prototype would still apply. */ |
| 12993 | #ifdef __cplusplus |
| 12994 | extern "C" |
| 12995 | #endif |
| 12996 | char blkid_probe_all (); |
| 12997 | int |
| 12998 | main () |
| 12999 | { |
| 13000 | return blkid_probe_all (); |
| 13001 | ; |
| 13002 | return 0; |
| 13003 | } |
| 13004 | _ACEOF |
| 13005 | for ac_lib in '' blkid; do |
| 13006 | if test -z "$ac_lib"; then |
| 13007 | ac_res="none required" |
| 13008 | else |
| 13009 | ac_res=-l$ac_lib |
| 13010 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13011 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13012 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13013 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13014 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13015 | rm -f core conftest.err conftest.$ac_objext \ |
| 13016 | conftest$ac_exeext |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13017 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13018 | break |
| 13019 | fi |
| 13020 | done |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13021 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13022 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13023 | else |
| 13024 | ac_cv_search_blkid_probe_all=no |
| 13025 | fi |
| 13026 | rm conftest.$ac_ext |
| 13027 | LIBS=$ac_func_search_save_LIBS |
| 13028 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13029 | { $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] | 13030 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 13031 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13032 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13033 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13034 | |
| 13035 | fi |
| 13036 | |
| 13037 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 13038 | for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13039 | do : |
| 13040 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13041 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13042 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13043 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13044 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13045 | _ACEOF |
| 13046 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13047 | fi |
| 13048 | done |
| 13049 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13050 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13051 | { $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] | 13052 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13053 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13054 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13055 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13056 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13057 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13059 | /* end confdefs.h. */ |
| 13060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13061 | /* Override any GCC internal prototype to avoid an error. |
| 13062 | Use char because int might match the return type of a GCC |
| 13063 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13064 | #ifdef __cplusplus |
| 13065 | extern "C" |
| 13066 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13067 | char socket (); |
| 13068 | int |
| 13069 | main () |
| 13070 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13071 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13072 | ; |
| 13073 | return 0; |
| 13074 | } |
| 13075 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13076 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13077 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13078 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13079 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13080 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13081 | rm -f core conftest.err conftest.$ac_objext \ |
| 13082 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13083 | LIBS=$ac_check_lib_save_LIBS |
| 13084 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13085 | { $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] | 13086 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13087 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13088 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13089 | fi |
| 13090 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13091 | |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
| 13093 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } |
| 13094 | if ${ac_cv_lib_magic_magic_file+:} false; then : |
| 13095 | $as_echo_n "(cached) " >&6 |
| 13096 | else |
| 13097 | ac_check_lib_save_LIBS=$LIBS |
| 13098 | LIBS="-lmagic $LIBS" |
| 13099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13100 | /* end confdefs.h. */ |
| 13101 | |
| 13102 | /* Override any GCC internal prototype to avoid an error. |
| 13103 | Use char because int might match the return type of a GCC |
| 13104 | builtin and then its argument prototype would still apply. */ |
| 13105 | #ifdef __cplusplus |
| 13106 | extern "C" |
| 13107 | #endif |
| 13108 | char magic_file (); |
| 13109 | int |
| 13110 | main () |
| 13111 | { |
| 13112 | return magic_file (); |
| 13113 | ; |
| 13114 | return 0; |
| 13115 | } |
| 13116 | _ACEOF |
| 13117 | if ac_fn_c_try_link "$LINENO"; then : |
| 13118 | ac_cv_lib_magic_magic_file=yes |
| 13119 | else |
| 13120 | ac_cv_lib_magic_magic_file=no |
| 13121 | fi |
| 13122 | rm -f core conftest.err conftest.$ac_objext \ |
| 13123 | conftest$ac_exeext conftest.$ac_ext |
| 13124 | LIBS=$ac_check_lib_save_LIBS |
| 13125 | fi |
| 13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
| 13127 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } |
| 13128 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : |
| 13129 | MAGIC_LIB=-lmagic |
| 13130 | for ac_header in magic.h |
| 13131 | do : |
| 13132 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
| 13133 | if test "x$ac_cv_header_magic_h" = xyes; then : |
| 13134 | cat >>confdefs.h <<_ACEOF |
| 13135 | #define HAVE_MAGIC_H 1 |
| 13136 | _ACEOF |
| 13137 | |
| 13138 | fi |
| 13139 | |
| 13140 | done |
| 13141 | |
| 13142 | fi |
| 13143 | |
Theodore Ts'o | d2e3c0d | 2014-09-21 01:25:58 -0400 | [diff] [blame] | 13144 | if test "$ac_cv_lib_dl_dlopen" = yes ; then |
| 13145 | MAGIC_LIB=$DLOPEN_LIB |
| 13146 | fi |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13147 | |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 13148 | FUSE_CMT= |
| 13149 | FUSE_LIB= |
| 13150 | # Check whether --enable-fuse2fs was given. |
| 13151 | if test "${enable_fuse2fs+set}" = set; then : |
| 13152 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
| 13153 | then |
| 13154 | FUSE_CMT="#" |
| 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
| 13156 | $as_echo "Disabling fuse2fs" >&6; } |
| 13157 | else |
| 13158 | for ac_header in pthread.h fuse.h |
| 13159 | do : |
| 13160 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13161 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13162 | #define FUSE_USE_VERSION 29 |
| 13163 | " |
| 13164 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13165 | cat >>confdefs.h <<_ACEOF |
| 13166 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13167 | _ACEOF |
| 13168 | |
| 13169 | else |
| 13170 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13171 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13172 | as_fn_error $? "Cannot find fuse2fs headers. |
| 13173 | See \`config.log' for more details" "$LINENO" 5; } |
| 13174 | fi |
| 13175 | |
| 13176 | done |
| 13177 | |
| 13178 | |
| 13179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13180 | /* end confdefs.h. */ |
| 13181 | #define FUSE_USE_VERSION 29 |
| 13182 | #ifdef __linux__ |
| 13183 | #include <linux/fs.h> |
| 13184 | #include <linux/falloc.h> |
| 13185 | #include <linux/xattr.h> |
| 13186 | #endif |
| 13187 | |
| 13188 | int |
| 13189 | main () |
| 13190 | { |
| 13191 | |
| 13192 | ; |
| 13193 | return 0; |
| 13194 | } |
| 13195 | _ACEOF |
| 13196 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 13197 | |
| 13198 | else |
| 13199 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13200 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13201 | as_fn_error $? "Cannot find fuse2fs Linux headers. |
| 13202 | See \`config.log' for more details" "$LINENO" 5; } |
| 13203 | fi |
| 13204 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13205 | |
| 13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13207 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13208 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13209 | $as_echo_n "(cached) " >&6 |
| 13210 | else |
| 13211 | ac_check_lib_save_LIBS=$LIBS |
| 13212 | LIBS="-losxfuse $LIBS" |
| 13213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13214 | /* end confdefs.h. */ |
| 13215 | |
| 13216 | /* Override any GCC internal prototype to avoid an error. |
| 13217 | Use char because int might match the return type of a GCC |
| 13218 | builtin and then its argument prototype would still apply. */ |
| 13219 | #ifdef __cplusplus |
| 13220 | extern "C" |
| 13221 | #endif |
| 13222 | char fuse_main (); |
| 13223 | int |
| 13224 | main () |
| 13225 | { |
| 13226 | return fuse_main (); |
| 13227 | ; |
| 13228 | return 0; |
| 13229 | } |
| 13230 | _ACEOF |
| 13231 | if ac_fn_c_try_link "$LINENO"; then : |
| 13232 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13233 | else |
| 13234 | ac_cv_lib_osxfuse_fuse_main=no |
| 13235 | fi |
| 13236 | rm -f core conftest.err conftest.$ac_objext \ |
| 13237 | conftest$ac_exeext conftest.$ac_ext |
| 13238 | LIBS=$ac_check_lib_save_LIBS |
| 13239 | fi |
| 13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13241 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13242 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13243 | FUSE_LIB=-losxfuse |
| 13244 | else |
| 13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13246 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13247 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13248 | $as_echo_n "(cached) " >&6 |
| 13249 | else |
| 13250 | ac_check_lib_save_LIBS=$LIBS |
| 13251 | LIBS="-lfuse $LIBS" |
| 13252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13253 | /* end confdefs.h. */ |
| 13254 | |
| 13255 | /* Override any GCC internal prototype to avoid an error. |
| 13256 | Use char because int might match the return type of a GCC |
| 13257 | builtin and then its argument prototype would still apply. */ |
| 13258 | #ifdef __cplusplus |
| 13259 | extern "C" |
| 13260 | #endif |
| 13261 | char fuse_main (); |
| 13262 | int |
| 13263 | main () |
| 13264 | { |
| 13265 | return fuse_main (); |
| 13266 | ; |
| 13267 | return 0; |
| 13268 | } |
| 13269 | _ACEOF |
| 13270 | if ac_fn_c_try_link "$LINENO"; then : |
| 13271 | ac_cv_lib_fuse_fuse_main=yes |
| 13272 | else |
| 13273 | ac_cv_lib_fuse_fuse_main=no |
| 13274 | fi |
| 13275 | rm -f core conftest.err conftest.$ac_objext \ |
| 13276 | conftest$ac_exeext conftest.$ac_ext |
| 13277 | LIBS=$ac_check_lib_save_LIBS |
| 13278 | fi |
| 13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13280 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13281 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13282 | FUSE_LIB=-lfuse |
| 13283 | else |
| 13284 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13285 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13286 | as_fn_error $? "Cannot find fuse library. |
| 13287 | See \`config.log' for more details" "$LINENO" 5; } |
| 13288 | fi |
| 13289 | |
| 13290 | fi |
| 13291 | |
| 13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
| 13293 | $as_echo "Enabling fuse2fs" >&6; } |
| 13294 | fi |
| 13295 | |
| 13296 | else |
| 13297 | for ac_header in pthread.h fuse.h |
| 13298 | do : |
| 13299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13300 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13301 | #define FUSE_USE_VERSION 29 |
| 13302 | #ifdef __linux__ |
| 13303 | # include <linux/fs.h> |
| 13304 | # include <linux/falloc.h> |
| 13305 | # include <linux/xattr.h> |
| 13306 | #endif |
| 13307 | " |
| 13308 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13309 | cat >>confdefs.h <<_ACEOF |
| 13310 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13311 | _ACEOF |
| 13312 | |
| 13313 | else |
| 13314 | FUSE_CMT="#" |
| 13315 | fi |
| 13316 | |
| 13317 | done |
| 13318 | |
| 13319 | if test -z "$FUSE_CMT" |
| 13320 | then |
| 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13322 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13323 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13324 | $as_echo_n "(cached) " >&6 |
| 13325 | else |
| 13326 | ac_check_lib_save_LIBS=$LIBS |
| 13327 | LIBS="-losxfuse $LIBS" |
| 13328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13329 | /* end confdefs.h. */ |
| 13330 | |
| 13331 | /* Override any GCC internal prototype to avoid an error. |
| 13332 | Use char because int might match the return type of a GCC |
| 13333 | builtin and then its argument prototype would still apply. */ |
| 13334 | #ifdef __cplusplus |
| 13335 | extern "C" |
| 13336 | #endif |
| 13337 | char fuse_main (); |
| 13338 | int |
| 13339 | main () |
| 13340 | { |
| 13341 | return fuse_main (); |
| 13342 | ; |
| 13343 | return 0; |
| 13344 | } |
| 13345 | _ACEOF |
| 13346 | if ac_fn_c_try_link "$LINENO"; then : |
| 13347 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13348 | else |
| 13349 | ac_cv_lib_osxfuse_fuse_main=no |
| 13350 | fi |
| 13351 | rm -f core conftest.err conftest.$ac_objext \ |
| 13352 | conftest$ac_exeext conftest.$ac_ext |
| 13353 | LIBS=$ac_check_lib_save_LIBS |
| 13354 | fi |
| 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13356 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13357 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13358 | FUSE_LIB=-losxfuse |
| 13359 | else |
| 13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13361 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13362 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13363 | $as_echo_n "(cached) " >&6 |
| 13364 | else |
| 13365 | ac_check_lib_save_LIBS=$LIBS |
| 13366 | LIBS="-lfuse $LIBS" |
| 13367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13368 | /* end confdefs.h. */ |
| 13369 | |
| 13370 | /* Override any GCC internal prototype to avoid an error. |
| 13371 | Use char because int might match the return type of a GCC |
| 13372 | builtin and then its argument prototype would still apply. */ |
| 13373 | #ifdef __cplusplus |
| 13374 | extern "C" |
| 13375 | #endif |
| 13376 | char fuse_main (); |
| 13377 | int |
| 13378 | main () |
| 13379 | { |
| 13380 | return fuse_main (); |
| 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
| 13385 | if ac_fn_c_try_link "$LINENO"; then : |
| 13386 | ac_cv_lib_fuse_fuse_main=yes |
| 13387 | else |
| 13388 | ac_cv_lib_fuse_fuse_main=no |
| 13389 | fi |
| 13390 | rm -f core conftest.err conftest.$ac_objext \ |
| 13391 | conftest$ac_exeext conftest.$ac_ext |
| 13392 | LIBS=$ac_check_lib_save_LIBS |
| 13393 | fi |
| 13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13395 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13396 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13397 | FUSE_LIB=-lfuse |
| 13398 | else |
| 13399 | FUSE_CMT="#" |
| 13400 | fi |
| 13401 | |
| 13402 | fi |
| 13403 | |
| 13404 | fi |
| 13405 | if test -z "$FUSE_CMT" |
| 13406 | then |
| 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
| 13408 | $as_echo "Enabling fuse2fs by default." >&6; } |
| 13409 | fi |
| 13410 | |
| 13411 | fi |
| 13412 | |
| 13413 | |
| 13414 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13416 | $as_echo_n "checking for optreset... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13417 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13418 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13421 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13422 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13423 | |
| 13424 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13426 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13427 | ac_cv_have_optreset=yes |
| 13428 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13429 | ac_cv_have_optreset=no |
| 13430 | fi |
| 13431 | rm -f conftest* |
| 13432 | |
| 13433 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13434 | { $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] | 13435 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13436 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13437 | |
| 13438 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13439 | |
| 13440 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13441 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13442 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13443 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13444 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13445 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13446 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13447 | { $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] | 13448 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13449 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13450 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13451 | else |
| 13452 | ac_check_lib_save_LIBS=$LIBS |
| 13453 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13455 | /* end confdefs.h. */ |
| 13456 | |
| 13457 | /* Override any GCC internal prototype to avoid an error. |
| 13458 | Use char because int might match the return type of a GCC |
| 13459 | builtin and then its argument prototype would still apply. */ |
| 13460 | #ifdef __cplusplus |
| 13461 | extern "C" |
| 13462 | #endif |
| 13463 | char sem_init (); |
| 13464 | int |
| 13465 | main () |
| 13466 | { |
| 13467 | return sem_init (); |
| 13468 | ; |
| 13469 | return 0; |
| 13470 | } |
| 13471 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13472 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13473 | ac_cv_lib_pthread_sem_init=yes |
| 13474 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13475 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13476 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13477 | rm -f core conftest.err conftest.$ac_objext \ |
| 13478 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13479 | LIBS=$ac_check_lib_save_LIBS |
| 13480 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13481 | { $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] | 13482 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13483 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13484 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13485 | |
| 13486 | SEM_INIT_LIB=-lpthread |
| 13487 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13488 | { $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] | 13489 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13490 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13491 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13492 | else |
| 13493 | ac_check_lib_save_LIBS=$LIBS |
| 13494 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13496 | /* end confdefs.h. */ |
| 13497 | |
| 13498 | /* Override any GCC internal prototype to avoid an error. |
| 13499 | Use char because int might match the return type of a GCC |
| 13500 | builtin and then its argument prototype would still apply. */ |
| 13501 | #ifdef __cplusplus |
| 13502 | extern "C" |
| 13503 | #endif |
| 13504 | char sem_init (); |
| 13505 | int |
| 13506 | main () |
| 13507 | { |
| 13508 | return sem_init (); |
| 13509 | ; |
| 13510 | return 0; |
| 13511 | } |
| 13512 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13513 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13514 | ac_cv_lib_rt_sem_init=yes |
| 13515 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13516 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13517 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13518 | rm -f core conftest.err conftest.$ac_objext \ |
| 13519 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13520 | LIBS=$ac_check_lib_save_LIBS |
| 13521 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13522 | { $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] | 13523 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13524 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13525 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13526 | |
| 13527 | SEM_INIT_LIB=-lrt |
| 13528 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13529 | { $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] | 13530 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13531 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13532 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13533 | else |
| 13534 | ac_check_lib_save_LIBS=$LIBS |
| 13535 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13537 | /* end confdefs.h. */ |
| 13538 | |
| 13539 | /* Override any GCC internal prototype to avoid an error. |
| 13540 | Use char because int might match the return type of a GCC |
| 13541 | builtin and then its argument prototype would still apply. */ |
| 13542 | #ifdef __cplusplus |
| 13543 | extern "C" |
| 13544 | #endif |
| 13545 | char sem_init (); |
| 13546 | int |
| 13547 | main () |
| 13548 | { |
| 13549 | return sem_init (); |
| 13550 | ; |
| 13551 | return 0; |
| 13552 | } |
| 13553 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13554 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13555 | ac_cv_lib_posix4_sem_init=yes |
| 13556 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13557 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13558 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13559 | rm -f core conftest.err conftest.$ac_objext \ |
| 13560 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13561 | LIBS=$ac_check_lib_save_LIBS |
| 13562 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13563 | { $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] | 13564 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13565 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13566 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13567 | |
| 13568 | SEM_INIT_LIB=-lposix4 |
| 13569 | fi |
| 13570 | |
| 13571 | fi |
| 13572 | |
| 13573 | fi |
| 13574 | |
| 13575 | fi |
| 13576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13577 | { $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] | 13578 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13579 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13580 | UNI_DIFF_OPTS=-u |
| 13581 | else |
| 13582 | UNI_DIFF_OPTS=-c |
| 13583 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13584 | { $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] | 13585 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13586 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13587 | case "$host_os" in |
| 13588 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13589 | |
| 13590 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13591 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13592 | ;; |
| 13593 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13594 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13595 | CYGWIN_CMT="#" |
| 13596 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13597 | case "$host_os" in |
| 13598 | linux*) |
| 13599 | LINUX_CMT= |
| 13600 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13601 | cygwin) |
| 13602 | CYGWIN_CMT= |
| 13603 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13604 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13605 | esac |
| 13606 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13607 | |
| 13608 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13609 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13610 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13611 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13612 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13613 | { $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] | 13614 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13615 | fi |
| 13616 | ;; |
| 13617 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13618 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13619 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13620 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13621 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13622 | { $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] | 13623 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13624 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13625 | { $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] | 13626 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13627 | mandir=/usr/share/man |
| 13628 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13629 | fi |
| 13630 | ;; |
| 13631 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13632 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13633 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13634 | root_prefix="$ac_default_prefix" |
| 13635 | else |
| 13636 | root_prefix="$prefix" |
| 13637 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13638 | root_bindir=$bindir |
| 13639 | root_sbindir=$sbindir |
| 13640 | root_libdir=$libdir |
| 13641 | root_sysconfdir=$sysconfdir |
| 13642 | else |
| 13643 | root_bindir='${root_prefix}/bin' |
| 13644 | root_sbindir='${root_prefix}/sbin' |
| 13645 | root_libdir='${root_prefix}/lib' |
| 13646 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13647 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13648 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13649 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13650 | { $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] | 13651 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13652 | fi |
| 13653 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13654 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13655 | { $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] | 13656 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13657 | fi |
| 13658 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13659 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13660 | { $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] | 13661 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13662 | fi |
| 13663 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13664 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13665 | { $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] | 13666 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13667 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13668 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13669 | |
| 13670 | |
| 13671 | |
| 13672 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13673 | |
| 13674 | # Check whether --with-multiarch was given. |
| 13675 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13676 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13677 | libdir=/usr/lib64 |
| 13678 | root_libdir=/lib64 |
| 13679 | else |
| 13680 | libdir=$libdir/$withval |
| 13681 | root_libdir=$root_libdir/$withval |
| 13682 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13683 | |
| 13684 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13686 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13687 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13688 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13689 | else |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13690 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13692 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13693 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13694 | int |
| 13695 | main () |
| 13696 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13697 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13698 | ; |
| 13699 | return 0; |
| 13700 | } |
| 13701 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13702 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13703 | ac_cv_e2fsprogs_use_static=yes |
| 13704 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13705 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13706 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13707 | rm -f core conftest.err conftest.$ac_objext \ |
| 13708 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13709 | LDFLAGS=$SAVE_LDFLAGS |
| 13710 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13711 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13712 | case "$host_os" in |
| 13713 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13714 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13715 | ;; |
| 13716 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13717 | { $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] | 13718 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13719 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13720 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13721 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13722 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13723 | case "$host_os" in |
| 13724 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13725 | { $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] | 13726 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13727 | |
| 13728 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13729 | |
| 13730 | ;; |
| 13731 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13732 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13733 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13734 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13735 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13736 | if test "$cross_compiling" = yes ; then |
| 13737 | DO_TEST_SUITE= |
| 13738 | else |
| 13739 | DO_TEST_SUITE=check |
| 13740 | fi |
| 13741 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13742 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13743 | if test -n "$CPPFLAGS" ; then |
| 13744 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13745 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13746 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13747 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13748 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13749 | if test -n "$WITH_DIET_LIBC" ; then |
| 13750 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13751 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13752 | |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 13753 | |
| 13754 | MKINSTALLDIRS= |
| 13755 | if test -n "$ac_aux_dir"; then |
| 13756 | case "$ac_aux_dir" in |
| 13757 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 13758 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 13759 | esac |
| 13760 | fi |
| 13761 | if test -z "$MKINSTALLDIRS"; then |
| 13762 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 13763 | fi |
| 13764 | |
| 13765 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13766 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13767 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13768 | BUILD_LDFLAGS="$LDFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13769 | fi |
| 13770 | |
| 13771 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame] | 13772 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
| 13773 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} |
| 13774 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 13775 | |
| 13776 | |
| 13777 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13778 | test -d lib || mkdir lib |
| 13779 | test -d include || mkdir include |
| 13780 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13781 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13782 | if test -z "$UUID_CMT" ; then |
| 13783 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ |
| 13784 | lib/uuid/uuid_types.h" |
| 13785 | fi |
| 13786 | if test -z "$BLKID_CMT" ; then |
| 13787 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ |
| 13788 | lib/blkid/blkid_types.h" |
| 13789 | fi |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13790 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13791 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13792 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13793 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | f34af41 | 2015-07-11 23:05:57 -0400 | [diff] [blame] | 13794 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13795 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 13796 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13797 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13798 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13799 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13800 | if test -d `dirname ${srcdir}/$i` ; then |
| 13801 | outlist="$outlist $i" |
| 13802 | fi |
| 13803 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | ac_config_files="$ac_config_files $outlist" |
| 13805 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13806 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13807 | # This file is a shell script that caches the results of configure |
| 13808 | # 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] | 13809 | # scripts and configure runs, see configure's option --config-cache. |
| 13810 | # It is not useful on other systems. If it contains results you don't |
| 13811 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13812 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | # config.status only pays attention to the cache file if you give it |
| 13814 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13815 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13816 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13817 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13818 | # following values. |
| 13819 | |
| 13820 | _ACEOF |
| 13821 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13822 | # The following way of writing the cache mishandles newlines in values, |
| 13823 | # 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] | 13824 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13825 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13826 | # 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] | 13827 | ( |
| 13828 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13829 | eval ac_val=\$$ac_var |
| 13830 | case $ac_val in #( |
| 13831 | *${as_nl}*) |
| 13832 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13833 | *_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] | 13834 | $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] | 13835 | esac |
| 13836 | case $ac_var in #( |
| 13837 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13838 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13839 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13840 | esac ;; |
| 13841 | esac |
| 13842 | done |
| 13843 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13844 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13845 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13846 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13847 | # `set' does not quote correctly, so add quotes: double-quote |
| 13848 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13849 | sed -n \ |
| 13850 | "s/'/'\\\\''/g; |
| 13851 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13852 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13853 | *) |
| 13854 | # `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] | 13855 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13856 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13857 | esac | |
| 13858 | sort |
| 13859 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13860 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13861 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13862 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13863 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13864 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13865 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13866 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13867 | :end' >>confcache |
| 13868 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13869 | if test -w "$cache_file"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13870 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13871 | { $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] | 13872 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13873 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13874 | cat confcache >"$cache_file" |
| 13875 | else |
| 13876 | case $cache_file in #( |
| 13877 | */* | ?:*) |
| 13878 | mv -f confcache "$cache_file"$$ && |
| 13879 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13880 | *) |
| 13881 | mv -f confcache "$cache_file" ;; |
| 13882 | esac |
| 13883 | fi |
| 13884 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13886 | { $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] | 13887 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13888 | fi |
| 13889 | fi |
| 13890 | rm -f confcache |
| 13891 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13892 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13893 | # Let make expand exec_prefix. |
| 13894 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13895 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13896 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13897 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13898 | ac_libobjs= |
| 13899 | ac_ltlibobjs= |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13900 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13901 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13902 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13903 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13904 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13905 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13906 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13907 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13908 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13909 | done |
| 13910 | LIBOBJS=$ac_libobjs |
| 13911 | |
| 13912 | LTLIBOBJS=$ac_ltlibobjs |
| 13913 | |
| 13914 | |
| 13915 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13916 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13917 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13918 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13919 | ac_clean_files_save=$ac_clean_files |
| 13920 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13922 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13923 | as_write_fail=0 |
| 13924 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13925 | #! $SHELL |
| 13926 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13927 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13928 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13929 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13930 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13931 | debug=false |
| 13932 | ac_cs_recheck=false |
| 13933 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13934 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13935 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13936 | export SHELL |
| 13937 | _ASEOF |
| 13938 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13939 | ## -------------------- ## |
| 13940 | ## M4sh Initialization. ## |
| 13941 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13942 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13943 | # Be more Bourne compatible |
| 13944 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13945 | 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] | 13946 | emulate sh |
| 13947 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13948 | # 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] | 13949 | # is contrary to our usage. Disable this feature. |
| 13950 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13951 | setopt NO_GLOB_SUBST |
| 13952 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13953 | case `(set -o) 2>/dev/null` in #( |
| 13954 | *posix*) : |
| 13955 | set -o posix ;; #( |
| 13956 | *) : |
| 13957 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13958 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13959 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13960 | |
| 13961 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13962 | as_nl=' |
| 13963 | ' |
| 13964 | export as_nl |
| 13965 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13966 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13967 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13968 | 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] | 13969 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13970 | # but without wasting forks for bash or zsh. |
| 13971 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13972 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13973 | as_echo='print -r --' |
| 13974 | as_echo_n='print -rn --' |
| 13975 | 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] | 13976 | as_echo='printf %s\n' |
| 13977 | as_echo_n='printf %s' |
| 13978 | else |
| 13979 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13980 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13981 | as_echo_n='/usr/ucb/echo -n' |
| 13982 | else |
| 13983 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13984 | as_echo_n_body='eval |
| 13985 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13986 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13987 | *"$as_nl"*) |
| 13988 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13989 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13990 | esac; |
| 13991 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13992 | ' |
| 13993 | export as_echo_n_body |
| 13994 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13995 | fi |
| 13996 | export as_echo_body |
| 13997 | as_echo='sh -c $as_echo_body as_echo' |
| 13998 | fi |
| 13999 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14000 | # The user is always right. |
| 14001 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14002 | PATH_SEPARATOR=: |
| 14003 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14004 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14005 | PATH_SEPARATOR=';' |
| 14006 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14007 | fi |
| 14008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14009 | |
| 14010 | # IFS |
| 14011 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14012 | # there to prevent editors from complaining about space-tab. |
| 14013 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14014 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14015 | IFS=" "" $as_nl" |
| 14016 | |
| 14017 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14018 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14019 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14020 | *[\\/]* ) as_myself=$0 ;; |
| 14021 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14022 | for as_dir in $PATH |
| 14023 | do |
| 14024 | IFS=$as_save_IFS |
| 14025 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14026 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14027 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14028 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14029 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14030 | ;; |
| 14031 | esac |
| 14032 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14033 | # in which case we are not to be found in the path. |
| 14034 | if test "x$as_myself" = x; then |
| 14035 | as_myself=$0 |
| 14036 | fi |
| 14037 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14038 | $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] | 14039 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14040 | fi |
| 14041 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14042 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14043 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14044 | # suppresses any "Segmentation fault" message there. '((' could |
| 14045 | # trigger a bug in pdksh 5.2.14. |
| 14046 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14047 | do eval test x\${$as_var+set} = xset \ |
| 14048 | && ( (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] | 14049 | done |
| 14050 | PS1='$ ' |
| 14051 | PS2='> ' |
| 14052 | PS4='+ ' |
| 14053 | |
| 14054 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14055 | LC_ALL=C |
| 14056 | export LC_ALL |
| 14057 | LANGUAGE=C |
| 14058 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14059 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14060 | # CDPATH. |
| 14061 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14062 | |
| 14063 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14064 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14065 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14066 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14067 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14068 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14069 | as_fn_error () |
| 14070 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14071 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14072 | if test "$4"; then |
| 14073 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14074 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14075 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14076 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14077 | as_fn_exit $as_status |
| 14078 | } # as_fn_error |
| 14079 | |
| 14080 | |
| 14081 | # as_fn_set_status STATUS |
| 14082 | # ----------------------- |
| 14083 | # Set $? to STATUS, without forking. |
| 14084 | as_fn_set_status () |
| 14085 | { |
| 14086 | return $1 |
| 14087 | } # as_fn_set_status |
| 14088 | |
| 14089 | # as_fn_exit STATUS |
| 14090 | # ----------------- |
| 14091 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14092 | as_fn_exit () |
| 14093 | { |
| 14094 | set +e |
| 14095 | as_fn_set_status $1 |
| 14096 | exit $1 |
| 14097 | } # as_fn_exit |
| 14098 | |
| 14099 | # as_fn_unset VAR |
| 14100 | # --------------- |
| 14101 | # Portably unset VAR. |
| 14102 | as_fn_unset () |
| 14103 | { |
| 14104 | { eval $1=; unset $1;} |
| 14105 | } |
| 14106 | as_unset=as_fn_unset |
| 14107 | # as_fn_append VAR VALUE |
| 14108 | # ---------------------- |
| 14109 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14110 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14111 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14112 | # implementations. |
| 14113 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14114 | eval 'as_fn_append () |
| 14115 | { |
| 14116 | eval $1+=\$2 |
| 14117 | }' |
| 14118 | else |
| 14119 | as_fn_append () |
| 14120 | { |
| 14121 | eval $1=\$$1\$2 |
| 14122 | } |
| 14123 | fi # as_fn_append |
| 14124 | |
| 14125 | # as_fn_arith ARG... |
| 14126 | # ------------------ |
| 14127 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14128 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14129 | # must be portable across $(()) and expr. |
| 14130 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14131 | eval 'as_fn_arith () |
| 14132 | { |
| 14133 | as_val=$(( $* )) |
| 14134 | }' |
| 14135 | else |
| 14136 | as_fn_arith () |
| 14137 | { |
| 14138 | as_val=`expr "$@" || test $? -eq 1` |
| 14139 | } |
| 14140 | fi # as_fn_arith |
| 14141 | |
| 14142 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14143 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14144 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14145 | as_expr=expr |
| 14146 | else |
| 14147 | as_expr=false |
| 14148 | fi |
| 14149 | |
| 14150 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14151 | as_basename=basename |
| 14152 | else |
| 14153 | as_basename=false |
| 14154 | fi |
| 14155 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14156 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14157 | as_dirname=dirname |
| 14158 | else |
| 14159 | as_dirname=false |
| 14160 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14162 | as_me=`$as_basename -- "$0" || |
| 14163 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14164 | X"$0" : 'X\(//\)$' \| \ |
| 14165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14166 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14167 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14168 | s//\1/ |
| 14169 | q |
| 14170 | } |
| 14171 | /^X\/\(\/\/\)$/{ |
| 14172 | s//\1/ |
| 14173 | q |
| 14174 | } |
| 14175 | /^X\/\(\/\).*/{ |
| 14176 | s//\1/ |
| 14177 | q |
| 14178 | } |
| 14179 | s/.*/./; q'` |
| 14180 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14181 | # Avoid depending upon Character Ranges. |
| 14182 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14183 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14184 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14185 | as_cr_digits='0123456789' |
| 14186 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14187 | |
| 14188 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14189 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14190 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14191 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14192 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14193 | xy) ECHO_C='\c';; |
| 14194 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14195 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14196 | esac;; |
| 14197 | *) |
| 14198 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14199 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14200 | |
| 14201 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14202 | if test -d conf$$.dir; then |
| 14203 | rm -f conf$$.dir/conf$$.file |
| 14204 | else |
| 14205 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14206 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14207 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14208 | if (echo >conf$$.file) 2>/dev/null; then |
| 14209 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14210 | as_ln_s='ln -s' |
| 14211 | # ... but there are two gotchas: |
| 14212 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14213 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14214 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14215 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14216 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14217 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14218 | as_ln_s=ln |
| 14219 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14220 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14221 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14222 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14223 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14224 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14225 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14226 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14227 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14228 | |
| 14229 | # as_fn_mkdir_p |
| 14230 | # ------------- |
| 14231 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14232 | as_fn_mkdir_p () |
| 14233 | { |
| 14234 | |
| 14235 | case $as_dir in #( |
| 14236 | -*) as_dir=./$as_dir;; |
| 14237 | esac |
| 14238 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14239 | as_dirs= |
| 14240 | while :; do |
| 14241 | case $as_dir in #( |
| 14242 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14243 | *) as_qdir=$as_dir;; |
| 14244 | esac |
| 14245 | as_dirs="'$as_qdir' $as_dirs" |
| 14246 | as_dir=`$as_dirname -- "$as_dir" || |
| 14247 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14248 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14249 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14250 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14251 | $as_echo X"$as_dir" | |
| 14252 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14253 | s//\1/ |
| 14254 | q |
| 14255 | } |
| 14256 | /^X\(\/\/\)[^/].*/{ |
| 14257 | s//\1/ |
| 14258 | q |
| 14259 | } |
| 14260 | /^X\(\/\/\)$/{ |
| 14261 | s//\1/ |
| 14262 | q |
| 14263 | } |
| 14264 | /^X\(\/\).*/{ |
| 14265 | s//\1/ |
| 14266 | q |
| 14267 | } |
| 14268 | s/.*/./; q'` |
| 14269 | test -d "$as_dir" && break |
| 14270 | done |
| 14271 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14272 | } || 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] | 14273 | |
| 14274 | |
| 14275 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14276 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14277 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14278 | else |
| 14279 | test -d ./-p && rmdir ./-p |
| 14280 | as_mkdir_p=false |
| 14281 | fi |
| 14282 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14283 | |
| 14284 | # as_fn_executable_p FILE |
| 14285 | # ----------------------- |
| 14286 | # Test if FILE is an executable regular file. |
| 14287 | as_fn_executable_p () |
| 14288 | { |
| 14289 | test -f "$1" && test -x "$1" |
| 14290 | } # as_fn_executable_p |
| 14291 | as_test_x='test -x' |
| 14292 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14293 | |
| 14294 | # Sed expression to map a string onto a valid CPP name. |
| 14295 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14296 | |
| 14297 | # Sed expression to map a string onto a valid variable name. |
| 14298 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14299 | |
| 14300 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14301 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14302 | ## ----------------------------------- ## |
| 14303 | ## Main body of $CONFIG_STATUS script. ## |
| 14304 | ## ----------------------------------- ## |
| 14305 | _ASEOF |
| 14306 | 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] | 14307 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14309 | # 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] | 14310 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14311 | # values after options handling. |
| 14312 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14313 | This file was extended by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14314 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14315 | |
| 14316 | CONFIG_FILES = $CONFIG_FILES |
| 14317 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14318 | CONFIG_LINKS = $CONFIG_LINKS |
| 14319 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14320 | $ $0 $@ |
| 14321 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14322 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14323 | " |
| 14324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14325 | _ACEOF |
| 14326 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14327 | case $ac_config_files in *" |
| 14328 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14329 | esac |
| 14330 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14331 | case $ac_config_headers in *" |
| 14332 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14333 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14334 | |
| 14335 | |
| 14336 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14337 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14338 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14339 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14340 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14341 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14342 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14343 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14345 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14346 | \`$as_me' instantiates files and other configuration actions |
| 14347 | from templates according to the current configuration. Unless the files |
| 14348 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14349 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14350 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14351 | |
| 14352 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14353 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14354 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14355 | -q, --quiet, --silent |
| 14356 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14357 | -d, --debug don't remove temporary files |
| 14358 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14359 | --file=FILE[:TEMPLATE] |
| 14360 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14361 | --header=FILE[:TEMPLATE] |
| 14362 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14363 | |
| 14364 | Configuration files: |
| 14365 | $config_files |
| 14366 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14367 | Configuration headers: |
| 14368 | $config_headers |
| 14369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14370 | Configuration commands: |
| 14371 | $config_commands |
| 14372 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14373 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14375 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14377 | 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] | 14378 | ac_cs_version="\\ |
| 14379 | config.status |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14380 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14381 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14382 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14383 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14384 | This config.status script is free software; the Free Software Foundation |
| 14385 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14386 | |
| 14387 | ac_pwd='$ac_pwd' |
| 14388 | srcdir='$srcdir' |
| 14389 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14390 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14391 | AWK='$AWK' |
| 14392 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14393 | _ACEOF |
| 14394 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14396 | # 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] | 14397 | ac_need_defaults=: |
| 14398 | while test $# != 0 |
| 14399 | do |
| 14400 | case $1 in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14401 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14402 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14403 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | ac_shift=: |
| 14405 | ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14406 | --*=) |
| 14407 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14408 | ac_optarg= |
| 14409 | ac_shift=: |
| 14410 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14411 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14412 | ac_option=$1 |
| 14413 | ac_optarg=$2 |
| 14414 | ac_shift=shift |
| 14415 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14416 | esac |
| 14417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | case $ac_option in |
| 14419 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14420 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14421 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14422 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14423 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14424 | --config | --confi | --conf | --con | --co | --c ) |
| 14425 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14426 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14427 | debug=: ;; |
| 14428 | --file | --fil | --fi | --f ) |
| 14429 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14430 | case $ac_optarg in |
| 14431 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14432 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14433 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14434 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14435 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14436 | --header | --heade | --head | --hea ) |
| 14437 | $ac_shift |
| 14438 | case $ac_optarg in |
| 14439 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14440 | esac |
| 14441 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14442 | ac_need_defaults=false;; |
| 14443 | --he | --h) |
| 14444 | # Conflict between --help and --header |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14445 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14446 | Try \`$0 --help' for more information.";; |
| 14447 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14448 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14449 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14450 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14451 | ac_cs_silent=: ;; |
| 14452 | |
| 14453 | # This is an error. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14454 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14455 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14457 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14458 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14459 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14460 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14461 | shift |
| 14462 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14464 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14466 | if $ac_cs_silent; then |
| 14467 | exec 6>/dev/null |
| 14468 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14469 | fi |
| 14470 | |
| 14471 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14472 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14473 | if \$ac_cs_recheck; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14474 | 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] | 14475 | shift |
| 14476 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14477 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14478 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14479 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | fi |
| 14481 | |
| 14482 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14484 | exec 5>>config.log |
| 14485 | { |
| 14486 | echo |
| 14487 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14488 | ## Running $as_me. ## |
| 14489 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14490 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14491 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14492 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14493 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14495 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14496 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14497 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14498 | # 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] | 14499 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14500 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14501 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14502 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14503 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14504 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14506 | _ACEOF |
| 14507 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14509 | |
| 14510 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14511 | for ac_config_target in $ac_config_targets |
| 14512 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14513 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14514 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14515 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14516 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14517 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14518 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14519 | esac |
| 14520 | done |
| 14521 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14522 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14523 | # If the user did not use the arguments to specify the items to instantiate, |
| 14524 | # then the envvar interface is used. Set only those that are not. |
| 14525 | # We use the long form for the default assignment because of an extremely |
| 14526 | # bizarre bug on SunOS 4.1.3. |
| 14527 | if $ac_need_defaults; then |
| 14528 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14529 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14530 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14531 | fi |
| 14532 | |
| 14533 | # 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] | 14534 | # 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] | 14535 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14536 | # Hook for its removal unless debugging. |
| 14537 | # Note that there is a small window in which the directory will not be cleaned: |
| 14538 | # 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] | 14539 | $debug || |
| 14540 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14541 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14542 | trap 'exit_status=$? |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14543 | : "${ac_tmp:=$tmp}" |
| 14544 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14545 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14546 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14547 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14548 | # Create a (secure) tmp directory for tmp files. |
| 14549 | |
| 14550 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14551 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14552 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14553 | } || |
| 14554 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14555 | tmp=./conf$$-$RANDOM |
| 14556 | (umask 077 && mkdir "$tmp") |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14557 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14558 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14559 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14560 | # Set up the scripts for CONFIG_FILES section. |
| 14561 | # No need to generate them if there are no CONFIG_FILES. |
| 14562 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14563 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14564 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14565 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14566 | ac_cs_awk_getline=: |
| 14567 | ac_cs_awk_pipe_init= |
| 14568 | ac_cs_awk_read_file=' |
| 14569 | while ((getline aline < (F[key])) > 0) |
| 14570 | print(aline) |
| 14571 | close(F[key])' |
| 14572 | ac_cs_awk_pipe_fini= |
| 14573 | else |
| 14574 | ac_cs_awk_getline=false |
| 14575 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14576 | ac_cs_awk_read_file=' |
| 14577 | print "|#_!!_#|" |
| 14578 | print "cat " F[key] " &&" |
| 14579 | '$ac_cs_awk_pipe_init |
| 14580 | # The final `:' finishes the AND list. |
| 14581 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14582 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14583 | ac_cr=`echo X | tr X '\015'` |
| 14584 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14585 | # But we know of no other shell where ac_cr would be empty at this |
| 14586 | # point, so we can use a bashism as a fallback. |
| 14587 | if test "x$ac_cr" = x; then |
| 14588 | eval ac_cr=\$\'\\r\' |
| 14589 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14590 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14591 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14592 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14593 | else |
| 14594 | ac_cs_awk_cr=$ac_cr |
| 14595 | fi |
| 14596 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14597 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14598 | _ACEOF |
| 14599 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14600 | # Create commands to substitute file output variables. |
| 14601 | { |
| 14602 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14603 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14604 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14605 | echo "_ACAWK" && |
| 14606 | echo "_ACEOF" |
| 14607 | } >conf$$files.sh && |
| 14608 | . ./conf$$files.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14609 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14610 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14611 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14612 | { |
| 14613 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14614 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14615 | echo "_ACEOF" |
| 14616 | } >conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14617 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14618 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14619 | ac_delim='%!_!# ' |
| 14620 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14621 | . ./conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14622 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14623 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14624 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14625 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14626 | break |
| 14627 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14628 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14629 | else |
| 14630 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14631 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14632 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14633 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14634 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14635 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14636 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14637 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14638 | sed -n ' |
| 14639 | h |
| 14640 | s/^/S["/; s/!.*/"]=/ |
| 14641 | p |
| 14642 | g |
| 14643 | s/^[^!]*!// |
| 14644 | :repl |
| 14645 | t repl |
| 14646 | s/'"$ac_delim"'$// |
| 14647 | t delim |
| 14648 | :nl |
| 14649 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14650 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14651 | t more1 |
| 14652 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14653 | p |
| 14654 | n |
| 14655 | b repl |
| 14656 | :more1 |
| 14657 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14658 | p |
| 14659 | g |
| 14660 | s/.\{148\}// |
| 14661 | t nl |
| 14662 | :delim |
| 14663 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14664 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14665 | t more2 |
| 14666 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14667 | p |
| 14668 | b |
| 14669 | :more2 |
| 14670 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14671 | p |
| 14672 | g |
| 14673 | s/.\{148\}// |
| 14674 | t delim |
| 14675 | ' <conf$$subs.awk | sed ' |
| 14676 | /^[^""]/{ |
| 14677 | N |
| 14678 | s/\n// |
| 14679 | } |
| 14680 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14681 | rm -f conf$$subs.awk |
| 14682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14683 | _ACAWK |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14684 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14685 | for (key in S) S_is_set[key] = 1 |
| 14686 | FS = "" |
| 14687 | \$ac_cs_awk_pipe_init |
| 14688 | } |
| 14689 | { |
| 14690 | line = $ 0 |
| 14691 | nfields = split(line, field, "@") |
| 14692 | substed = 0 |
| 14693 | len = length(field[1]) |
| 14694 | for (i = 2; i < nfields; i++) { |
| 14695 | key = field[i] |
| 14696 | keylen = length(key) |
| 14697 | if (S_is_set[key]) { |
| 14698 | value = S[key] |
| 14699 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14700 | len += length(value) + length(field[++i]) |
| 14701 | substed = 1 |
| 14702 | } else |
| 14703 | len += 1 + keylen |
| 14704 | } |
| 14705 | if (nfields == 3 && !substed) { |
| 14706 | key = field[2] |
| 14707 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14708 | \$ac_cs_awk_read_file |
| 14709 | next |
| 14710 | } |
| 14711 | } |
| 14712 | print line |
| 14713 | } |
| 14714 | \$ac_cs_awk_pipe_fini |
| 14715 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14716 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14718 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14719 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14720 | else |
| 14721 | cat |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14722 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14723 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14724 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14725 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14726 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14727 | # ${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] | 14728 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14729 | # (actually we leave an empty line to preserve line numbers). |
| 14730 | if test "x$srcdir" = x.; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14731 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14732 | h |
| 14733 | s/// |
| 14734 | s/^/:/ |
| 14735 | s/[ ]*$/:/ |
| 14736 | s/:\$(srcdir):/:/g |
| 14737 | s/:\${srcdir}:/:/g |
| 14738 | s/:@srcdir@:/:/g |
| 14739 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14740 | s/:*$// |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14741 | x |
| 14742 | s/\(=[ ]*\).*/\1/ |
| 14743 | G |
| 14744 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14745 | s/^[^=]*=[ ]*$// |
| 14746 | }' |
| 14747 | fi |
| 14748 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14750 | fi # test -n "$CONFIG_FILES" |
| 14751 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14752 | # Set up the scripts for CONFIG_HEADERS section. |
| 14753 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14754 | # This happens for instance with `./config.status Makefile'. |
| 14755 | if test -n "$CONFIG_HEADERS"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14756 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14757 | BEGIN { |
| 14758 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14759 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14760 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14761 | # here-document in config.status, that substitutes the proper values into |
| 14762 | # config.h.in to produce config.h. |
| 14763 | |
| 14764 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14765 | # handling of long lines. |
| 14766 | ac_delim='%!_!# ' |
| 14767 | for ac_last_try in false false :; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14768 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14769 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14770 | break |
| 14771 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14772 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14773 | else |
| 14774 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14775 | fi |
| 14776 | done |
| 14777 | |
| 14778 | # For the awk script, D is an array of macro values keyed by name, |
| 14779 | # likewise P contains macro parameters if any. Preserve backslash |
| 14780 | # newline sequences. |
| 14781 | |
| 14782 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14783 | sed -n ' |
| 14784 | s/.\{148\}/&'"$ac_delim"'/g |
| 14785 | t rset |
| 14786 | :rset |
| 14787 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14788 | t def |
| 14789 | d |
| 14790 | :def |
| 14791 | s/\\$// |
| 14792 | t bsnl |
| 14793 | s/["\\]/\\&/g |
| 14794 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14795 | D["\1"]=" \3"/p |
| 14796 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14797 | d |
| 14798 | :bsnl |
| 14799 | s/["\\]/\\&/g |
| 14800 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14801 | D["\1"]=" \3\\\\\\n"\\/p |
| 14802 | t cont |
| 14803 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14804 | t cont |
| 14805 | d |
| 14806 | :cont |
| 14807 | n |
| 14808 | s/.\{148\}/&'"$ac_delim"'/g |
| 14809 | t clear |
| 14810 | :clear |
| 14811 | s/\\$// |
| 14812 | t bsnlc |
| 14813 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14814 | d |
| 14815 | :bsnlc |
| 14816 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14817 | b cont |
| 14818 | ' <confdefs.h | sed ' |
| 14819 | s/'"$ac_delim"'/"\\\ |
| 14820 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14821 | |
| 14822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14823 | for (key in D) D_is_set[key] = 1 |
| 14824 | FS = "" |
| 14825 | } |
| 14826 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14827 | line = \$ 0 |
| 14828 | split(line, arg, " ") |
| 14829 | if (arg[1] == "#") { |
| 14830 | defundef = arg[2] |
| 14831 | mac1 = arg[3] |
| 14832 | } else { |
| 14833 | defundef = substr(arg[1], 2) |
| 14834 | mac1 = arg[2] |
| 14835 | } |
| 14836 | split(mac1, mac2, "(") #) |
| 14837 | macro = mac2[1] |
| 14838 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14839 | if (D_is_set[macro]) { |
| 14840 | # Preserve the white space surrounding the "#". |
| 14841 | print prefix "define", macro P[macro] D[macro] |
| 14842 | next |
| 14843 | } else { |
| 14844 | # Replace #undef with comments. This is necessary, for example, |
| 14845 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14846 | # on some systems where configure will not decide to define it. |
| 14847 | if (defundef == "undef") { |
| 14848 | print "/*", prefix defundef, macro, "*/" |
| 14849 | next |
| 14850 | } |
| 14851 | } |
| 14852 | } |
| 14853 | { print } |
| 14854 | _ACAWK |
| 14855 | _ACEOF |
| 14856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14857 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14858 | fi # test -n "$CONFIG_HEADERS" |
| 14859 | |
| 14860 | |
| 14861 | 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] | 14862 | shift |
| 14863 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14864 | do |
| 14865 | case $ac_tag in |
| 14866 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14867 | esac |
| 14868 | case $ac_mode$ac_tag in |
| 14869 | :[FHL]*:*);; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14870 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14871 | :[FH]-) ac_tag=-:-;; |
| 14872 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14873 | esac |
| 14874 | ac_save_IFS=$IFS |
| 14875 | IFS=: |
| 14876 | set x $ac_tag |
| 14877 | IFS=$ac_save_IFS |
| 14878 | shift |
| 14879 | ac_file=$1 |
| 14880 | shift |
| 14881 | |
| 14882 | case $ac_mode in |
| 14883 | :L) ac_source=$1;; |
| 14884 | :[FH]) |
| 14885 | ac_file_inputs= |
| 14886 | for ac_f |
| 14887 | do |
| 14888 | case $ac_f in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14889 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14890 | *) # Look for the file first in the build tree, then in the source tree |
| 14891 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14892 | # because $ac_f cannot contain `:'. |
| 14893 | test -f "$ac_f" || |
| 14894 | case $ac_f in |
| 14895 | [\\/$]*) false;; |
| 14896 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14897 | esac || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14898 | 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] | 14899 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14900 | 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] | 14901 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14902 | done |
| 14903 | |
| 14904 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14905 | # use $as_me), people would be surprised to read: |
| 14906 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14907 | configure_input='Generated from '` |
| 14908 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14909 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14910 | if test x"$ac_file" != x-; then |
| 14911 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14912 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14913 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14914 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14915 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14916 | case $configure_input in #( |
| 14917 | *\&* | *\|* | *\\* ) |
| 14918 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14919 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14920 | *) ac_sed_conf_input=$configure_input;; |
| 14921 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14922 | |
| 14923 | case $ac_tag in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14924 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14925 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14926 | esac |
| 14927 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14928 | esac |
| 14929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14930 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14931 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14932 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14933 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14934 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14935 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14937 | s//\1/ |
| 14938 | q |
| 14939 | } |
| 14940 | /^X\(\/\/\)[^/].*/{ |
| 14941 | s//\1/ |
| 14942 | q |
| 14943 | } |
| 14944 | /^X\(\/\/\)$/{ |
| 14945 | s//\1/ |
| 14946 | q |
| 14947 | } |
| 14948 | /^X\(\/\).*/{ |
| 14949 | s//\1/ |
| 14950 | q |
| 14951 | } |
| 14952 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14953 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14954 | ac_builddir=. |
| 14955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14956 | case "$ac_dir" in |
| 14957 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14958 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14959 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14960 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14961 | 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] | 14962 | case $ac_top_builddir_sub in |
| 14963 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14964 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14965 | esac ;; |
| 14966 | esac |
| 14967 | ac_abs_top_builddir=$ac_pwd |
| 14968 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14969 | # for backward compatibility: |
| 14970 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14971 | |
| 14972 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14973 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14974 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14975 | ac_top_srcdir=$ac_top_builddir_sub |
| 14976 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14977 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14978 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14979 | ac_top_srcdir=$srcdir |
| 14980 | ac_abs_top_srcdir=$srcdir ;; |
| 14981 | *) # Relative name. |
| 14982 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14983 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14984 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14985 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14986 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14987 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14989 | case $ac_mode in |
| 14990 | :F) |
| 14991 | # |
| 14992 | # CONFIG_FILE |
| 14993 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14994 | |
| 14995 | case $INSTALL in |
| 14996 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14997 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14998 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14999 | ac_MKDIR_P=$MKDIR_P |
| 15000 | case $MKDIR_P in |
| 15001 | [\\/$]* | ?:[\\/]* ) ;; |
| 15002 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15003 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15004 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15005 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15006 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15007 | # If the template does not know about datarootdir, expand it. |
| 15008 | # FIXME: This hack should be removed a few years after 2.60. |
| 15009 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15010 | ac_sed_dataroot=' |
| 15011 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15012 | p |
| 15013 | q |
| 15014 | } |
| 15015 | /@datadir@/p |
| 15016 | /@docdir@/p |
| 15017 | /@infodir@/p |
| 15018 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15019 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15020 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15021 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15022 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15023 | { $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] | 15024 | $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] | 15025 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15027 | ac_datarootdir_hack=' |
| 15028 | s&@datadir@&$datadir&g |
| 15029 | s&@docdir@&$docdir&g |
| 15030 | s&@infodir@&$infodir&g |
| 15031 | s&@localedir@&$localedir&g |
| 15032 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15033 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15034 | esac |
| 15035 | _ACEOF |
| 15036 | |
| 15037 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15038 | # Shell code in configure.ac might set extrasub. |
| 15039 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15041 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15042 | $extrasub |
| 15043 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15045 | :t |
| 15046 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15047 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15048 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15049 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15050 | s&@srcdir@&$ac_srcdir&;t t |
| 15051 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15052 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15053 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15054 | s&@builddir@&$ac_builddir&;t t |
| 15055 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15056 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15057 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15058 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15059 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15060 | " |
| 15061 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 15062 | if $ac_cs_awk_getline; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15063 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15064 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15065 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 15066 | fi \ |
| 15067 | >$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] | 15068 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15069 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15070 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15071 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15072 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15074 | 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] | 15075 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15076 | 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] | 15077 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15078 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15079 | case $ac_file in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15080 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15081 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15082 | esac \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15083 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15084 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15085 | :H) |
| 15086 | # |
| 15087 | # CONFIG_HEADER |
| 15088 | # |
| 15089 | if test x"$ac_file" != x-; then |
| 15090 | { |
| 15091 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15092 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15093 | } >"$ac_tmp/config.h" \ |
| 15094 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 15095 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15097 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15098 | else |
| 15099 | rm -f "$ac_file" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15100 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 15101 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15102 | fi |
| 15103 | else |
| 15104 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15105 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 15106 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15107 | fi |
| 15108 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15109 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15110 | :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] | 15111 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15112 | ;; |
| 15113 | esac |
| 15114 | |
| 15115 | |
| 15116 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15117 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15118 | for ac_file in $CONFIG_FILES; do |
| 15119 | # Support "outfile[:infile[:infile...]]" |
| 15120 | case "$ac_file" in |
| 15121 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 15122 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15123 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 15124 | case "$ac_file" in */Makefile.in) |
| 15125 | # Adjust a relative srcdir. |
| 15126 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15127 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15128 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 15129 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 15130 | # In autoconf-2.50 it is called $srcdir. |
| 15131 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 15132 | case "$ac_given_srcdir" in |
| 15133 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 15134 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 15135 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 15136 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15137 | # Treat a directory as a PO directory if and only if it has a |
| 15138 | # POTFILES.in file. This allows packages to have multiple PO |
| 15139 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15140 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 15141 | rm -f "$ac_dir/POTFILES" |
| 15142 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15143 | gt_tab=`printf '\t'` |
| 15144 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/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] | 15145 | POMAKEFILEDEPS="POTFILES.in" |
| 15146 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15147 | # on $ac_dir but don't depend on user-specified configuration |
| 15148 | # parameters. |
| 15149 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 15150 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15151 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15152 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 15153 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15154 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 15155 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15156 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15157 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 15158 | else |
| 15159 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15160 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15161 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15162 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15163 | # Compute POFILES |
| 15164 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 15165 | # Compute UPDATEPOFILES |
| 15166 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 15167 | # Compute DUMMYPOFILES |
| 15168 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 15169 | # Compute GMOFILES |
| 15170 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15171 | case "$ac_given_srcdir" in |
| 15172 | .) srcdirpre= ;; |
| 15173 | *) srcdirpre='$(srcdir)/' ;; |
| 15174 | esac |
| 15175 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15176 | UPDATEPOFILES= |
| 15177 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15178 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15179 | for lang in $ALL_LINGUAS; do |
| 15180 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15181 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 15182 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15183 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15184 | done |
| 15185 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 15186 | # environment variable. |
| 15187 | INST_LINGUAS= |
| 15188 | if test -n "$ALL_LINGUAS"; then |
| 15189 | for presentlang in $ALL_LINGUAS; do |
| 15190 | useit=no |
| 15191 | if test "%UNSET%" != "$LINGUAS"; then |
| 15192 | desiredlanguages="$LINGUAS" |
| 15193 | else |
| 15194 | desiredlanguages="$ALL_LINGUAS" |
| 15195 | fi |
| 15196 | for desiredlang in $desiredlanguages; do |
| 15197 | # Use the presentlang catalog if desiredlang is |
| 15198 | # a. equal to presentlang, or |
| 15199 | # b. a variant of presentlang (because in this case, |
| 15200 | # presentlang can be used as a fallback for messages |
| 15201 | # which are not translated in the desiredlang catalog). |
| 15202 | case "$desiredlang" in |
| 15203 | "$presentlang"*) useit=yes;; |
| 15204 | esac |
| 15205 | done |
| 15206 | if test $useit = yes; then |
| 15207 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 15208 | fi |
| 15209 | done |
| 15210 | fi |
| 15211 | CATALOGS= |
| 15212 | if test -n "$INST_LINGUAS"; then |
| 15213 | for lang in $INST_LINGUAS; do |
| 15214 | CATALOGS="$CATALOGS $lang.gmo" |
| 15215 | done |
| 15216 | fi |
| 15217 | 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] | 15218 | 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] | 15219 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 15220 | if test -f "$f"; then |
| 15221 | case "$f" in |
| 15222 | *.orig | *.bak | *~) ;; |
| 15223 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 15224 | esac |
| 15225 | fi |
| 15226 | done |
| 15227 | fi |
| 15228 | ;; |
| 15229 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15230 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15231 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15232 | esac |
| 15233 | done # for ac_tag |
| 15234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15235 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15236 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15237 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15238 | ac_clean_files=$ac_clean_files_save |
| 15239 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15240 | test $ac_write_fail = 0 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15241 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15242 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15243 | |
| 15244 | # configure is writing to config.log, and then calls config.status. |
| 15245 | # config.status does its own redirection, appending to config.log. |
| 15246 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15247 | # by configure, so config.status won't be able to write to it; its |
| 15248 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15249 | # effectively closing config.log, so it can be properly (re)opened and |
| 15250 | # appended to by config.status. When coming back to configure, we |
| 15251 | # need to make the FD available again. |
| 15252 | if test "$no_create" != yes; then |
| 15253 | ac_cs_success=: |
| 15254 | ac_config_status_args= |
| 15255 | test "$silent" = yes && |
| 15256 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15257 | exec 5>/dev/null |
| 15258 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15259 | exec 5>>config.log |
| 15260 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15261 | # would make configure fail if this is the last instruction. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15262 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15263 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15264 | 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] | 15265 | { $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] | 15266 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15267 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15268 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 15269 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |