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 | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 653 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 654 | SIZEOF_LONG_LONG |
| 655 | SIZEOF_LONG |
| 656 | SIZEOF_INT |
| 657 | SIZEOF_SHORT |
| 658 | BUILD_CC |
| 659 | MAKEINFO |
| 660 | STRIP |
| 661 | AR |
| 662 | LDCONFIG |
| 663 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 664 | AWK |
| 665 | CHMOD |
| 666 | RM |
| 667 | CP |
| 668 | MV |
| 669 | LN_S |
| 670 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 671 | ifNotGNUmake |
| 672 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 673 | BINARY_TYPE |
| 674 | POSUB |
| 675 | LTLIBINTL |
| 676 | LIBINTL |
| 677 | INTLLIBS |
| 678 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 679 | INTLOBJS |
| 680 | GENCAT |
| 681 | INSTOBJEXT |
| 682 | DATADIRNAME |
| 683 | CATOBJEXT |
| 684 | USE_INCLUDED_LIBINTL |
| 685 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 686 | LTLIBC |
| 687 | WINDRES |
| 688 | WOE32 |
| 689 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 690 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 691 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 692 | HAVE_SNPRINTF |
| 693 | HAVE_ASPRINTF |
| 694 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 695 | INTL_DEFAULT_VERBOSITY |
| 696 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 697 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 698 | INTLBISON |
| 699 | LTLIBICONV |
| 700 | LIBICONV |
| 701 | LTLIBMULTITHREAD |
| 702 | LIBMULTITHREAD |
| 703 | LTLIBTHREAD |
| 704 | LIBTHREAD |
| 705 | LIBPTH_PREFIX |
| 706 | LTLIBPTH |
| 707 | LIBPTH |
| 708 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 709 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 710 | HAVE_VISIBILITY |
| 711 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 712 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 713 | GLIBC2 |
| 714 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 715 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 716 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 717 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 718 | GMSGFMT_015 |
| 719 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 720 | GMSGFMT |
| 721 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 722 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 723 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 724 | SED |
| 725 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 726 | INSTALL_DATA |
| 727 | INSTALL_SCRIPT |
| 728 | INSTALL_PROGRAM |
| 729 | SET_MAKE |
| 730 | VERSION |
| 731 | PACKAGE |
| 732 | GETTEXT_PACKAGE |
| 733 | UUIDD_CMT |
| 734 | E2INITRD_MAN |
| 735 | E2INITRD_PROG |
| 736 | FSCK_MAN |
| 737 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 738 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 739 | RESIZER_CMT |
| 740 | IMAGER_CMT |
| 741 | DEBUGFS_CMT |
| 742 | BLKID_CMT |
| 743 | DEPPROFILED_LIBBLKID |
| 744 | PROFILED_LIBBLKID |
| 745 | DEPSTATIC_LIBBLKID |
| 746 | STATIC_LIBBLKID |
| 747 | DEPLIBBLKID |
| 748 | LIBBLKID |
| 749 | UUID_CMT |
| 750 | DEPPROFILED_LIBUUID |
| 751 | PROFILED_LIBUUID |
| 752 | DEPSTATIC_LIBUUID |
| 753 | STATIC_LIBUUID |
| 754 | DEPLIBUUID |
| 755 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 756 | PKG_CONFIG_LIBDIR |
| 757 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 758 | PKG_CONFIG |
| 759 | TEST_IO_CMT |
| 760 | PRIVATE_LIBS_CMT |
| 761 | LDFLAG_DYNAMIC |
| 762 | PROFILED_LIB_EXT |
| 763 | STATIC_LIB_EXT |
| 764 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 765 | PROFILE_CMT |
| 766 | BSDLIB_CMT |
| 767 | ELF_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 768 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 769 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 770 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 771 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 772 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 773 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 774 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 775 | EGREP |
| 776 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 777 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 778 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 779 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 780 | OBJEXT |
| 781 | EXEEXT |
| 782 | ac_ct_CC |
| 783 | CPPFLAGS |
| 784 | LDFLAGS |
| 785 | CFLAGS |
| 786 | CC |
| 787 | host_os |
| 788 | host_vendor |
| 789 | host_cpu |
| 790 | host |
| 791 | build_os |
| 792 | build_vendor |
| 793 | build_cpu |
| 794 | build |
| 795 | E2FSPROGS_PKGVER |
| 796 | E2FSPROGS_VERSION |
| 797 | E2FSPROGS_DAY |
| 798 | E2FSPROGS_MONTH |
| 799 | E2FSPROGS_YEAR |
| 800 | target_alias |
| 801 | host_alias |
| 802 | build_alias |
| 803 | LIBS |
| 804 | ECHO_T |
| 805 | ECHO_N |
| 806 | ECHO_C |
| 807 | DEFS |
| 808 | mandir |
| 809 | localedir |
| 810 | libdir |
| 811 | psdir |
| 812 | pdfdir |
| 813 | dvidir |
| 814 | htmldir |
| 815 | infodir |
| 816 | docdir |
| 817 | oldincludedir |
| 818 | includedir |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 819 | runstatedir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 820 | localstatedir |
| 821 | sharedstatedir |
| 822 | sysconfdir |
| 823 | datadir |
| 824 | datarootdir |
| 825 | libexecdir |
| 826 | sbindir |
| 827 | bindir |
| 828 | program_transform_name |
| 829 | prefix |
| 830 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 831 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 832 | PACKAGE_BUGREPORT |
| 833 | PACKAGE_STRING |
| 834 | PACKAGE_VERSION |
| 835 | PACKAGE_TARNAME |
| 836 | PACKAGE_NAME |
| 837 | PATH_SEPARATOR |
| 838 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 839 | ac_subst_files='MCONFIG |
| 840 | MAKEFILE_ELF |
| 841 | MAKEFILE_BSDLIB |
| 842 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 843 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 844 | ASM_TYPES_HEADER |
| 845 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 846 | ac_user_opts=' |
| 847 | enable_option_checking |
| 848 | with_diet_libc |
| 849 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 850 | with_ccopts |
| 851 | with_ldopts |
| 852 | with_root_prefix |
| 853 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 854 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 855 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 856 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 857 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 858 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 859 | enable_elf_shlibs |
| 860 | enable_bsd_shlibs |
| 861 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 862 | enable_gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 863 | enable_hardening |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 864 | enable_jbd_debug |
| 865 | enable_blkid_debug |
| 866 | enable_testio_debug |
| 867 | enable_libuuid |
| 868 | enable_libblkid |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 869 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 870 | enable_debugfs |
| 871 | enable_imager |
| 872 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 873 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 874 | enable_fsck |
| 875 | enable_e2initrd_helper |
| 876 | enable_tls |
| 877 | enable_uuidd |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 878 | enable_mmp |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 879 | enable_bmap_stats |
| 880 | enable_bmap_stats_ops |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 881 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 882 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 883 | with_gnu_ld |
| 884 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 885 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 886 | with_libiconv_prefix |
| 887 | with_included_gettext |
| 888 | with_libintl_prefix |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 889 | enable_fuse2fs |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 890 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 891 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 892 | ac_precious_vars='build_alias |
| 893 | host_alias |
| 894 | target_alias |
| 895 | CC |
| 896 | CFLAGS |
| 897 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 898 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 900 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 901 | PKG_CONFIG |
| 902 | PKG_CONFIG_PATH |
| 903 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 904 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 905 | |
| 906 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 907 | ac_init_help= |
| 908 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 909 | ac_unrecognized_opts= |
| 910 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | # The variables have the same names as the options, with |
| 912 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | no_recursion= |
| 917 | prefix=NONE |
| 918 | program_prefix=NONE |
| 919 | program_suffix=NONE |
| 920 | program_transform_name=s,x,x, |
| 921 | silent= |
| 922 | site= |
| 923 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | verbose= |
| 925 | x_includes=NONE |
| 926 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 927 | |
| 928 | # Installation directory options. |
| 929 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 930 | # and all the variables that are supposed to be based on exec_prefix |
| 931 | # by default will actually change. |
| 932 | # 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] | 933 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | bindir='${exec_prefix}/bin' |
| 935 | sbindir='${exec_prefix}/sbin' |
| 936 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 937 | datarootdir='${prefix}/share' |
| 938 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 939 | sysconfdir='${prefix}/etc' |
| 940 | sharedstatedir='${prefix}/com' |
| 941 | localstatedir='${prefix}/var' |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 942 | runstatedir='${localstatedir}/run' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 943 | includedir='${prefix}/include' |
| 944 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 945 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 946 | infodir='${datarootdir}/info' |
| 947 | htmldir='${docdir}' |
| 948 | dvidir='${docdir}' |
| 949 | pdfdir='${docdir}' |
| 950 | psdir='${docdir}' |
| 951 | libdir='${exec_prefix}/lib' |
| 952 | localedir='${datarootdir}/locale' |
| 953 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 954 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 955 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 956 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 957 | for ac_option |
| 958 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 959 | # If the previous option needs an argument, assign it. |
| 960 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 961 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 962 | ac_prev= |
| 963 | continue |
| 964 | fi |
| 965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 966 | case $ac_option in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 967 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 968 | *=) ac_optarg= ;; |
| 969 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 970 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 971 | |
| 972 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 974 | case $ac_dashdash$ac_option in |
| 975 | --) |
| 976 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 977 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 978 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 979 | ac_prev=bindir ;; |
| 980 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 981 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 982 | |
| 983 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 984 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 985 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 986 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 987 | |
| 988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 990 | ac_prev=cache_file ;; |
| 991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 993 | cache_file=$ac_optarg ;; |
| 994 | |
| 995 | --config-cache | -C) |
| 996 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 997 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 998 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 999 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1000 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1001 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1003 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1004 | | --dataroo | --dataro | --datar) |
| 1005 | ac_prev=datarootdir ;; |
| 1006 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1007 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1008 | datarootdir=$ac_optarg ;; |
| 1009 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1010 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1012 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1014 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1015 | ac_useropt_orig=$ac_useropt |
| 1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1017 | case $ac_user_opts in |
| 1018 | *" |
| 1019 | "enable_$ac_useropt" |
| 1020 | "*) ;; |
| 1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1022 | ac_unrecognized_sep=', ';; |
| 1023 | esac |
| 1024 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1025 | |
| 1026 | -docdir | --docdir | --docdi | --doc | --do) |
| 1027 | ac_prev=docdir ;; |
| 1028 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1029 | docdir=$ac_optarg ;; |
| 1030 | |
| 1031 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1032 | ac_prev=dvidir ;; |
| 1033 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1034 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1035 | |
| 1036 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1037 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1038 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1040 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1041 | ac_useropt_orig=$ac_useropt |
| 1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1043 | case $ac_user_opts in |
| 1044 | *" |
| 1045 | "enable_$ac_useropt" |
| 1046 | "*) ;; |
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1048 | ac_unrecognized_sep=', ';; |
| 1049 | esac |
| 1050 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1051 | |
| 1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1054 | | --exec | --exe | --ex) |
| 1055 | ac_prev=exec_prefix ;; |
| 1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1058 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1059 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1060 | |
| 1061 | -gas | --gas | --ga | --g) |
| 1062 | # Obsolete; use --with-gas. |
| 1063 | with_gas=yes ;; |
| 1064 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1065 | -help | --help | --hel | --he | -h) |
| 1066 | ac_init_help=long ;; |
| 1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1068 | ac_init_help=recursive ;; |
| 1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1070 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1071 | |
| 1072 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1073 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1075 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1078 | ac_prev=htmldir ;; |
| 1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1080 | | --ht=*) |
| 1081 | htmldir=$ac_optarg ;; |
| 1082 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1083 | -includedir | --includedir | --includedi | --included | --include \ |
| 1084 | | --includ | --inclu | --incl | --inc) |
| 1085 | ac_prev=includedir ;; |
| 1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1088 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1089 | |
| 1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1091 | ac_prev=infodir ;; |
| 1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1093 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1094 | |
| 1095 | -libdir | --libdir | --libdi | --libd) |
| 1096 | ac_prev=libdir ;; |
| 1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1099 | |
| 1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1101 | | --libexe | --libex | --libe) |
| 1102 | ac_prev=libexecdir ;; |
| 1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1104 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1105 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1106 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1107 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1108 | ac_prev=localedir ;; |
| 1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1110 | localedir=$ac_optarg ;; |
| 1111 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1114 | ac_prev=localstatedir ;; |
| 1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1118 | |
| 1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1120 | ac_prev=mandir ;; |
| 1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1122 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1123 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1124 | -nfp | --nfp | --nf) |
| 1125 | # Obsolete; use --without-fp. |
| 1126 | with_fp=no ;; |
| 1127 | |
| 1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1129 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1130 | no_create=yes ;; |
| 1131 | |
| 1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1134 | no_recursion=yes ;; |
| 1135 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1138 | | --oldin | --oldi | --old | --ol | --o) |
| 1139 | ac_prev=oldincludedir ;; |
| 1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1143 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1144 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1146 | ac_prev=prefix ;; |
| 1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1149 | |
| 1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1151 | | --program-pre | --program-pr | --program-p) |
| 1152 | ac_prev=program_prefix ;; |
| 1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1155 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | |
| 1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1158 | | --program-suf | --program-su | --program-s) |
| 1159 | ac_prev=program_suffix ;; |
| 1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1163 | |
| 1164 | -program-transform-name | --program-transform-name \ |
| 1165 | | --program-transform-nam | --program-transform-na \ |
| 1166 | | --program-transform-n | --program-transform- \ |
| 1167 | | --program-transform | --program-transfor \ |
| 1168 | | --program-transfo | --program-transf \ |
| 1169 | | --program-trans | --program-tran \ |
| 1170 | | --progr-tra | --program-tr | --program-t) |
| 1171 | ac_prev=program_transform_name ;; |
| 1172 | -program-transform-name=* | --program-transform-name=* \ |
| 1173 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1174 | | --program-transform-n=* | --program-transform-=* \ |
| 1175 | | --program-transform=* | --program-transfor=* \ |
| 1176 | | --program-transfo=* | --program-transf=* \ |
| 1177 | | --program-trans=* | --program-tran=* \ |
| 1178 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1179 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1182 | ac_prev=pdfdir ;; |
| 1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1184 | pdfdir=$ac_optarg ;; |
| 1185 | |
| 1186 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1187 | ac_prev=psdir ;; |
| 1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1189 | psdir=$ac_optarg ;; |
| 1190 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1192 | | -silent | --silent | --silen | --sile | --sil) |
| 1193 | silent=yes ;; |
| 1194 | |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1195 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1196 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1197 | | --run | --ru | --r) |
| 1198 | ac_prev=runstatedir ;; |
| 1199 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1200 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1201 | | --run=* | --ru=* | --r=*) |
| 1202 | runstatedir=$ac_optarg ;; |
| 1203 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1204 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1205 | ac_prev=sbindir ;; |
| 1206 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1207 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1208 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1209 | |
| 1210 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1211 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1212 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1213 | | --sha | --sh) |
| 1214 | ac_prev=sharedstatedir ;; |
| 1215 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1216 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1217 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1218 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1219 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1220 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1221 | -site | --site | --sit) |
| 1222 | ac_prev=site ;; |
| 1223 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1224 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1225 | |
| 1226 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1227 | ac_prev=srcdir ;; |
| 1228 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1229 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1230 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1231 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1232 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1233 | ac_prev=sysconfdir ;; |
| 1234 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1235 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1236 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1237 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1238 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1239 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1240 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1241 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1242 | |
| 1243 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1244 | verbose=yes ;; |
| 1245 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1246 | -version | --version | --versio | --versi | --vers | -V) |
| 1247 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1248 | |
| 1249 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1250 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1251 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1253 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1254 | ac_useropt_orig=$ac_useropt |
| 1255 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1256 | case $ac_user_opts in |
| 1257 | *" |
| 1258 | "with_$ac_useropt" |
| 1259 | "*) ;; |
| 1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1261 | ac_unrecognized_sep=', ';; |
| 1262 | esac |
| 1263 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1264 | |
| 1265 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1266 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1267 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1269 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1270 | ac_useropt_orig=$ac_useropt |
| 1271 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1272 | case $ac_user_opts in |
| 1273 | *" |
| 1274 | "with_$ac_useropt" |
| 1275 | "*) ;; |
| 1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1277 | ac_unrecognized_sep=', ';; |
| 1278 | esac |
| 1279 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | |
| 1281 | --x) |
| 1282 | # Obsolete; use --with-x. |
| 1283 | with_x=yes ;; |
| 1284 | |
| 1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1286 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1287 | ac_prev=x_includes ;; |
| 1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1290 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1291 | |
| 1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1294 | ac_prev=x_libraries ;; |
| 1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1296 | | --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] | 1297 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1299 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1300 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1301 | ;; |
| 1302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1303 | *=*) |
| 1304 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1305 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1306 | case $ac_envvar in #( |
| 1307 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1308 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1309 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1310 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1311 | export $ac_envvar ;; |
| 1312 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1313 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1314 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1315 | $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] | 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1317 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1318 | : "${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] | 1319 | ;; |
| 1320 | |
| 1321 | esac |
| 1322 | done |
| 1323 | |
| 1324 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1326 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1327 | fi |
| 1328 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1329 | if test -n "$ac_unrecognized_opts"; then |
| 1330 | case $enable_option_checking in |
| 1331 | no) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1332 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1333 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1334 | esac |
| 1335 | fi |
| 1336 | |
| 1337 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1338 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1339 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1340 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1341 | libdir localedir mandir runstatedir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1342 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1343 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1344 | # Remove trailing slashes. |
| 1345 | case $ac_val in |
| 1346 | */ ) |
| 1347 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1348 | eval $ac_var=\$ac_val;; |
| 1349 | esac |
| 1350 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1351 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1352 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1353 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1354 | esac |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1355 | 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] | 1356 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1357 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1358 | # There might be people who depend on the old broken behavior: `$host' |
| 1359 | # used to hold the argument of --host etc. |
| 1360 | # FIXME: To remove some day. |
| 1361 | build=$build_alias |
| 1362 | host=$host_alias |
| 1363 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1365 | # FIXME: To remove some day. |
| 1366 | if test "x$host_alias" != x; then |
| 1367 | if test "x$build_alias" = x; then |
| 1368 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1369 | elif test "x$build_alias" != "x$host_alias"; then |
| 1370 | cross_compiling=yes |
| 1371 | fi |
| 1372 | fi |
| 1373 | |
| 1374 | ac_tool_prefix= |
| 1375 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1376 | |
| 1377 | test "$silent" = yes && exec 6>/dev/null |
| 1378 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1380 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1381 | ac_ls_di=`ls -di .` && |
| 1382 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1383 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1384 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1385 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1386 | |
| 1387 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1388 | # Find the source files, if location was not specified. |
| 1389 | if test -z "$srcdir"; then |
| 1390 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1391 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1392 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1393 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1394 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1395 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1396 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1397 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)[^/].*/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\/\)$/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | /^X\(\/\).*/{ |
| 1411 | s//\1/ |
| 1412 | q |
| 1413 | } |
| 1414 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1415 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1416 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1417 | srcdir=.. |
| 1418 | fi |
| 1419 | else |
| 1420 | ac_srcdir_defaulted=no |
| 1421 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1423 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1424 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1425 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1426 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1427 | ac_abs_confdir=`( |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1428 | 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] | 1429 | pwd)` |
| 1430 | # When building in place, set srcdir=. |
| 1431 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1432 | srcdir=. |
| 1433 | fi |
| 1434 | # Remove unnecessary trailing slashes from srcdir. |
| 1435 | # Double slashes in file names in object file debugging info |
| 1436 | # mess up M-x gdb in Emacs. |
| 1437 | case $srcdir in |
| 1438 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1439 | esac |
| 1440 | for ac_var in $ac_precious_vars; do |
| 1441 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1442 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1443 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1444 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1445 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1446 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1447 | # |
| 1448 | # Report the --help message. |
| 1449 | # |
| 1450 | if test "$ac_init_help" = "long"; then |
| 1451 | # Omit some internal or obsolete options to make the list less imposing. |
| 1452 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1453 | cat <<_ACEOF |
| 1454 | \`configure' configures this package to adapt to many kinds of systems. |
| 1455 | |
| 1456 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1457 | |
| 1458 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1459 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1460 | |
| 1461 | Defaults for the options are specified in brackets. |
| 1462 | |
| 1463 | Configuration: |
| 1464 | -h, --help display this help and exit |
| 1465 | --help=short display options specific to this package |
| 1466 | --help=recursive display the short help of all the included packages |
| 1467 | -V, --version display version information and exit |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1468 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | --cache-file=FILE cache test results in FILE [disabled] |
| 1470 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1471 | -n, --no-create do not create output files |
| 1472 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | Installation directories: |
| 1475 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1476 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1477 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1478 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1479 | |
| 1480 | By default, \`make install' will install all the files in |
| 1481 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1482 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1483 | for instance \`--prefix=\$HOME'. |
| 1484 | |
| 1485 | For better control, use the options below. |
| 1486 | |
| 1487 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1488 | --bindir=DIR user executables [EPREFIX/bin] |
| 1489 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1490 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1491 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1492 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1493 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 1494 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1495 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1496 | --includedir=DIR C header files [PREFIX/include] |
| 1497 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1498 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1499 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1500 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1501 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1502 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1503 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1504 | --htmldir=DIR html documentation [DOCDIR] |
| 1505 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1506 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1507 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1508 | _ACEOF |
| 1509 | |
| 1510 | cat <<\_ACEOF |
| 1511 | |
| 1512 | System types: |
| 1513 | --build=BUILD configure for building on BUILD [guessed] |
| 1514 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1515 | _ACEOF |
| 1516 | fi |
| 1517 | |
| 1518 | if test -n "$ac_init_help"; then |
| 1519 | |
| 1520 | cat <<\_ACEOF |
| 1521 | |
| 1522 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1523 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1524 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1525 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1526 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1527 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1528 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1529 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1530 | --enable-symlink-build use symlinks while building instead of hard links |
| 1531 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1532 | --enable-elf-shlibs select ELF shared libraries |
| 1533 | --enable-bsd-shlibs select BSD shared libraries |
| 1534 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1535 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 1536 | --enable-hardening build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1537 | --enable-jbd-debug enable journal debugging |
| 1538 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1539 | --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] | 1540 | --enable-libuuid build and use private uuid library |
| 1541 | --enable-libblkid build and use private blkid library |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1542 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1543 | --disable-debugfs disable support of debugfs program |
| 1544 | --disable-imager disable support of e2image program |
| 1545 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1546 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | --enable-fsck build fsck wrapper program |
| 1548 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1549 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1550 | --disable-uuidd disable building the uuid daemon |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1551 | --disable-mmp disable support mmp, Multi Mount Protection |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 1552 | --disable-bmap-stats disable collection of bitmap stats. |
| 1553 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1555 | --enable-threads={posix|solaris|pth|windows} |
| 1556 | specify multithreading API |
| 1557 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1558 | --disable-rpath do not hardcode runtime library paths |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 1559 | --disable-fuse2fs do not build fuse2fs |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | |
| 1561 | Optional Packages: |
| 1562 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1563 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1564 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1565 | --with-cc no longer supported, use CC= instead |
| 1566 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1567 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | --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] | 1569 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1570 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1571 | --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] | 1572 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1573 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1574 | --with-included-gettext use the GNU gettext library included here |
| 1575 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1576 | --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] | 1577 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1578 | |
| 1579 | Some influential environment variables: |
| 1580 | CC C compiler command |
| 1581 | CFLAGS C compiler flags |
| 1582 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1583 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1584 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1585 | 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] | 1586 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1587 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1588 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1589 | PKG_CONFIG_PATH |
| 1590 | directories to add to pkg-config's search path |
| 1591 | PKG_CONFIG_LIBDIR |
| 1592 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1593 | |
| 1594 | Use these variables to override the choices made by `configure' or to help |
| 1595 | it to find libraries and programs with nonstandard names/locations. |
| 1596 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1597 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1598 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1599 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1600 | fi |
| 1601 | |
| 1602 | if test "$ac_init_help" = "recursive"; then |
| 1603 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1604 | 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] | 1605 | test -d "$ac_dir" || |
| 1606 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1607 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1608 | ac_builddir=. |
| 1609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1610 | case "$ac_dir" in |
| 1611 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1612 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1613 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1614 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1615 | 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] | 1616 | case $ac_top_builddir_sub in |
| 1617 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1618 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1619 | esac ;; |
| 1620 | esac |
| 1621 | ac_abs_top_builddir=$ac_pwd |
| 1622 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1623 | # for backward compatibility: |
| 1624 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1625 | |
| 1626 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1627 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | ac_top_srcdir=$ac_top_builddir_sub |
| 1630 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1631 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1632 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1633 | ac_top_srcdir=$srcdir |
| 1634 | ac_abs_top_srcdir=$srcdir ;; |
| 1635 | *) # Relative name. |
| 1636 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1637 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1638 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1639 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1640 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1642 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1643 | # Check for guested configure. |
| 1644 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1645 | echo && |
| 1646 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1647 | elif test -f "$ac_srcdir/configure"; then |
| 1648 | echo && |
| 1649 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1650 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1651 | $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] | 1652 | fi || ac_status=$? |
| 1653 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1654 | done |
| 1655 | fi |
| 1656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1657 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1658 | if $ac_init_version; then |
| 1659 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1660 | configure |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1661 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1662 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1663 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1664 | This configure script is free software; the Free Software Foundation |
| 1665 | gives unlimited permission to copy, distribute and modify it. |
| 1666 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1667 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1669 | |
| 1670 | ## ------------------------ ## |
| 1671 | ## Autoconf initialization. ## |
| 1672 | ## ------------------------ ## |
| 1673 | |
| 1674 | # ac_fn_c_try_compile LINENO |
| 1675 | # -------------------------- |
| 1676 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1677 | ac_fn_c_try_compile () |
| 1678 | { |
| 1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1680 | rm -f conftest.$ac_objext |
| 1681 | if { { ac_try="$ac_compile" |
| 1682 | case "(($ac_try" in |
| 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1684 | *) ac_try_echo=$ac_try;; |
| 1685 | esac |
| 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1687 | $as_echo "$ac_try_echo"; } >&5 |
| 1688 | (eval "$ac_compile") 2>conftest.err |
| 1689 | ac_status=$? |
| 1690 | if test -s conftest.err; then |
| 1691 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1692 | cat conftest.er1 >&5 |
| 1693 | mv -f conftest.er1 conftest.err |
| 1694 | fi |
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; } && { |
| 1697 | test -z "$ac_c_werror_flag" || |
| 1698 | test ! -s conftest.err |
| 1699 | } && test -s conftest.$ac_objext; then : |
| 1700 | ac_retval=0 |
| 1701 | else |
| 1702 | $as_echo "$as_me: failed program was:" >&5 |
| 1703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1704 | |
| 1705 | ac_retval=1 |
| 1706 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1708 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1709 | |
| 1710 | } # ac_fn_c_try_compile |
| 1711 | |
| 1712 | # ac_fn_c_try_link LINENO |
| 1713 | # ----------------------- |
| 1714 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1715 | ac_fn_c_try_link () |
| 1716 | { |
| 1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1719 | if { { ac_try="$ac_link" |
| 1720 | case "(($ac_try" in |
| 1721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1722 | *) ac_try_echo=$ac_try;; |
| 1723 | esac |
| 1724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1725 | $as_echo "$ac_try_echo"; } >&5 |
| 1726 | (eval "$ac_link") 2>conftest.err |
| 1727 | ac_status=$? |
| 1728 | if test -s conftest.err; then |
| 1729 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1730 | cat conftest.er1 >&5 |
| 1731 | mv -f conftest.er1 conftest.err |
| 1732 | fi |
| 1733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1734 | test $ac_status = 0; } && { |
| 1735 | test -z "$ac_c_werror_flag" || |
| 1736 | test ! -s conftest.err |
| 1737 | } && test -s conftest$ac_exeext && { |
| 1738 | test "$cross_compiling" = yes || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1739 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1740 | }; then : |
| 1741 | ac_retval=0 |
| 1742 | else |
| 1743 | $as_echo "$as_me: failed program was:" >&5 |
| 1744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1745 | |
| 1746 | ac_retval=1 |
| 1747 | fi |
| 1748 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1749 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1750 | # interfere with the next link command; also delete a directory that is |
| 1751 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1752 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1754 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1755 | |
| 1756 | } # ac_fn_c_try_link |
| 1757 | |
| 1758 | # ac_fn_c_try_cpp LINENO |
| 1759 | # ---------------------- |
| 1760 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1761 | ac_fn_c_try_cpp () |
| 1762 | { |
| 1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1764 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1765 | case "(($ac_try" in |
| 1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1767 | *) ac_try_echo=$ac_try;; |
| 1768 | esac |
| 1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1770 | $as_echo "$ac_try_echo"; } >&5 |
| 1771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1772 | ac_status=$? |
| 1773 | if test -s conftest.err; then |
| 1774 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1775 | cat conftest.er1 >&5 |
| 1776 | mv -f conftest.er1 conftest.err |
| 1777 | fi |
| 1778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1779 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1781 | test ! -s conftest.err |
| 1782 | }; then : |
| 1783 | ac_retval=0 |
| 1784 | else |
| 1785 | $as_echo "$as_me: failed program was:" >&5 |
| 1786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1787 | |
| 1788 | ac_retval=1 |
| 1789 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1790 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1791 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1792 | |
| 1793 | } # ac_fn_c_try_cpp |
| 1794 | |
| 1795 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1796 | # ------------------------------------------------------- |
| 1797 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1798 | # the include files in INCLUDES and setting the cache variable VAR |
| 1799 | # accordingly. |
| 1800 | ac_fn_c_check_header_mongrel () |
| 1801 | { |
| 1802 | 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] | 1803 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1805 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1806 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1807 | $as_echo_n "(cached) " >&6 |
| 1808 | fi |
| 1809 | eval ac_res=\$$3 |
| 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1811 | $as_echo "$ac_res" >&6; } |
| 1812 | else |
| 1813 | # Is the header compilable? |
| 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1815 | $as_echo_n "checking $2 usability... " >&6; } |
| 1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1817 | /* end confdefs.h. */ |
| 1818 | $4 |
| 1819 | #include <$2> |
| 1820 | _ACEOF |
| 1821 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1822 | ac_header_compiler=yes |
| 1823 | else |
| 1824 | ac_header_compiler=no |
| 1825 | fi |
| 1826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1828 | $as_echo "$ac_header_compiler" >&6; } |
| 1829 | |
| 1830 | # Is the header present? |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1832 | $as_echo_n "checking $2 presence... " >&6; } |
| 1833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1834 | /* end confdefs.h. */ |
| 1835 | #include <$2> |
| 1836 | _ACEOF |
| 1837 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1838 | ac_header_preproc=yes |
| 1839 | else |
| 1840 | ac_header_preproc=no |
| 1841 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1842 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1844 | $as_echo "$ac_header_preproc" >&6; } |
| 1845 | |
| 1846 | # So? What about this header? |
| 1847 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1848 | yes:no: ) |
| 1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1850 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1852 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1853 | ;; |
| 1854 | no:yes:* ) |
| 1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1856 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1858 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1860 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1862 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1864 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1865 | ;; |
| 1866 | esac |
| 1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1868 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1869 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1870 | $as_echo_n "(cached) " >&6 |
| 1871 | else |
| 1872 | eval "$3=\$ac_header_compiler" |
| 1873 | fi |
| 1874 | eval ac_res=\$$3 |
| 1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1876 | $as_echo "$ac_res" >&6; } |
| 1877 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1878 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1879 | |
| 1880 | } # ac_fn_c_check_header_mongrel |
| 1881 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1882 | # ac_fn_c_try_run LINENO |
| 1883 | # ---------------------- |
| 1884 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1885 | # that executables *can* be run. |
| 1886 | ac_fn_c_try_run () |
| 1887 | { |
| 1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1889 | if { { ac_try="$ac_link" |
| 1890 | case "(($ac_try" in |
| 1891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1892 | *) ac_try_echo=$ac_try;; |
| 1893 | esac |
| 1894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1895 | $as_echo "$ac_try_echo"; } >&5 |
| 1896 | (eval "$ac_link") 2>&5 |
| 1897 | ac_status=$? |
| 1898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1899 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1900 | { { case "(($ac_try" in |
| 1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1902 | *) ac_try_echo=$ac_try;; |
| 1903 | esac |
| 1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1905 | $as_echo "$ac_try_echo"; } >&5 |
| 1906 | (eval "$ac_try") 2>&5 |
| 1907 | ac_status=$? |
| 1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1909 | test $ac_status = 0; }; }; then : |
| 1910 | ac_retval=0 |
| 1911 | else |
| 1912 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1913 | $as_echo "$as_me: failed program was:" >&5 |
| 1914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1915 | |
| 1916 | ac_retval=$ac_status |
| 1917 | fi |
| 1918 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1920 | as_fn_set_status $ac_retval |
| 1921 | |
| 1922 | } # ac_fn_c_try_run |
| 1923 | |
| 1924 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1925 | # ------------------------------------------------------- |
| 1926 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1927 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1928 | ac_fn_c_check_header_compile () |
| 1929 | { |
| 1930 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1932 | $as_echo_n "checking for $2... " >&6; } |
| 1933 | if eval \${$3+:} false; then : |
| 1934 | $as_echo_n "(cached) " >&6 |
| 1935 | else |
| 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1937 | /* end confdefs.h. */ |
| 1938 | $4 |
| 1939 | #include <$2> |
| 1940 | _ACEOF |
| 1941 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1942 | eval "$3=yes" |
| 1943 | else |
| 1944 | eval "$3=no" |
| 1945 | fi |
| 1946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1947 | fi |
| 1948 | eval ac_res=\$$3 |
| 1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1950 | $as_echo "$ac_res" >&6; } |
| 1951 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1952 | |
| 1953 | } # ac_fn_c_check_header_compile |
| 1954 | |
| 1955 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1956 | # ------------------------------------------- |
| 1957 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1958 | # variable VAR accordingly. |
| 1959 | ac_fn_c_check_type () |
| 1960 | { |
| 1961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1963 | $as_echo_n "checking for $2... " >&6; } |
| 1964 | if eval \${$3+:} false; then : |
| 1965 | $as_echo_n "(cached) " >&6 |
| 1966 | else |
| 1967 | eval "$3=no" |
| 1968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1969 | /* end confdefs.h. */ |
| 1970 | $4 |
| 1971 | int |
| 1972 | main () |
| 1973 | { |
| 1974 | if (sizeof ($2)) |
| 1975 | return 0; |
| 1976 | ; |
| 1977 | return 0; |
| 1978 | } |
| 1979 | _ACEOF |
| 1980 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1982 | /* end confdefs.h. */ |
| 1983 | $4 |
| 1984 | int |
| 1985 | main () |
| 1986 | { |
| 1987 | if (sizeof (($2))) |
| 1988 | return 0; |
| 1989 | ; |
| 1990 | return 0; |
| 1991 | } |
| 1992 | _ACEOF |
| 1993 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1994 | |
| 1995 | else |
| 1996 | eval "$3=yes" |
| 1997 | fi |
| 1998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1999 | fi |
| 2000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2001 | fi |
| 2002 | eval ac_res=\$$3 |
| 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2004 | $as_echo "$ac_res" >&6; } |
| 2005 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2006 | |
| 2007 | } # ac_fn_c_check_type |
| 2008 | |
| 2009 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2010 | # ---------------------------------- |
| 2011 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2012 | ac_fn_c_check_func () |
| 2013 | { |
| 2014 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2016 | $as_echo_n "checking for $2... " >&6; } |
| 2017 | if eval \${$3+:} false; then : |
| 2018 | $as_echo_n "(cached) " >&6 |
| 2019 | else |
| 2020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2021 | /* end confdefs.h. */ |
| 2022 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2024 | #define $2 innocuous_$2 |
| 2025 | |
| 2026 | /* System header to define __stub macros and hopefully few prototypes, |
| 2027 | which can conflict with char $2 (); below. |
| 2028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2029 | <limits.h> exists even on freestanding compilers. */ |
| 2030 | |
| 2031 | #ifdef __STDC__ |
| 2032 | # include <limits.h> |
| 2033 | #else |
| 2034 | # include <assert.h> |
| 2035 | #endif |
| 2036 | |
| 2037 | #undef $2 |
| 2038 | |
| 2039 | /* Override any GCC internal prototype to avoid an error. |
| 2040 | Use char because int might match the return type of a GCC |
| 2041 | builtin and then its argument prototype would still apply. */ |
| 2042 | #ifdef __cplusplus |
| 2043 | extern "C" |
| 2044 | #endif |
| 2045 | char $2 (); |
| 2046 | /* The GNU C library defines this for functions which it implements |
| 2047 | to always fail with ENOSYS. Some functions are actually named |
| 2048 | something starting with __ and the normal name is an alias. */ |
| 2049 | #if defined __stub_$2 || defined __stub___$2 |
| 2050 | choke me |
| 2051 | #endif |
| 2052 | |
| 2053 | int |
| 2054 | main () |
| 2055 | { |
| 2056 | return $2 (); |
| 2057 | ; |
| 2058 | return 0; |
| 2059 | } |
| 2060 | _ACEOF |
| 2061 | if ac_fn_c_try_link "$LINENO"; then : |
| 2062 | eval "$3=yes" |
| 2063 | else |
| 2064 | eval "$3=no" |
| 2065 | fi |
| 2066 | rm -f core conftest.err conftest.$ac_objext \ |
| 2067 | conftest$ac_exeext conftest.$ac_ext |
| 2068 | fi |
| 2069 | eval ac_res=\$$3 |
| 2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2071 | $as_echo "$ac_res" >&6; } |
| 2072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2073 | |
| 2074 | } # ac_fn_c_check_func |
| 2075 | |
| 2076 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2077 | # --------------------------------------------- |
| 2078 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2079 | # accordingly. |
| 2080 | ac_fn_c_check_decl () |
| 2081 | { |
| 2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2083 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2084 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2086 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2087 | if eval \${$3+:} false; then : |
| 2088 | $as_echo_n "(cached) " >&6 |
| 2089 | else |
| 2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2091 | /* end confdefs.h. */ |
| 2092 | $4 |
| 2093 | int |
| 2094 | main () |
| 2095 | { |
| 2096 | #ifndef $as_decl_name |
| 2097 | #ifdef __cplusplus |
| 2098 | (void) $as_decl_use; |
| 2099 | #else |
| 2100 | (void) $as_decl_name; |
| 2101 | #endif |
| 2102 | #endif |
| 2103 | |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2109 | eval "$3=yes" |
| 2110 | else |
| 2111 | eval "$3=no" |
| 2112 | fi |
| 2113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2114 | fi |
| 2115 | eval ac_res=\$$3 |
| 2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2117 | $as_echo "$ac_res" >&6; } |
| 2118 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2119 | |
| 2120 | } # ac_fn_c_check_decl |
| 2121 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2122 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2123 | # -------------------------------------------- |
| 2124 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2125 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2126 | # computed |
| 2127 | ac_fn_c_compute_int () |
| 2128 | { |
| 2129 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2130 | if test "$cross_compiling" = yes; then |
| 2131 | # Depending upon the size, compute the lo and hi bounds. |
| 2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2133 | /* end confdefs.h. */ |
| 2134 | $4 |
| 2135 | int |
| 2136 | main () |
| 2137 | { |
| 2138 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2139 | test_array [0] = 0; |
| 2140 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2141 | |
| 2142 | ; |
| 2143 | return 0; |
| 2144 | } |
| 2145 | _ACEOF |
| 2146 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2147 | ac_lo=0 ac_mid=0 |
| 2148 | while :; do |
| 2149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2150 | /* end confdefs.h. */ |
| 2151 | $4 |
| 2152 | int |
| 2153 | main () |
| 2154 | { |
| 2155 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2156 | test_array [0] = 0; |
| 2157 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2158 | |
| 2159 | ; |
| 2160 | return 0; |
| 2161 | } |
| 2162 | _ACEOF |
| 2163 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2164 | ac_hi=$ac_mid; break |
| 2165 | else |
| 2166 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2167 | if test $ac_lo -le $ac_mid; then |
| 2168 | ac_lo= ac_hi= |
| 2169 | break |
| 2170 | fi |
| 2171 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2172 | fi |
| 2173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2174 | done |
| 2175 | else |
| 2176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2177 | /* end confdefs.h. */ |
| 2178 | $4 |
| 2179 | int |
| 2180 | main () |
| 2181 | { |
| 2182 | static int test_array [1 - 2 * !(($2) < 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2183 | test_array [0] = 0; |
| 2184 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2185 | |
| 2186 | ; |
| 2187 | return 0; |
| 2188 | } |
| 2189 | _ACEOF |
| 2190 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2191 | ac_hi=-1 ac_mid=-1 |
| 2192 | while :; do |
| 2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2194 | /* end confdefs.h. */ |
| 2195 | $4 |
| 2196 | int |
| 2197 | main () |
| 2198 | { |
| 2199 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2200 | test_array [0] = 0; |
| 2201 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2202 | |
| 2203 | ; |
| 2204 | return 0; |
| 2205 | } |
| 2206 | _ACEOF |
| 2207 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2208 | ac_lo=$ac_mid; break |
| 2209 | else |
| 2210 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2211 | if test $ac_mid -le $ac_hi; then |
| 2212 | ac_lo= ac_hi= |
| 2213 | break |
| 2214 | fi |
| 2215 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2216 | fi |
| 2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2218 | done |
| 2219 | else |
| 2220 | ac_lo= ac_hi= |
| 2221 | fi |
| 2222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2223 | fi |
| 2224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2225 | # Binary search between lo and hi bounds. |
| 2226 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2227 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2229 | /* end confdefs.h. */ |
| 2230 | $4 |
| 2231 | int |
| 2232 | main () |
| 2233 | { |
| 2234 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2235 | test_array [0] = 0; |
| 2236 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2237 | |
| 2238 | ; |
| 2239 | return 0; |
| 2240 | } |
| 2241 | _ACEOF |
| 2242 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2243 | ac_hi=$ac_mid |
| 2244 | else |
| 2245 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2246 | fi |
| 2247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2248 | done |
| 2249 | case $ac_lo in #(( |
| 2250 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2251 | '') ac_retval=1 ;; |
| 2252 | esac |
| 2253 | else |
| 2254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2255 | /* end confdefs.h. */ |
| 2256 | $4 |
| 2257 | static long int longval () { return $2; } |
| 2258 | static unsigned long int ulongval () { return $2; } |
| 2259 | #include <stdio.h> |
| 2260 | #include <stdlib.h> |
| 2261 | int |
| 2262 | main () |
| 2263 | { |
| 2264 | |
| 2265 | FILE *f = fopen ("conftest.val", "w"); |
| 2266 | if (! f) |
| 2267 | return 1; |
| 2268 | if (($2) < 0) |
| 2269 | { |
| 2270 | long int i = longval (); |
| 2271 | if (i != ($2)) |
| 2272 | return 1; |
| 2273 | fprintf (f, "%ld", i); |
| 2274 | } |
| 2275 | else |
| 2276 | { |
| 2277 | unsigned long int i = ulongval (); |
| 2278 | if (i != ($2)) |
| 2279 | return 1; |
| 2280 | fprintf (f, "%lu", i); |
| 2281 | } |
| 2282 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2283 | on some platforms. */ |
| 2284 | return ferror (f) || fclose (f) != 0; |
| 2285 | |
| 2286 | ; |
| 2287 | return 0; |
| 2288 | } |
| 2289 | _ACEOF |
| 2290 | if ac_fn_c_try_run "$LINENO"; then : |
| 2291 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2292 | else |
| 2293 | ac_retval=1 |
| 2294 | fi |
| 2295 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2296 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2297 | rm -f conftest.val |
| 2298 | |
| 2299 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2300 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2301 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2302 | |
| 2303 | } # ac_fn_c_compute_int |
| 2304 | |
| 2305 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2306 | # ---------------------------------------------------- |
| 2307 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2308 | # INCLUDES, setting cache variable VAR accordingly. |
| 2309 | ac_fn_c_check_member () |
| 2310 | { |
| 2311 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2313 | $as_echo_n "checking for $2.$3... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2314 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2315 | $as_echo_n "(cached) " >&6 |
| 2316 | else |
| 2317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2318 | /* end confdefs.h. */ |
| 2319 | $5 |
| 2320 | int |
| 2321 | main () |
| 2322 | { |
| 2323 | static $2 ac_aggr; |
| 2324 | if (ac_aggr.$3) |
| 2325 | return 0; |
| 2326 | ; |
| 2327 | return 0; |
| 2328 | } |
| 2329 | _ACEOF |
| 2330 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2331 | eval "$4=yes" |
| 2332 | else |
| 2333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2334 | /* end confdefs.h. */ |
| 2335 | $5 |
| 2336 | int |
| 2337 | main () |
| 2338 | { |
| 2339 | static $2 ac_aggr; |
| 2340 | if (sizeof ac_aggr.$3) |
| 2341 | return 0; |
| 2342 | ; |
| 2343 | return 0; |
| 2344 | } |
| 2345 | _ACEOF |
| 2346 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2347 | eval "$4=yes" |
| 2348 | else |
| 2349 | eval "$4=no" |
| 2350 | fi |
| 2351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2352 | fi |
| 2353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2354 | fi |
| 2355 | eval ac_res=\$$4 |
| 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2357 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2358 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2359 | |
| 2360 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2361 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2362 | This file contains any messages produced by compilers while |
| 2363 | running configure, to aid debugging if configure makes a mistake. |
| 2364 | |
| 2365 | It was created by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2366 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2367 | |
| 2368 | $ $0 $@ |
| 2369 | |
| 2370 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2371 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2372 | { |
| 2373 | cat <<_ASUNAME |
| 2374 | ## --------- ## |
| 2375 | ## Platform. ## |
| 2376 | ## --------- ## |
| 2377 | |
| 2378 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2379 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2380 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2381 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2382 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2383 | |
| 2384 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2385 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2386 | |
| 2387 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2388 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2389 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2390 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2391 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2392 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2393 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2394 | |
| 2395 | _ASUNAME |
| 2396 | |
| 2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2398 | for as_dir in $PATH |
| 2399 | do |
| 2400 | IFS=$as_save_IFS |
| 2401 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2402 | $as_echo "PATH: $as_dir" |
| 2403 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2404 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2405 | |
| 2406 | } >&5 |
| 2407 | |
| 2408 | cat >&5 <<_ACEOF |
| 2409 | |
| 2410 | |
| 2411 | ## ----------- ## |
| 2412 | ## Core tests. ## |
| 2413 | ## ----------- ## |
| 2414 | |
| 2415 | _ACEOF |
| 2416 | |
| 2417 | |
| 2418 | # Keep a trace of the command line. |
| 2419 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2420 | # Strip out --silent because we don't want to record it for future runs. |
| 2421 | # Also quote any args containing shell meta-characters. |
| 2422 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2423 | ac_configure_args= |
| 2424 | ac_configure_args0= |
| 2425 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2426 | ac_must_keep_next=false |
| 2427 | for ac_pass in 1 2 |
| 2428 | do |
| 2429 | for ac_arg |
| 2430 | do |
| 2431 | case $ac_arg in |
| 2432 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2433 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2434 | | -silent | --silent | --silen | --sile | --sil) |
| 2435 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2436 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2437 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2438 | esac |
| 2439 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2440 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2441 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2442 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2443 | if test $ac_must_keep_next = true; then |
| 2444 | ac_must_keep_next=false # Got value, back to normal. |
| 2445 | else |
| 2446 | case $ac_arg in |
| 2447 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2448 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2449 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2450 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2451 | case "$ac_configure_args0 " in |
| 2452 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2453 | esac |
| 2454 | ;; |
| 2455 | -* ) ac_must_keep_next=true ;; |
| 2456 | esac |
| 2457 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2458 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2459 | ;; |
| 2460 | esac |
| 2461 | done |
| 2462 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2463 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2464 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2465 | |
| 2466 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2467 | # config.log. We remove comments because anyway the quotes in there |
| 2468 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2469 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2470 | # 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] | 2471 | trap 'exit_status=$? |
| 2472 | # Save into config.log some information that might help in debugging. |
| 2473 | { |
| 2474 | echo |
| 2475 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2476 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2477 | ## Cache variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2478 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2479 | echo |
| 2480 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2481 | ( |
| 2482 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2483 | eval ac_val=\$$ac_var |
| 2484 | case $ac_val in #( |
| 2485 | *${as_nl}*) |
| 2486 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2487 | *_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] | 2488 | $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] | 2489 | esac |
| 2490 | case $ac_var in #( |
| 2491 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2492 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2493 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2494 | esac ;; |
| 2495 | esac |
| 2496 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2497 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2498 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2499 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2500 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2501 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2502 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2503 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2504 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2505 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2506 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | esac | |
| 2508 | sort |
| 2509 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | echo |
| 2511 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2512 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2513 | ## Output variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2514 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2515 | echo |
| 2516 | for ac_var in $ac_subst_vars |
| 2517 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2518 | eval ac_val=\$$ac_var |
| 2519 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2520 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2521 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2522 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2523 | done | sort |
| 2524 | echo |
| 2525 | |
| 2526 | if test -n "$ac_subst_files"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2527 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2528 | ## File substitutions. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2529 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2530 | echo |
| 2531 | for ac_var in $ac_subst_files |
| 2532 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2533 | eval ac_val=\$$ac_var |
| 2534 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2535 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2536 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2537 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2538 | done | sort |
| 2539 | echo |
| 2540 | fi |
| 2541 | |
| 2542 | if test -s confdefs.h; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2543 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2544 | ## confdefs.h. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2545 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2546 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2547 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2548 | echo |
| 2549 | fi |
| 2550 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2551 | $as_echo "$as_me: caught signal $ac_signal" |
| 2552 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2554 | rm -f core *.core core.conftest.* && |
| 2555 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2556 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2557 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2558 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2559 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2560 | done |
| 2561 | ac_signal=0 |
| 2562 | |
| 2563 | # 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] | 2564 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2565 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2566 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2567 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2568 | # Predefined preprocessor variables. |
| 2569 | |
| 2570 | cat >>confdefs.h <<_ACEOF |
| 2571 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2572 | _ACEOF |
| 2573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2574 | cat >>confdefs.h <<_ACEOF |
| 2575 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2576 | _ACEOF |
| 2577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2578 | cat >>confdefs.h <<_ACEOF |
| 2579 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2580 | _ACEOF |
| 2581 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2582 | cat >>confdefs.h <<_ACEOF |
| 2583 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2584 | _ACEOF |
| 2585 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2586 | cat >>confdefs.h <<_ACEOF |
| 2587 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2588 | _ACEOF |
| 2589 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2590 | cat >>confdefs.h <<_ACEOF |
| 2591 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2592 | _ACEOF |
| 2593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2594 | |
| 2595 | # 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] | 2596 | # Prefer an explicitly selected file to automatically selected ones. |
| 2597 | ac_site_file1=NONE |
| 2598 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2599 | if test -n "$CONFIG_SITE"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2600 | # We do not want a PATH search for config.site. |
| 2601 | case $CONFIG_SITE in #(( |
| 2602 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2603 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2604 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2605 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2606 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2607 | ac_site_file1=$prefix/share/config.site |
| 2608 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2609 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2610 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2611 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2612 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2613 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2614 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2615 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2616 | 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] | 2617 | { $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] | 2618 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2619 | sed 's/^/| /' "$ac_site_file" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2620 | . "$ac_site_file" \ |
| 2621 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2623 | as_fn_error $? "failed to load site script $ac_site_file |
| 2624 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2625 | fi |
| 2626 | done |
| 2627 | |
| 2628 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2629 | # Some versions of bash will fail to source /dev/null (special files |
| 2630 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2631 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2632 | { $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] | 2633 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2634 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2635 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2636 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2637 | esac |
| 2638 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2639 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2640 | { $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] | 2641 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2642 | >$cache_file |
| 2643 | fi |
| 2644 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2645 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2646 | as_fn_append ac_header_list " stdlib.h" |
| 2647 | as_fn_append ac_header_list " unistd.h" |
| 2648 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2649 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2650 | # Check that the precious variables saved in the cache have kept the same |
| 2651 | # value. |
| 2652 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2653 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2654 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2655 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2656 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2657 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | case $ac_old_set,$ac_new_set in |
| 2659 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2660 | { $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] | 2661 | $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] | 2662 | ac_cache_corrupted=: ;; |
| 2663 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2664 | { $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] | 2665 | $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] | 2666 | ac_cache_corrupted=: ;; |
| 2667 | ,);; |
| 2668 | *) |
| 2669 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2670 | # differences in whitespace do not lead to failure. |
| 2671 | ac_old_val_w=`echo x $ac_old_val` |
| 2672 | ac_new_val_w=`echo x $ac_new_val` |
| 2673 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2674 | { $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] | 2675 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2676 | ac_cache_corrupted=: |
| 2677 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2678 | { $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] | 2679 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2680 | eval $ac_var=\$ac_old_val |
| 2681 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2682 | { $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] | 2683 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2684 | { $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] | 2685 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2686 | fi;; |
| 2687 | esac |
| 2688 | # Pass precious variables to config.status. |
| 2689 | if test "$ac_new_set" = set; then |
| 2690 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2691 | *\'*) 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] | 2692 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2693 | esac |
| 2694 | case " $ac_configure_args " in |
| 2695 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2696 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2697 | esac |
| 2698 | fi |
| 2699 | done |
| 2700 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2701 | { $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] | 2702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2703 | { $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] | 2704 | $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] | 2705 | 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] | 2706 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2707 | ## -------------------- ## |
| 2708 | ## Main body of script. ## |
| 2709 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2710 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2711 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2712 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2716 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2717 | |
| 2718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2719 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2720 | for ac_dir in config "$srcdir"/config; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2721 | if test -f "$ac_dir/install-sh"; then |
| 2722 | ac_aux_dir=$ac_dir |
| 2723 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2724 | break |
| 2725 | elif test -f "$ac_dir/install.sh"; then |
| 2726 | ac_aux_dir=$ac_dir |
| 2727 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2728 | break |
| 2729 | elif test -f "$ac_dir/shtool"; then |
| 2730 | ac_aux_dir=$ac_dir |
| 2731 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2732 | break |
| 2733 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2734 | done |
| 2735 | if test -z "$ac_aux_dir"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2736 | 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] | 2737 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2738 | |
| 2739 | # These three variables are undocumented and unsupported, |
| 2740 | # and are intended to be withdrawn in a future Autoconf release. |
| 2741 | # They can cause serious problems if a builder's source tree is in a directory |
| 2742 | # whose full name contains unusual characters. |
| 2743 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2744 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2745 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2746 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2747 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2748 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2749 | |
| 2750 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2751 | MCONFIG=./MCONFIG |
| 2752 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2753 | BINARY_TYPE=bin |
| 2754 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2755 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2756 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2757 | | tr \" " "` |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2758 | 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] | 2759 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2760 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2761 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2762 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2763 | E2FSPROGS_YEAR=$YEAR |
| 2764 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2765 | E2FSPROGS_YEAR=19$YEAR |
| 2766 | else |
| 2767 | E2FSPROGS_YEAR=20$YEAR |
| 2768 | fi |
| 2769 | |
| 2770 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2771 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2772 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2773 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2774 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2775 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2776 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2777 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2778 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2779 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2780 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2781 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2782 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2783 | *) { $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] | 2784 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2785 | esac |
| 2786 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2787 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2788 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2789 | |
| 2790 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2791 | |
| 2792 | case $E2FSPROGS_VERSION in |
| 2793 | *-WIP|pre-*) |
Theodore Ts'o | 2ab5382 | 2016-03-15 01:10:29 -0400 | [diff] [blame] | 2794 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2795 | ;; |
| 2796 | *) |
| 2797 | E2FSPROGS_PKGVER="$base_ver" |
| 2798 | ;; |
| 2799 | esac |
| 2800 | |
| 2801 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2802 | { $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] | 2803 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2804 | { $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] | 2805 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2806 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2807 | |
| 2808 | |
| 2809 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2810 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2811 | WITH_DIET_LIBC= |
| 2812 | |
| 2813 | # Check whether --with-diet-libc was given. |
| 2814 | if test "${with_diet_libc+set}" = set; then : |
| 2815 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2816 | WITH_DIET_LIBC=yes |
| 2817 | if test -z "$LIBS" |
| 2818 | then |
| 2819 | LIBS="-lcompat" |
| 2820 | else |
| 2821 | LIBS="$LIBS -lcompat" |
| 2822 | fi |
| 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2824 | $as_echo "CC=$CC" >&6; } |
| 2825 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2826 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2827 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2828 | 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] | 2829 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2830 | { $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] | 2831 | $as_echo_n "checking build system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2832 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2833 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2834 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2835 | ac_build_alias=$build_alias |
| 2836 | test "x$ac_build_alias" = x && |
| 2837 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2838 | test "x$ac_build_alias" = x && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2839 | 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] | 2840 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2841 | 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] | 2842 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2843 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2844 | { $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] | 2845 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2846 | case $ac_cv_build in |
| 2847 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2848 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2849 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2850 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2851 | ac_save_IFS=$IFS; IFS='-' |
| 2852 | set x $ac_cv_build |
| 2853 | shift |
| 2854 | build_cpu=$1 |
| 2855 | build_vendor=$2 |
| 2856 | shift; shift |
| 2857 | # Remember, the first character of IFS is used to create $*, |
| 2858 | # except with old shells: |
| 2859 | build_os=$* |
| 2860 | IFS=$ac_save_IFS |
| 2861 | 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] | 2862 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2863 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2864 | { $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] | 2865 | $as_echo_n "checking host system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2866 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2867 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2868 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2869 | if test "x$host_alias" = x; then |
| 2870 | ac_cv_host=$ac_cv_build |
| 2871 | else |
| 2872 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2873 | 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] | 2874 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2875 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2876 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2877 | { $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] | 2878 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2879 | case $ac_cv_host in |
| 2880 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2881 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2882 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2883 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2884 | ac_save_IFS=$IFS; IFS='-' |
| 2885 | set x $ac_cv_host |
| 2886 | shift |
| 2887 | host_cpu=$1 |
| 2888 | host_vendor=$2 |
| 2889 | shift; shift |
| 2890 | # Remember, the first character of IFS is used to create $*, |
| 2891 | # except with old shells: |
| 2892 | host_os=$* |
| 2893 | IFS=$ac_save_IFS |
| 2894 | 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] | 2895 | |
| 2896 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2897 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2898 | ac_ext=c |
| 2899 | ac_cpp='$CPP $CPPFLAGS' |
| 2900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2903 | if test -n "$ac_tool_prefix"; then |
| 2904 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2905 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2906 | { $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] | 2907 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2908 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2909 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2910 | else |
| 2911 | if test -n "$CC"; then |
| 2912 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2913 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2915 | for as_dir in $PATH |
| 2916 | do |
| 2917 | IFS=$as_save_IFS |
| 2918 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2919 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2920 | 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] | 2921 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2922 | $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] | 2923 | break 2 |
| 2924 | fi |
| 2925 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2926 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2927 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2928 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2929 | fi |
| 2930 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2931 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2932 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2934 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2935 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2937 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2938 | fi |
| 2939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2940 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2941 | fi |
| 2942 | if test -z "$ac_cv_prog_CC"; then |
| 2943 | ac_ct_CC=$CC |
| 2944 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2945 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2946 | { $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] | 2947 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2948 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2949 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2950 | else |
| 2951 | if test -n "$ac_ct_CC"; then |
| 2952 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2953 | else |
| 2954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2955 | for as_dir in $PATH |
| 2956 | do |
| 2957 | IFS=$as_save_IFS |
| 2958 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2960 | 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] | 2961 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2962 | $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] | 2963 | break 2 |
| 2964 | fi |
| 2965 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2966 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2967 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2968 | |
| 2969 | fi |
| 2970 | fi |
| 2971 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2972 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2973 | { $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] | 2974 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2975 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2977 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2978 | fi |
| 2979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2980 | if test "x$ac_ct_CC" = x; then |
| 2981 | CC="" |
| 2982 | else |
| 2983 | case $cross_compiling:$ac_tool_warned in |
| 2984 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2985 | { $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] | 2986 | $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] | 2987 | ac_tool_warned=yes ;; |
| 2988 | esac |
| 2989 | CC=$ac_ct_CC |
| 2990 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2991 | else |
| 2992 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2993 | fi |
| 2994 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2995 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2996 | if test -n "$ac_tool_prefix"; then |
| 2997 | # 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] | 2998 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3000 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3001 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3002 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3003 | else |
| 3004 | if test -n "$CC"; then |
| 3005 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3008 | for as_dir in $PATH |
| 3009 | do |
| 3010 | IFS=$as_save_IFS |
| 3011 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3013 | 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] | 3014 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3016 | break 2 |
| 3017 | fi |
| 3018 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3019 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | |
| 3022 | fi |
| 3023 | fi |
| 3024 | CC=$ac_cv_prog_CC |
| 3025 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3027 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3030 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3031 | fi |
| 3032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3034 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | fi |
| 3036 | if test -z "$CC"; then |
| 3037 | # Extract the first word of "cc", so it can be a program name with args. |
| 3038 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3039 | { $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] | 3040 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3041 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3042 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3043 | else |
| 3044 | if test -n "$CC"; then |
| 3045 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3046 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3047 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3049 | for as_dir in $PATH |
| 3050 | do |
| 3051 | IFS=$as_save_IFS |
| 3052 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3054 | 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] | 3055 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3056 | ac_prog_rejected=yes |
| 3057 | continue |
| 3058 | fi |
| 3059 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3060 | $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] | 3061 | break 2 |
| 3062 | fi |
| 3063 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3064 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3065 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3066 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3067 | if test $ac_prog_rejected = yes; then |
| 3068 | # We found a bogon in the path, so make sure we never use it. |
| 3069 | set dummy $ac_cv_prog_CC |
| 3070 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3071 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3072 | # We chose a different compiler from the bogus one. |
| 3073 | # However, it has the same basename, so the bogon will be chosen |
| 3074 | # first if we set CC to just the basename; use the full file name. |
| 3075 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3076 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3077 | fi |
| 3078 | fi |
| 3079 | fi |
| 3080 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3081 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3082 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3084 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3085 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3087 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3088 | fi |
| 3089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3090 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | fi |
| 3092 | if test -z "$CC"; then |
| 3093 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3094 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3095 | do |
| 3096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3098 | { $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] | 3099 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3100 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3101 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3102 | else |
| 3103 | if test -n "$CC"; then |
| 3104 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3105 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3107 | for as_dir in $PATH |
| 3108 | do |
| 3109 | IFS=$as_save_IFS |
| 3110 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3111 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3112 | 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] | 3113 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3114 | $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] | 3115 | break 2 |
| 3116 | fi |
| 3117 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3118 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3119 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3120 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3121 | fi |
| 3122 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3123 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3124 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3126 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3127 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3129 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3130 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3131 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3132 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3133 | test -n "$CC" && break |
| 3134 | done |
| 3135 | fi |
| 3136 | if test -z "$CC"; then |
| 3137 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3138 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3139 | do |
| 3140 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3141 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3142 | { $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] | 3143 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3144 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3145 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3146 | else |
| 3147 | if test -n "$ac_ct_CC"; then |
| 3148 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3149 | else |
| 3150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3151 | for as_dir in $PATH |
| 3152 | do |
| 3153 | IFS=$as_save_IFS |
| 3154 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3156 | 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] | 3157 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3158 | $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] | 3159 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3160 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3161 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3162 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3163 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3164 | |
| 3165 | fi |
| 3166 | fi |
| 3167 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3168 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3169 | { $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] | 3170 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3171 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3173 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3174 | fi |
| 3175 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3176 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3177 | test -n "$ac_ct_CC" && break |
| 3178 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3179 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3180 | if test "x$ac_ct_CC" = x; then |
| 3181 | CC="" |
| 3182 | else |
| 3183 | case $cross_compiling:$ac_tool_warned in |
| 3184 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3185 | { $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] | 3186 | $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] | 3187 | ac_tool_warned=yes ;; |
| 3188 | esac |
| 3189 | CC=$ac_ct_CC |
| 3190 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3191 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3193 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3194 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3195 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3196 | 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] | 3197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3198 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3199 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3200 | |
| 3201 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3202 | $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] | 3203 | set X $ac_compile |
| 3204 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3205 | for ac_option in --version -v -V -qversion; do |
| 3206 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3207 | case "(($ac_try" in |
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3209 | *) ac_try_echo=$ac_try;; |
| 3210 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3211 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3212 | $as_echo "$ac_try_echo"; } >&5 |
| 3213 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3214 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3215 | if test -s conftest.err; then |
| 3216 | sed '10a\ |
| 3217 | ... rest of stderr output deleted ... |
| 3218 | 10q' conftest.err >conftest.er1 |
| 3219 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3220 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3221 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3223 | test $ac_status = 0; } |
| 3224 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3225 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3227 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3228 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3229 | int |
| 3230 | main () |
| 3231 | { |
| 3232 | |
| 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | _ACEOF |
| 3237 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3238 | 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] | 3239 | # Try to create an executable without -o first, disregard a.out. |
| 3240 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3241 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3243 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3244 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3245 | |
| 3246 | # The possible output files: |
| 3247 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3248 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3249 | ac_rmfiles= |
| 3250 | for ac_file in $ac_files |
| 3251 | do |
| 3252 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3253 | *.$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] | 3254 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3255 | esac |
| 3256 | done |
| 3257 | rm -f $ac_rmfiles |
| 3258 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3259 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3260 | case "(($ac_try" in |
| 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3262 | *) ac_try_echo=$ac_try;; |
| 3263 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3265 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3266 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3267 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3269 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3270 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3271 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3272 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3273 | # so that the user can short-circuit this test for compilers unknown to |
| 3274 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3275 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3276 | do |
| 3277 | test -f "$ac_file" || continue |
| 3278 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3279 | *.$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] | 3280 | ;; |
| 3281 | [ab].out ) |
| 3282 | # We found the default executable, but exeext='' is most |
| 3283 | # certainly right. |
| 3284 | break;; |
| 3285 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3286 | 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] | 3287 | then :; else |
| 3288 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3289 | fi |
| 3290 | # We set ac_cv_exeext here because the later test for it is not |
| 3291 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3292 | # argument, so we may need to know it at that point already. |
| 3293 | # Even if this section looks crufty: it has the advantage of |
| 3294 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3295 | break;; |
| 3296 | * ) |
| 3297 | break;; |
| 3298 | esac |
| 3299 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3300 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3302 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3303 | ac_file='' |
| 3304 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3305 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3307 | $as_echo "no" >&6; } |
| 3308 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3310 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3311 | { { $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] | 3312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3313 | as_fn_error 77 "C compiler cannot create executables |
| 3314 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3315 | else |
| 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3317 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3318 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3320 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3322 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3323 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3324 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3325 | 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] | 3326 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3327 | { $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] | 3328 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3329 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3330 | case "(($ac_try" in |
| 3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3332 | *) ac_try_echo=$ac_try;; |
| 3333 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3335 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3336 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3337 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3339 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3340 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3341 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3342 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3343 | # `rm'. |
| 3344 | for ac_file in conftest.exe conftest conftest.*; do |
| 3345 | test -f "$ac_file" || continue |
| 3346 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3347 | *.$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] | 3348 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3349 | break;; |
| 3350 | * ) break;; |
| 3351 | esac |
| 3352 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3353 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3354 | { { $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] | 3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3356 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3357 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3358 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3359 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3360 | { $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] | 3361 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3362 | |
| 3363 | rm -f conftest.$ac_ext |
| 3364 | EXEEXT=$ac_cv_exeext |
| 3365 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3367 | /* end confdefs.h. */ |
| 3368 | #include <stdio.h> |
| 3369 | int |
| 3370 | main () |
| 3371 | { |
| 3372 | FILE *f = fopen ("conftest.out", "w"); |
| 3373 | return ferror (f) || fclose (f) != 0; |
| 3374 | |
| 3375 | ; |
| 3376 | return 0; |
| 3377 | } |
| 3378 | _ACEOF |
| 3379 | ac_clean_files="$ac_clean_files conftest.out" |
| 3380 | # Check that the compiler produces executables we can run. If not, either |
| 3381 | # the compiler is broken, or we cross compile. |
| 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3383 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3384 | if test "$cross_compiling" != yes; then |
| 3385 | { { ac_try="$ac_link" |
| 3386 | case "(($ac_try" in |
| 3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3388 | *) ac_try_echo=$ac_try;; |
| 3389 | esac |
| 3390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3391 | $as_echo "$ac_try_echo"; } >&5 |
| 3392 | (eval "$ac_link") 2>&5 |
| 3393 | ac_status=$? |
| 3394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3395 | test $ac_status = 0; } |
| 3396 | if { ac_try='./conftest$ac_cv_exeext' |
| 3397 | { { case "(($ac_try" in |
| 3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3399 | *) ac_try_echo=$ac_try;; |
| 3400 | esac |
| 3401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3402 | $as_echo "$ac_try_echo"; } >&5 |
| 3403 | (eval "$ac_try") 2>&5 |
| 3404 | ac_status=$? |
| 3405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3406 | test $ac_status = 0; }; }; then |
| 3407 | cross_compiling=no |
| 3408 | else |
| 3409 | if test "$cross_compiling" = maybe; then |
| 3410 | cross_compiling=yes |
| 3411 | else |
| 3412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3414 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3415 | If you meant to cross compile, use \`--host'. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3416 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3417 | fi |
| 3418 | fi |
| 3419 | fi |
| 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3421 | $as_echo "$cross_compiling" >&6; } |
| 3422 | |
| 3423 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3424 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3425 | { $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] | 3426 | $as_echo_n "checking for suffix of object files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3427 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3428 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3431 | /* end confdefs.h. */ |
| 3432 | |
| 3433 | int |
| 3434 | main () |
| 3435 | { |
| 3436 | |
| 3437 | ; |
| 3438 | return 0; |
| 3439 | } |
| 3440 | _ACEOF |
| 3441 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3442 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3443 | case "(($ac_try" in |
| 3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3445 | *) ac_try_echo=$ac_try;; |
| 3446 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3448 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3449 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3450 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3452 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3453 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3454 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3455 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3456 | *.$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] | 3457 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3458 | break;; |
| 3459 | esac |
| 3460 | done |
| 3461 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3462 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3465 | { { $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] | 3466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3467 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3468 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3469 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3471 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3472 | { $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] | 3473 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3474 | OBJEXT=$ac_cv_objext |
| 3475 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3476 | { $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] | 3477 | $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] | 3478 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3479 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3480 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3482 | /* end confdefs.h. */ |
| 3483 | |
| 3484 | int |
| 3485 | main () |
| 3486 | { |
| 3487 | #ifndef __GNUC__ |
| 3488 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3489 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3491 | ; |
| 3492 | return 0; |
| 3493 | } |
| 3494 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3495 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3496 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3497 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3498 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3499 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3501 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3502 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3505 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3506 | if test $ac_compiler_gnu = yes; then |
| 3507 | GCC=yes |
| 3508 | else |
| 3509 | GCC= |
| 3510 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3511 | ac_test_CFLAGS=${CFLAGS+set} |
| 3512 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3513 | { $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] | 3514 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3515 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3516 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3517 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3518 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3519 | ac_c_werror_flag=yes |
| 3520 | ac_cv_prog_cc_g=no |
| 3521 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3523 | /* end confdefs.h. */ |
| 3524 | |
| 3525 | int |
| 3526 | main () |
| 3527 | { |
| 3528 | |
| 3529 | ; |
| 3530 | return 0; |
| 3531 | } |
| 3532 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3533 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3534 | ac_cv_prog_cc_g=yes |
| 3535 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3536 | CFLAGS="" |
| 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3538 | /* end confdefs.h. */ |
| 3539 | |
| 3540 | int |
| 3541 | main () |
| 3542 | { |
| 3543 | |
| 3544 | ; |
| 3545 | return 0; |
| 3546 | } |
| 3547 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3548 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3549 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3550 | else |
| 3551 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3552 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3554 | /* end confdefs.h. */ |
| 3555 | |
| 3556 | int |
| 3557 | main () |
| 3558 | { |
| 3559 | |
| 3560 | ; |
| 3561 | return 0; |
| 3562 | } |
| 3563 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3564 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3565 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3566 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3570 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3572 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3573 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3574 | { $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] | 3575 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3576 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3577 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3578 | elif test $ac_cv_prog_cc_g = yes; then |
| 3579 | if test "$GCC" = yes; then |
| 3580 | CFLAGS="-g -O2" |
| 3581 | else |
| 3582 | CFLAGS="-g" |
| 3583 | fi |
| 3584 | else |
| 3585 | if test "$GCC" = yes; then |
| 3586 | CFLAGS="-O2" |
| 3587 | else |
| 3588 | CFLAGS= |
| 3589 | fi |
| 3590 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3591 | { $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] | 3592 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3593 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3594 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3595 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3596 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3597 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3599 | /* end confdefs.h. */ |
| 3600 | #include <stdarg.h> |
| 3601 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3602 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3603 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3604 | struct buf { int x; }; |
| 3605 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3606 | static char *e (p, i) |
| 3607 | char **p; |
| 3608 | int i; |
| 3609 | { |
| 3610 | return p[i]; |
| 3611 | } |
| 3612 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3613 | { |
| 3614 | char *s; |
| 3615 | va_list v; |
| 3616 | va_start (v,p); |
| 3617 | s = g (p, va_arg (v,int)); |
| 3618 | va_end (v); |
| 3619 | return s; |
| 3620 | } |
| 3621 | |
| 3622 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3623 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3624 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3625 | 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] | 3626 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3627 | 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] | 3628 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3629 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3630 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3631 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3632 | inside strings and character constants. */ |
| 3633 | #define FOO(x) 'x' |
| 3634 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3636 | int test (int i, double x); |
| 3637 | struct s1 {int (*f) (int a);}; |
| 3638 | struct s2 {int (*f) (double a);}; |
| 3639 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3640 | int argc; |
| 3641 | char **argv; |
| 3642 | int |
| 3643 | main () |
| 3644 | { |
| 3645 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3646 | ; |
| 3647 | return 0; |
| 3648 | } |
| 3649 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3650 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3651 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | do |
| 3653 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3654 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3655 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3656 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3657 | rm -f core conftest.err conftest.$ac_objext |
| 3658 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3659 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3661 | CC=$ac_save_CC |
| 3662 | |
| 3663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3664 | # AC_CACHE_VAL |
| 3665 | case "x$ac_cv_prog_cc_c89" in |
| 3666 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3668 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3669 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3671 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3672 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3673 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3674 | { $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] | 3675 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3676 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3677 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3679 | fi |
| 3680 | |
| 3681 | ac_ext=c |
| 3682 | ac_cpp='$CPP $CPPFLAGS' |
| 3683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3686 | |
| 3687 | |
| 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3689 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3690 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3691 | $as_echo_n "(cached) " >&6 |
| 3692 | else |
| 3693 | ac_check_lib_save_LIBS=$LIBS |
| 3694 | LIBS="-ldl $LIBS" |
| 3695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3696 | /* end confdefs.h. */ |
| 3697 | |
| 3698 | /* Override any GCC internal prototype to avoid an error. |
| 3699 | Use char because int might match the return type of a GCC |
| 3700 | builtin and then its argument prototype would still apply. */ |
| 3701 | #ifdef __cplusplus |
| 3702 | extern "C" |
| 3703 | #endif |
| 3704 | char dlopen (); |
| 3705 | int |
| 3706 | main () |
| 3707 | { |
| 3708 | return dlopen (); |
| 3709 | ; |
| 3710 | return 0; |
| 3711 | } |
| 3712 | _ACEOF |
| 3713 | if ac_fn_c_try_link "$LINENO"; then : |
| 3714 | ac_cv_lib_dl_dlopen=yes |
| 3715 | else |
| 3716 | ac_cv_lib_dl_dlopen=no |
| 3717 | fi |
| 3718 | rm -f core conftest.err conftest.$ac_objext \ |
| 3719 | conftest$ac_exeext conftest.$ac_ext |
| 3720 | LIBS=$ac_check_lib_save_LIBS |
| 3721 | fi |
| 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3723 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3724 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3725 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3726 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3727 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3728 | |
| 3729 | fi |
| 3730 | |
| 3731 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3732 | |
| 3733 | # Check whether --with-cc was given. |
| 3734 | if test "${with_cc+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3735 | 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] | 3736 | fi |
| 3737 | |
| 3738 | |
| 3739 | # Check whether --with-ccopts was given. |
| 3740 | if test "${with_ccopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3741 | 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] | 3742 | fi |
| 3743 | |
| 3744 | |
| 3745 | # Check whether --with-ldopts was given. |
| 3746 | if test "${with_ldopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3747 | 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] | 3748 | fi |
| 3749 | |
| 3750 | ac_ext=c |
| 3751 | ac_cpp='$CPP $CPPFLAGS' |
| 3752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3755 | if test -n "$ac_tool_prefix"; then |
| 3756 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3757 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3759 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3760 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3761 | $as_echo_n "(cached) " >&6 |
| 3762 | else |
| 3763 | if test -n "$CC"; then |
| 3764 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3765 | else |
| 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3767 | for as_dir in $PATH |
| 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
| 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3772 | 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] | 3773 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3775 | break 2 |
| 3776 | fi |
| 3777 | done |
| 3778 | done |
| 3779 | IFS=$as_save_IFS |
| 3780 | |
| 3781 | fi |
| 3782 | fi |
| 3783 | CC=$ac_cv_prog_CC |
| 3784 | if test -n "$CC"; then |
| 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3786 | $as_echo "$CC" >&6; } |
| 3787 | else |
| 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3789 | $as_echo "no" >&6; } |
| 3790 | fi |
| 3791 | |
| 3792 | |
| 3793 | fi |
| 3794 | if test -z "$ac_cv_prog_CC"; then |
| 3795 | ac_ct_CC=$CC |
| 3796 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3797 | set dummy gcc; ac_word=$2 |
| 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3799 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3800 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3801 | $as_echo_n "(cached) " >&6 |
| 3802 | else |
| 3803 | if test -n "$ac_ct_CC"; then |
| 3804 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3805 | else |
| 3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3807 | for as_dir in $PATH |
| 3808 | do |
| 3809 | IFS=$as_save_IFS |
| 3810 | test -z "$as_dir" && as_dir=. |
| 3811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3812 | 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] | 3813 | ac_cv_prog_ac_ct_CC="gcc" |
| 3814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3815 | break 2 |
| 3816 | fi |
| 3817 | done |
| 3818 | done |
| 3819 | IFS=$as_save_IFS |
| 3820 | |
| 3821 | fi |
| 3822 | fi |
| 3823 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3824 | if test -n "$ac_ct_CC"; then |
| 3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3826 | $as_echo "$ac_ct_CC" >&6; } |
| 3827 | else |
| 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3829 | $as_echo "no" >&6; } |
| 3830 | fi |
| 3831 | |
| 3832 | if test "x$ac_ct_CC" = x; then |
| 3833 | CC="" |
| 3834 | else |
| 3835 | case $cross_compiling:$ac_tool_warned in |
| 3836 | yes:) |
| 3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3839 | ac_tool_warned=yes ;; |
| 3840 | esac |
| 3841 | CC=$ac_ct_CC |
| 3842 | fi |
| 3843 | else |
| 3844 | CC="$ac_cv_prog_CC" |
| 3845 | fi |
| 3846 | |
| 3847 | if test -z "$CC"; then |
| 3848 | if test -n "$ac_tool_prefix"; then |
| 3849 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3850 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3852 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3853 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3854 | $as_echo_n "(cached) " >&6 |
| 3855 | else |
| 3856 | if test -n "$CC"; then |
| 3857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3858 | else |
| 3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3860 | for as_dir in $PATH |
| 3861 | do |
| 3862 | IFS=$as_save_IFS |
| 3863 | test -z "$as_dir" && as_dir=. |
| 3864 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3865 | 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] | 3866 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3868 | break 2 |
| 3869 | fi |
| 3870 | done |
| 3871 | done |
| 3872 | IFS=$as_save_IFS |
| 3873 | |
| 3874 | fi |
| 3875 | fi |
| 3876 | CC=$ac_cv_prog_CC |
| 3877 | if test -n "$CC"; then |
| 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3879 | $as_echo "$CC" >&6; } |
| 3880 | else |
| 3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3882 | $as_echo "no" >&6; } |
| 3883 | fi |
| 3884 | |
| 3885 | |
| 3886 | fi |
| 3887 | fi |
| 3888 | if test -z "$CC"; then |
| 3889 | # Extract the first word of "cc", so it can be a program name with args. |
| 3890 | set dummy cc; ac_word=$2 |
| 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3892 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3893 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3894 | $as_echo_n "(cached) " >&6 |
| 3895 | else |
| 3896 | if test -n "$CC"; then |
| 3897 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3898 | else |
| 3899 | ac_prog_rejected=no |
| 3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3901 | for as_dir in $PATH |
| 3902 | do |
| 3903 | IFS=$as_save_IFS |
| 3904 | test -z "$as_dir" && as_dir=. |
| 3905 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3906 | 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] | 3907 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3908 | ac_prog_rejected=yes |
| 3909 | continue |
| 3910 | fi |
| 3911 | ac_cv_prog_CC="cc" |
| 3912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3913 | break 2 |
| 3914 | fi |
| 3915 | done |
| 3916 | done |
| 3917 | IFS=$as_save_IFS |
| 3918 | |
| 3919 | if test $ac_prog_rejected = yes; then |
| 3920 | # We found a bogon in the path, so make sure we never use it. |
| 3921 | set dummy $ac_cv_prog_CC |
| 3922 | shift |
| 3923 | if test $# != 0; then |
| 3924 | # We chose a different compiler from the bogus one. |
| 3925 | # However, it has the same basename, so the bogon will be chosen |
| 3926 | # first if we set CC to just the basename; use the full file name. |
| 3927 | shift |
| 3928 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3929 | fi |
| 3930 | fi |
| 3931 | fi |
| 3932 | fi |
| 3933 | CC=$ac_cv_prog_CC |
| 3934 | if test -n "$CC"; then |
| 3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3936 | $as_echo "$CC" >&6; } |
| 3937 | else |
| 3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3939 | $as_echo "no" >&6; } |
| 3940 | fi |
| 3941 | |
| 3942 | |
| 3943 | fi |
| 3944 | if test -z "$CC"; then |
| 3945 | if test -n "$ac_tool_prefix"; then |
| 3946 | for ac_prog in cl.exe |
| 3947 | do |
| 3948 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3949 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3951 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3952 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3953 | $as_echo_n "(cached) " >&6 |
| 3954 | else |
| 3955 | if test -n "$CC"; then |
| 3956 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3957 | else |
| 3958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3959 | for as_dir in $PATH |
| 3960 | do |
| 3961 | IFS=$as_save_IFS |
| 3962 | test -z "$as_dir" && as_dir=. |
| 3963 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3964 | 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] | 3965 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3967 | break 2 |
| 3968 | fi |
| 3969 | done |
| 3970 | done |
| 3971 | IFS=$as_save_IFS |
| 3972 | |
| 3973 | fi |
| 3974 | fi |
| 3975 | CC=$ac_cv_prog_CC |
| 3976 | if test -n "$CC"; then |
| 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3978 | $as_echo "$CC" >&6; } |
| 3979 | else |
| 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3981 | $as_echo "no" >&6; } |
| 3982 | fi |
| 3983 | |
| 3984 | |
| 3985 | test -n "$CC" && break |
| 3986 | done |
| 3987 | fi |
| 3988 | if test -z "$CC"; then |
| 3989 | ac_ct_CC=$CC |
| 3990 | for ac_prog in cl.exe |
| 3991 | do |
| 3992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3993 | set dummy $ac_prog; ac_word=$2 |
| 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3995 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3996 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3997 | $as_echo_n "(cached) " >&6 |
| 3998 | else |
| 3999 | if test -n "$ac_ct_CC"; then |
| 4000 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4001 | else |
| 4002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4003 | for as_dir in $PATH |
| 4004 | do |
| 4005 | IFS=$as_save_IFS |
| 4006 | test -z "$as_dir" && as_dir=. |
| 4007 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4008 | 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] | 4009 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4011 | break 2 |
| 4012 | fi |
| 4013 | done |
| 4014 | done |
| 4015 | IFS=$as_save_IFS |
| 4016 | |
| 4017 | fi |
| 4018 | fi |
| 4019 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4020 | if test -n "$ac_ct_CC"; then |
| 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4022 | $as_echo "$ac_ct_CC" >&6; } |
| 4023 | else |
| 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4025 | $as_echo "no" >&6; } |
| 4026 | fi |
| 4027 | |
| 4028 | |
| 4029 | test -n "$ac_ct_CC" && break |
| 4030 | done |
| 4031 | |
| 4032 | if test "x$ac_ct_CC" = x; then |
| 4033 | CC="" |
| 4034 | else |
| 4035 | case $cross_compiling:$ac_tool_warned in |
| 4036 | yes:) |
| 4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4039 | ac_tool_warned=yes ;; |
| 4040 | esac |
| 4041 | CC=$ac_ct_CC |
| 4042 | fi |
| 4043 | fi |
| 4044 | |
| 4045 | fi |
| 4046 | |
| 4047 | |
| 4048 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4050 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4051 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4052 | |
| 4053 | # Provide some information about the compiler. |
| 4054 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4055 | set X $ac_compile |
| 4056 | ac_compiler=$2 |
| 4057 | for ac_option in --version -v -V -qversion; do |
| 4058 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4059 | case "(($ac_try" in |
| 4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4061 | *) ac_try_echo=$ac_try;; |
| 4062 | esac |
| 4063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4064 | $as_echo "$ac_try_echo"; } >&5 |
| 4065 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4066 | ac_status=$? |
| 4067 | if test -s conftest.err; then |
| 4068 | sed '10a\ |
| 4069 | ... rest of stderr output deleted ... |
| 4070 | 10q' conftest.err >conftest.er1 |
| 4071 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4072 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4073 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4075 | test $ac_status = 0; } |
| 4076 | done |
| 4077 | |
| 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4079 | $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] | 4080 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4081 | $as_echo_n "(cached) " >&6 |
| 4082 | else |
| 4083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4084 | /* end confdefs.h. */ |
| 4085 | |
| 4086 | int |
| 4087 | main () |
| 4088 | { |
| 4089 | #ifndef __GNUC__ |
| 4090 | choke me |
| 4091 | #endif |
| 4092 | |
| 4093 | ; |
| 4094 | return 0; |
| 4095 | } |
| 4096 | _ACEOF |
| 4097 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4098 | ac_compiler_gnu=yes |
| 4099 | else |
| 4100 | ac_compiler_gnu=no |
| 4101 | fi |
| 4102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4103 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4104 | |
| 4105 | fi |
| 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4107 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4108 | if test $ac_compiler_gnu = yes; then |
| 4109 | GCC=yes |
| 4110 | else |
| 4111 | GCC= |
| 4112 | fi |
| 4113 | ac_test_CFLAGS=${CFLAGS+set} |
| 4114 | ac_save_CFLAGS=$CFLAGS |
| 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4116 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4117 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4118 | $as_echo_n "(cached) " >&6 |
| 4119 | else |
| 4120 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4121 | ac_c_werror_flag=yes |
| 4122 | ac_cv_prog_cc_g=no |
| 4123 | CFLAGS="-g" |
| 4124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4125 | /* end confdefs.h. */ |
| 4126 | |
| 4127 | int |
| 4128 | main () |
| 4129 | { |
| 4130 | |
| 4131 | ; |
| 4132 | return 0; |
| 4133 | } |
| 4134 | _ACEOF |
| 4135 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4136 | ac_cv_prog_cc_g=yes |
| 4137 | else |
| 4138 | CFLAGS="" |
| 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4140 | /* end confdefs.h. */ |
| 4141 | |
| 4142 | int |
| 4143 | main () |
| 4144 | { |
| 4145 | |
| 4146 | ; |
| 4147 | return 0; |
| 4148 | } |
| 4149 | _ACEOF |
| 4150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4151 | |
| 4152 | else |
| 4153 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4154 | CFLAGS="-g" |
| 4155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4156 | /* end confdefs.h. */ |
| 4157 | |
| 4158 | int |
| 4159 | main () |
| 4160 | { |
| 4161 | |
| 4162 | ; |
| 4163 | return 0; |
| 4164 | } |
| 4165 | _ACEOF |
| 4166 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4167 | ac_cv_prog_cc_g=yes |
| 4168 | fi |
| 4169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4170 | fi |
| 4171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4172 | fi |
| 4173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4174 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4175 | fi |
| 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4177 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4178 | if test "$ac_test_CFLAGS" = set; then |
| 4179 | CFLAGS=$ac_save_CFLAGS |
| 4180 | elif test $ac_cv_prog_cc_g = yes; then |
| 4181 | if test "$GCC" = yes; then |
| 4182 | CFLAGS="-g -O2" |
| 4183 | else |
| 4184 | CFLAGS="-g" |
| 4185 | fi |
| 4186 | else |
| 4187 | if test "$GCC" = yes; then |
| 4188 | CFLAGS="-O2" |
| 4189 | else |
| 4190 | CFLAGS= |
| 4191 | fi |
| 4192 | fi |
| 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4194 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4195 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4196 | $as_echo_n "(cached) " >&6 |
| 4197 | else |
| 4198 | ac_cv_prog_cc_c89=no |
| 4199 | ac_save_CC=$CC |
| 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4201 | /* end confdefs.h. */ |
| 4202 | #include <stdarg.h> |
| 4203 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4204 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4205 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4206 | struct buf { int x; }; |
| 4207 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4208 | static char *e (p, i) |
| 4209 | char **p; |
| 4210 | int i; |
| 4211 | { |
| 4212 | return p[i]; |
| 4213 | } |
| 4214 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4215 | { |
| 4216 | char *s; |
| 4217 | va_list v; |
| 4218 | va_start (v,p); |
| 4219 | s = g (p, va_arg (v,int)); |
| 4220 | va_end (v); |
| 4221 | return s; |
| 4222 | } |
| 4223 | |
| 4224 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4225 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4226 | These don't provoke an error unfortunately, instead are silently treated |
| 4227 | as 'x'. The following induces an error, until -std is added to get |
| 4228 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4229 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4230 | that's true only with -std. */ |
| 4231 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4232 | |
| 4233 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4234 | inside strings and character constants. */ |
| 4235 | #define FOO(x) 'x' |
| 4236 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4237 | |
| 4238 | int test (int i, double x); |
| 4239 | struct s1 {int (*f) (int a);}; |
| 4240 | struct s2 {int (*f) (double a);}; |
| 4241 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4242 | int argc; |
| 4243 | char **argv; |
| 4244 | int |
| 4245 | main () |
| 4246 | { |
| 4247 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4248 | ; |
| 4249 | return 0; |
| 4250 | } |
| 4251 | _ACEOF |
| 4252 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4253 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4254 | do |
| 4255 | CC="$ac_save_CC $ac_arg" |
| 4256 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4257 | ac_cv_prog_cc_c89=$ac_arg |
| 4258 | fi |
| 4259 | rm -f core conftest.err conftest.$ac_objext |
| 4260 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4261 | done |
| 4262 | rm -f conftest.$ac_ext |
| 4263 | CC=$ac_save_CC |
| 4264 | |
| 4265 | fi |
| 4266 | # AC_CACHE_VAL |
| 4267 | case "x$ac_cv_prog_cc_c89" in |
| 4268 | x) |
| 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4270 | $as_echo "none needed" >&6; } ;; |
| 4271 | xno) |
| 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4273 | $as_echo "unsupported" >&6; } ;; |
| 4274 | *) |
| 4275 | CC="$CC $ac_cv_prog_cc_c89" |
| 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4277 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4278 | esac |
| 4279 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4280 | |
| 4281 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4282 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | ac_ext=c |
| 4284 | ac_cpp='$CPP $CPPFLAGS' |
| 4285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4288 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4289 | if test "$GCC" = yes; then |
| 4290 | RDYNAMIC="-rdynamic" |
| 4291 | |
| 4292 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4293 | ac_ext=c |
| 4294 | ac_cpp='$CPP $CPPFLAGS' |
| 4295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4298 | { $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] | 4299 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4300 | # On Suns, sometimes $CPP names a directory. |
| 4301 | if test -n "$CPP" && test -d "$CPP"; then |
| 4302 | CPP= |
| 4303 | fi |
| 4304 | if test -z "$CPP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4305 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4306 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4307 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4308 | # Double quotes because CPP needs to be expanded |
| 4309 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4310 | do |
| 4311 | ac_preproc_ok=false |
| 4312 | for ac_c_preproc_warn_flag in '' yes |
| 4313 | do |
| 4314 | # Use a header file that comes with gcc, so configuring glibc |
| 4315 | # with a fresh cross-compiler works. |
| 4316 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4317 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4318 | # 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] | 4319 | # 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] | 4320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4321 | /* end confdefs.h. */ |
| 4322 | #ifdef __STDC__ |
| 4323 | # include <limits.h> |
| 4324 | #else |
| 4325 | # include <assert.h> |
| 4326 | #endif |
| 4327 | Syntax error |
| 4328 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4329 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4330 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4331 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4332 | # Broken: fails on valid input. |
| 4333 | continue |
| 4334 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4335 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4337 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | /* end confdefs.h. */ |
| 4341 | #include <ac_nonexistent.h> |
| 4342 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4343 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4344 | # Broken: success on invalid input. |
| 4345 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4346 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4347 | # Passes both tests. |
| 4348 | ac_preproc_ok=: |
| 4349 | break |
| 4350 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4351 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4352 | |
| 4353 | done |
| 4354 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4355 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4356 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4357 | break |
| 4358 | fi |
| 4359 | |
| 4360 | done |
| 4361 | ac_cv_prog_CPP=$CPP |
| 4362 | |
| 4363 | fi |
| 4364 | CPP=$ac_cv_prog_CPP |
| 4365 | else |
| 4366 | ac_cv_prog_CPP=$CPP |
| 4367 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4369 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4370 | ac_preproc_ok=false |
| 4371 | for ac_c_preproc_warn_flag in '' yes |
| 4372 | do |
| 4373 | # Use a header file that comes with gcc, so configuring glibc |
| 4374 | # with a fresh cross-compiler works. |
| 4375 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4376 | # <limits.h> exists even on freestanding compilers. |
| 4377 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4378 | # 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] | 4379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4380 | /* end confdefs.h. */ |
| 4381 | #ifdef __STDC__ |
| 4382 | # include <limits.h> |
| 4383 | #else |
| 4384 | # include <assert.h> |
| 4385 | #endif |
| 4386 | Syntax error |
| 4387 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4388 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4389 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4390 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4391 | # Broken: fails on valid input. |
| 4392 | continue |
| 4393 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4394 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4396 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4397 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4399 | /* end confdefs.h. */ |
| 4400 | #include <ac_nonexistent.h> |
| 4401 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4402 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4403 | # Broken: success on invalid input. |
| 4404 | continue |
| 4405 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4406 | # Passes both tests. |
| 4407 | ac_preproc_ok=: |
| 4408 | break |
| 4409 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4410 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4411 | |
| 4412 | done |
| 4413 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4414 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4415 | if $ac_preproc_ok; then : |
| 4416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4417 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4418 | { { $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] | 4419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4420 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4421 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4422 | fi |
| 4423 | |
| 4424 | ac_ext=c |
| 4425 | ac_cpp='$CPP $CPPFLAGS' |
| 4426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4429 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4430 | { $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] | 4431 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4432 | if test "$GCC" = yes |
| 4433 | then |
| 4434 | case "$host_cpu" in |
| 4435 | alpha) addcflags="-mieee" ;; |
| 4436 | esac |
| 4437 | fi |
| 4438 | if test "x$addcflags" != x |
| 4439 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4441 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4442 | CFLAGS="$addcflags $CFLAGS" |
| 4443 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4445 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4446 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4447 | |
| 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4449 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4450 | if ${ac_cv_path_GREP+:} false; then : |
| 4451 | $as_echo_n "(cached) " >&6 |
| 4452 | else |
| 4453 | if test -z "$GREP"; then |
| 4454 | ac_path_GREP_found=false |
| 4455 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4457 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4458 | do |
| 4459 | IFS=$as_save_IFS |
| 4460 | test -z "$as_dir" && as_dir=. |
| 4461 | for ac_prog in grep ggrep; do |
| 4462 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4463 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4464 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4465 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4466 | # Check for GNU $ac_path_GREP |
| 4467 | case `"$ac_path_GREP" --version 2>&1` in |
| 4468 | *GNU*) |
| 4469 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4470 | *) |
| 4471 | ac_count=0 |
| 4472 | $as_echo_n 0123456789 >"conftest.in" |
| 4473 | while : |
| 4474 | do |
| 4475 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4476 | mv "conftest.tmp" "conftest.in" |
| 4477 | cp "conftest.in" "conftest.nl" |
| 4478 | $as_echo 'GREP' >> "conftest.nl" |
| 4479 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4480 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4481 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4482 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4483 | # Best one so far, save it but keep looking for a better one |
| 4484 | ac_cv_path_GREP="$ac_path_GREP" |
| 4485 | ac_path_GREP_max=$ac_count |
| 4486 | fi |
| 4487 | # 10*(2^10) chars as input seems more than enough |
| 4488 | test $ac_count -gt 10 && break |
| 4489 | done |
| 4490 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4491 | esac |
| 4492 | |
| 4493 | $ac_path_GREP_found && break 3 |
| 4494 | done |
| 4495 | done |
| 4496 | done |
| 4497 | IFS=$as_save_IFS |
| 4498 | if test -z "$ac_cv_path_GREP"; then |
| 4499 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4500 | fi |
| 4501 | else |
| 4502 | ac_cv_path_GREP=$GREP |
| 4503 | fi |
| 4504 | |
| 4505 | fi |
| 4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4507 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4508 | GREP="$ac_cv_path_GREP" |
| 4509 | |
| 4510 | |
| 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4512 | $as_echo_n "checking for egrep... " >&6; } |
| 4513 | if ${ac_cv_path_EGREP+:} false; then : |
| 4514 | $as_echo_n "(cached) " >&6 |
| 4515 | else |
| 4516 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4517 | then ac_cv_path_EGREP="$GREP -E" |
| 4518 | else |
| 4519 | if test -z "$EGREP"; then |
| 4520 | ac_path_EGREP_found=false |
| 4521 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4523 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4524 | do |
| 4525 | IFS=$as_save_IFS |
| 4526 | test -z "$as_dir" && as_dir=. |
| 4527 | for ac_prog in egrep; do |
| 4528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4529 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4530 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4531 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4532 | # Check for GNU $ac_path_EGREP |
| 4533 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4534 | *GNU*) |
| 4535 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4536 | *) |
| 4537 | ac_count=0 |
| 4538 | $as_echo_n 0123456789 >"conftest.in" |
| 4539 | while : |
| 4540 | do |
| 4541 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4542 | mv "conftest.tmp" "conftest.in" |
| 4543 | cp "conftest.in" "conftest.nl" |
| 4544 | $as_echo 'EGREP' >> "conftest.nl" |
| 4545 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4546 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4547 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4548 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4549 | # Best one so far, save it but keep looking for a better one |
| 4550 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4551 | ac_path_EGREP_max=$ac_count |
| 4552 | fi |
| 4553 | # 10*(2^10) chars as input seems more than enough |
| 4554 | test $ac_count -gt 10 && break |
| 4555 | done |
| 4556 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4557 | esac |
| 4558 | |
| 4559 | $ac_path_EGREP_found && break 3 |
| 4560 | done |
| 4561 | done |
| 4562 | done |
| 4563 | IFS=$as_save_IFS |
| 4564 | if test -z "$ac_cv_path_EGREP"; then |
| 4565 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4566 | fi |
| 4567 | else |
| 4568 | ac_cv_path_EGREP=$EGREP |
| 4569 | fi |
| 4570 | |
| 4571 | fi |
| 4572 | fi |
| 4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4574 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4575 | EGREP="$ac_cv_path_EGREP" |
| 4576 | |
| 4577 | |
| 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4579 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4580 | if ${ac_cv_header_stdc+:} false; then : |
| 4581 | $as_echo_n "(cached) " >&6 |
| 4582 | else |
| 4583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4584 | /* end confdefs.h. */ |
| 4585 | #include <stdlib.h> |
| 4586 | #include <stdarg.h> |
| 4587 | #include <string.h> |
| 4588 | #include <float.h> |
| 4589 | |
| 4590 | int |
| 4591 | main () |
| 4592 | { |
| 4593 | |
| 4594 | ; |
| 4595 | return 0; |
| 4596 | } |
| 4597 | _ACEOF |
| 4598 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4599 | ac_cv_header_stdc=yes |
| 4600 | else |
| 4601 | ac_cv_header_stdc=no |
| 4602 | fi |
| 4603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4604 | |
| 4605 | if test $ac_cv_header_stdc = yes; then |
| 4606 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4608 | /* end confdefs.h. */ |
| 4609 | #include <string.h> |
| 4610 | |
| 4611 | _ACEOF |
| 4612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4613 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4614 | |
| 4615 | else |
| 4616 | ac_cv_header_stdc=no |
| 4617 | fi |
| 4618 | rm -f conftest* |
| 4619 | |
| 4620 | fi |
| 4621 | |
| 4622 | if test $ac_cv_header_stdc = yes; then |
| 4623 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4625 | /* end confdefs.h. */ |
| 4626 | #include <stdlib.h> |
| 4627 | |
| 4628 | _ACEOF |
| 4629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4630 | $EGREP "free" >/dev/null 2>&1; then : |
| 4631 | |
| 4632 | else |
| 4633 | ac_cv_header_stdc=no |
| 4634 | fi |
| 4635 | rm -f conftest* |
| 4636 | |
| 4637 | fi |
| 4638 | |
| 4639 | if test $ac_cv_header_stdc = yes; then |
| 4640 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4641 | if test "$cross_compiling" = yes; then : |
| 4642 | : |
| 4643 | else |
| 4644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4645 | /* end confdefs.h. */ |
| 4646 | #include <ctype.h> |
| 4647 | #include <stdlib.h> |
| 4648 | #if ((' ' & 0x0FF) == 0x020) |
| 4649 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4650 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4651 | #else |
| 4652 | # define ISLOWER(c) \ |
| 4653 | (('a' <= (c) && (c) <= 'i') \ |
| 4654 | || ('j' <= (c) && (c) <= 'r') \ |
| 4655 | || ('s' <= (c) && (c) <= 'z')) |
| 4656 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4657 | #endif |
| 4658 | |
| 4659 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4660 | int |
| 4661 | main () |
| 4662 | { |
| 4663 | int i; |
| 4664 | for (i = 0; i < 256; i++) |
| 4665 | if (XOR (islower (i), ISLOWER (i)) |
| 4666 | || toupper (i) != TOUPPER (i)) |
| 4667 | return 2; |
| 4668 | return 0; |
| 4669 | } |
| 4670 | _ACEOF |
| 4671 | if ac_fn_c_try_run "$LINENO"; then : |
| 4672 | |
| 4673 | else |
| 4674 | ac_cv_header_stdc=no |
| 4675 | fi |
| 4676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4677 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4678 | fi |
| 4679 | |
| 4680 | fi |
| 4681 | fi |
| 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4683 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4684 | if test $ac_cv_header_stdc = yes; then |
| 4685 | |
| 4686 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4691 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4692 | inttypes.h stdint.h unistd.h |
| 4693 | do : |
| 4694 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4695 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4696 | " |
| 4697 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4698 | cat >>confdefs.h <<_ACEOF |
| 4699 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4700 | _ACEOF |
| 4701 | |
| 4702 | fi |
| 4703 | |
| 4704 | done |
| 4705 | |
| 4706 | |
| 4707 | |
| 4708 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4709 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4710 | MINIX=yes |
| 4711 | else |
| 4712 | MINIX= |
| 4713 | fi |
| 4714 | |
| 4715 | |
| 4716 | if test "$MINIX" = yes; then |
| 4717 | |
| 4718 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4719 | |
| 4720 | |
| 4721 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4722 | |
| 4723 | |
| 4724 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4725 | |
| 4726 | fi |
| 4727 | |
| 4728 | |
| 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4730 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4731 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4732 | $as_echo_n "(cached) " >&6 |
| 4733 | else |
| 4734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4735 | /* end confdefs.h. */ |
| 4736 | |
| 4737 | # define __EXTENSIONS__ 1 |
| 4738 | $ac_includes_default |
| 4739 | int |
| 4740 | main () |
| 4741 | { |
| 4742 | |
| 4743 | ; |
| 4744 | return 0; |
| 4745 | } |
| 4746 | _ACEOF |
| 4747 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4748 | ac_cv_safe_to_define___extensions__=yes |
| 4749 | else |
| 4750 | ac_cv_safe_to_define___extensions__=no |
| 4751 | fi |
| 4752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4753 | fi |
| 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4755 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4756 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4757 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4758 | |
| 4759 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4760 | |
| 4761 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4762 | |
| 4763 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4764 | |
| 4765 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4766 | |
| 4767 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4768 | LIB_EXT=.a |
| 4769 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4770 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4772 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4773 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4774 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4775 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4776 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4777 | fi |
| 4778 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4779 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4780 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4781 | then |
| 4782 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4783 | { $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] | 4784 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4785 | else |
| 4786 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4787 | { $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] | 4788 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4789 | fi |
| 4790 | |
| 4791 | else |
| 4792 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4793 | { $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] | 4794 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4796 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4797 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4798 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4799 | # Check whether --enable-symlink-install was given. |
| 4800 | if test "${enable_symlink_install+set}" = set; then : |
| 4801 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4802 | then |
| 4803 | LINK_INSTALL_FLAGS=-f |
| 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4805 | $as_echo "Disabling symlinks for install" >&6; } |
| 4806 | else |
| 4807 | LINK_INSTALL_FLAGS=-sf |
| 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4809 | $as_echo "Enabling symlinks for install" >&6; } |
| 4810 | fi |
| 4811 | |
| 4812 | else |
| 4813 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4815 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4816 | |
| 4817 | fi |
| 4818 | |
| 4819 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4820 | relative_symlink_defined= |
| 4821 | # Check whether --enable-relative-symlinks was given. |
| 4822 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4823 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4824 | then |
| 4825 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4826 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4828 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4829 | else |
| 4830 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4831 | relative_symlink_defined=yes |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4833 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4834 | fi |
| 4835 | fi |
| 4836 | |
| 4837 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4838 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4839 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4840 | then |
| 4841 | SYMLINK_RELATIVE=yes |
| 4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4843 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4844 | else |
| 4845 | SYMLINK_RELATIVE=--relative |
| 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4847 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4848 | fi |
| 4849 | |
| 4850 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4851 | if test -z "$relative_symlink_defined" |
| 4852 | then |
| 4853 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4855 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4856 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4857 | |
| 4858 | fi |
| 4859 | |
| 4860 | |
| 4861 | # Check whether --enable-symlink-build was given. |
| 4862 | if test "${enable_symlink_build+set}" = set; then : |
| 4863 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4864 | then |
| 4865 | LINK_BUILD_FLAGS= |
| 4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4867 | $as_echo "Disabling symlinks for build" >&6; } |
| 4868 | else |
| 4869 | LINK_BUILD_FLAGS=-s |
| 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4871 | $as_echo "Enabling symlinks for build" >&6; } |
| 4872 | fi |
| 4873 | |
| 4874 | else |
| 4875 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4877 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4878 | |
| 4879 | fi |
| 4880 | |
| 4881 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4882 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4883 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4884 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4885 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4886 | { $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] | 4887 | $as_echo "Disabling verbose make commands" >&6; } |
| 4888 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4889 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4890 | Q=@ |
| 4891 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4892 | { $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] | 4893 | $as_echo "Enabling verbose make commands" >&6; } |
| 4894 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4895 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4896 | Q= |
| 4897 | fi |
| 4898 | |
| 4899 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4900 | { $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] | 4901 | $as_echo "Disabling verbose make commands" >&6; } |
| 4902 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4903 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4904 | Q=@ |
| 4905 | |
| 4906 | fi |
| 4907 | |
| 4908 | |
| 4909 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4910 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4911 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4912 | LDFLAG_DYNAMIC= |
| 4913 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4914 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4915 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4916 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4917 | then |
| 4918 | ELF_CMT=# |
| 4919 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4920 | { $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] | 4921 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4922 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4923 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4924 | ELF_CMT= |
| 4925 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4926 | case "$host_os" in |
| 4927 | solaris2.*) |
| 4928 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4929 | ;; |
| 4930 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4931 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4932 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4933 | PRIVATE_LIBS_CMT=# |
| 4934 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4935 | { $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] | 4936 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4937 | fi |
| 4938 | |
| 4939 | else |
| 4940 | MAKEFILE_ELF=/dev/null |
| 4941 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4942 | { $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] | 4943 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4944 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4945 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4946 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4947 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4948 | |
| 4949 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4950 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4951 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4952 | then |
| 4953 | BSDLIB_CMT=# |
| 4954 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4955 | { $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] | 4956 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4957 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4958 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4959 | BSDLIB_CMT= |
| 4960 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4961 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4962 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4963 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4964 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4965 | LIB_EXT=.dylib |
| 4966 | ;; |
| 4967 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4968 | { $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] | 4969 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4970 | fi |
| 4971 | |
| 4972 | else |
| 4973 | MAKEFILE_BSDLIB=/dev/null |
| 4974 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4975 | { $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] | 4976 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4978 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4979 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4981 | |
| 4982 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4983 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4984 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4985 | then |
| 4986 | PROFILE_CMT=# |
| 4987 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4988 | { $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] | 4989 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4990 | else |
| 4991 | PROFILE_CMT= |
| 4992 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4993 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4994 | { $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] | 4995 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4996 | fi |
| 4997 | |
| 4998 | else |
| 4999 | PROFILE_CMT=# |
| 5000 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5001 | { $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] | 5002 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5004 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5005 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5007 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5008 | # Check whether --enable-gcov was given. |
| 5009 | if test "${enable_gcov+set}" = set; then : |
| 5010 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5011 | then |
| 5012 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5013 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5015 | $as_echo "Enabling gcov support" >&6; } |
| 5016 | fi |
| 5017 | |
| 5018 | fi |
| 5019 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 5020 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
| 5021 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" |
| 5022 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 5023 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} |
| 5024 | # Check whether --enable-hardening was given. |
| 5025 | if test "${enable_hardening+set}" = set; then : |
| 5026 | enableval=$enable_hardening; if test "$enableval" = "yes" |
| 5027 | then |
| 5028 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" |
| 5029 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" |
| 5030 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" |
| 5031 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" |
| 5032 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" |
| 5033 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" |
| 5034 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" |
| 5035 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" |
| 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 |
| 5037 | $as_echo "Enabling hardening support" >&6; } |
| 5038 | fi |
| 5039 | |
| 5040 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5041 | |
| 5042 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5043 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5044 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5045 | |
| 5046 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5047 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5048 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5049 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5050 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5051 | { $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] | 5052 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5053 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5054 | |
| 5055 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5056 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5057 | { $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] | 5058 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5059 | fi |
| 5060 | |
| 5061 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5062 | { $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] | 5063 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5065 | fi |
| 5066 | |
| 5067 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5068 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5069 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5070 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5071 | { $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] | 5072 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5073 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5074 | |
| 5075 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5076 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5077 | { $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] | 5078 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5079 | fi |
| 5080 | |
| 5081 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5082 | { $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] | 5083 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5085 | fi |
| 5086 | |
| 5087 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5088 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5089 | enableval=$enable_testio_debug; |
| 5090 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5091 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5092 | { $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] | 5093 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5094 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5095 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5096 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5097 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5098 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5099 | { $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] | 5100 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5101 | fi |
| 5102 | |
| 5103 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5104 | { $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] | 5105 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5106 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5107 | |
| 5108 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5110 | fi |
| 5111 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5112 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5113 | |
| 5114 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5120 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5121 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5122 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5123 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5124 | { $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] | 5125 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5126 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5127 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5128 | else |
| 5129 | case $PKG_CONFIG in |
| 5130 | [\\/]* | ?:[\\/]*) |
| 5131 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5132 | ;; |
| 5133 | *) |
| 5134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5135 | for as_dir in $PATH |
| 5136 | do |
| 5137 | IFS=$as_save_IFS |
| 5138 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5139 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5140 | 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] | 5141 | 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] | 5142 | $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] | 5143 | break 2 |
| 5144 | fi |
| 5145 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5146 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5147 | IFS=$as_save_IFS |
| 5148 | |
| 5149 | ;; |
| 5150 | esac |
| 5151 | fi |
| 5152 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5153 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5155 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5156 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5158 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5159 | fi |
| 5160 | |
| 5161 | |
| 5162 | fi |
| 5163 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5164 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5165 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5166 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5167 | { $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] | 5168 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5169 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5170 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5171 | else |
| 5172 | case $ac_pt_PKG_CONFIG in |
| 5173 | [\\/]* | ?:[\\/]*) |
| 5174 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5175 | ;; |
| 5176 | *) |
| 5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5178 | for as_dir in $PATH |
| 5179 | do |
| 5180 | IFS=$as_save_IFS |
| 5181 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5183 | 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] | 5184 | 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] | 5185 | $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] | 5186 | break 2 |
| 5187 | fi |
| 5188 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5189 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5190 | IFS=$as_save_IFS |
| 5191 | |
| 5192 | ;; |
| 5193 | esac |
| 5194 | fi |
| 5195 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5196 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5197 | { $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] | 5198 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5199 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5201 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5202 | fi |
| 5203 | |
| 5204 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5205 | PKG_CONFIG="" |
| 5206 | else |
| 5207 | case $cross_compiling:$ac_tool_warned in |
| 5208 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5209 | { $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] | 5210 | $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] | 5211 | ac_tool_warned=yes ;; |
| 5212 | esac |
| 5213 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5214 | fi |
| 5215 | else |
| 5216 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5217 | fi |
| 5218 | |
| 5219 | fi |
| 5220 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5221 | _pkg_min_version=0.9.0 |
| 5222 | { $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] | 5223 | $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] | 5224 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5226 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5227 | else |
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5229 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5230 | PKG_CONFIG="" |
| 5231 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5232 | fi |
| 5233 | LIBUUID= |
| 5234 | DEPLIBUUID= |
| 5235 | STATIC_LIBUUID= |
| 5236 | DEPSTATIC_LIBUUID= |
| 5237 | PROFILED_LIBUUID= |
| 5238 | DEPPROFILED_LIBUUID= |
| 5239 | UUID_CMT= |
| 5240 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5241 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5242 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5243 | then |
| 5244 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5245 | 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] | 5246 | fi |
| 5247 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5248 | { $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] | 5249 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5250 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5251 | $as_echo_n "(cached) " >&6 |
| 5252 | else |
| 5253 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5254 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5256 | /* end confdefs.h. */ |
| 5257 | |
| 5258 | /* Override any GCC internal prototype to avoid an error. |
| 5259 | Use char because int might match the return type of a GCC |
| 5260 | builtin and then its argument prototype would still apply. */ |
| 5261 | #ifdef __cplusplus |
| 5262 | extern "C" |
| 5263 | #endif |
| 5264 | char uuid_generate (); |
| 5265 | int |
| 5266 | main () |
| 5267 | { |
| 5268 | return uuid_generate (); |
| 5269 | ; |
| 5270 | return 0; |
| 5271 | } |
| 5272 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5273 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5274 | ac_cv_lib_uuid_uuid_generate=yes |
| 5275 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5276 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5277 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5278 | rm -f core conftest.err conftest.$ac_objext \ |
| 5279 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5280 | LIBS=$ac_check_lib_save_LIBS |
| 5281 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5282 | { $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] | 5283 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5284 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5285 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5286 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5287 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5288 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5289 | fi |
| 5290 | |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5291 | PROFILED_LIBUUID=$LIBUUID |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5292 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5293 | { $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] | 5294 | $as_echo "Disabling private uuid library" >&6; } |
| 5295 | else |
| 5296 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5297 | DEPLIBUUID=$LIBUUID |
| 5298 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5299 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5300 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5301 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5302 | { $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] | 5303 | $as_echo "Enabling private uuid library" >&6; } |
| 5304 | fi |
| 5305 | |
| 5306 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5307 | if test -n "$PKG_CONFIG"; then |
| 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 5309 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 5310 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
| 5311 | $as_echo_n "(cached) " >&6 |
| 5312 | else |
| 5313 | ac_check_lib_save_LIBS=$LIBS |
| 5314 | LIBS="-luuid $LIBS" |
| 5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5316 | /* end confdefs.h. */ |
| 5317 | |
| 5318 | /* Override any GCC internal prototype to avoid an error. |
| 5319 | Use char because int might match the return type of a GCC |
| 5320 | builtin and then its argument prototype would still apply. */ |
| 5321 | #ifdef __cplusplus |
| 5322 | extern "C" |
| 5323 | #endif |
| 5324 | char uuid_generate (); |
| 5325 | int |
| 5326 | main () |
| 5327 | { |
| 5328 | return uuid_generate (); |
| 5329 | ; |
| 5330 | return 0; |
| 5331 | } |
| 5332 | _ACEOF |
| 5333 | if ac_fn_c_try_link "$LINENO"; then : |
| 5334 | ac_cv_lib_uuid_uuid_generate=yes |
| 5335 | else |
| 5336 | ac_cv_lib_uuid_uuid_generate=no |
| 5337 | fi |
| 5338 | rm -f core conftest.err conftest.$ac_objext \ |
| 5339 | conftest$ac_exeext conftest.$ac_ext |
| 5340 | LIBS=$ac_check_lib_save_LIBS |
| 5341 | fi |
| 5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 5343 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 5344 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
| 5345 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5346 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5347 | fi |
| 5348 | |
| 5349 | fi |
| 5350 | if test -n "$LIBUUID"; then |
| 5351 | PROFILED_LIBUUID=$LIBUUID |
| 5352 | UUID_CMT=# |
| 5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
| 5354 | $as_echo "Using system uuid by default" >&6; } |
| 5355 | else |
| 5356 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5357 | DEPLIBUUID=$LIBUUID |
| 5358 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5359 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5360 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5361 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 5362 | { $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] | 5363 | $as_echo "Enabling private uuid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5364 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5365 | |
| 5366 | fi |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5382 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5383 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5384 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5385 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5386 | { $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] | 5387 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5388 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5389 | $as_echo_n "(cached) " >&6 |
| 5390 | else |
| 5391 | case $PKG_CONFIG in |
| 5392 | [\\/]* | ?:[\\/]*) |
| 5393 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5394 | ;; |
| 5395 | *) |
| 5396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5397 | for as_dir in $PATH |
| 5398 | do |
| 5399 | IFS=$as_save_IFS |
| 5400 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5401 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5402 | 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] | 5403 | 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] | 5404 | $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] | 5405 | break 2 |
| 5406 | fi |
| 5407 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5408 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5409 | IFS=$as_save_IFS |
| 5410 | |
| 5411 | ;; |
| 5412 | esac |
| 5413 | fi |
| 5414 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5415 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5417 | $as_echo "$PKG_CONFIG" >&6; } |
| 5418 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5420 | $as_echo "no" >&6; } |
| 5421 | fi |
| 5422 | |
| 5423 | |
| 5424 | fi |
| 5425 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5426 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5427 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5428 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5429 | { $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] | 5430 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5431 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5432 | $as_echo_n "(cached) " >&6 |
| 5433 | else |
| 5434 | case $ac_pt_PKG_CONFIG in |
| 5435 | [\\/]* | ?:[\\/]*) |
| 5436 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5437 | ;; |
| 5438 | *) |
| 5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5440 | for as_dir in $PATH |
| 5441 | do |
| 5442 | IFS=$as_save_IFS |
| 5443 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5444 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5445 | 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] | 5446 | 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] | 5447 | $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] | 5448 | break 2 |
| 5449 | fi |
| 5450 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5451 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5452 | IFS=$as_save_IFS |
| 5453 | |
| 5454 | ;; |
| 5455 | esac |
| 5456 | fi |
| 5457 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5458 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5459 | { $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] | 5460 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5461 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5463 | $as_echo "no" >&6; } |
| 5464 | fi |
| 5465 | |
| 5466 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5467 | PKG_CONFIG="" |
| 5468 | else |
| 5469 | case $cross_compiling:$ac_tool_warned in |
| 5470 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5471 | { $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] | 5472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5473 | ac_tool_warned=yes ;; |
| 5474 | esac |
| 5475 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5476 | fi |
| 5477 | else |
| 5478 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5479 | fi |
| 5480 | |
| 5481 | fi |
| 5482 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5483 | _pkg_min_version=0.9.0 |
| 5484 | { $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] | 5485 | $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] | 5486 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5488 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5489 | else |
| 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5491 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5492 | PKG_CONFIG="" |
| 5493 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5494 | fi |
| 5495 | LIBBLKID= |
| 5496 | DEPLIBBLKID= |
| 5497 | STATIC_LIBBLKID= |
| 5498 | DEPSTATIC_LIBBLKID= |
| 5499 | PROFILED_LIBBLKID= |
| 5500 | DEPPROFILED_LIBBLKID= |
| 5501 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5502 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5503 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5504 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5505 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5506 | then |
| 5507 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5508 | 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] | 5509 | fi |
| 5510 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5511 | { $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] | 5512 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5513 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5514 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5515 | else |
| 5516 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5517 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5519 | /* end confdefs.h. */ |
| 5520 | |
| 5521 | /* Override any GCC internal prototype to avoid an error. |
| 5522 | Use char because int might match the return type of a GCC |
| 5523 | builtin and then its argument prototype would still apply. */ |
| 5524 | #ifdef __cplusplus |
| 5525 | extern "C" |
| 5526 | #endif |
| 5527 | char blkid_get_cache (); |
| 5528 | int |
| 5529 | main () |
| 5530 | { |
| 5531 | return blkid_get_cache (); |
| 5532 | ; |
| 5533 | return 0; |
| 5534 | } |
| 5535 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5536 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5537 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5538 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5539 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5540 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5541 | rm -f core conftest.err conftest.$ac_objext \ |
| 5542 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5543 | LIBS=$ac_check_lib_save_LIBS |
| 5544 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5545 | { $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] | 5546 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5547 | 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] | 5548 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5549 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5550 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5551 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5552 | fi |
| 5553 | |
| 5554 | BLKID_CMT=# |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5555 | PROFILED_LIBBLKID=$LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5556 | { $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] | 5557 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5558 | else |
| 5559 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5560 | DEPLIBBLKID=$LIBBLKID |
| 5561 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5562 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5563 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5564 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5565 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5566 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5567 | { $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] | 5568 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5569 | fi |
| 5570 | |
| 5571 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5572 | if test -n "$PKG_CONFIG"; then |
| 5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
| 5574 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
| 5575 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
| 5576 | $as_echo_n "(cached) " >&6 |
| 5577 | else |
| 5578 | ac_check_lib_save_LIBS=$LIBS |
| 5579 | LIBS="-lblkid $LIBS" |
| 5580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5581 | /* end confdefs.h. */ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5582 | |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5583 | /* Override any GCC internal prototype to avoid an error. |
| 5584 | Use char because int might match the return type of a GCC |
| 5585 | builtin and then its argument prototype would still apply. */ |
| 5586 | #ifdef __cplusplus |
| 5587 | extern "C" |
| 5588 | #endif |
| 5589 | char blkid_get_cache (); |
| 5590 | int |
| 5591 | main () |
| 5592 | { |
| 5593 | return blkid_get_cache (); |
| 5594 | ; |
| 5595 | return 0; |
| 5596 | } |
| 5597 | _ACEOF |
| 5598 | if ac_fn_c_try_link "$LINENO"; then : |
| 5599 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5600 | else |
| 5601 | ac_cv_lib_blkid_blkid_get_cache=no |
| 5602 | fi |
| 5603 | rm -f core conftest.err conftest.$ac_objext \ |
| 5604 | conftest$ac_exeext conftest.$ac_ext |
| 5605 | LIBS=$ac_check_lib_save_LIBS |
| 5606 | fi |
| 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 5608 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 5609 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
| 5610 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5611 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5612 | fi |
| 5613 | |
| 5614 | fi |
| 5615 | if test -n "$LIBBLKID"; then |
| 5616 | BLKID_CMT=# |
| 5617 | PROFILED_LIBBLKID=$LIBBLKID |
| 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
| 5619 | $as_echo "Using system blkid library by default" >&6; } |
| 5620 | else |
| 5621 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5622 | DEPLIBBLKID=$LIBBLKID |
| 5623 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5624 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5625 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5626 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 5627 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
| 5628 | |
| 5629 | { $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] | 5630 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame] | 5631 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5632 | |
| 5633 | fi |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5642 | |
| 5643 | # Check whether --enable-backtrace was given. |
| 5644 | if test "${enable_backtrace+set}" = set; then : |
| 5645 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5646 | then |
| 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5648 | $as_echo "Disabling use of backtrace" >&6; } |
| 5649 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5650 | |
| 5651 | else |
| 5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5653 | $as_echo "Enabling use of backtrace" >&6; } |
| 5654 | fi |
| 5655 | |
| 5656 | else |
| 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5658 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5659 | |
| 5660 | fi |
| 5661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5662 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5663 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5664 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5665 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5666 | { $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] | 5667 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5668 | DEBUGFS_CMT="#" |
| 5669 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5670 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5671 | { $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] | 5672 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5673 | fi |
| 5674 | |
| 5675 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5676 | { $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] | 5677 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5678 | DEBUGFS_CMT= |
| 5679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5680 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5682 | |
| 5683 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5684 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5685 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5686 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5687 | { $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] | 5688 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5689 | IMAGER_CMT="#" |
| 5690 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5691 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5692 | { $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] | 5693 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5694 | fi |
| 5695 | |
| 5696 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5697 | { $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] | 5698 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5699 | IMAGER_CMT= |
| 5700 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5701 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5702 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5703 | |
| 5704 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5705 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5706 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5707 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5708 | { $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] | 5709 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5710 | RESIZER_CMT="#" |
| 5711 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5712 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5713 | { $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] | 5714 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5715 | fi |
| 5716 | |
| 5717 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5718 | { $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] | 5719 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5720 | RESIZER_CMT= |
| 5721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5722 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5723 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5724 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5725 | # Check whether --enable-defrag was given. |
| 5726 | if test "${enable_defrag+set}" = set; then : |
| 5727 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5728 | then |
| 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5730 | $as_echo "Disabling e4defrag support" >&6; } |
| 5731 | DEFRAG_CMT="#" |
| 5732 | else |
| 5733 | DEFRAG_CMT= |
| 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5735 | $as_echo "Enabling e4defrag support" >&6; } |
| 5736 | fi |
| 5737 | |
| 5738 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5739 | if test -z "$WITH_DIET_LIBC" |
| 5740 | then |
| 5741 | { $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] | 5742 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5743 | DEFRAG_CMT= |
| 5744 | else |
| 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5746 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5747 | DEFRAG_CMT="#" |
| 5748 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5749 | |
| 5750 | fi |
| 5751 | |
| 5752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5753 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5754 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5755 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5756 | then |
| 5757 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5758 | { $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] | 5759 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5760 | else |
| 5761 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5762 | { $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] | 5763 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5764 | fi |
| 5765 | |
| 5766 | else |
| 5767 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5768 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5769 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5770 | { $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] | 5771 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5772 | ;; |
| 5773 | *) |
| 5774 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5775 | { $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] | 5776 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5777 | esac |
| 5778 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5779 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5780 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5782 | |
| 5783 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5784 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5785 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5786 | then |
| 5787 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5788 | { $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] | 5789 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5790 | else |
| 5791 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5792 | { $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] | 5793 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5794 | fi |
| 5795 | |
| 5796 | else |
| 5797 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5798 | { $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] | 5799 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5800 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5801 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5802 | |
| 5803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5804 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5805 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5806 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5807 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5808 | then |
| 5809 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5810 | { $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] | 5811 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5812 | else |
| 5813 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5814 | { $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] | 5815 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5816 | fi |
| 5817 | |
| 5818 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5819 | if test -n "$WITH_DIET_LIBC" |
| 5820 | then |
| 5821 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5822 | { $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] | 5823 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5824 | else |
| 5825 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5826 | { $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] | 5827 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5828 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5829 | |
| 5830 | fi |
| 5831 | |
| 5832 | if test "$try_tls" = "yes" |
| 5833 | then |
| 5834 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5835 | { $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] | 5836 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5837 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5838 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5839 | else |
| 5840 | |
| 5841 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5842 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5843 | case $ax_tls_keyword in |
| 5844 | none) ac_cv_tls=none ; break ;; |
| 5845 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5847 | /* end confdefs.h. */ |
| 5848 | #include <stdlib.h> |
| 5849 | static void |
| 5850 | foo(void) { |
| 5851 | static $ax_tls_keyword int bar; |
| 5852 | exit(1); |
| 5853 | } |
| 5854 | int |
| 5855 | main () |
| 5856 | { |
| 5857 | |
| 5858 | ; |
| 5859 | return 0; |
| 5860 | } |
| 5861 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5862 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5863 | ac_cv_tls=$ax_tls_keyword ; break |
| 5864 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5865 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5866 | |
| 5867 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5869 | esac |
| 5870 | done |
| 5871 | |
| 5872 | fi |
| 5873 | |
| 5874 | |
| 5875 | if test "$ac_cv_tls" != "none"; then |
| 5876 | |
| 5877 | cat >>confdefs.h <<_ACEOF |
| 5878 | #define TLS $ac_cv_tls |
| 5879 | _ACEOF |
| 5880 | |
| 5881 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5882 | { $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] | 5883 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5884 | |
| 5885 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5886 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5887 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5888 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5889 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5890 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5891 | { $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] | 5892 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5893 | UUIDD_CMT="#" |
| 5894 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5895 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5896 | |
| 5897 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5899 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5900 | fi |
| 5901 | |
| 5902 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5903 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5904 | |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5905 | if test -z "$UUID_CMT" |
| 5906 | then |
| 5907 | UUIDD_CMT="" |
| 5908 | { $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] | 5909 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 5910 | else |
| 5911 | UUIDD_CMT="#" |
| 5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
| 5913 | $as_echo "Disabling uuidd by default" >&6; } |
| 5914 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5915 | |
| 5916 | fi |
| 5917 | |
| 5918 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5919 | |
| 5920 | # Check whether --enable-mmp was given. |
| 5921 | if test "${enable_mmp+set}" = set; then : |
| 5922 | enableval=$enable_mmp; if test "$enableval" = "no" |
| 5923 | then |
| 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
| 5925 | $as_echo "Disabling mmp support" >&6; } |
| 5926 | else |
| 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
| 5928 | $as_echo "Enabling mmp support" >&6; } |
| 5929 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5930 | |
| 5931 | fi |
| 5932 | |
| 5933 | else |
| 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 5935 | $as_echo "Enabling mmp support by default" >&6; } |
| 5936 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 5937 | |
| 5938 | |
| 5939 | fi |
| 5940 | |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 5941 | |
| 5942 | # Check whether --enable-bmap-stats was given. |
| 5943 | if test "${enable_bmap_stats+set}" = set; then : |
| 5944 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
| 5945 | then |
| 5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
| 5947 | $as_echo "Disabling bitmap statistics support" >&6; } |
| 5948 | else |
| 5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
| 5950 | $as_echo "Enabling bitmap statistics support" >&6; } |
| 5951 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5952 | |
| 5953 | fi |
| 5954 | |
| 5955 | else |
| 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 |
| 5957 | $as_echo "Enabling bitmap statistics support by default" >&6; } |
| 5958 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 5959 | |
| 5960 | |
| 5961 | fi |
| 5962 | |
| 5963 | |
| 5964 | # Check whether --enable-bmap-stats-ops was given. |
| 5965 | if test "${enable_bmap_stats_ops+set}" = set; then : |
| 5966 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
| 5967 | then |
| 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
| 5969 | $as_echo "Disabling additional bitmap statistics" >&6; } |
| 5970 | else |
| 5971 | if test "x${enable_bmap_stats}" = "xno"; then : |
| 5972 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5973 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5974 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
| 5975 | See \`config.log' for more details" "$LINENO" 5; } |
| 5976 | fi |
| 5977 | |
| 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
| 5979 | $as_echo "Enabling additional bitmap statistics" >&6; } |
| 5980 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h |
| 5981 | |
| 5982 | fi |
| 5983 | |
| 5984 | else |
| 5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 |
| 5986 | $as_echo "Disabling additional bitmap statistics by default" >&6; } |
| 5987 | |
| 5988 | fi |
| 5989 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5990 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5992 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5993 | PACKAGE=e2fsprogs |
| 5994 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5995 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5997 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5998 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5999 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6000 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6001 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6002 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6003 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6004 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6005 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6006 | |
| 6007 | |
| 6008 | |
| 6009 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6010 | { $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] | 6011 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6012 | set x ${MAKE-make} |
| 6013 | 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] | 6014 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6017 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6018 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6019 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6020 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6021 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6022 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6023 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6024 | *@@@%%%=?*=@@@%%%*) |
| 6025 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6026 | *) |
| 6027 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6028 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6031 | 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] | 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6033 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6034 | SET_MAKE= |
| 6035 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6037 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6038 | SET_MAKE="MAKE=${MAKE-make}" |
| 6039 | fi |
| 6040 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6041 | # Find a good install program. We prefer a C program (faster), |
| 6042 | # so one script is as good as another. But avoid the broken or |
| 6043 | # incompatible versions: |
| 6044 | # SysV /etc/install, /usr/sbin/install |
| 6045 | # SunOS /usr/etc/install |
| 6046 | # IRIX /sbin/install |
| 6047 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6048 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6049 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6050 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6051 | # 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] | 6052 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6053 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6054 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6055 | { $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] | 6056 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6057 | if test -z "$INSTALL"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6058 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6059 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6060 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6062 | for as_dir in $PATH |
| 6063 | do |
| 6064 | IFS=$as_save_IFS |
| 6065 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6066 | # Account for people who put trailing slashes in PATH elements. |
| 6067 | case $as_dir/ in #(( |
| 6068 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6069 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6070 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6071 | /usr/ucb/* ) ;; |
| 6072 | *) |
| 6073 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6074 | # Don't use installbsd from OSF since it installs stuff as root |
| 6075 | # by default. |
| 6076 | for ac_prog in ginstall scoinst install; do |
| 6077 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6078 | 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] | 6079 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6080 | 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] | 6081 | # AIX install. It has an incompatible calling convention. |
| 6082 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6083 | elif test $ac_prog = install && |
| 6084 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6085 | # program-specific install script used by HP pwplus--don't use. |
| 6086 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6087 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6088 | rm -rf conftest.one conftest.two conftest.dir |
| 6089 | echo one > conftest.one |
| 6090 | echo two > conftest.two |
| 6091 | mkdir conftest.dir |
| 6092 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6093 | test -s conftest.one && test -s conftest.two && |
| 6094 | test -s conftest.dir/conftest.one && |
| 6095 | test -s conftest.dir/conftest.two |
| 6096 | then |
| 6097 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6098 | break 3 |
| 6099 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6100 | fi |
| 6101 | fi |
| 6102 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | done |
| 6104 | ;; |
| 6105 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6106 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6107 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6108 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6110 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6111 | |
| 6112 | fi |
| 6113 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6114 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6115 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6116 | # As a last resort, use the slow shell script. Don't cache a |
| 6117 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6118 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6119 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6120 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6121 | fi |
| 6122 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6124 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6125 | |
| 6126 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6127 | # It thinks the first close brace ends the variable substitution. |
| 6128 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6129 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6130 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6131 | |
| 6132 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6133 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6135 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6136 | if test -z "$MKDIR_P"; then |
| 6137 | if ${ac_cv_path_mkdir+:} false; then : |
| 6138 | $as_echo_n "(cached) " >&6 |
| 6139 | else |
| 6140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6141 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6142 | do |
| 6143 | IFS=$as_save_IFS |
| 6144 | test -z "$as_dir" && as_dir=. |
| 6145 | for ac_prog in mkdir gmkdir; do |
| 6146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6147 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6148 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6149 | 'mkdir (GNU coreutils) '* | \ |
| 6150 | 'mkdir (coreutils) '* | \ |
| 6151 | 'mkdir (fileutils) '4.1*) |
| 6152 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6153 | break 3;; |
| 6154 | esac |
| 6155 | done |
| 6156 | done |
| 6157 | done |
| 6158 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6159 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6160 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6161 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6162 | test -d ./--version && rmdir ./--version |
| 6163 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6164 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6165 | else |
| 6166 | # As a last resort, use the slow shell script. Don't cache a |
| 6167 | # value for MKDIR_P within a source directory, because that will |
| 6168 | # break other packages using the cache if that directory is |
| 6169 | # removed, or if the value is a relative name. |
| 6170 | MKDIR_P="$ac_install_sh -d" |
| 6171 | fi |
| 6172 | fi |
| 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6174 | $as_echo "$MKDIR_P" >&6; } |
| 6175 | |
| 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6177 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6178 | if ${ac_cv_path_SED+:} false; then : |
| 6179 | $as_echo_n "(cached) " >&6 |
| 6180 | else |
| 6181 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6182 | for ac_i in 1 2 3 4 5 6 7; do |
| 6183 | ac_script="$ac_script$as_nl$ac_script" |
| 6184 | done |
| 6185 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6186 | { ac_script=; unset ac_script;} |
| 6187 | if test -z "$SED"; then |
| 6188 | ac_path_SED_found=false |
| 6189 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6191 | for as_dir in $PATH |
| 6192 | do |
| 6193 | IFS=$as_save_IFS |
| 6194 | test -z "$as_dir" && as_dir=. |
| 6195 | for ac_prog in sed gsed; do |
| 6196 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6197 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6198 | as_fn_executable_p "$ac_path_SED" || continue |
| 6199 | # Check for GNU ac_path_SED and select it if it is found. |
| 6200 | # Check for GNU $ac_path_SED |
| 6201 | case `"$ac_path_SED" --version 2>&1` in |
| 6202 | *GNU*) |
| 6203 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6204 | *) |
| 6205 | ac_count=0 |
| 6206 | $as_echo_n 0123456789 >"conftest.in" |
| 6207 | while : |
| 6208 | do |
| 6209 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6210 | mv "conftest.tmp" "conftest.in" |
| 6211 | cp "conftest.in" "conftest.nl" |
| 6212 | $as_echo '' >> "conftest.nl" |
| 6213 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6214 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6215 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6216 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6217 | # Best one so far, save it but keep looking for a better one |
| 6218 | ac_cv_path_SED="$ac_path_SED" |
| 6219 | ac_path_SED_max=$ac_count |
| 6220 | fi |
| 6221 | # 10*(2^10) chars as input seems more than enough |
| 6222 | test $ac_count -gt 10 && break |
| 6223 | done |
| 6224 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6225 | esac |
| 6226 | |
| 6227 | $ac_path_SED_found && break 3 |
| 6228 | done |
| 6229 | done |
| 6230 | done |
| 6231 | IFS=$as_save_IFS |
| 6232 | if test -z "$ac_cv_path_SED"; then |
| 6233 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6234 | fi |
| 6235 | else |
| 6236 | ac_cv_path_SED=$SED |
| 6237 | fi |
| 6238 | |
| 6239 | fi |
| 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6241 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6242 | SED="$ac_cv_path_SED" |
| 6243 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | |
| 6245 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6246 | { $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] | 6247 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6248 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6249 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6250 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6251 | else |
| 6252 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6253 | fi |
| 6254 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6256 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6257 | |
| 6258 | |
| 6259 | |
| 6260 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6261 | GETTEXT_MACRO_VERSION=0.18 |
| 6262 | |
| 6263 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6264 | |
| 6265 | |
| 6266 | # Prepare PATH_SEPARATOR. |
| 6267 | # The user is always right. |
| 6268 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6269 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6270 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6271 | # so we have to set that as well for the test. |
| 6272 | PATH_SEPARATOR=: |
| 6273 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6274 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6275 | || PATH_SEPARATOR=';' |
| 6276 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6277 | fi |
| 6278 | |
| 6279 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6280 | # as systems may use methods other than mode bits to determine executability. |
| 6281 | cat >conf$$.file <<_ASEOF |
| 6282 | #! /bin/sh |
| 6283 | exit 0 |
| 6284 | _ASEOF |
| 6285 | chmod +x conf$$.file |
| 6286 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6287 | ac_executable_p="test -x" |
| 6288 | else |
| 6289 | ac_executable_p="test -f" |
| 6290 | fi |
| 6291 | rm -f conf$$.file |
| 6292 | |
| 6293 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6294 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6295 | { $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] | 6296 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6297 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6298 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6299 | else |
| 6300 | case "$MSGFMT" in |
| 6301 | [\\/]* | ?:[\\/]*) |
| 6302 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6303 | ;; |
| 6304 | *) |
| 6305 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6306 | for ac_dir in $PATH; do |
| 6307 | IFS="$ac_save_IFS" |
| 6308 | test -z "$ac_dir" && ac_dir=. |
| 6309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6310 | 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] | 6311 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6312 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6313 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6314 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6315 | break 2 |
| 6316 | fi |
| 6317 | fi |
| 6318 | done |
| 6319 | done |
| 6320 | IFS="$ac_save_IFS" |
| 6321 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6322 | ;; |
| 6323 | esac |
| 6324 | fi |
| 6325 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6326 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6328 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6329 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6331 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6332 | fi |
| 6333 | |
| 6334 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6335 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6336 | { $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] | 6337 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6338 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6339 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6340 | else |
| 6341 | case $GMSGFMT in |
| 6342 | [\\/]* | ?:[\\/]*) |
| 6343 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6344 | ;; |
| 6345 | *) |
| 6346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6347 | for as_dir in $PATH |
| 6348 | do |
| 6349 | IFS=$as_save_IFS |
| 6350 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6351 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6352 | 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] | 6353 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6354 | $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] | 6355 | break 2 |
| 6356 | fi |
| 6357 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6358 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6359 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6360 | |
| 6361 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6362 | ;; |
| 6363 | esac |
| 6364 | fi |
| 6365 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6366 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6368 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6369 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6371 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6372 | fi |
| 6373 | |
| 6374 | |
| 6375 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6376 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6377 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6378 | *) MSGFMT_015=$MSGFMT ;; |
| 6379 | esac |
| 6380 | |
| 6381 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6382 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6383 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6384 | esac |
| 6385 | |
| 6386 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6387 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6388 | # Prepare PATH_SEPARATOR. |
| 6389 | # The user is always right. |
| 6390 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6391 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6392 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6393 | # so we have to set that as well for the test. |
| 6394 | PATH_SEPARATOR=: |
| 6395 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6396 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6397 | || PATH_SEPARATOR=';' |
| 6398 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6399 | fi |
| 6400 | |
| 6401 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6402 | # as systems may use methods other than mode bits to determine executability. |
| 6403 | cat >conf$$.file <<_ASEOF |
| 6404 | #! /bin/sh |
| 6405 | exit 0 |
| 6406 | _ASEOF |
| 6407 | chmod +x conf$$.file |
| 6408 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6409 | ac_executable_p="test -x" |
| 6410 | else |
| 6411 | ac_executable_p="test -f" |
| 6412 | fi |
| 6413 | rm -f conf$$.file |
| 6414 | |
| 6415 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6416 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6417 | { $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] | 6418 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6419 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6420 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | else |
| 6422 | case "$XGETTEXT" in |
| 6423 | [\\/]* | ?:[\\/]*) |
| 6424 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6425 | ;; |
| 6426 | *) |
| 6427 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6428 | for ac_dir in $PATH; do |
| 6429 | IFS="$ac_save_IFS" |
| 6430 | test -z "$ac_dir" && ac_dir=. |
| 6431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6432 | 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] | 6433 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6434 | 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] | 6435 | (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 |
| 6436 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6437 | break 2 |
| 6438 | fi |
| 6439 | fi |
| 6440 | done |
| 6441 | done |
| 6442 | IFS="$ac_save_IFS" |
| 6443 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6444 | ;; |
| 6445 | esac |
| 6446 | fi |
| 6447 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6448 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6450 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6453 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6454 | fi |
| 6455 | |
| 6456 | rm -f messages.po |
| 6457 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6458 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6459 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6460 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6461 | esac |
| 6462 | |
| 6463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6464 | |
| 6465 | # Prepare PATH_SEPARATOR. |
| 6466 | # The user is always right. |
| 6467 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6468 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6469 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6470 | # so we have to set that as well for the test. |
| 6471 | PATH_SEPARATOR=: |
| 6472 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6473 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6474 | || PATH_SEPARATOR=';' |
| 6475 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6476 | fi |
| 6477 | |
| 6478 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6479 | # as systems may use methods other than mode bits to determine executability. |
| 6480 | cat >conf$$.file <<_ASEOF |
| 6481 | #! /bin/sh |
| 6482 | exit 0 |
| 6483 | _ASEOF |
| 6484 | chmod +x conf$$.file |
| 6485 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6486 | ac_executable_p="test -x" |
| 6487 | else |
| 6488 | ac_executable_p="test -f" |
| 6489 | fi |
| 6490 | rm -f conf$$.file |
| 6491 | |
| 6492 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6493 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6494 | { $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] | 6495 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6496 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6497 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6498 | else |
| 6499 | case "$MSGMERGE" in |
| 6500 | [\\/]* | ?:[\\/]*) |
| 6501 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6502 | ;; |
| 6503 | *) |
| 6504 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6505 | for ac_dir in $PATH; do |
| 6506 | IFS="$ac_save_IFS" |
| 6507 | test -z "$ac_dir" && ac_dir=. |
| 6508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6509 | 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] | 6510 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6511 | 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] | 6512 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6513 | break 2 |
| 6514 | fi |
| 6515 | fi |
| 6516 | done |
| 6517 | done |
| 6518 | IFS="$ac_save_IFS" |
| 6519 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6520 | ;; |
| 6521 | esac |
| 6522 | fi |
| 6523 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6524 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6526 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6529 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | fi |
| 6531 | |
| 6532 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6533 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6536 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6537 | |
| 6538 | |
| 6539 | ac_config_commands="$ac_config_commands po-directories" |
| 6540 | |
| 6541 | |
| 6542 | |
| 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6544 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6545 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6546 | $as_echo_n "(cached) " >&6 |
| 6547 | else |
| 6548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6549 | /* end confdefs.h. */ |
| 6550 | |
| 6551 | #include <features.h> |
| 6552 | #ifdef __GNU_LIBRARY__ |
| 6553 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6554 | Lucky GNU user |
| 6555 | #endif |
| 6556 | #endif |
| 6557 | |
| 6558 | _ACEOF |
| 6559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6560 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6561 | ac_cv_gnu_library_2=yes |
| 6562 | else |
| 6563 | ac_cv_gnu_library_2=no |
| 6564 | fi |
| 6565 | rm -f conftest* |
| 6566 | |
| 6567 | |
| 6568 | |
| 6569 | fi |
| 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6571 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6572 | |
| 6573 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6574 | |
| 6575 | |
| 6576 | if test -n "$ac_tool_prefix"; then |
| 6577 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6578 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6579 | { $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] | 6580 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6581 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6582 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6583 | else |
| 6584 | if test -n "$RANLIB"; then |
| 6585 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6586 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6588 | for as_dir in $PATH |
| 6589 | do |
| 6590 | IFS=$as_save_IFS |
| 6591 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6592 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6593 | 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] | 6594 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6595 | $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] | 6596 | break 2 |
| 6597 | fi |
| 6598 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6599 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6600 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6601 | |
| 6602 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6603 | fi |
| 6604 | RANLIB=$ac_cv_prog_RANLIB |
| 6605 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6607 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6610 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6611 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6612 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6614 | fi |
| 6615 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6616 | ac_ct_RANLIB=$RANLIB |
| 6617 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6618 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6619 | { $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] | 6620 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6621 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6622 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6623 | else |
| 6624 | if test -n "$ac_ct_RANLIB"; then |
| 6625 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6626 | else |
| 6627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6628 | for as_dir in $PATH |
| 6629 | do |
| 6630 | IFS=$as_save_IFS |
| 6631 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6632 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6633 | 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] | 6634 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6635 | $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] | 6636 | break 2 |
| 6637 | fi |
| 6638 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6639 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6640 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6641 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | fi |
| 6643 | fi |
| 6644 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6645 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6646 | { $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] | 6647 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6648 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6650 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | fi |
| 6652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6653 | if test "x$ac_ct_RANLIB" = x; then |
| 6654 | RANLIB=":" |
| 6655 | else |
| 6656 | case $cross_compiling:$ac_tool_warned in |
| 6657 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6658 | { $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] | 6659 | $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] | 6660 | ac_tool_warned=yes ;; |
| 6661 | esac |
| 6662 | RANLIB=$ac_ct_RANLIB |
| 6663 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | else |
| 6665 | RANLIB="$ac_cv_prog_RANLIB" |
| 6666 | fi |
| 6667 | |
| 6668 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6669 | |
| 6670 | CFLAG_VISIBILITY= |
| 6671 | HAVE_VISIBILITY=0 |
| 6672 | if test -n "$GCC"; then |
| 6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6674 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6675 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6676 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6678 | |
| 6679 | gl_save_CFLAGS="$CFLAGS" |
| 6680 | CFLAGS="$CFLAGS -Werror" |
| 6681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6682 | /* end confdefs.h. */ |
| 6683 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | int |
| 6685 | main () |
| 6686 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | ; |
| 6689 | return 0; |
| 6690 | } |
| 6691 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6692 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6693 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6695 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6696 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6698 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | fi |
| 6700 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6702 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6704 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6705 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6706 | $as_echo_n "(cached) " >&6 |
| 6707 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6708 | |
| 6709 | gl_save_CFLAGS="$CFLAGS" |
| 6710 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6711 | if test $gl_cv_cc_vis_werror = yes; then |
| 6712 | CFLAGS="$CFLAGS -Werror" |
| 6713 | fi |
| 6714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6715 | /* end confdefs.h. */ |
| 6716 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6717 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6718 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6719 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6720 | void dummyfunc (void) {} |
| 6721 | |
| 6722 | int |
| 6723 | main () |
| 6724 | { |
| 6725 | |
| 6726 | ; |
| 6727 | return 0; |
| 6728 | } |
| 6729 | _ACEOF |
| 6730 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6731 | gl_cv_cc_visibility=yes |
| 6732 | else |
| 6733 | gl_cv_cc_visibility=no |
| 6734 | fi |
| 6735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6736 | CFLAGS="$gl_save_CFLAGS" |
| 6737 | fi |
| 6738 | |
| 6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6740 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6741 | if test $gl_cv_cc_visibility = yes; then |
| 6742 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6743 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6744 | fi |
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 | |
| 6747 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6748 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6749 | cat >>confdefs.h <<_ACEOF |
| 6750 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6751 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6752 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6753 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6755 | $as_echo_n "checking for inline... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6756 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6757 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6758 | else |
| 6759 | ac_cv_c_inline=no |
| 6760 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6762 | /* end confdefs.h. */ |
| 6763 | #ifndef __cplusplus |
| 6764 | typedef int foo_t; |
| 6765 | static $ac_kw foo_t static_foo () {return 0; } |
| 6766 | $ac_kw foo_t foo () {return 0; } |
| 6767 | #endif |
| 6768 | |
| 6769 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6770 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6771 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6774 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | done |
| 6776 | |
| 6777 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6778 | { $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] | 6779 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6780 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6782 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6783 | *) |
| 6784 | case $ac_cv_c_inline in |
| 6785 | no) ac_val=;; |
| 6786 | *) ac_val=$ac_cv_c_inline;; |
| 6787 | esac |
| 6788 | cat >>confdefs.h <<_ACEOF |
| 6789 | #ifndef __cplusplus |
| 6790 | #define inline $ac_val |
| 6791 | #endif |
| 6792 | _ACEOF |
| 6793 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6794 | esac |
| 6795 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6796 | 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] | 6797 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6799 | else |
| 6800 | |
| 6801 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6802 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6803 | _ACEOF |
| 6804 | |
| 6805 | fi |
| 6806 | |
| 6807 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6808 | { $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] | 6809 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6810 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6811 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | /* end confdefs.h. */ |
| 6815 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6816 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6817 | int |
| 6818 | main () |
| 6819 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6820 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | ; |
| 6822 | return 0; |
| 6823 | } |
| 6824 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6825 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6826 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6828 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6829 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6831 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6833 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6834 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | |
| 6836 | cat >>confdefs.h <<_ACEOF |
| 6837 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6838 | _ACEOF |
| 6839 | |
| 6840 | fi |
| 6841 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6842 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6843 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6844 | { $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] | 6845 | $as_echo_n "checking for working alloca.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6846 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6847 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6848 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6851 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6852 | int |
| 6853 | main () |
| 6854 | { |
| 6855 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6856 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6857 | ; |
| 6858 | return 0; |
| 6859 | } |
| 6860 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6861 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6862 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6863 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6864 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6865 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6866 | rm -f core conftest.err conftest.$ac_objext \ |
| 6867 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6868 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6869 | { $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] | 6870 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6871 | if test $ac_cv_working_alloca_h = yes; then |
| 6872 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6873 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6874 | |
| 6875 | fi |
| 6876 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6878 | $as_echo_n "checking for alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6879 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6880 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6881 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6883 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6884 | #ifdef __GNUC__ |
| 6885 | # define alloca __builtin_alloca |
| 6886 | #else |
| 6887 | # ifdef _MSC_VER |
| 6888 | # include <malloc.h> |
| 6889 | # define alloca _alloca |
| 6890 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6891 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6892 | # include <alloca.h> |
| 6893 | # else |
| 6894 | # ifdef _AIX |
| 6895 | #pragma alloca |
| 6896 | # else |
| 6897 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6898 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6899 | # endif |
| 6900 | # endif |
| 6901 | # endif |
| 6902 | # endif |
| 6903 | #endif |
| 6904 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6905 | int |
| 6906 | main () |
| 6907 | { |
| 6908 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6909 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6910 | ; |
| 6911 | return 0; |
| 6912 | } |
| 6913 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6914 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6915 | ac_cv_func_alloca_works=yes |
| 6916 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6917 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6919 | rm -f core conftest.err conftest.$ac_objext \ |
| 6920 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6921 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6922 | { $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] | 6923 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6924 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6925 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6926 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6927 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6928 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6929 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6930 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6931 | # that cause trouble. Some versions do not even contain alloca or |
| 6932 | # contain a buggy version. If you still want to use their alloca, |
| 6933 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6935 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6937 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6938 | |
| 6939 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6940 | { $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] | 6941 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6942 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6943 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6944 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6946 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6947 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6948 | webecray |
| 6949 | #else |
| 6950 | wenotbecray |
| 6951 | #endif |
| 6952 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6953 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6955 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6956 | ac_cv_os_cray=yes |
| 6957 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6958 | ac_cv_os_cray=no |
| 6959 | fi |
| 6960 | rm -f conftest* |
| 6961 | |
| 6962 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6963 | { $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] | 6964 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6965 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6966 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6967 | 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] | 6968 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6969 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | |
| 6971 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6972 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6973 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6974 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6975 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6976 | fi |
| 6977 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6978 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6979 | fi |
| 6980 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6981 | { $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] | 6982 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6983 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6984 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6985 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6986 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6987 | ac_cv_c_stack_direction=0 |
| 6988 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6990 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6991 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6992 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6993 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6994 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6995 | int dir, dummy = 0; |
| 6996 | if (! addr) |
| 6997 | addr = &dummy; |
| 6998 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 6999 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7000 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7001 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | |
| 7003 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7004 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7005 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7006 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7007 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7008 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7009 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7010 | ac_cv_c_stack_direction=1 |
| 7011 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7012 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7013 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7014 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7015 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7018 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7020 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7021 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7022 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | _ACEOF |
| 7024 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7025 | |
| 7026 | fi |
| 7027 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7028 | |
| 7029 | |
| 7030 | |
| 7031 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7032 | do : |
| 7033 | 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] | 7034 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7035 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7036 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7037 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7038 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | _ACEOF |
| 7040 | |
| 7041 | fi |
| 7042 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7043 | done |
| 7044 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7045 | |
| 7046 | |
| 7047 | |
| 7048 | |
| 7049 | |
| 7050 | |
| 7051 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7052 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7053 | do : |
| 7054 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7055 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7056 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7057 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7058 | _ACEOF |
| 7059 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7060 | fi |
| 7061 | done |
| 7062 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7063 | { $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] | 7064 | $as_echo_n "checking for working mmap... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7065 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7066 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7067 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7068 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7069 | ac_cv_func_mmap_fixed_mapped=no |
| 7070 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7072 | /* end confdefs.h. */ |
| 7073 | $ac_includes_default |
| 7074 | /* malloc might have been renamed as rpl_malloc. */ |
| 7075 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7076 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7077 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7078 | Here is a matrix of mmap possibilities: |
| 7079 | mmap private not fixed |
| 7080 | mmap private fixed at somewhere currently unmapped |
| 7081 | mmap private fixed at somewhere already mapped |
| 7082 | mmap shared not fixed |
| 7083 | mmap shared fixed at somewhere currently unmapped |
| 7084 | mmap shared fixed at somewhere already mapped |
| 7085 | For private mappings, we should verify that changes cannot be read() |
| 7086 | back from the file, nor mmap's back from the file at a different |
| 7087 | address. (There have been systems where private was not correctly |
| 7088 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | 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] | 7090 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7091 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7092 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7093 | |
| 7094 | Grep wants private fixed already mapped. |
| 7095 | The main things grep needs to know about mmap are: |
| 7096 | * does it exist and is it safe to write into the mmap'd area |
| 7097 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7098 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7099 | #include <fcntl.h> |
| 7100 | #include <sys/mman.h> |
| 7101 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7102 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7103 | char *malloc (); |
| 7104 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7105 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7106 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7107 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7108 | # ifdef _SC_PAGESIZE |
| 7109 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7110 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7111 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7112 | # include <sys/param.h> |
| 7113 | # ifdef EXEC_PAGESIZE |
| 7114 | # define getpagesize() EXEC_PAGESIZE |
| 7115 | # else /* no EXEC_PAGESIZE */ |
| 7116 | # ifdef NBPG |
| 7117 | # define getpagesize() NBPG * CLSIZE |
| 7118 | # ifndef CLSIZE |
| 7119 | # define CLSIZE 1 |
| 7120 | # endif /* no CLSIZE */ |
| 7121 | # else /* no NBPG */ |
| 7122 | # ifdef NBPC |
| 7123 | # define getpagesize() NBPC |
| 7124 | # else /* no NBPC */ |
| 7125 | # ifdef PAGESIZE |
| 7126 | # define getpagesize() PAGESIZE |
| 7127 | # endif /* PAGESIZE */ |
| 7128 | # endif /* no NBPC */ |
| 7129 | # endif /* no NBPG */ |
| 7130 | # endif /* no EXEC_PAGESIZE */ |
| 7131 | # else /* no HAVE_SYS_PARAM_H */ |
| 7132 | # define getpagesize() 8192 /* punt totally */ |
| 7133 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7134 | # endif /* no _SC_PAGESIZE */ |
| 7135 | |
| 7136 | #endif /* no HAVE_GETPAGESIZE */ |
| 7137 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7138 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7139 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7140 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7141 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7142 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7144 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7145 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | /* First, make a file with some known garbage in it. */ |
| 7149 | data = (char *) malloc (pagesize); |
| 7150 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7151 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7152 | for (i = 0; i < pagesize; ++i) |
| 7153 | *(data + i) = rand (); |
| 7154 | umask (0); |
| 7155 | fd = creat ("conftest.mmap", 0600); |
| 7156 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7157 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7158 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7159 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7160 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7161 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7162 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7163 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7164 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7165 | if (fd2 < 0) |
| 7166 | return 4; |
| 7167 | cdata2 = ""; |
| 7168 | if (write (fd2, cdata2, 1) != 1) |
| 7169 | return 5; |
| 7170 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7171 | if (data2 == MAP_FAILED) |
| 7172 | return 6; |
| 7173 | for (i = 0; i < pagesize; ++i) |
| 7174 | if (*(data2 + i)) |
| 7175 | return 7; |
| 7176 | close (fd2); |
| 7177 | if (munmap (data2, pagesize)) |
| 7178 | return 8; |
| 7179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | /* Next, try to mmap the file at a fixed address which already has |
| 7181 | something else allocated at it. If we can, also make sure that |
| 7182 | we see the same garbage. */ |
| 7183 | fd = open ("conftest.mmap", O_RDWR); |
| 7184 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7185 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7186 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7187 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7188 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7189 | for (i = 0; i < pagesize; ++i) |
| 7190 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7191 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7193 | /* Finally, make sure that changes to the mapped area do not |
| 7194 | percolate back to the file as seen by read(). (This is a bug on |
| 7195 | some variants of i386 svr4.0.) */ |
| 7196 | for (i = 0; i < pagesize; ++i) |
| 7197 | *(data2 + i) = *(data2 + i) + 1; |
| 7198 | data3 = (char *) malloc (pagesize); |
| 7199 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7200 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7201 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7202 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | for (i = 0; i < pagesize; ++i) |
| 7204 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7205 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7206 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7207 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7208 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7209 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7210 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7211 | ac_cv_func_mmap_fixed_mapped=yes |
| 7212 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7213 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7214 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7215 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7216 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7217 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7218 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7219 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7220 | { $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] | 7221 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7222 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7223 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7224 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7225 | |
| 7226 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7227 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7228 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7230 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7231 | { $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] | 7232 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7233 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7234 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7236 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7237 | gt_cv_int_divbyzero_sigfpe= |
| 7238 | case "$host_os" in |
| 7239 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7240 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7241 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7242 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7243 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7244 | i[34567]86 | x86_64) |
| 7245 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7246 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7247 | ;; |
| 7248 | esac |
| 7249 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7250 | if test "$cross_compiling" = yes; then : |
| 7251 | |
| 7252 | # Guess based on the CPU. |
| 7253 | case "$host_cpu" in |
| 7254 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7255 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7256 | *) |
| 7257 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7258 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7259 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7260 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7263 | |
| 7264 | #include <stdlib.h> |
| 7265 | #include <signal.h> |
| 7266 | |
| 7267 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7268 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7269 | { |
| 7270 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7271 | exit (sig != SIGFPE); |
| 7272 | } |
| 7273 | |
| 7274 | int x = 1; |
| 7275 | int y = 0; |
| 7276 | int z; |
| 7277 | int nan; |
| 7278 | |
| 7279 | int main () |
| 7280 | { |
| 7281 | signal (SIGFPE, sigfpe_handler); |
| 7282 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7283 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7284 | signal (SIGTRAP, sigfpe_handler); |
| 7285 | #endif |
| 7286 | /* Linux/SPARC yields signal SIGILL. */ |
| 7287 | #if defined (__sparc__) && defined (__linux__) |
| 7288 | signal (SIGILL, sigfpe_handler); |
| 7289 | #endif |
| 7290 | |
| 7291 | z = x / y; |
| 7292 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7293 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7294 | } |
| 7295 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7296 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7297 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7298 | gt_cv_int_divbyzero_sigfpe=yes |
| 7299 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7300 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7301 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7302 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7303 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7304 | fi |
| 7305 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7306 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7307 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7308 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7309 | { $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] | 7310 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7311 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7312 | *yes) value=1;; |
| 7313 | *) value=0;; |
| 7314 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7315 | |
| 7316 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7317 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7319 | |
| 7320 | |
| 7321 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7323 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7324 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7325 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7326 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7329 | |
| 7330 | #include <sys/types.h> |
| 7331 | #include <inttypes.h> |
| 7332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7333 | int |
| 7334 | main () |
| 7335 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7336 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7337 | ; |
| 7338 | return 0; |
| 7339 | } |
| 7340 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7341 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7342 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7343 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7344 | gl_cv_header_inttypes_h=no |
| 7345 | fi |
| 7346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7347 | fi |
| 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7349 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7350 | if test $gl_cv_header_inttypes_h = yes; then |
| 7351 | |
| 7352 | cat >>confdefs.h <<_ACEOF |
| 7353 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7354 | _ACEOF |
| 7355 | |
| 7356 | fi |
| 7357 | |
| 7358 | |
| 7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7360 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7361 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7362 | $as_echo_n "(cached) " >&6 |
| 7363 | else |
| 7364 | ac_cv_type_unsigned_long_long_int=yes |
| 7365 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7367 | /* end confdefs.h. */ |
| 7368 | |
| 7369 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7370 | implementations with broken preprocessors. Perhaps this can |
| 7371 | be revisited in 2012. In the meantime, code should not expect |
| 7372 | #if to work with literals wider than 32 bits. */ |
| 7373 | /* Test literals. */ |
| 7374 | long long int ll = 9223372036854775807ll; |
| 7375 | long long int nll = -9223372036854775807LL; |
| 7376 | unsigned long long int ull = 18446744073709551615ULL; |
| 7377 | /* Test constant expressions. */ |
| 7378 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7379 | ? 1 : -1)]; |
| 7380 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7381 | ? 1 : -1)]; |
| 7382 | int i = 63; |
| 7383 | int |
| 7384 | main () |
| 7385 | { |
| 7386 | /* Test availability of runtime routines for shift and division. */ |
| 7387 | long long int llmax = 9223372036854775807ll; |
| 7388 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7389 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7390 | | (llmax / ll) | (llmax % ll) |
| 7391 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7392 | | (ullmax / ull) | (ullmax % ull)); |
| 7393 | ; |
| 7394 | return 0; |
| 7395 | } |
| 7396 | |
| 7397 | _ACEOF |
| 7398 | if ac_fn_c_try_link "$LINENO"; then : |
| 7399 | |
| 7400 | else |
| 7401 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7402 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7403 | rm -f core conftest.err conftest.$ac_objext \ |
| 7404 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7405 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7406 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7408 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7409 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7410 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7411 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7412 | |
| 7413 | fi |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7418 | 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] | 7419 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7420 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7421 | && ac_type='unsigned long long' \ |
| 7422 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7423 | |
| 7424 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7425 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7426 | _ACEOF |
| 7427 | |
| 7428 | else |
| 7429 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7430 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7431 | |
| 7432 | fi |
| 7433 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7434 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7435 | for ac_header in inttypes.h |
| 7436 | do : |
| 7437 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7438 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7439 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7440 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7441 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7442 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7443 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7444 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7445 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7446 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7447 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7448 | { $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] | 7449 | $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] | 7450 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7451 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7452 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7456 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7457 | #include <inttypes.h> |
| 7458 | #ifdef PRId32 |
| 7459 | char *p = PRId32; |
| 7460 | #endif |
| 7461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | int |
| 7463 | main () |
| 7464 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7466 | ; |
| 7467 | return 0; |
| 7468 | } |
| 7469 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7470 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7471 | gt_cv_inttypes_pri_broken=no |
| 7472 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7473 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7474 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7476 | |
| 7477 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7478 | { $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] | 7479 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7480 | fi |
| 7481 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | |
| 7483 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7484 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7486 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7487 | PRI_MACROS_BROKEN=1 |
| 7488 | else |
| 7489 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7490 | fi |
| 7491 | |
| 7492 | |
| 7493 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7494 | |
| 7495 | |
| 7496 | |
| 7497 | |
| 7498 | # Check whether --enable-threads was given. |
| 7499 | if test "${enable_threads+set}" = set; then : |
| 7500 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7501 | else |
| 7502 | if test -n "$gl_use_threads_default"; then |
| 7503 | gl_use_threads="$gl_use_threads_default" |
| 7504 | else |
| 7505 | case "$host_os" in |
| 7506 | osf*) gl_use_threads=no ;; |
| 7507 | cygwin*) |
| 7508 | case `uname -r` in |
| 7509 | 1.[0-5].*) gl_use_threads=no ;; |
| 7510 | *) gl_use_threads=yes ;; |
| 7511 | esac |
| 7512 | ;; |
| 7513 | *) gl_use_threads=yes ;; |
| 7514 | esac |
| 7515 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7516 | |
| 7517 | fi |
| 7518 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7519 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7520 | # For using <pthread.h>: |
| 7521 | case "$host_os" in |
| 7522 | osf*) |
| 7523 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7524 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7525 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7526 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7527 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7528 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7529 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7530 | ;; |
| 7531 | esac |
| 7532 | # Some systems optimize for single-threaded programs by default, and |
| 7533 | # need special flags to disable these optimizations. For example, the |
| 7534 | # definition of 'errno' in <errno.h>. |
| 7535 | case "$host_os" in |
| 7536 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7537 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7538 | esac |
| 7539 | fi |
| 7540 | |
| 7541 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | |
| 7543 | |
| 7544 | |
| 7545 | if test "X$prefix" = "XNONE"; then |
| 7546 | acl_final_prefix="$ac_default_prefix" |
| 7547 | else |
| 7548 | acl_final_prefix="$prefix" |
| 7549 | fi |
| 7550 | if test "X$exec_prefix" = "XNONE"; then |
| 7551 | acl_final_exec_prefix='${prefix}' |
| 7552 | else |
| 7553 | acl_final_exec_prefix="$exec_prefix" |
| 7554 | fi |
| 7555 | acl_save_prefix="$prefix" |
| 7556 | prefix="$acl_final_prefix" |
| 7557 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7558 | prefix="$acl_save_prefix" |
| 7559 | |
| 7560 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7561 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7562 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7563 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7564 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | else |
| 7566 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7567 | fi |
| 7568 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7569 | # Prepare PATH_SEPARATOR. |
| 7570 | # The user is always right. |
| 7571 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7572 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7573 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7574 | # so we have to set that as well for the test. |
| 7575 | PATH_SEPARATOR=: |
| 7576 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7577 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7578 | || PATH_SEPARATOR=';' |
| 7579 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7580 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7581 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7582 | ac_prog=ld |
| 7583 | if test "$GCC" = yes; then |
| 7584 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7586 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | case $host in |
| 7588 | *-*-mingw*) |
| 7589 | # gcc leaves a trailing carriage return which upsets mingw |
| 7590 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7591 | *) |
| 7592 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7593 | esac |
| 7594 | case $ac_prog in |
| 7595 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7596 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7598 | # Canonicalize the pathname of ld |
| 7599 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7600 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7601 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7602 | done |
| 7603 | test -z "$LD" && LD="$ac_prog" |
| 7604 | ;; |
| 7605 | "") |
| 7606 | # If it fails, then pretend we aren't using GCC. |
| 7607 | ac_prog=ld |
| 7608 | ;; |
| 7609 | *) |
| 7610 | # If it is relative, then search for the first ld in PATH. |
| 7611 | with_gnu_ld=unknown |
| 7612 | ;; |
| 7613 | esac |
| 7614 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7615 | { $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] | 7616 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7618 | { $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] | 7619 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7621 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7622 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7623 | else |
| 7624 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7625 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7626 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7627 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | test -z "$ac_dir" && ac_dir=. |
| 7629 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7630 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7631 | # 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] | 7632 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7633 | # 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] | 7634 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7635 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7636 | test "$with_gnu_ld" != no && break |
| 7637 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7639 | test "$with_gnu_ld" != yes && break |
| 7640 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7641 | esac |
| 7642 | fi |
| 7643 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7644 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7645 | else |
| 7646 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7647 | fi |
| 7648 | fi |
| 7649 | |
| 7650 | LD="$acl_cv_path_LD" |
| 7651 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7653 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7654 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7656 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7657 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7658 | 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] | 7659 | { $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] | 7660 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7661 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7662 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7663 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7664 | # 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] | 7665 | case `$LD -v 2>&1 </dev/null` in |
| 7666 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7667 | acl_cv_prog_gnu_ld=yes |
| 7668 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7669 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7670 | acl_cv_prog_gnu_ld=no |
| 7671 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7672 | esac |
| 7673 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7674 | { $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] | 7675 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7676 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7677 | |
| 7678 | |
| 7679 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7680 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7681 | { $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] | 7682 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7683 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7684 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7685 | else |
| 7686 | |
| 7687 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7688 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7689 | . ./conftest.sh |
| 7690 | rm -f ./conftest.sh |
| 7691 | acl_cv_rpath=done |
| 7692 | |
| 7693 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7694 | { $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] | 7695 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7696 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7697 | acl_libext="$acl_cv_libext" |
| 7698 | acl_shlibext="$acl_cv_shlibext" |
| 7699 | acl_libname_spec="$acl_cv_libname_spec" |
| 7700 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7701 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7702 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7703 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7704 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7705 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7706 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7707 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7708 | else |
| 7709 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7710 | fi |
| 7711 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7712 | |
| 7713 | |
| 7714 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7715 | acl_libdirstem=lib |
| 7716 | acl_libdirstem2= |
| 7717 | case "$host_os" in |
| 7718 | solaris*) |
| 7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7720 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7721 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7722 | $as_echo_n "(cached) " >&6 |
| 7723 | else |
| 7724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7725 | /* end confdefs.h. */ |
| 7726 | |
| 7727 | #ifdef _LP64 |
| 7728 | sixtyfour bits |
| 7729 | #endif |
| 7730 | |
| 7731 | _ACEOF |
| 7732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7733 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7734 | gl_cv_solaris_64bit=yes |
| 7735 | else |
| 7736 | gl_cv_solaris_64bit=no |
| 7737 | fi |
| 7738 | rm -f conftest* |
| 7739 | |
| 7740 | |
| 7741 | fi |
| 7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7743 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7744 | if test $gl_cv_solaris_64bit = yes; then |
| 7745 | acl_libdirstem=lib/64 |
| 7746 | case "$host_cpu" in |
| 7747 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7748 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7749 | esac |
| 7750 | fi |
| 7751 | ;; |
| 7752 | *) |
| 7753 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7754 | if test -n "$searchpath"; then |
| 7755 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7756 | for searchdir in $searchpath; do |
| 7757 | if test -d "$searchdir"; then |
| 7758 | case "$searchdir" in |
| 7759 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7760 | */../ | */.. ) |
| 7761 | # Better ignore directories of this form. They are misleading. |
| 7762 | ;; |
| 7763 | *) searchdir=`cd "$searchdir" && pwd` |
| 7764 | case "$searchdir" in |
| 7765 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7766 | esac ;; |
| 7767 | esac |
| 7768 | fi |
| 7769 | done |
| 7770 | IFS="$acl_save_IFS" |
| 7771 | fi |
| 7772 | ;; |
| 7773 | esac |
| 7774 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7775 | |
| 7776 | |
| 7777 | |
| 7778 | gl_threads_api=none |
| 7779 | LIBTHREAD= |
| 7780 | LTLIBTHREAD= |
| 7781 | LIBMULTITHREAD= |
| 7782 | LTLIBMULTITHREAD= |
| 7783 | if test "$gl_use_threads" != no; then |
| 7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7785 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7786 | if ${gl_cv_have_weak+:} false; then : |
| 7787 | $as_echo_n "(cached) " >&6 |
| 7788 | else |
| 7789 | gl_cv_have_weak=no |
| 7790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7791 | /* end confdefs.h. */ |
| 7792 | extern void xyzzy (); |
| 7793 | #pragma weak xyzzy |
| 7794 | int |
| 7795 | main () |
| 7796 | { |
| 7797 | xyzzy(); |
| 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | if ac_fn_c_try_link "$LINENO"; then : |
| 7803 | gl_cv_have_weak=maybe |
| 7804 | fi |
| 7805 | rm -f core conftest.err conftest.$ac_objext \ |
| 7806 | conftest$ac_exeext conftest.$ac_ext |
| 7807 | if test $gl_cv_have_weak = maybe; then |
| 7808 | if test "$cross_compiling" = yes; then : |
| 7809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7810 | /* end confdefs.h. */ |
| 7811 | #ifdef __ELF__ |
| 7812 | Extensible Linking Format |
| 7813 | #endif |
| 7814 | |
| 7815 | _ACEOF |
| 7816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7817 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7818 | gl_cv_have_weak="guessing yes" |
| 7819 | else |
| 7820 | gl_cv_have_weak="guessing no" |
| 7821 | fi |
| 7822 | rm -f conftest* |
| 7823 | |
| 7824 | |
| 7825 | else |
| 7826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7827 | /* end confdefs.h. */ |
| 7828 | |
| 7829 | #include <stdio.h> |
| 7830 | #pragma weak fputs |
| 7831 | int main () |
| 7832 | { |
| 7833 | return (fputs == NULL); |
| 7834 | } |
| 7835 | _ACEOF |
| 7836 | if ac_fn_c_try_run "$LINENO"; then : |
| 7837 | gl_cv_have_weak=yes |
| 7838 | else |
| 7839 | gl_cv_have_weak=no |
| 7840 | fi |
| 7841 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7842 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7843 | fi |
| 7844 | |
| 7845 | fi |
| 7846 | |
| 7847 | fi |
| 7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 7849 | $as_echo "$gl_cv_have_weak" >&6; } |
| 7850 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7851 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 7852 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 7853 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7854 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 7855 | gl_have_pthread_h=yes |
| 7856 | else |
| 7857 | gl_have_pthread_h=no |
| 7858 | fi |
| 7859 | |
| 7860 | |
| 7861 | if test "$gl_have_pthread_h" = yes; then |
| 7862 | # Other possible tests: |
| 7863 | # -lpthreads (FSU threads, PCthreads) |
| 7864 | # -lgthreads |
| 7865 | gl_have_pthread= |
| 7866 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 7867 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 7868 | # the second one only in libpthread, and lock.c needs it. |
| 7869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7870 | /* end confdefs.h. */ |
| 7871 | #include <pthread.h> |
| 7872 | int |
| 7873 | main () |
| 7874 | { |
| 7875 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 7876 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 7877 | ; |
| 7878 | return 0; |
| 7879 | } |
| 7880 | _ACEOF |
| 7881 | if ac_fn_c_try_link "$LINENO"; then : |
| 7882 | gl_have_pthread=yes |
| 7883 | fi |
| 7884 | rm -f core conftest.err conftest.$ac_objext \ |
| 7885 | conftest$ac_exeext conftest.$ac_ext |
| 7886 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 7887 | # since it is defined as a macro on OSF/1.) |
| 7888 | if test -n "$gl_have_pthread"; then |
| 7889 | # The program links fine without libpthread. But it may actually |
| 7890 | # need to link with libpthread in order to create multiple threads. |
| 7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7892 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7893 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7894 | $as_echo_n "(cached) " >&6 |
| 7895 | else |
| 7896 | ac_check_lib_save_LIBS=$LIBS |
| 7897 | LIBS="-lpthread $LIBS" |
| 7898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7899 | /* end confdefs.h. */ |
| 7900 | |
| 7901 | /* Override any GCC internal prototype to avoid an error. |
| 7902 | Use char because int might match the return type of a GCC |
| 7903 | builtin and then its argument prototype would still apply. */ |
| 7904 | #ifdef __cplusplus |
| 7905 | extern "C" |
| 7906 | #endif |
| 7907 | char pthread_kill (); |
| 7908 | int |
| 7909 | main () |
| 7910 | { |
| 7911 | return pthread_kill (); |
| 7912 | ; |
| 7913 | return 0; |
| 7914 | } |
| 7915 | _ACEOF |
| 7916 | if ac_fn_c_try_link "$LINENO"; then : |
| 7917 | ac_cv_lib_pthread_pthread_kill=yes |
| 7918 | else |
| 7919 | ac_cv_lib_pthread_pthread_kill=no |
| 7920 | fi |
| 7921 | rm -f core conftest.err conftest.$ac_objext \ |
| 7922 | conftest$ac_exeext conftest.$ac_ext |
| 7923 | LIBS=$ac_check_lib_save_LIBS |
| 7924 | fi |
| 7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7926 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7927 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7928 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7929 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 7930 | # Therefore pthread_in_use() needs to actually try to create a |
| 7931 | # thread: pthread_create from libc will fail, whereas |
| 7932 | # pthread_create will actually create a thread. |
| 7933 | case "$host_os" in |
| 7934 | solaris* | hpux*) |
| 7935 | |
| 7936 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 7937 | |
| 7938 | esac |
| 7939 | |
| 7940 | fi |
| 7941 | |
| 7942 | else |
| 7943 | # Some library is needed. Try libpthread and libc_r. |
| 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7945 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7946 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7947 | $as_echo_n "(cached) " >&6 |
| 7948 | else |
| 7949 | ac_check_lib_save_LIBS=$LIBS |
| 7950 | LIBS="-lpthread $LIBS" |
| 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7952 | /* end confdefs.h. */ |
| 7953 | |
| 7954 | /* Override any GCC internal prototype to avoid an error. |
| 7955 | Use char because int might match the return type of a GCC |
| 7956 | builtin and then its argument prototype would still apply. */ |
| 7957 | #ifdef __cplusplus |
| 7958 | extern "C" |
| 7959 | #endif |
| 7960 | char pthread_kill (); |
| 7961 | int |
| 7962 | main () |
| 7963 | { |
| 7964 | return pthread_kill (); |
| 7965 | ; |
| 7966 | return 0; |
| 7967 | } |
| 7968 | _ACEOF |
| 7969 | if ac_fn_c_try_link "$LINENO"; then : |
| 7970 | ac_cv_lib_pthread_pthread_kill=yes |
| 7971 | else |
| 7972 | ac_cv_lib_pthread_pthread_kill=no |
| 7973 | fi |
| 7974 | rm -f core conftest.err conftest.$ac_objext \ |
| 7975 | conftest$ac_exeext conftest.$ac_ext |
| 7976 | LIBS=$ac_check_lib_save_LIBS |
| 7977 | fi |
| 7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7979 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7980 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7981 | gl_have_pthread=yes |
| 7982 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 7983 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7984 | fi |
| 7985 | |
| 7986 | if test -z "$gl_have_pthread"; then |
| 7987 | # For FreeBSD 4. |
| 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 7989 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 7990 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 7991 | $as_echo_n "(cached) " >&6 |
| 7992 | else |
| 7993 | ac_check_lib_save_LIBS=$LIBS |
| 7994 | LIBS="-lc_r $LIBS" |
| 7995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7996 | /* end confdefs.h. */ |
| 7997 | |
| 7998 | /* Override any GCC internal prototype to avoid an error. |
| 7999 | Use char because int might match the return type of a GCC |
| 8000 | builtin and then its argument prototype would still apply. */ |
| 8001 | #ifdef __cplusplus |
| 8002 | extern "C" |
| 8003 | #endif |
| 8004 | char pthread_kill (); |
| 8005 | int |
| 8006 | main () |
| 8007 | { |
| 8008 | return pthread_kill (); |
| 8009 | ; |
| 8010 | return 0; |
| 8011 | } |
| 8012 | _ACEOF |
| 8013 | if ac_fn_c_try_link "$LINENO"; then : |
| 8014 | ac_cv_lib_c_r_pthread_kill=yes |
| 8015 | else |
| 8016 | ac_cv_lib_c_r_pthread_kill=no |
| 8017 | fi |
| 8018 | rm -f core conftest.err conftest.$ac_objext \ |
| 8019 | conftest$ac_exeext conftest.$ac_ext |
| 8020 | LIBS=$ac_check_lib_save_LIBS |
| 8021 | fi |
| 8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8023 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8024 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8025 | gl_have_pthread=yes |
| 8026 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8027 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8028 | fi |
| 8029 | |
| 8030 | fi |
| 8031 | fi |
| 8032 | if test -n "$gl_have_pthread"; then |
| 8033 | gl_threads_api=posix |
| 8034 | |
| 8035 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8036 | |
| 8037 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8038 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8039 | |
| 8040 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8041 | |
| 8042 | LIBTHREAD= |
| 8043 | LTLIBTHREAD= |
| 8044 | fi |
| 8045 | fi |
| 8046 | fi |
| 8047 | fi |
| 8048 | fi |
| 8049 | if test -z "$gl_have_pthread"; then |
| 8050 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8051 | gl_have_solaristhread= |
| 8052 | gl_save_LIBS="$LIBS" |
| 8053 | LIBS="$LIBS -lthread" |
| 8054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8055 | /* end confdefs.h. */ |
| 8056 | |
| 8057 | #include <thread.h> |
| 8058 | #include <synch.h> |
| 8059 | |
| 8060 | int |
| 8061 | main () |
| 8062 | { |
| 8063 | thr_self(); |
| 8064 | ; |
| 8065 | return 0; |
| 8066 | } |
| 8067 | _ACEOF |
| 8068 | if ac_fn_c_try_link "$LINENO"; then : |
| 8069 | gl_have_solaristhread=yes |
| 8070 | fi |
| 8071 | rm -f core conftest.err conftest.$ac_objext \ |
| 8072 | conftest$ac_exeext conftest.$ac_ext |
| 8073 | LIBS="$gl_save_LIBS" |
| 8074 | if test -n "$gl_have_solaristhread"; then |
| 8075 | gl_threads_api=solaris |
| 8076 | LIBTHREAD=-lthread |
| 8077 | LTLIBTHREAD=-lthread |
| 8078 | LIBMULTITHREAD="$LIBTHREAD" |
| 8079 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8080 | |
| 8081 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8082 | |
| 8083 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8084 | |
| 8085 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8086 | |
| 8087 | LIBTHREAD= |
| 8088 | LTLIBTHREAD= |
| 8089 | fi |
| 8090 | fi |
| 8091 | fi |
| 8092 | fi |
| 8093 | if test "$gl_use_threads" = pth; then |
| 8094 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
| 8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8101 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8102 | if ${ac_cv_libpth_libs+:} false; then : |
| 8103 | $as_echo_n "(cached) " >&6 |
| 8104 | else |
| 8105 | |
| 8106 | |
| 8107 | |
| 8108 | |
| 8109 | |
| 8110 | |
| 8111 | |
| 8112 | |
| 8113 | use_additional=yes |
| 8114 | |
| 8115 | acl_save_prefix="$prefix" |
| 8116 | prefix="$acl_final_prefix" |
| 8117 | acl_save_exec_prefix="$exec_prefix" |
| 8118 | exec_prefix="$acl_final_exec_prefix" |
| 8119 | |
| 8120 | eval additional_includedir=\"$includedir\" |
| 8121 | eval additional_libdir=\"$libdir\" |
| 8122 | |
| 8123 | exec_prefix="$acl_save_exec_prefix" |
| 8124 | prefix="$acl_save_prefix" |
| 8125 | |
| 8126 | |
| 8127 | # Check whether --with-libpth-prefix was given. |
| 8128 | if test "${with_libpth_prefix+set}" = set; then : |
| 8129 | withval=$with_libpth_prefix; |
| 8130 | if test "X$withval" = "Xno"; then |
| 8131 | use_additional=no |
| 8132 | else |
| 8133 | if test "X$withval" = "X"; then |
| 8134 | |
| 8135 | acl_save_prefix="$prefix" |
| 8136 | prefix="$acl_final_prefix" |
| 8137 | acl_save_exec_prefix="$exec_prefix" |
| 8138 | exec_prefix="$acl_final_exec_prefix" |
| 8139 | |
| 8140 | eval additional_includedir=\"$includedir\" |
| 8141 | eval additional_libdir=\"$libdir\" |
| 8142 | |
| 8143 | exec_prefix="$acl_save_exec_prefix" |
| 8144 | prefix="$acl_save_prefix" |
| 8145 | |
| 8146 | else |
| 8147 | additional_includedir="$withval/include" |
| 8148 | additional_libdir="$withval/$acl_libdirstem" |
| 8149 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8150 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8151 | additional_libdir="$withval/$acl_libdirstem2" |
| 8152 | fi |
| 8153 | fi |
| 8154 | fi |
| 8155 | |
| 8156 | fi |
| 8157 | |
| 8158 | LIBPTH= |
| 8159 | LTLIBPTH= |
| 8160 | INCPTH= |
| 8161 | LIBPTH_PREFIX= |
| 8162 | HAVE_LIBPTH= |
| 8163 | rpathdirs= |
| 8164 | ltrpathdirs= |
| 8165 | names_already_handled= |
| 8166 | names_next_round='pth ' |
| 8167 | while test -n "$names_next_round"; do |
| 8168 | names_this_round="$names_next_round" |
| 8169 | names_next_round= |
| 8170 | for name in $names_this_round; do |
| 8171 | already_handled= |
| 8172 | for n in $names_already_handled; do |
| 8173 | if test "$n" = "$name"; then |
| 8174 | already_handled=yes |
| 8175 | break |
| 8176 | fi |
| 8177 | done |
| 8178 | if test -z "$already_handled"; then |
| 8179 | names_already_handled="$names_already_handled $name" |
| 8180 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8181 | eval value=\"\$HAVE_LIB$uppername\" |
| 8182 | if test -n "$value"; then |
| 8183 | if test "$value" = yes; then |
| 8184 | eval value=\"\$LIB$uppername\" |
| 8185 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8186 | eval value=\"\$LTLIB$uppername\" |
| 8187 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8188 | else |
| 8189 | : |
| 8190 | fi |
| 8191 | else |
| 8192 | found_dir= |
| 8193 | found_la= |
| 8194 | found_so= |
| 8195 | found_a= |
| 8196 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8197 | if test -n "$acl_shlibext"; then |
| 8198 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8199 | else |
| 8200 | shrext= |
| 8201 | fi |
| 8202 | if test $use_additional = yes; then |
| 8203 | dir="$additional_libdir" |
| 8204 | if test -n "$acl_shlibext"; then |
| 8205 | if test -f "$dir/$libname$shrext"; then |
| 8206 | found_dir="$dir" |
| 8207 | found_so="$dir/$libname$shrext" |
| 8208 | else |
| 8209 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8210 | ver=`(cd "$dir" && \ |
| 8211 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8212 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8213 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8214 | | sed 1q ) 2>/dev/null` |
| 8215 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8216 | found_dir="$dir" |
| 8217 | found_so="$dir/$libname$shrext.$ver" |
| 8218 | fi |
| 8219 | else |
| 8220 | eval library_names=\"$acl_library_names_spec\" |
| 8221 | for f in $library_names; do |
| 8222 | if test -f "$dir/$f"; then |
| 8223 | found_dir="$dir" |
| 8224 | found_so="$dir/$f" |
| 8225 | break |
| 8226 | fi |
| 8227 | done |
| 8228 | fi |
| 8229 | fi |
| 8230 | fi |
| 8231 | if test "X$found_dir" = "X"; then |
| 8232 | if test -f "$dir/$libname.$acl_libext"; then |
| 8233 | found_dir="$dir" |
| 8234 | found_a="$dir/$libname.$acl_libext" |
| 8235 | fi |
| 8236 | fi |
| 8237 | if test "X$found_dir" != "X"; then |
| 8238 | if test -f "$dir/$libname.la"; then |
| 8239 | found_la="$dir/$libname.la" |
| 8240 | fi |
| 8241 | fi |
| 8242 | fi |
| 8243 | if test "X$found_dir" = "X"; then |
| 8244 | for x in $LDFLAGS $LTLIBPTH; do |
| 8245 | |
| 8246 | acl_save_prefix="$prefix" |
| 8247 | prefix="$acl_final_prefix" |
| 8248 | acl_save_exec_prefix="$exec_prefix" |
| 8249 | exec_prefix="$acl_final_exec_prefix" |
| 8250 | eval x=\"$x\" |
| 8251 | exec_prefix="$acl_save_exec_prefix" |
| 8252 | prefix="$acl_save_prefix" |
| 8253 | |
| 8254 | case "$x" in |
| 8255 | -L*) |
| 8256 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8257 | if test -n "$acl_shlibext"; then |
| 8258 | if test -f "$dir/$libname$shrext"; then |
| 8259 | found_dir="$dir" |
| 8260 | found_so="$dir/$libname$shrext" |
| 8261 | else |
| 8262 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8263 | ver=`(cd "$dir" && \ |
| 8264 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8265 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8266 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8267 | | sed 1q ) 2>/dev/null` |
| 8268 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8269 | found_dir="$dir" |
| 8270 | found_so="$dir/$libname$shrext.$ver" |
| 8271 | fi |
| 8272 | else |
| 8273 | eval library_names=\"$acl_library_names_spec\" |
| 8274 | for f in $library_names; do |
| 8275 | if test -f "$dir/$f"; then |
| 8276 | found_dir="$dir" |
| 8277 | found_so="$dir/$f" |
| 8278 | break |
| 8279 | fi |
| 8280 | done |
| 8281 | fi |
| 8282 | fi |
| 8283 | fi |
| 8284 | if test "X$found_dir" = "X"; then |
| 8285 | if test -f "$dir/$libname.$acl_libext"; then |
| 8286 | found_dir="$dir" |
| 8287 | found_a="$dir/$libname.$acl_libext" |
| 8288 | fi |
| 8289 | fi |
| 8290 | if test "X$found_dir" != "X"; then |
| 8291 | if test -f "$dir/$libname.la"; then |
| 8292 | found_la="$dir/$libname.la" |
| 8293 | fi |
| 8294 | fi |
| 8295 | ;; |
| 8296 | esac |
| 8297 | if test "X$found_dir" != "X"; then |
| 8298 | break |
| 8299 | fi |
| 8300 | done |
| 8301 | fi |
| 8302 | if test "X$found_dir" != "X"; then |
| 8303 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8304 | if test "X$found_so" != "X"; then |
| 8305 | if test "$enable_rpath" = no \ |
| 8306 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8307 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8308 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8309 | else |
| 8310 | haveit= |
| 8311 | for x in $ltrpathdirs; do |
| 8312 | if test "X$x" = "X$found_dir"; then |
| 8313 | haveit=yes |
| 8314 | break |
| 8315 | fi |
| 8316 | done |
| 8317 | if test -z "$haveit"; then |
| 8318 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8319 | fi |
| 8320 | if test "$acl_hardcode_direct" = yes; then |
| 8321 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8322 | else |
| 8323 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8324 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8325 | haveit= |
| 8326 | for x in $rpathdirs; do |
| 8327 | if test "X$x" = "X$found_dir"; then |
| 8328 | haveit=yes |
| 8329 | break |
| 8330 | fi |
| 8331 | done |
| 8332 | if test -z "$haveit"; then |
| 8333 | rpathdirs="$rpathdirs $found_dir" |
| 8334 | fi |
| 8335 | else |
| 8336 | haveit= |
| 8337 | for x in $LDFLAGS $LIBPTH; do |
| 8338 | |
| 8339 | acl_save_prefix="$prefix" |
| 8340 | prefix="$acl_final_prefix" |
| 8341 | acl_save_exec_prefix="$exec_prefix" |
| 8342 | exec_prefix="$acl_final_exec_prefix" |
| 8343 | eval x=\"$x\" |
| 8344 | exec_prefix="$acl_save_exec_prefix" |
| 8345 | prefix="$acl_save_prefix" |
| 8346 | |
| 8347 | if test "X$x" = "X-L$found_dir"; then |
| 8348 | haveit=yes |
| 8349 | break |
| 8350 | fi |
| 8351 | done |
| 8352 | if test -z "$haveit"; then |
| 8353 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8354 | fi |
| 8355 | if test "$acl_hardcode_minus_L" != no; then |
| 8356 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8357 | else |
| 8358 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8359 | fi |
| 8360 | fi |
| 8361 | fi |
| 8362 | fi |
| 8363 | else |
| 8364 | if test "X$found_a" != "X"; then |
| 8365 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8366 | else |
| 8367 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8368 | fi |
| 8369 | fi |
| 8370 | additional_includedir= |
| 8371 | case "$found_dir" in |
| 8372 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8373 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8374 | if test "$name" = 'pth'; then |
| 8375 | LIBPTH_PREFIX="$basedir" |
| 8376 | fi |
| 8377 | additional_includedir="$basedir/include" |
| 8378 | ;; |
| 8379 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8380 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8381 | if test "$name" = 'pth'; then |
| 8382 | LIBPTH_PREFIX="$basedir" |
| 8383 | fi |
| 8384 | additional_includedir="$basedir/include" |
| 8385 | ;; |
| 8386 | esac |
| 8387 | if test "X$additional_includedir" != "X"; then |
| 8388 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8389 | haveit= |
| 8390 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8391 | if test -n "$GCC"; then |
| 8392 | case $host_os in |
| 8393 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8394 | esac |
| 8395 | fi |
| 8396 | fi |
| 8397 | if test -z "$haveit"; then |
| 8398 | for x in $CPPFLAGS $INCPTH; do |
| 8399 | |
| 8400 | acl_save_prefix="$prefix" |
| 8401 | prefix="$acl_final_prefix" |
| 8402 | acl_save_exec_prefix="$exec_prefix" |
| 8403 | exec_prefix="$acl_final_exec_prefix" |
| 8404 | eval x=\"$x\" |
| 8405 | exec_prefix="$acl_save_exec_prefix" |
| 8406 | prefix="$acl_save_prefix" |
| 8407 | |
| 8408 | if test "X$x" = "X-I$additional_includedir"; then |
| 8409 | haveit=yes |
| 8410 | break |
| 8411 | fi |
| 8412 | done |
| 8413 | if test -z "$haveit"; then |
| 8414 | if test -d "$additional_includedir"; then |
| 8415 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8416 | fi |
| 8417 | fi |
| 8418 | fi |
| 8419 | fi |
| 8420 | fi |
| 8421 | if test -n "$found_la"; then |
| 8422 | save_libdir="$libdir" |
| 8423 | case "$found_la" in |
| 8424 | */* | *\\*) . "$found_la" ;; |
| 8425 | *) . "./$found_la" ;; |
| 8426 | esac |
| 8427 | libdir="$save_libdir" |
| 8428 | for dep in $dependency_libs; do |
| 8429 | case "$dep" in |
| 8430 | -L*) |
| 8431 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8432 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8433 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8434 | haveit= |
| 8435 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8436 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8437 | if test -n "$GCC"; then |
| 8438 | case $host_os in |
| 8439 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8440 | esac |
| 8441 | fi |
| 8442 | fi |
| 8443 | if test -z "$haveit"; then |
| 8444 | haveit= |
| 8445 | for x in $LDFLAGS $LIBPTH; do |
| 8446 | |
| 8447 | acl_save_prefix="$prefix" |
| 8448 | prefix="$acl_final_prefix" |
| 8449 | acl_save_exec_prefix="$exec_prefix" |
| 8450 | exec_prefix="$acl_final_exec_prefix" |
| 8451 | eval x=\"$x\" |
| 8452 | exec_prefix="$acl_save_exec_prefix" |
| 8453 | prefix="$acl_save_prefix" |
| 8454 | |
| 8455 | if test "X$x" = "X-L$additional_libdir"; then |
| 8456 | haveit=yes |
| 8457 | break |
| 8458 | fi |
| 8459 | done |
| 8460 | if test -z "$haveit"; then |
| 8461 | if test -d "$additional_libdir"; then |
| 8462 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8463 | fi |
| 8464 | fi |
| 8465 | haveit= |
| 8466 | for x in $LDFLAGS $LTLIBPTH; do |
| 8467 | |
| 8468 | acl_save_prefix="$prefix" |
| 8469 | prefix="$acl_final_prefix" |
| 8470 | acl_save_exec_prefix="$exec_prefix" |
| 8471 | exec_prefix="$acl_final_exec_prefix" |
| 8472 | eval x=\"$x\" |
| 8473 | exec_prefix="$acl_save_exec_prefix" |
| 8474 | prefix="$acl_save_prefix" |
| 8475 | |
| 8476 | if test "X$x" = "X-L$additional_libdir"; then |
| 8477 | haveit=yes |
| 8478 | break |
| 8479 | fi |
| 8480 | done |
| 8481 | if test -z "$haveit"; then |
| 8482 | if test -d "$additional_libdir"; then |
| 8483 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8484 | fi |
| 8485 | fi |
| 8486 | fi |
| 8487 | fi |
| 8488 | ;; |
| 8489 | -R*) |
| 8490 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8491 | if test "$enable_rpath" != no; then |
| 8492 | haveit= |
| 8493 | for x in $rpathdirs; do |
| 8494 | if test "X$x" = "X$dir"; then |
| 8495 | haveit=yes |
| 8496 | break |
| 8497 | fi |
| 8498 | done |
| 8499 | if test -z "$haveit"; then |
| 8500 | rpathdirs="$rpathdirs $dir" |
| 8501 | fi |
| 8502 | haveit= |
| 8503 | for x in $ltrpathdirs; do |
| 8504 | if test "X$x" = "X$dir"; then |
| 8505 | haveit=yes |
| 8506 | break |
| 8507 | fi |
| 8508 | done |
| 8509 | if test -z "$haveit"; then |
| 8510 | ltrpathdirs="$ltrpathdirs $dir" |
| 8511 | fi |
| 8512 | fi |
| 8513 | ;; |
| 8514 | -l*) |
| 8515 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8516 | ;; |
| 8517 | *.la) |
| 8518 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8519 | ;; |
| 8520 | *) |
| 8521 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8522 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8523 | ;; |
| 8524 | esac |
| 8525 | done |
| 8526 | fi |
| 8527 | else |
| 8528 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8529 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8530 | fi |
| 8531 | fi |
| 8532 | fi |
| 8533 | done |
| 8534 | done |
| 8535 | if test "X$rpathdirs" != "X"; then |
| 8536 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8537 | alldirs= |
| 8538 | for found_dir in $rpathdirs; do |
| 8539 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8540 | done |
| 8541 | acl_save_libdir="$libdir" |
| 8542 | libdir="$alldirs" |
| 8543 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8544 | libdir="$acl_save_libdir" |
| 8545 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8546 | else |
| 8547 | for found_dir in $rpathdirs; do |
| 8548 | acl_save_libdir="$libdir" |
| 8549 | libdir="$found_dir" |
| 8550 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8551 | libdir="$acl_save_libdir" |
| 8552 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8553 | done |
| 8554 | fi |
| 8555 | fi |
| 8556 | if test "X$ltrpathdirs" != "X"; then |
| 8557 | for found_dir in $ltrpathdirs; do |
| 8558 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8559 | done |
| 8560 | fi |
| 8561 | |
| 8562 | |
| 8563 | |
| 8564 | |
| 8565 | |
| 8566 | |
| 8567 | ac_cv_libpth_libs="$LIBPTH" |
| 8568 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8569 | ac_cv_libpth_cppflags="$INCPTH" |
| 8570 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8571 | |
| 8572 | fi |
| 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8574 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8575 | LIBPTH="$ac_cv_libpth_libs" |
| 8576 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8577 | INCPTH="$ac_cv_libpth_cppflags" |
| 8578 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8579 | |
| 8580 | for element in $INCPTH; do |
| 8581 | haveit= |
| 8582 | for x in $CPPFLAGS; do |
| 8583 | |
| 8584 | acl_save_prefix="$prefix" |
| 8585 | prefix="$acl_final_prefix" |
| 8586 | acl_save_exec_prefix="$exec_prefix" |
| 8587 | exec_prefix="$acl_final_exec_prefix" |
| 8588 | eval x=\"$x\" |
| 8589 | exec_prefix="$acl_save_exec_prefix" |
| 8590 | prefix="$acl_save_prefix" |
| 8591 | |
| 8592 | if test "X$x" = "X$element"; then |
| 8593 | haveit=yes |
| 8594 | break |
| 8595 | fi |
| 8596 | done |
| 8597 | if test -z "$haveit"; then |
| 8598 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8599 | fi |
| 8600 | done |
| 8601 | |
| 8602 | |
| 8603 | |
| 8604 | |
| 8605 | HAVE_LIBPTH=yes |
| 8606 | |
| 8607 | |
| 8608 | |
| 8609 | gl_have_pth= |
| 8610 | gl_save_LIBS="$LIBS" |
| 8611 | LIBS="$LIBS $LIBPTH" |
| 8612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8613 | /* end confdefs.h. */ |
| 8614 | #include <pth.h> |
| 8615 | int |
| 8616 | main () |
| 8617 | { |
| 8618 | pth_self(); |
| 8619 | ; |
| 8620 | return 0; |
| 8621 | } |
| 8622 | _ACEOF |
| 8623 | if ac_fn_c_try_link "$LINENO"; then : |
| 8624 | gl_have_pth=yes |
| 8625 | fi |
| 8626 | rm -f core conftest.err conftest.$ac_objext \ |
| 8627 | conftest$ac_exeext conftest.$ac_ext |
| 8628 | LIBS="$gl_save_LIBS" |
| 8629 | if test -n "$gl_have_pth"; then |
| 8630 | gl_threads_api=pth |
| 8631 | LIBTHREAD="$LIBPTH" |
| 8632 | LTLIBTHREAD="$LTLIBPTH" |
| 8633 | LIBMULTITHREAD="$LIBTHREAD" |
| 8634 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8635 | |
| 8636 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8637 | |
| 8638 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8639 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8640 | |
| 8641 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8642 | |
| 8643 | LIBTHREAD= |
| 8644 | LTLIBTHREAD= |
| 8645 | fi |
| 8646 | fi |
| 8647 | else |
| 8648 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8649 | fi |
| 8650 | fi |
| 8651 | if test -z "$gl_have_pthread"; then |
| 8652 | case "$gl_use_threads" in |
| 8653 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8654 | if { case "$host_os" in |
| 8655 | mingw*) true;; |
| 8656 | *) false;; |
| 8657 | esac |
| 8658 | }; then |
| 8659 | gl_threads_api=windows |
| 8660 | |
| 8661 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8662 | |
| 8663 | fi |
| 8664 | ;; |
| 8665 | esac |
| 8666 | fi |
| 8667 | fi |
| 8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8669 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8671 | $as_echo "$gl_threads_api" >&6; } |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | |
| 8678 | |
| 8679 | |
| 8680 | |
| 8681 | |
| 8682 | |
| 8683 | if test "$gl_threads_api" = posix; then |
| 8684 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8685 | # pthread_rwlock_* functions. |
| 8686 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8687 | " |
| 8688 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8689 | |
| 8690 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8691 | |
| 8692 | fi |
| 8693 | |
| 8694 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8696 | /* end confdefs.h. */ |
| 8697 | |
| 8698 | #include <pthread.h> |
| 8699 | int |
| 8700 | main () |
| 8701 | { |
| 8702 | |
| 8703 | #if __FreeBSD__ == 4 |
| 8704 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8705 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8706 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8707 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8708 | #else |
| 8709 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8710 | return !x; |
| 8711 | #endif |
| 8712 | |
| 8713 | ; |
| 8714 | return 0; |
| 8715 | } |
| 8716 | _ACEOF |
| 8717 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8718 | |
| 8719 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8720 | |
| 8721 | fi |
| 8722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8723 | fi |
| 8724 | : |
| 8725 | |
| 8726 | |
| 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | |
| 8732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8733 | |
| 8734 | |
| 8735 | |
| 8736 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8737 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8738 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8739 | acl_save_prefix="$prefix" |
| 8740 | prefix="$acl_final_prefix" |
| 8741 | acl_save_exec_prefix="$exec_prefix" |
| 8742 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8743 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8744 | eval additional_includedir=\"$includedir\" |
| 8745 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8746 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8747 | exec_prefix="$acl_save_exec_prefix" |
| 8748 | prefix="$acl_save_prefix" |
| 8749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8751 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8752 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8753 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8754 | if test "X$withval" = "Xno"; then |
| 8755 | use_additional=no |
| 8756 | else |
| 8757 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8758 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8759 | acl_save_prefix="$prefix" |
| 8760 | prefix="$acl_final_prefix" |
| 8761 | acl_save_exec_prefix="$exec_prefix" |
| 8762 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8763 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8764 | eval additional_includedir=\"$includedir\" |
| 8765 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8766 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8767 | exec_prefix="$acl_save_exec_prefix" |
| 8768 | prefix="$acl_save_prefix" |
| 8769 | |
| 8770 | else |
| 8771 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8772 | additional_libdir="$withval/$acl_libdirstem" |
| 8773 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8774 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8775 | additional_libdir="$withval/$acl_libdirstem2" |
| 8776 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8777 | fi |
| 8778 | fi |
| 8779 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8780 | fi |
| 8781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8782 | LIBICONV= |
| 8783 | LTLIBICONV= |
| 8784 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8785 | LIBICONV_PREFIX= |
| 8786 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8787 | rpathdirs= |
| 8788 | ltrpathdirs= |
| 8789 | names_already_handled= |
| 8790 | names_next_round='iconv ' |
| 8791 | while test -n "$names_next_round"; do |
| 8792 | names_this_round="$names_next_round" |
| 8793 | names_next_round= |
| 8794 | for name in $names_this_round; do |
| 8795 | already_handled= |
| 8796 | for n in $names_already_handled; do |
| 8797 | if test "$n" = "$name"; then |
| 8798 | already_handled=yes |
| 8799 | break |
| 8800 | fi |
| 8801 | done |
| 8802 | if test -z "$already_handled"; then |
| 8803 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8804 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8805 | eval value=\"\$HAVE_LIB$uppername\" |
| 8806 | if test -n "$value"; then |
| 8807 | if test "$value" = yes; then |
| 8808 | eval value=\"\$LIB$uppername\" |
| 8809 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8810 | eval value=\"\$LTLIB$uppername\" |
| 8811 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8812 | else |
| 8813 | : |
| 8814 | fi |
| 8815 | else |
| 8816 | found_dir= |
| 8817 | found_la= |
| 8818 | found_so= |
| 8819 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8820 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8821 | if test -n "$acl_shlibext"; then |
| 8822 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8823 | else |
| 8824 | shrext= |
| 8825 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8826 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8827 | dir="$additional_libdir" |
| 8828 | if test -n "$acl_shlibext"; then |
| 8829 | if test -f "$dir/$libname$shrext"; then |
| 8830 | found_dir="$dir" |
| 8831 | found_so="$dir/$libname$shrext" |
| 8832 | else |
| 8833 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8834 | ver=`(cd "$dir" && \ |
| 8835 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8836 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8837 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8838 | | sed 1q ) 2>/dev/null` |
| 8839 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8840 | found_dir="$dir" |
| 8841 | found_so="$dir/$libname$shrext.$ver" |
| 8842 | fi |
| 8843 | else |
| 8844 | eval library_names=\"$acl_library_names_spec\" |
| 8845 | for f in $library_names; do |
| 8846 | if test -f "$dir/$f"; then |
| 8847 | found_dir="$dir" |
| 8848 | found_so="$dir/$f" |
| 8849 | break |
| 8850 | fi |
| 8851 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8852 | fi |
| 8853 | fi |
| 8854 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8855 | if test "X$found_dir" = "X"; then |
| 8856 | if test -f "$dir/$libname.$acl_libext"; then |
| 8857 | found_dir="$dir" |
| 8858 | found_a="$dir/$libname.$acl_libext" |
| 8859 | fi |
| 8860 | fi |
| 8861 | if test "X$found_dir" != "X"; then |
| 8862 | if test -f "$dir/$libname.la"; then |
| 8863 | found_la="$dir/$libname.la" |
| 8864 | fi |
| 8865 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8866 | fi |
| 8867 | if test "X$found_dir" = "X"; then |
| 8868 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8869 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8870 | acl_save_prefix="$prefix" |
| 8871 | prefix="$acl_final_prefix" |
| 8872 | acl_save_exec_prefix="$exec_prefix" |
| 8873 | exec_prefix="$acl_final_exec_prefix" |
| 8874 | eval x=\"$x\" |
| 8875 | exec_prefix="$acl_save_exec_prefix" |
| 8876 | prefix="$acl_save_prefix" |
| 8877 | |
| 8878 | case "$x" in |
| 8879 | -L*) |
| 8880 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8881 | if test -n "$acl_shlibext"; then |
| 8882 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8883 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8884 | found_so="$dir/$libname$shrext" |
| 8885 | else |
| 8886 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8887 | ver=`(cd "$dir" && \ |
| 8888 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8889 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8890 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8891 | | sed 1q ) 2>/dev/null` |
| 8892 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8893 | found_dir="$dir" |
| 8894 | found_so="$dir/$libname$shrext.$ver" |
| 8895 | fi |
| 8896 | else |
| 8897 | eval library_names=\"$acl_library_names_spec\" |
| 8898 | for f in $library_names; do |
| 8899 | if test -f "$dir/$f"; then |
| 8900 | found_dir="$dir" |
| 8901 | found_so="$dir/$f" |
| 8902 | break |
| 8903 | fi |
| 8904 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8905 | fi |
| 8906 | fi |
| 8907 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8908 | if test "X$found_dir" = "X"; then |
| 8909 | if test -f "$dir/$libname.$acl_libext"; then |
| 8910 | found_dir="$dir" |
| 8911 | found_a="$dir/$libname.$acl_libext" |
| 8912 | fi |
| 8913 | fi |
| 8914 | if test "X$found_dir" != "X"; then |
| 8915 | if test -f "$dir/$libname.la"; then |
| 8916 | found_la="$dir/$libname.la" |
| 8917 | fi |
| 8918 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8919 | ;; |
| 8920 | esac |
| 8921 | if test "X$found_dir" != "X"; then |
| 8922 | break |
| 8923 | fi |
| 8924 | done |
| 8925 | fi |
| 8926 | if test "X$found_dir" != "X"; then |
| 8927 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8928 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8929 | if test "$enable_rpath" = no \ |
| 8930 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8931 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8932 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8933 | else |
| 8934 | haveit= |
| 8935 | for x in $ltrpathdirs; do |
| 8936 | if test "X$x" = "X$found_dir"; then |
| 8937 | haveit=yes |
| 8938 | break |
| 8939 | fi |
| 8940 | done |
| 8941 | if test -z "$haveit"; then |
| 8942 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8943 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8944 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8945 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8946 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8947 | 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] | 8948 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8949 | haveit= |
| 8950 | for x in $rpathdirs; do |
| 8951 | if test "X$x" = "X$found_dir"; then |
| 8952 | haveit=yes |
| 8953 | break |
| 8954 | fi |
| 8955 | done |
| 8956 | if test -z "$haveit"; then |
| 8957 | rpathdirs="$rpathdirs $found_dir" |
| 8958 | fi |
| 8959 | else |
| 8960 | haveit= |
| 8961 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8962 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8963 | acl_save_prefix="$prefix" |
| 8964 | prefix="$acl_final_prefix" |
| 8965 | acl_save_exec_prefix="$exec_prefix" |
| 8966 | exec_prefix="$acl_final_exec_prefix" |
| 8967 | eval x=\"$x\" |
| 8968 | exec_prefix="$acl_save_exec_prefix" |
| 8969 | prefix="$acl_save_prefix" |
| 8970 | |
| 8971 | if test "X$x" = "X-L$found_dir"; then |
| 8972 | haveit=yes |
| 8973 | break |
| 8974 | fi |
| 8975 | done |
| 8976 | if test -z "$haveit"; then |
| 8977 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8978 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8979 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8980 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8981 | else |
| 8982 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8983 | fi |
| 8984 | fi |
| 8985 | fi |
| 8986 | fi |
| 8987 | else |
| 8988 | if test "X$found_a" != "X"; then |
| 8989 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8990 | else |
| 8991 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8992 | fi |
| 8993 | fi |
| 8994 | additional_includedir= |
| 8995 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8996 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8997 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8998 | if test "$name" = 'iconv'; then |
| 8999 | LIBICONV_PREFIX="$basedir" |
| 9000 | fi |
| 9001 | additional_includedir="$basedir/include" |
| 9002 | ;; |
| 9003 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 9004 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 9005 | if test "$name" = 'iconv'; then |
| 9006 | LIBICONV_PREFIX="$basedir" |
| 9007 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9008 | additional_includedir="$basedir/include" |
| 9009 | ;; |
| 9010 | esac |
| 9011 | if test "X$additional_includedir" != "X"; then |
| 9012 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9013 | haveit= |
| 9014 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9015 | if test -n "$GCC"; then |
| 9016 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9017 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9018 | esac |
| 9019 | fi |
| 9020 | fi |
| 9021 | if test -z "$haveit"; then |
| 9022 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9023 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9024 | acl_save_prefix="$prefix" |
| 9025 | prefix="$acl_final_prefix" |
| 9026 | acl_save_exec_prefix="$exec_prefix" |
| 9027 | exec_prefix="$acl_final_exec_prefix" |
| 9028 | eval x=\"$x\" |
| 9029 | exec_prefix="$acl_save_exec_prefix" |
| 9030 | prefix="$acl_save_prefix" |
| 9031 | |
| 9032 | if test "X$x" = "X-I$additional_includedir"; then |
| 9033 | haveit=yes |
| 9034 | break |
| 9035 | fi |
| 9036 | done |
| 9037 | if test -z "$haveit"; then |
| 9038 | if test -d "$additional_includedir"; then |
| 9039 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9040 | fi |
| 9041 | fi |
| 9042 | fi |
| 9043 | fi |
| 9044 | fi |
| 9045 | if test -n "$found_la"; then |
| 9046 | save_libdir="$libdir" |
| 9047 | case "$found_la" in |
| 9048 | */* | *\\*) . "$found_la" ;; |
| 9049 | *) . "./$found_la" ;; |
| 9050 | esac |
| 9051 | libdir="$save_libdir" |
| 9052 | for dep in $dependency_libs; do |
| 9053 | case "$dep" in |
| 9054 | -L*) |
| 9055 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9056 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9057 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9058 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9059 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9060 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9061 | if test -n "$GCC"; then |
| 9062 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9063 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9064 | esac |
| 9065 | fi |
| 9066 | fi |
| 9067 | if test -z "$haveit"; then |
| 9068 | haveit= |
| 9069 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9070 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9071 | acl_save_prefix="$prefix" |
| 9072 | prefix="$acl_final_prefix" |
| 9073 | acl_save_exec_prefix="$exec_prefix" |
| 9074 | exec_prefix="$acl_final_exec_prefix" |
| 9075 | eval x=\"$x\" |
| 9076 | exec_prefix="$acl_save_exec_prefix" |
| 9077 | prefix="$acl_save_prefix" |
| 9078 | |
| 9079 | if test "X$x" = "X-L$additional_libdir"; then |
| 9080 | haveit=yes |
| 9081 | break |
| 9082 | fi |
| 9083 | done |
| 9084 | if test -z "$haveit"; then |
| 9085 | if test -d "$additional_libdir"; then |
| 9086 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9087 | fi |
| 9088 | fi |
| 9089 | haveit= |
| 9090 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9092 | acl_save_prefix="$prefix" |
| 9093 | prefix="$acl_final_prefix" |
| 9094 | acl_save_exec_prefix="$exec_prefix" |
| 9095 | exec_prefix="$acl_final_exec_prefix" |
| 9096 | eval x=\"$x\" |
| 9097 | exec_prefix="$acl_save_exec_prefix" |
| 9098 | prefix="$acl_save_prefix" |
| 9099 | |
| 9100 | if test "X$x" = "X-L$additional_libdir"; then |
| 9101 | haveit=yes |
| 9102 | break |
| 9103 | fi |
| 9104 | done |
| 9105 | if test -z "$haveit"; then |
| 9106 | if test -d "$additional_libdir"; then |
| 9107 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9108 | fi |
| 9109 | fi |
| 9110 | fi |
| 9111 | fi |
| 9112 | ;; |
| 9113 | -R*) |
| 9114 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9115 | if test "$enable_rpath" != no; then |
| 9116 | haveit= |
| 9117 | for x in $rpathdirs; do |
| 9118 | if test "X$x" = "X$dir"; then |
| 9119 | haveit=yes |
| 9120 | break |
| 9121 | fi |
| 9122 | done |
| 9123 | if test -z "$haveit"; then |
| 9124 | rpathdirs="$rpathdirs $dir" |
| 9125 | fi |
| 9126 | haveit= |
| 9127 | for x in $ltrpathdirs; do |
| 9128 | if test "X$x" = "X$dir"; then |
| 9129 | haveit=yes |
| 9130 | break |
| 9131 | fi |
| 9132 | done |
| 9133 | if test -z "$haveit"; then |
| 9134 | ltrpathdirs="$ltrpathdirs $dir" |
| 9135 | fi |
| 9136 | fi |
| 9137 | ;; |
| 9138 | -l*) |
| 9139 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9140 | ;; |
| 9141 | *.la) |
| 9142 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9143 | ;; |
| 9144 | *) |
| 9145 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9146 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9147 | ;; |
| 9148 | esac |
| 9149 | done |
| 9150 | fi |
| 9151 | else |
| 9152 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9153 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9154 | fi |
| 9155 | fi |
| 9156 | fi |
| 9157 | done |
| 9158 | done |
| 9159 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9160 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9161 | alldirs= |
| 9162 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9163 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9164 | done |
| 9165 | acl_save_libdir="$libdir" |
| 9166 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9167 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9168 | libdir="$acl_save_libdir" |
| 9169 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9170 | else |
| 9171 | for found_dir in $rpathdirs; do |
| 9172 | acl_save_libdir="$libdir" |
| 9173 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9174 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9175 | libdir="$acl_save_libdir" |
| 9176 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9177 | done |
| 9178 | fi |
| 9179 | fi |
| 9180 | if test "X$ltrpathdirs" != "X"; then |
| 9181 | for found_dir in $ltrpathdirs; do |
| 9182 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9183 | done |
| 9184 | fi |
| 9185 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9186 | |
| 9187 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9188 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9189 | |
| 9190 | |
| 9191 | |
| 9192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | |
| 9194 | |
| 9195 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9196 | |
| 9197 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9198 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9199 | for element in $INCICONV; do |
| 9200 | haveit= |
| 9201 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9202 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9203 | acl_save_prefix="$prefix" |
| 9204 | prefix="$acl_final_prefix" |
| 9205 | acl_save_exec_prefix="$exec_prefix" |
| 9206 | exec_prefix="$acl_final_exec_prefix" |
| 9207 | eval x=\"$x\" |
| 9208 | exec_prefix="$acl_save_exec_prefix" |
| 9209 | prefix="$acl_save_prefix" |
| 9210 | |
| 9211 | if test "X$x" = "X$element"; then |
| 9212 | haveit=yes |
| 9213 | break |
| 9214 | fi |
| 9215 | done |
| 9216 | if test -z "$haveit"; then |
| 9217 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9218 | fi |
| 9219 | done |
| 9220 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9221 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9223 | $as_echo_n "checking for iconv... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9224 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9225 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9226 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9227 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9228 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9229 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9231 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9232 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9233 | #include <stdlib.h> |
| 9234 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9235 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9236 | int |
| 9237 | main () |
| 9238 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9239 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9240 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9241 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9242 | ; |
| 9243 | return 0; |
| 9244 | } |
| 9245 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9246 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9247 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9248 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9249 | rm -f core conftest.err conftest.$ac_objext \ |
| 9250 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9251 | if test "$am_cv_func_iconv" != yes; then |
| 9252 | am_save_LIBS="$LIBS" |
| 9253 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9255 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9256 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9257 | #include <stdlib.h> |
| 9258 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9259 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9260 | int |
| 9261 | main () |
| 9262 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9263 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9264 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9265 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | ; |
| 9267 | return 0; |
| 9268 | } |
| 9269 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9270 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9271 | am_cv_lib_iconv=yes |
| 9272 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9273 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9274 | rm -f core conftest.err conftest.$ac_objext \ |
| 9275 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9276 | LIBS="$am_save_LIBS" |
| 9277 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9279 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9280 | { $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] | 9281 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9282 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9284 | $as_echo_n "checking for working iconv... " >&6; } |
| 9285 | if ${am_cv_func_iconv_works+:} false; then : |
| 9286 | $as_echo_n "(cached) " >&6 |
| 9287 | else |
| 9288 | |
| 9289 | am_save_LIBS="$LIBS" |
| 9290 | if test $am_cv_lib_iconv = yes; then |
| 9291 | LIBS="$LIBS $LIBICONV" |
| 9292 | fi |
| 9293 | if test "$cross_compiling" = yes; then : |
| 9294 | |
| 9295 | case "$host_os" in |
| 9296 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9297 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9298 | esac |
| 9299 | |
| 9300 | else |
| 9301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9302 | /* end confdefs.h. */ |
| 9303 | |
| 9304 | #include <iconv.h> |
| 9305 | #include <string.h> |
| 9306 | int main () |
| 9307 | { |
| 9308 | int result = 0; |
| 9309 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9310 | returns. */ |
| 9311 | { |
| 9312 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9313 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9314 | { |
| 9315 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9316 | char buf[10]; |
| 9317 | const char *inptr = input; |
| 9318 | size_t inbytesleft = strlen (input); |
| 9319 | char *outptr = buf; |
| 9320 | size_t outbytesleft = sizeof (buf); |
| 9321 | size_t res = iconv (cd_utf8_to_88591, |
| 9322 | (char **) &inptr, &inbytesleft, |
| 9323 | &outptr, &outbytesleft); |
| 9324 | if (res == 0) |
| 9325 | result |= 1; |
| 9326 | iconv_close (cd_utf8_to_88591); |
| 9327 | } |
| 9328 | } |
| 9329 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9330 | successful returns. */ |
| 9331 | { |
| 9332 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9333 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9334 | { |
| 9335 | static const char input[] = "\263"; |
| 9336 | char buf[10]; |
| 9337 | const char *inptr = input; |
| 9338 | size_t inbytesleft = strlen (input); |
| 9339 | char *outptr = buf; |
| 9340 | size_t outbytesleft = sizeof (buf); |
| 9341 | size_t res = iconv (cd_ascii_to_88591, |
| 9342 | (char **) &inptr, &inbytesleft, |
| 9343 | &outptr, &outbytesleft); |
| 9344 | if (res == 0) |
| 9345 | result |= 2; |
| 9346 | iconv_close (cd_ascii_to_88591); |
| 9347 | } |
| 9348 | } |
| 9349 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9350 | { |
| 9351 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9352 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9353 | { |
| 9354 | static const char input[] = "\304"; |
| 9355 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9356 | const char *inptr = input; |
| 9357 | size_t inbytesleft = 1; |
| 9358 | char *outptr = buf; |
| 9359 | size_t outbytesleft = 1; |
| 9360 | size_t res = iconv (cd_88591_to_utf8, |
| 9361 | (char **) &inptr, &inbytesleft, |
| 9362 | &outptr, &outbytesleft); |
| 9363 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9364 | result |= 4; |
| 9365 | iconv_close (cd_88591_to_utf8); |
| 9366 | } |
| 9367 | } |
| 9368 | #if 0 /* This bug could be worked around by the caller. */ |
| 9369 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9370 | { |
| 9371 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9372 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9373 | { |
| 9374 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9375 | char buf[50]; |
| 9376 | const char *inptr = input; |
| 9377 | size_t inbytesleft = strlen (input); |
| 9378 | char *outptr = buf; |
| 9379 | size_t outbytesleft = sizeof (buf); |
| 9380 | size_t res = iconv (cd_88591_to_utf8, |
| 9381 | (char **) &inptr, &inbytesleft, |
| 9382 | &outptr, &outbytesleft); |
| 9383 | if ((int)res > 0) |
| 9384 | result |= 8; |
| 9385 | iconv_close (cd_88591_to_utf8); |
| 9386 | } |
| 9387 | } |
| 9388 | #endif |
| 9389 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9390 | provided. */ |
| 9391 | if (/* Try standardized names. */ |
| 9392 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9393 | /* Try IRIX, OSF/1 names. */ |
| 9394 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9395 | /* Try AIX names. */ |
| 9396 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9397 | /* Try HP-UX names. */ |
| 9398 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9399 | result |= 16; |
| 9400 | return result; |
| 9401 | } |
| 9402 | _ACEOF |
| 9403 | if ac_fn_c_try_run "$LINENO"; then : |
| 9404 | am_cv_func_iconv_works=yes |
| 9405 | else |
| 9406 | am_cv_func_iconv_works=no |
| 9407 | fi |
| 9408 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9409 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9410 | fi |
| 9411 | |
| 9412 | LIBS="$am_save_LIBS" |
| 9413 | |
| 9414 | fi |
| 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9416 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9417 | case "$am_cv_func_iconv_works" in |
| 9418 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9419 | *) am_func_iconv=yes ;; |
| 9420 | esac |
| 9421 | else |
| 9422 | am_func_iconv=no am_cv_lib_iconv=no |
| 9423 | fi |
| 9424 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9425 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9426 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9427 | |
| 9428 | fi |
| 9429 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9430 | { $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] | 9431 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9433 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9434 | else |
| 9435 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9436 | LIBICONV= |
| 9437 | LTLIBICONV= |
| 9438 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9439 | |
| 9440 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9441 | |
| 9442 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9443 | { $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] | 9444 | $as_echo_n "checking for iconv declaration... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9445 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9446 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9447 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9448 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9450 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9451 | |
| 9452 | #include <stdlib.h> |
| 9453 | #include <iconv.h> |
| 9454 | extern |
| 9455 | #ifdef __cplusplus |
| 9456 | "C" |
| 9457 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9458 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9459 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9460 | #else |
| 9461 | size_t iconv(); |
| 9462 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9464 | int |
| 9465 | main () |
| 9466 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9468 | ; |
| 9469 | return 0; |
| 9470 | } |
| 9471 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9472 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9473 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9474 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9475 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9478 | 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] | 9479 | fi |
| 9480 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9481 | 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] | 9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9483 | $am_cv_proto_iconv" >&5 |
| 9484 | $as_echo " |
| 9485 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9486 | |
| 9487 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9488 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9489 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9490 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9492 | fi |
| 9493 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9494 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9495 | |
| 9496 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9498 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9499 | 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] | 9500 | int |
| 9501 | main () |
| 9502 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9504 | ; |
| 9505 | return 0; |
| 9506 | } |
| 9507 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9508 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9509 | |
| 9510 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9511 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9512 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9513 | rm -f core conftest.err conftest.$ac_objext \ |
| 9514 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9515 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9516 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9517 | do : |
| 9518 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9519 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9520 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9521 | cat >>confdefs.h <<_ACEOF |
| 9522 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9523 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9524 | |
| 9525 | fi |
| 9526 | |
| 9527 | done |
| 9528 | |
| 9529 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9530 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9531 | argz_stringify argz_next __fsetlocking |
| 9532 | do : |
| 9533 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9534 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9535 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9536 | cat >>confdefs.h <<_ACEOF |
| 9537 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9538 | _ACEOF |
| 9539 | |
| 9540 | fi |
| 9541 | done |
| 9542 | |
| 9543 | |
| 9544 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9545 | " |
| 9546 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9547 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9548 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9549 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9550 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9551 | |
| 9552 | cat >>confdefs.h <<_ACEOF |
| 9553 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9554 | _ACEOF |
| 9555 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9556 | " |
| 9557 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9558 | ac_have_decl=1 |
| 9559 | else |
| 9560 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9561 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9562 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9563 | cat >>confdefs.h <<_ACEOF |
| 9564 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9565 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9566 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9567 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9569 | |
| 9570 | for ac_prog in bison |
| 9571 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | # 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] | 9573 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9574 | { $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] | 9575 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9576 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9577 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9578 | else |
| 9579 | if test -n "$INTLBISON"; then |
| 9580 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9581 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9583 | for as_dir in $PATH |
| 9584 | do |
| 9585 | IFS=$as_save_IFS |
| 9586 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9588 | 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] | 9589 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9590 | $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] | 9591 | break 2 |
| 9592 | fi |
| 9593 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9594 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9595 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9596 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9597 | fi |
| 9598 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9599 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9600 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9602 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9603 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9605 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9606 | fi |
| 9607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9608 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9609 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9610 | done |
| 9611 | |
| 9612 | if test -z "$INTLBISON"; then |
| 9613 | ac_verc_fail=yes |
| 9614 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9615 | { $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] | 9616 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9617 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9618 | case $ac_prog_version in |
| 9619 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9620 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9621 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9622 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9623 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9624 | { $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] | 9625 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9626 | fi |
| 9627 | if test $ac_verc_fail = yes; then |
| 9628 | INTLBISON=: |
| 9629 | fi |
| 9630 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9631 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9632 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9634 | $as_echo_n "checking for long long int... " >&6; } |
| 9635 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9636 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9637 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9638 | ac_cv_type_long_long_int=yes |
| 9639 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9640 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9641 | if test $ac_cv_type_long_long_int = yes; then |
| 9642 | if test "$cross_compiling" = yes; then : |
| 9643 | : |
| 9644 | else |
| 9645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9646 | /* end confdefs.h. */ |
| 9647 | #include <limits.h> |
| 9648 | #ifndef LLONG_MAX |
| 9649 | # define HALF \ |
| 9650 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9651 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9652 | #endif |
| 9653 | int |
| 9654 | main () |
| 9655 | { |
| 9656 | long long int n = 1; |
| 9657 | int i; |
| 9658 | for (i = 0; ; i++) |
| 9659 | { |
| 9660 | long long int m = n << i; |
| 9661 | if (m >> i != n) |
| 9662 | return 1; |
| 9663 | if (LLONG_MAX / 2 < m) |
| 9664 | break; |
| 9665 | } |
| 9666 | return 0; |
| 9667 | ; |
| 9668 | return 0; |
| 9669 | } |
| 9670 | _ACEOF |
| 9671 | if ac_fn_c_try_run "$LINENO"; then : |
| 9672 | |
| 9673 | else |
| 9674 | ac_cv_type_long_long_int=no |
| 9675 | fi |
| 9676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9677 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9678 | fi |
| 9679 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9680 | fi |
| 9681 | fi |
| 9682 | fi |
| 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9684 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9685 | if test $ac_cv_type_long_long_int = yes; then |
| 9686 | |
| 9687 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9688 | |
| 9689 | fi |
| 9690 | |
| 9691 | |
| 9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9693 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9694 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9695 | $as_echo_n "(cached) " >&6 |
| 9696 | else |
| 9697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9698 | /* end confdefs.h. */ |
| 9699 | #include <stddef.h> |
| 9700 | wchar_t foo = (wchar_t)'\0'; |
| 9701 | int |
| 9702 | main () |
| 9703 | { |
| 9704 | |
| 9705 | ; |
| 9706 | return 0; |
| 9707 | } |
| 9708 | _ACEOF |
| 9709 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9710 | gt_cv_c_wchar_t=yes |
| 9711 | else |
| 9712 | gt_cv_c_wchar_t=no |
| 9713 | fi |
| 9714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9715 | fi |
| 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9717 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9718 | if test $gt_cv_c_wchar_t = yes; then |
| 9719 | |
| 9720 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9721 | |
| 9722 | fi |
| 9723 | |
| 9724 | |
| 9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9726 | $as_echo_n "checking for wint_t... " >&6; } |
| 9727 | if ${gt_cv_c_wint_t+:} false; then : |
| 9728 | $as_echo_n "(cached) " >&6 |
| 9729 | else |
| 9730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9731 | /* end confdefs.h. */ |
| 9732 | |
| 9733 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9734 | <wchar.h>. |
| 9735 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9736 | before <wchar.h>. */ |
| 9737 | #include <stddef.h> |
| 9738 | #include <stdio.h> |
| 9739 | #include <time.h> |
| 9740 | #include <wchar.h> |
| 9741 | wint_t foo = (wchar_t)'\0'; |
| 9742 | int |
| 9743 | main () |
| 9744 | { |
| 9745 | |
| 9746 | ; |
| 9747 | return 0; |
| 9748 | } |
| 9749 | _ACEOF |
| 9750 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9751 | gt_cv_c_wint_t=yes |
| 9752 | else |
| 9753 | gt_cv_c_wint_t=no |
| 9754 | fi |
| 9755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9756 | fi |
| 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9758 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9759 | if test $gt_cv_c_wint_t = yes; then |
| 9760 | |
| 9761 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9762 | |
| 9763 | fi |
| 9764 | |
| 9765 | |
| 9766 | |
| 9767 | |
| 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9769 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9770 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9771 | $as_echo_n "(cached) " >&6 |
| 9772 | else |
| 9773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9774 | /* end confdefs.h. */ |
| 9775 | |
| 9776 | #include <stddef.h> |
| 9777 | #include <stdlib.h> |
| 9778 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9779 | #include <stdint.h> |
| 9780 | #endif |
| 9781 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9782 | #include <inttypes.h> |
| 9783 | #endif |
| 9784 | |
| 9785 | int |
| 9786 | main () |
| 9787 | { |
| 9788 | intmax_t x = -1; |
| 9789 | return !x; |
| 9790 | ; |
| 9791 | return 0; |
| 9792 | } |
| 9793 | _ACEOF |
| 9794 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9795 | gt_cv_c_intmax_t=yes |
| 9796 | else |
| 9797 | gt_cv_c_intmax_t=no |
| 9798 | fi |
| 9799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9800 | fi |
| 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9802 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9803 | if test $gt_cv_c_intmax_t = yes; then |
| 9804 | |
| 9805 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9806 | |
| 9807 | fi |
| 9808 | |
| 9809 | |
| 9810 | |
| 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9812 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9813 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9814 | $as_echo_n "(cached) " >&6 |
| 9815 | else |
| 9816 | |
| 9817 | if test "$cross_compiling" = yes; then : |
| 9818 | |
| 9819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9820 | /* end confdefs.h. */ |
| 9821 | |
| 9822 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9823 | notposix |
| 9824 | #endif |
| 9825 | |
| 9826 | _ACEOF |
| 9827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9828 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9829 | gt_cv_func_printf_posix="guessing no" |
| 9830 | else |
| 9831 | gt_cv_func_printf_posix="guessing yes" |
| 9832 | fi |
| 9833 | rm -f conftest* |
| 9834 | |
| 9835 | |
| 9836 | else |
| 9837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9838 | /* end confdefs.h. */ |
| 9839 | |
| 9840 | #include <stdio.h> |
| 9841 | #include <string.h> |
| 9842 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 9843 | dollar expansion (possibly an autoconf bug). */ |
| 9844 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 9845 | static char buf[100]; |
| 9846 | int main () |
| 9847 | { |
| 9848 | sprintf (buf, format, 33, 55); |
| 9849 | return (strcmp (buf, "55 33") != 0); |
| 9850 | } |
| 9851 | _ACEOF |
| 9852 | if ac_fn_c_try_run "$LINENO"; then : |
| 9853 | gt_cv_func_printf_posix=yes |
| 9854 | else |
| 9855 | gt_cv_func_printf_posix=no |
| 9856 | fi |
| 9857 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9858 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9859 | fi |
| 9860 | |
| 9861 | |
| 9862 | fi |
| 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 9864 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 9865 | case $gt_cv_func_printf_posix in |
| 9866 | *yes) |
| 9867 | |
| 9868 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 9869 | |
| 9870 | ;; |
| 9871 | esac |
| 9872 | |
| 9873 | |
| 9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 9875 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 9876 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 9877 | $as_echo_n "(cached) " >&6 |
| 9878 | else |
| 9879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9880 | /* end confdefs.h. */ |
| 9881 | |
| 9882 | #include <features.h> |
| 9883 | #ifdef __GNU_LIBRARY__ |
| 9884 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 9885 | Lucky GNU user |
| 9886 | #endif |
| 9887 | #endif |
| 9888 | #ifdef __UCLIBC__ |
| 9889 | Lucky user |
| 9890 | #endif |
| 9891 | |
| 9892 | _ACEOF |
| 9893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9894 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 9895 | ac_cv_gnu_library_2_1=yes |
| 9896 | else |
| 9897 | ac_cv_gnu_library_2_1=no |
| 9898 | fi |
| 9899 | rm -f conftest* |
| 9900 | |
| 9901 | |
| 9902 | |
| 9903 | fi |
| 9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 9905 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 9906 | |
| 9907 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 9908 | |
| 9909 | |
| 9910 | |
| 9911 | for ac_header in stdint.h |
| 9912 | do : |
| 9913 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 9914 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 9915 | cat >>confdefs.h <<_ACEOF |
| 9916 | #define HAVE_STDINT_H 1 |
| 9917 | _ACEOF |
| 9918 | |
| 9919 | fi |
| 9920 | |
| 9921 | done |
| 9922 | |
| 9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 9924 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 9925 | if ${gl_cv_size_max+:} false; then : |
| 9926 | $as_echo_n "(cached) " >&6 |
| 9927 | else |
| 9928 | |
| 9929 | gl_cv_size_max= |
| 9930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9931 | /* end confdefs.h. */ |
| 9932 | |
| 9933 | #include <limits.h> |
| 9934 | #if HAVE_STDINT_H |
| 9935 | #include <stdint.h> |
| 9936 | #endif |
| 9937 | #ifdef SIZE_MAX |
| 9938 | Found it |
| 9939 | #endif |
| 9940 | |
| 9941 | _ACEOF |
| 9942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9943 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 9944 | gl_cv_size_max=yes |
| 9945 | fi |
| 9946 | rm -f conftest* |
| 9947 | |
| 9948 | if test -z "$gl_cv_size_max"; then |
| 9949 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 9950 | #include <limits.h>"; then : |
| 9951 | |
| 9952 | else |
| 9953 | size_t_bits_minus_1= |
| 9954 | fi |
| 9955 | |
| 9956 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 9957 | |
| 9958 | else |
| 9959 | fits_in_uint= |
| 9960 | fi |
| 9961 | |
| 9962 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 9963 | if test $fits_in_uint = 1; then |
| 9964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9965 | /* end confdefs.h. */ |
| 9966 | #include <stddef.h> |
| 9967 | extern size_t foo; |
| 9968 | extern unsigned long foo; |
| 9969 | |
| 9970 | int |
| 9971 | main () |
| 9972 | { |
| 9973 | |
| 9974 | ; |
| 9975 | return 0; |
| 9976 | } |
| 9977 | _ACEOF |
| 9978 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9979 | fits_in_uint=0 |
| 9980 | fi |
| 9981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9982 | fi |
| 9983 | if test $fits_in_uint = 1; then |
| 9984 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9985 | else |
| 9986 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9987 | fi |
| 9988 | else |
| 9989 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 9990 | fi |
| 9991 | fi |
| 9992 | |
| 9993 | fi |
| 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 9995 | $as_echo "$gl_cv_size_max" >&6; } |
| 9996 | if test "$gl_cv_size_max" != yes; then |
| 9997 | |
| 9998 | cat >>confdefs.h <<_ACEOF |
| 9999 | #define SIZE_MAX $gl_cv_size_max |
| 10000 | _ACEOF |
| 10001 | |
| 10002 | fi |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | for ac_header in stdint.h |
| 10008 | do : |
| 10009 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10010 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10011 | cat >>confdefs.h <<_ACEOF |
| 10012 | #define HAVE_STDINT_H 1 |
| 10013 | _ACEOF |
| 10014 | |
| 10015 | fi |
| 10016 | |
| 10017 | done |
| 10018 | |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | for ac_func in $ac_func_list |
| 10024 | do : |
| 10025 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10026 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10027 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10028 | cat >>confdefs.h <<_ACEOF |
| 10029 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10030 | _ACEOF |
| 10031 | |
| 10032 | fi |
| 10033 | done |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10043 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10044 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10045 | $as_echo_n "(cached) " >&6 |
| 10046 | else |
| 10047 | if test "$cross_compiling" = yes; then : |
| 10048 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10049 | else |
| 10050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10051 | /* end confdefs.h. */ |
| 10052 | #include <sys/types.h> |
| 10053 | #include <sys/stat.h> |
| 10054 | #if HAVE_UNISTD_H |
| 10055 | # include <unistd.h> |
| 10056 | #else /* on Windows with MSVC */ |
| 10057 | # include <io.h> |
| 10058 | # include <stdlib.h> |
| 10059 | # defined sleep(n) _sleep ((n) * 1000) |
| 10060 | #endif |
| 10061 | #include <fcntl.h> |
| 10062 | #ifndef O_NOATIME |
| 10063 | #define O_NOATIME 0 |
| 10064 | #endif |
| 10065 | #ifndef O_NOFOLLOW |
| 10066 | #define O_NOFOLLOW 0 |
| 10067 | #endif |
| 10068 | static int const constants[] = |
| 10069 | { |
| 10070 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10071 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10072 | }; |
| 10073 | |
| 10074 | int |
| 10075 | main () |
| 10076 | { |
| 10077 | |
| 10078 | int result = !constants; |
| 10079 | #if HAVE_SYMLINK |
| 10080 | { |
| 10081 | static char const sym[] = "conftest.sym"; |
| 10082 | if (symlink ("/dev/null", sym) != 0) |
| 10083 | result |= 2; |
| 10084 | else |
| 10085 | { |
| 10086 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10087 | if (fd >= 0) |
| 10088 | { |
| 10089 | close (fd); |
| 10090 | result |= 4; |
| 10091 | } |
| 10092 | } |
| 10093 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10094 | result |= 2; |
| 10095 | else |
| 10096 | { |
| 10097 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10098 | if (fd >= 0) |
| 10099 | { |
| 10100 | close (fd); |
| 10101 | result |= 4; |
| 10102 | } |
| 10103 | } |
| 10104 | unlink (sym); |
| 10105 | } |
| 10106 | #endif |
| 10107 | { |
| 10108 | static char const file[] = "confdefs.h"; |
| 10109 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10110 | if (fd < 0) |
| 10111 | result |= 8; |
| 10112 | else |
| 10113 | { |
| 10114 | struct stat st0; |
| 10115 | if (fstat (fd, &st0) != 0) |
| 10116 | result |= 16; |
| 10117 | else |
| 10118 | { |
| 10119 | char c; |
| 10120 | sleep (1); |
| 10121 | if (read (fd, &c, 1) != 1) |
| 10122 | result |= 24; |
| 10123 | else |
| 10124 | { |
| 10125 | if (close (fd) != 0) |
| 10126 | result |= 32; |
| 10127 | else |
| 10128 | { |
| 10129 | struct stat st1; |
| 10130 | if (stat (file, &st1) != 0) |
| 10131 | result |= 40; |
| 10132 | else |
| 10133 | if (st0.st_atime != st1.st_atime) |
| 10134 | result |= 64; |
| 10135 | } |
| 10136 | } |
| 10137 | } |
| 10138 | } |
| 10139 | } |
| 10140 | return result; |
| 10141 | ; |
| 10142 | return 0; |
| 10143 | } |
| 10144 | _ACEOF |
| 10145 | if ac_fn_c_try_run "$LINENO"; then : |
| 10146 | gl_cv_header_working_fcntl_h=yes |
| 10147 | else |
| 10148 | case $? in #( |
| 10149 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10150 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10151 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10152 | *) gl_cv_header_working_fcntl_h='no';; |
| 10153 | esac |
| 10154 | fi |
| 10155 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10156 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10157 | fi |
| 10158 | |
| 10159 | fi |
| 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10161 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10162 | |
| 10163 | case $gl_cv_header_working_fcntl_h in #( |
| 10164 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10165 | *) ac_val=1;; |
| 10166 | esac |
| 10167 | |
| 10168 | cat >>confdefs.h <<_ACEOF |
| 10169 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10170 | _ACEOF |
| 10171 | |
| 10172 | |
| 10173 | case $gl_cv_header_working_fcntl_h in #( |
| 10174 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10175 | *) ac_val=1;; |
| 10176 | esac |
| 10177 | |
| 10178 | cat >>confdefs.h <<_ACEOF |
| 10179 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10180 | _ACEOF |
| 10181 | |
| 10182 | |
| 10183 | |
| 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10185 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10186 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10187 | $as_echo_n "(cached) " >&6 |
| 10188 | else |
| 10189 | gt_save_LIBS="$LIBS" |
| 10190 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10192 | /* end confdefs.h. */ |
| 10193 | #include <CoreFoundation/CFPreferences.h> |
| 10194 | int |
| 10195 | main () |
| 10196 | { |
| 10197 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10198 | ; |
| 10199 | return 0; |
| 10200 | } |
| 10201 | _ACEOF |
| 10202 | if ac_fn_c_try_link "$LINENO"; then : |
| 10203 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10204 | else |
| 10205 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10206 | fi |
| 10207 | rm -f core conftest.err conftest.$ac_objext \ |
| 10208 | conftest$ac_exeext conftest.$ac_ext |
| 10209 | LIBS="$gt_save_LIBS" |
| 10210 | fi |
| 10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10212 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10213 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10214 | |
| 10215 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10216 | |
| 10217 | fi |
| 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10219 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10220 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10221 | $as_echo_n "(cached) " >&6 |
| 10222 | else |
| 10223 | gt_save_LIBS="$LIBS" |
| 10224 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10226 | /* end confdefs.h. */ |
| 10227 | #include <CoreFoundation/CFLocale.h> |
| 10228 | int |
| 10229 | main () |
| 10230 | { |
| 10231 | CFLocaleCopyCurrent(); |
| 10232 | ; |
| 10233 | return 0; |
| 10234 | } |
| 10235 | _ACEOF |
| 10236 | if ac_fn_c_try_link "$LINENO"; then : |
| 10237 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10238 | else |
| 10239 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10240 | fi |
| 10241 | rm -f core conftest.err conftest.$ac_objext \ |
| 10242 | conftest$ac_exeext conftest.$ac_ext |
| 10243 | LIBS="$gt_save_LIBS" |
| 10244 | fi |
| 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10246 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10247 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10248 | |
| 10249 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10250 | |
| 10251 | fi |
| 10252 | INTL_MACOSX_LIBS= |
| 10253 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10254 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10255 | fi |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | |
| 10261 | |
| 10262 | |
| 10263 | |
| 10264 | |
| 10265 | |
| 10266 | case "$enable_silent_rules" in |
| 10267 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10268 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10269 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10270 | esac |
| 10271 | |
| 10272 | |
| 10273 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10274 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10275 | |
| 10276 | else |
| 10277 | |
| 10278 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10279 | |
| 10280 | |
| 10281 | fi |
| 10282 | |
| 10283 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10284 | do : |
| 10285 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10286 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10287 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10288 | cat >>confdefs.h <<_ACEOF |
| 10289 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10290 | _ACEOF |
| 10291 | |
| 10292 | fi |
| 10293 | |
| 10294 | done |
| 10295 | |
| 10296 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10297 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10298 | do : |
| 10299 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10300 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10301 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10302 | cat >>confdefs.h <<_ACEOF |
| 10303 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10304 | _ACEOF |
| 10305 | |
| 10306 | fi |
| 10307 | done |
| 10308 | |
| 10309 | |
| 10310 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10311 | " |
| 10312 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10313 | ac_have_decl=1 |
| 10314 | else |
| 10315 | ac_have_decl=0 |
| 10316 | fi |
| 10317 | |
| 10318 | cat >>confdefs.h <<_ACEOF |
| 10319 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10320 | _ACEOF |
| 10321 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10322 | " |
| 10323 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10324 | ac_have_decl=1 |
| 10325 | else |
| 10326 | ac_have_decl=0 |
| 10327 | fi |
| 10328 | |
| 10329 | cat >>confdefs.h <<_ACEOF |
| 10330 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10331 | _ACEOF |
| 10332 | |
| 10333 | |
| 10334 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10335 | " |
| 10336 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10337 | ac_have_decl=1 |
| 10338 | else |
| 10339 | ac_have_decl=0 |
| 10340 | fi |
| 10341 | |
| 10342 | cat >>confdefs.h <<_ACEOF |
| 10343 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10344 | _ACEOF |
| 10345 | |
| 10346 | |
| 10347 | case $gt_cv_func_printf_posix in |
| 10348 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10349 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10350 | esac |
| 10351 | |
| 10352 | if test "$ac_cv_func_asprintf" = yes; then |
| 10353 | HAVE_ASPRINTF=1 |
| 10354 | else |
| 10355 | HAVE_ASPRINTF=0 |
| 10356 | fi |
| 10357 | |
| 10358 | if test "$ac_cv_func_snprintf" = yes; then |
| 10359 | HAVE_SNPRINTF=1 |
| 10360 | else |
| 10361 | HAVE_SNPRINTF=0 |
| 10362 | fi |
| 10363 | |
| 10364 | if test "$ac_cv_func_newlocale" = yes; then |
| 10365 | HAVE_NEWLOCALE=1 |
| 10366 | else |
| 10367 | HAVE_NEWLOCALE=0 |
| 10368 | fi |
| 10369 | |
| 10370 | if test "$ac_cv_func_wprintf" = yes; then |
| 10371 | HAVE_WPRINTF=1 |
| 10372 | else |
| 10373 | HAVE_WPRINTF=0 |
| 10374 | fi |
| 10375 | |
| 10376 | |
| 10377 | |
| 10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10379 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10380 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10381 | $as_echo_n "(cached) " >&6 |
| 10382 | else |
| 10383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10384 | /* end confdefs.h. */ |
| 10385 | #include <langinfo.h> |
| 10386 | int |
| 10387 | main () |
| 10388 | { |
| 10389 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10390 | ; |
| 10391 | return 0; |
| 10392 | } |
| 10393 | _ACEOF |
| 10394 | if ac_fn_c_try_link "$LINENO"; then : |
| 10395 | am_cv_langinfo_codeset=yes |
| 10396 | else |
| 10397 | am_cv_langinfo_codeset=no |
| 10398 | fi |
| 10399 | rm -f core conftest.err conftest.$ac_objext \ |
| 10400 | conftest$ac_exeext conftest.$ac_ext |
| 10401 | |
| 10402 | fi |
| 10403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10404 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10405 | if test $am_cv_langinfo_codeset = yes; then |
| 10406 | |
| 10407 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10408 | |
| 10409 | fi |
| 10410 | |
| 10411 | |
| 10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10413 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10414 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10415 | $as_echo_n "(cached) " >&6 |
| 10416 | else |
| 10417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10418 | /* end confdefs.h. */ |
| 10419 | #include <locale.h> |
| 10420 | int |
| 10421 | main () |
| 10422 | { |
| 10423 | return LC_MESSAGES |
| 10424 | ; |
| 10425 | return 0; |
| 10426 | } |
| 10427 | _ACEOF |
| 10428 | if ac_fn_c_try_link "$LINENO"; then : |
| 10429 | gt_cv_val_LC_MESSAGES=yes |
| 10430 | else |
| 10431 | gt_cv_val_LC_MESSAGES=no |
| 10432 | fi |
| 10433 | rm -f core conftest.err conftest.$ac_objext \ |
| 10434 | conftest$ac_exeext conftest.$ac_ext |
| 10435 | fi |
| 10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10437 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10438 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10439 | |
| 10440 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10441 | |
| 10442 | fi |
| 10443 | |
| 10444 | |
| 10445 | if test "$enable_shared" = yes; then |
| 10446 | case "$host_os" in |
| 10447 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10448 | *) is_woe32dll=no ;; |
| 10449 | esac |
| 10450 | else |
| 10451 | is_woe32dll=no |
| 10452 | fi |
| 10453 | WOE32DLL=$is_woe32dll |
| 10454 | |
| 10455 | |
| 10456 | case "$host_os" in |
| 10457 | mingw* | cygwin*) is_woe32=yes ;; |
| 10458 | *) is_woe32=no ;; |
| 10459 | esac |
| 10460 | WOE32=$is_woe32 |
| 10461 | |
| 10462 | if test $WOE32 = yes; then |
| 10463 | if test -n "$ac_tool_prefix"; then |
| 10464 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10465 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10467 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10468 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10469 | $as_echo_n "(cached) " >&6 |
| 10470 | else |
| 10471 | if test -n "$WINDRES"; then |
| 10472 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10473 | else |
| 10474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10475 | for as_dir in $PATH |
| 10476 | do |
| 10477 | IFS=$as_save_IFS |
| 10478 | test -z "$as_dir" && as_dir=. |
| 10479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10481 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10483 | break 2 |
| 10484 | fi |
| 10485 | done |
| 10486 | done |
| 10487 | IFS=$as_save_IFS |
| 10488 | |
| 10489 | fi |
| 10490 | fi |
| 10491 | WINDRES=$ac_cv_prog_WINDRES |
| 10492 | if test -n "$WINDRES"; then |
| 10493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10494 | $as_echo "$WINDRES" >&6; } |
| 10495 | else |
| 10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10497 | $as_echo "no" >&6; } |
| 10498 | fi |
| 10499 | |
| 10500 | |
| 10501 | fi |
| 10502 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10503 | ac_ct_WINDRES=$WINDRES |
| 10504 | # Extract the first word of "windres", so it can be a program name with args. |
| 10505 | set dummy windres; ac_word=$2 |
| 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10507 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10508 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10509 | $as_echo_n "(cached) " >&6 |
| 10510 | else |
| 10511 | if test -n "$ac_ct_WINDRES"; then |
| 10512 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10513 | else |
| 10514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10515 | for as_dir in $PATH |
| 10516 | do |
| 10517 | IFS=$as_save_IFS |
| 10518 | test -z "$as_dir" && as_dir=. |
| 10519 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10521 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10523 | break 2 |
| 10524 | fi |
| 10525 | done |
| 10526 | done |
| 10527 | IFS=$as_save_IFS |
| 10528 | |
| 10529 | fi |
| 10530 | fi |
| 10531 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10532 | if test -n "$ac_ct_WINDRES"; then |
| 10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10534 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10535 | else |
| 10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10537 | $as_echo "no" >&6; } |
| 10538 | fi |
| 10539 | |
| 10540 | if test "x$ac_ct_WINDRES" = x; then |
| 10541 | WINDRES="" |
| 10542 | else |
| 10543 | case $cross_compiling:$ac_tool_warned in |
| 10544 | yes:) |
| 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10547 | ac_tool_warned=yes ;; |
| 10548 | esac |
| 10549 | WINDRES=$ac_ct_WINDRES |
| 10550 | fi |
| 10551 | else |
| 10552 | WINDRES="$ac_cv_prog_WINDRES" |
| 10553 | fi |
| 10554 | |
| 10555 | fi |
| 10556 | |
| 10557 | case "$host_os" in |
| 10558 | hpux*) LTLIBC="" ;; |
| 10559 | *) LTLIBC="-lc" ;; |
| 10560 | esac |
| 10561 | |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10589 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10590 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10591 | $as_echo_n "(cached) " >&6 |
| 10592 | else |
| 10593 | gt_save_LIBS="$LIBS" |
| 10594 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10596 | /* end confdefs.h. */ |
| 10597 | #include <CoreFoundation/CFPreferences.h> |
| 10598 | int |
| 10599 | main () |
| 10600 | { |
| 10601 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10602 | ; |
| 10603 | return 0; |
| 10604 | } |
| 10605 | _ACEOF |
| 10606 | if ac_fn_c_try_link "$LINENO"; then : |
| 10607 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10608 | else |
| 10609 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10610 | fi |
| 10611 | rm -f core conftest.err conftest.$ac_objext \ |
| 10612 | conftest$ac_exeext conftest.$ac_ext |
| 10613 | LIBS="$gt_save_LIBS" |
| 10614 | fi |
| 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10616 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10617 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10618 | |
| 10619 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10620 | |
| 10621 | fi |
| 10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10623 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10624 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10625 | $as_echo_n "(cached) " >&6 |
| 10626 | else |
| 10627 | gt_save_LIBS="$LIBS" |
| 10628 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10630 | /* end confdefs.h. */ |
| 10631 | #include <CoreFoundation/CFLocale.h> |
| 10632 | int |
| 10633 | main () |
| 10634 | { |
| 10635 | CFLocaleCopyCurrent(); |
| 10636 | ; |
| 10637 | return 0; |
| 10638 | } |
| 10639 | _ACEOF |
| 10640 | if ac_fn_c_try_link "$LINENO"; then : |
| 10641 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10642 | else |
| 10643 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10644 | fi |
| 10645 | rm -f core conftest.err conftest.$ac_objext \ |
| 10646 | conftest$ac_exeext conftest.$ac_ext |
| 10647 | LIBS="$gt_save_LIBS" |
| 10648 | fi |
| 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10650 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10651 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10652 | |
| 10653 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10654 | |
| 10655 | fi |
| 10656 | INTL_MACOSX_LIBS= |
| 10657 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10658 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10659 | fi |
| 10660 | |
| 10661 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10662 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10664 | |
| 10665 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10666 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10667 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10669 | LIBINTL= |
| 10670 | LTLIBINTL= |
| 10671 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10672 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10673 | case " $gt_needs " in |
| 10674 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10675 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10676 | *) gt_api_version=1 ;; |
| 10677 | esac |
| 10678 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10679 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10680 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10681 | if test "$USE_NLS" = "yes"; then |
| 10682 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10683 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10684 | { $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] | 10685 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10686 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10687 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10688 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10689 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10690 | else |
| 10691 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10692 | fi |
| 10693 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10694 | { $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] | 10695 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10696 | |
| 10697 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10698 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10699 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10700 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10701 | if test $gt_api_version -ge 3; then |
| 10702 | gt_revision_test_code=' |
| 10703 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10704 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10705 | #endif |
| 10706 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10707 | ' |
| 10708 | else |
| 10709 | gt_revision_test_code= |
| 10710 | fi |
| 10711 | if test $gt_api_version -ge 2; then |
| 10712 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10713 | else |
| 10714 | gt_expression_test_code= |
| 10715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10716 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10717 | { $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] | 10718 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10719 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10720 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10721 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10723 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10724 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10725 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10726 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10727 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10728 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | int |
| 10731 | main () |
| 10732 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10733 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10734 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10735 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10736 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10737 | ; |
| 10738 | return 0; |
| 10739 | } |
| 10740 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10741 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10742 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10743 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10744 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10745 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10746 | rm -f core conftest.err conftest.$ac_objext \ |
| 10747 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10748 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10749 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10751 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10752 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10753 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10754 | |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10759 | |
| 10760 | |
| 10761 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10762 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10764 | acl_save_prefix="$prefix" |
| 10765 | prefix="$acl_final_prefix" |
| 10766 | acl_save_exec_prefix="$exec_prefix" |
| 10767 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10768 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10769 | eval additional_includedir=\"$includedir\" |
| 10770 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10771 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10772 | exec_prefix="$acl_save_exec_prefix" |
| 10773 | prefix="$acl_save_prefix" |
| 10774 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10776 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10777 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10778 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10779 | if test "X$withval" = "Xno"; then |
| 10780 | use_additional=no |
| 10781 | else |
| 10782 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10783 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10784 | acl_save_prefix="$prefix" |
| 10785 | prefix="$acl_final_prefix" |
| 10786 | acl_save_exec_prefix="$exec_prefix" |
| 10787 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10788 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10789 | eval additional_includedir=\"$includedir\" |
| 10790 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10791 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10792 | exec_prefix="$acl_save_exec_prefix" |
| 10793 | prefix="$acl_save_prefix" |
| 10794 | |
| 10795 | else |
| 10796 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10797 | additional_libdir="$withval/$acl_libdirstem" |
| 10798 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10799 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10800 | additional_libdir="$withval/$acl_libdirstem2" |
| 10801 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10802 | fi |
| 10803 | fi |
| 10804 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10805 | fi |
| 10806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10807 | LIBINTL= |
| 10808 | LTLIBINTL= |
| 10809 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10810 | LIBINTL_PREFIX= |
| 10811 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10812 | rpathdirs= |
| 10813 | ltrpathdirs= |
| 10814 | names_already_handled= |
| 10815 | names_next_round='intl ' |
| 10816 | while test -n "$names_next_round"; do |
| 10817 | names_this_round="$names_next_round" |
| 10818 | names_next_round= |
| 10819 | for name in $names_this_round; do |
| 10820 | already_handled= |
| 10821 | for n in $names_already_handled; do |
| 10822 | if test "$n" = "$name"; then |
| 10823 | already_handled=yes |
| 10824 | break |
| 10825 | fi |
| 10826 | done |
| 10827 | if test -z "$already_handled"; then |
| 10828 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10829 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10830 | eval value=\"\$HAVE_LIB$uppername\" |
| 10831 | if test -n "$value"; then |
| 10832 | if test "$value" = yes; then |
| 10833 | eval value=\"\$LIB$uppername\" |
| 10834 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10835 | eval value=\"\$LTLIB$uppername\" |
| 10836 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10837 | else |
| 10838 | : |
| 10839 | fi |
| 10840 | else |
| 10841 | found_dir= |
| 10842 | found_la= |
| 10843 | found_so= |
| 10844 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10845 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 10846 | if test -n "$acl_shlibext"; then |
| 10847 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 10848 | else |
| 10849 | shrext= |
| 10850 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10851 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10852 | dir="$additional_libdir" |
| 10853 | if test -n "$acl_shlibext"; then |
| 10854 | if test -f "$dir/$libname$shrext"; then |
| 10855 | found_dir="$dir" |
| 10856 | found_so="$dir/$libname$shrext" |
| 10857 | else |
| 10858 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10859 | ver=`(cd "$dir" && \ |
| 10860 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10861 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10862 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10863 | | sed 1q ) 2>/dev/null` |
| 10864 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10865 | found_dir="$dir" |
| 10866 | found_so="$dir/$libname$shrext.$ver" |
| 10867 | fi |
| 10868 | else |
| 10869 | eval library_names=\"$acl_library_names_spec\" |
| 10870 | for f in $library_names; do |
| 10871 | if test -f "$dir/$f"; then |
| 10872 | found_dir="$dir" |
| 10873 | found_so="$dir/$f" |
| 10874 | break |
| 10875 | fi |
| 10876 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10877 | fi |
| 10878 | fi |
| 10879 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10880 | if test "X$found_dir" = "X"; then |
| 10881 | if test -f "$dir/$libname.$acl_libext"; then |
| 10882 | found_dir="$dir" |
| 10883 | found_a="$dir/$libname.$acl_libext" |
| 10884 | fi |
| 10885 | fi |
| 10886 | if test "X$found_dir" != "X"; then |
| 10887 | if test -f "$dir/$libname.la"; then |
| 10888 | found_la="$dir/$libname.la" |
| 10889 | fi |
| 10890 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10891 | fi |
| 10892 | if test "X$found_dir" = "X"; then |
| 10893 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10894 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10895 | acl_save_prefix="$prefix" |
| 10896 | prefix="$acl_final_prefix" |
| 10897 | acl_save_exec_prefix="$exec_prefix" |
| 10898 | exec_prefix="$acl_final_exec_prefix" |
| 10899 | eval x=\"$x\" |
| 10900 | exec_prefix="$acl_save_exec_prefix" |
| 10901 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10902 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10903 | case "$x" in |
| 10904 | -L*) |
| 10905 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10906 | if test -n "$acl_shlibext"; then |
| 10907 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10908 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10909 | found_so="$dir/$libname$shrext" |
| 10910 | else |
| 10911 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10912 | ver=`(cd "$dir" && \ |
| 10913 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10914 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10915 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10916 | | sed 1q ) 2>/dev/null` |
| 10917 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10918 | found_dir="$dir" |
| 10919 | found_so="$dir/$libname$shrext.$ver" |
| 10920 | fi |
| 10921 | else |
| 10922 | eval library_names=\"$acl_library_names_spec\" |
| 10923 | for f in $library_names; do |
| 10924 | if test -f "$dir/$f"; then |
| 10925 | found_dir="$dir" |
| 10926 | found_so="$dir/$f" |
| 10927 | break |
| 10928 | fi |
| 10929 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10930 | fi |
| 10931 | fi |
| 10932 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10933 | if test "X$found_dir" = "X"; then |
| 10934 | if test -f "$dir/$libname.$acl_libext"; then |
| 10935 | found_dir="$dir" |
| 10936 | found_a="$dir/$libname.$acl_libext" |
| 10937 | fi |
| 10938 | fi |
| 10939 | if test "X$found_dir" != "X"; then |
| 10940 | if test -f "$dir/$libname.la"; then |
| 10941 | found_la="$dir/$libname.la" |
| 10942 | fi |
| 10943 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10944 | ;; |
| 10945 | esac |
| 10946 | if test "X$found_dir" != "X"; then |
| 10947 | break |
| 10948 | fi |
| 10949 | done |
| 10950 | fi |
| 10951 | if test "X$found_dir" != "X"; then |
| 10952 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10953 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10954 | if test "$enable_rpath" = no \ |
| 10955 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 10956 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10957 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10958 | else |
| 10959 | haveit= |
| 10960 | for x in $ltrpathdirs; do |
| 10961 | if test "X$x" = "X$found_dir"; then |
| 10962 | haveit=yes |
| 10963 | break |
| 10964 | fi |
| 10965 | done |
| 10966 | if test -z "$haveit"; then |
| 10967 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10968 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10969 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10970 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10971 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10972 | 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] | 10973 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10974 | haveit= |
| 10975 | for x in $rpathdirs; do |
| 10976 | if test "X$x" = "X$found_dir"; then |
| 10977 | haveit=yes |
| 10978 | break |
| 10979 | fi |
| 10980 | done |
| 10981 | if test -z "$haveit"; then |
| 10982 | rpathdirs="$rpathdirs $found_dir" |
| 10983 | fi |
| 10984 | else |
| 10985 | haveit= |
| 10986 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10988 | acl_save_prefix="$prefix" |
| 10989 | prefix="$acl_final_prefix" |
| 10990 | acl_save_exec_prefix="$exec_prefix" |
| 10991 | exec_prefix="$acl_final_exec_prefix" |
| 10992 | eval x=\"$x\" |
| 10993 | exec_prefix="$acl_save_exec_prefix" |
| 10994 | prefix="$acl_save_prefix" |
| 10995 | |
| 10996 | if test "X$x" = "X-L$found_dir"; then |
| 10997 | haveit=yes |
| 10998 | break |
| 10999 | fi |
| 11000 | done |
| 11001 | if test -z "$haveit"; then |
| 11002 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11003 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11004 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11005 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11006 | else |
| 11007 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11008 | fi |
| 11009 | fi |
| 11010 | fi |
| 11011 | fi |
| 11012 | else |
| 11013 | if test "X$found_a" != "X"; then |
| 11014 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11015 | else |
| 11016 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11017 | fi |
| 11018 | fi |
| 11019 | additional_includedir= |
| 11020 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11021 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11022 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11023 | if test "$name" = 'intl'; then |
| 11024 | LIBINTL_PREFIX="$basedir" |
| 11025 | fi |
| 11026 | additional_includedir="$basedir/include" |
| 11027 | ;; |
| 11028 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11029 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11030 | if test "$name" = 'intl'; then |
| 11031 | LIBINTL_PREFIX="$basedir" |
| 11032 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11033 | additional_includedir="$basedir/include" |
| 11034 | ;; |
| 11035 | esac |
| 11036 | if test "X$additional_includedir" != "X"; then |
| 11037 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11038 | haveit= |
| 11039 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11040 | if test -n "$GCC"; then |
| 11041 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11042 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11043 | esac |
| 11044 | fi |
| 11045 | fi |
| 11046 | if test -z "$haveit"; then |
| 11047 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11048 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11049 | acl_save_prefix="$prefix" |
| 11050 | prefix="$acl_final_prefix" |
| 11051 | acl_save_exec_prefix="$exec_prefix" |
| 11052 | exec_prefix="$acl_final_exec_prefix" |
| 11053 | eval x=\"$x\" |
| 11054 | exec_prefix="$acl_save_exec_prefix" |
| 11055 | prefix="$acl_save_prefix" |
| 11056 | |
| 11057 | if test "X$x" = "X-I$additional_includedir"; then |
| 11058 | haveit=yes |
| 11059 | break |
| 11060 | fi |
| 11061 | done |
| 11062 | if test -z "$haveit"; then |
| 11063 | if test -d "$additional_includedir"; then |
| 11064 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11065 | fi |
| 11066 | fi |
| 11067 | fi |
| 11068 | fi |
| 11069 | fi |
| 11070 | if test -n "$found_la"; then |
| 11071 | save_libdir="$libdir" |
| 11072 | case "$found_la" in |
| 11073 | */* | *\\*) . "$found_la" ;; |
| 11074 | *) . "./$found_la" ;; |
| 11075 | esac |
| 11076 | libdir="$save_libdir" |
| 11077 | for dep in $dependency_libs; do |
| 11078 | case "$dep" in |
| 11079 | -L*) |
| 11080 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11081 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11082 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11083 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11084 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11085 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11086 | if test -n "$GCC"; then |
| 11087 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11088 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11089 | esac |
| 11090 | fi |
| 11091 | fi |
| 11092 | if test -z "$haveit"; then |
| 11093 | haveit= |
| 11094 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11095 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11096 | acl_save_prefix="$prefix" |
| 11097 | prefix="$acl_final_prefix" |
| 11098 | acl_save_exec_prefix="$exec_prefix" |
| 11099 | exec_prefix="$acl_final_exec_prefix" |
| 11100 | eval x=\"$x\" |
| 11101 | exec_prefix="$acl_save_exec_prefix" |
| 11102 | prefix="$acl_save_prefix" |
| 11103 | |
| 11104 | if test "X$x" = "X-L$additional_libdir"; then |
| 11105 | haveit=yes |
| 11106 | break |
| 11107 | fi |
| 11108 | done |
| 11109 | if test -z "$haveit"; then |
| 11110 | if test -d "$additional_libdir"; then |
| 11111 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11112 | fi |
| 11113 | fi |
| 11114 | haveit= |
| 11115 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11116 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11117 | acl_save_prefix="$prefix" |
| 11118 | prefix="$acl_final_prefix" |
| 11119 | acl_save_exec_prefix="$exec_prefix" |
| 11120 | exec_prefix="$acl_final_exec_prefix" |
| 11121 | eval x=\"$x\" |
| 11122 | exec_prefix="$acl_save_exec_prefix" |
| 11123 | prefix="$acl_save_prefix" |
| 11124 | |
| 11125 | if test "X$x" = "X-L$additional_libdir"; then |
| 11126 | haveit=yes |
| 11127 | break |
| 11128 | fi |
| 11129 | done |
| 11130 | if test -z "$haveit"; then |
| 11131 | if test -d "$additional_libdir"; then |
| 11132 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11133 | fi |
| 11134 | fi |
| 11135 | fi |
| 11136 | fi |
| 11137 | ;; |
| 11138 | -R*) |
| 11139 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11140 | if test "$enable_rpath" != no; then |
| 11141 | haveit= |
| 11142 | for x in $rpathdirs; do |
| 11143 | if test "X$x" = "X$dir"; then |
| 11144 | haveit=yes |
| 11145 | break |
| 11146 | fi |
| 11147 | done |
| 11148 | if test -z "$haveit"; then |
| 11149 | rpathdirs="$rpathdirs $dir" |
| 11150 | fi |
| 11151 | haveit= |
| 11152 | for x in $ltrpathdirs; do |
| 11153 | if test "X$x" = "X$dir"; then |
| 11154 | haveit=yes |
| 11155 | break |
| 11156 | fi |
| 11157 | done |
| 11158 | if test -z "$haveit"; then |
| 11159 | ltrpathdirs="$ltrpathdirs $dir" |
| 11160 | fi |
| 11161 | fi |
| 11162 | ;; |
| 11163 | -l*) |
| 11164 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11165 | ;; |
| 11166 | *.la) |
| 11167 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11168 | ;; |
| 11169 | *) |
| 11170 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11171 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11172 | ;; |
| 11173 | esac |
| 11174 | done |
| 11175 | fi |
| 11176 | else |
| 11177 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11178 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11179 | fi |
| 11180 | fi |
| 11181 | fi |
| 11182 | done |
| 11183 | done |
| 11184 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11185 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11186 | alldirs= |
| 11187 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11188 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11189 | done |
| 11190 | acl_save_libdir="$libdir" |
| 11191 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11192 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11193 | libdir="$acl_save_libdir" |
| 11194 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11195 | else |
| 11196 | for found_dir in $rpathdirs; do |
| 11197 | acl_save_libdir="$libdir" |
| 11198 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11199 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11200 | libdir="$acl_save_libdir" |
| 11201 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11202 | done |
| 11203 | fi |
| 11204 | fi |
| 11205 | if test "X$ltrpathdirs" != "X"; then |
| 11206 | for found_dir in $ltrpathdirs; do |
| 11207 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11208 | done |
| 11209 | fi |
| 11210 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11216 | { $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] | 11217 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11218 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11219 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11220 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11221 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11222 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11223 | gt_save_LIBS="$LIBS" |
| 11224 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11226 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11227 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11228 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11229 | $gt_revision_test_code |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11230 | extern int _nl_msg_cat_cntr; |
| 11231 | extern |
| 11232 | #ifdef __cplusplus |
| 11233 | "C" |
| 11234 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11235 | const char *_nl_expand_alias (const char *); |
| 11236 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | int |
| 11238 | main () |
| 11239 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11240 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11241 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11242 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11243 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11244 | ; |
| 11245 | return 0; |
| 11246 | } |
| 11247 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11248 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11249 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11250 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11251 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11252 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11253 | rm -f core conftest.err conftest.$ac_objext \ |
| 11254 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11255 | 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] | 11256 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11258 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11259 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11260 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11261 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11262 | extern int _nl_msg_cat_cntr; |
| 11263 | extern |
| 11264 | #ifdef __cplusplus |
| 11265 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11266 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11267 | const char *_nl_expand_alias (const char *); |
| 11268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11269 | int |
| 11270 | main () |
| 11271 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11272 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11273 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11274 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11275 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11276 | ; |
| 11277 | return 0; |
| 11278 | } |
| 11279 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11280 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11281 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11282 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11283 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11284 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11285 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11286 | rm -f core conftest.err conftest.$ac_objext \ |
| 11287 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11288 | fi |
| 11289 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11290 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11291 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11292 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11294 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11295 | fi |
| 11296 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11297 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11298 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11299 | && test "$PACKAGE" != gettext-runtime \ |
| 11300 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11301 | gt_use_preinstalled_gnugettext=yes |
| 11302 | else |
| 11303 | LIBINTL= |
| 11304 | LTLIBINTL= |
| 11305 | INCINTL= |
| 11306 | fi |
| 11307 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11309 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11310 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11311 | fi |
| 11312 | fi |
| 11313 | |
| 11314 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11315 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11316 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11317 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11318 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11319 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11320 | fi |
| 11321 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11322 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11323 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11324 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11325 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11326 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11327 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11328 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11329 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11330 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11331 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11332 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11333 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11334 | fi |
| 11335 | fi |
| 11336 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11337 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11338 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11339 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11340 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11341 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11342 | else |
| 11343 | USE_NLS=no |
| 11344 | fi |
| 11345 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11346 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11347 | { $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] | 11348 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11350 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11351 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11352 | { $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] | 11353 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11354 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11355 | 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] | 11356 | gt_source="external libintl" |
| 11357 | else |
| 11358 | gt_source="libc" |
| 11359 | fi |
| 11360 | else |
| 11361 | gt_source="included intl directory" |
| 11362 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11364 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11365 | fi |
| 11366 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11367 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11368 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11369 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11370 | 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] | 11371 | { $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] | 11372 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11374 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11375 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11376 | for element in $INCINTL; do |
| 11377 | haveit= |
| 11378 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11379 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11380 | acl_save_prefix="$prefix" |
| 11381 | prefix="$acl_final_prefix" |
| 11382 | acl_save_exec_prefix="$exec_prefix" |
| 11383 | exec_prefix="$acl_final_exec_prefix" |
| 11384 | eval x=\"$x\" |
| 11385 | exec_prefix="$acl_save_exec_prefix" |
| 11386 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11387 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11388 | if test "X$x" = "X$element"; then |
| 11389 | haveit=yes |
| 11390 | break |
| 11391 | fi |
| 11392 | done |
| 11393 | if test -z "$haveit"; then |
| 11394 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11395 | fi |
| 11396 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11397 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11398 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11399 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11400 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11401 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11402 | |
| 11403 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11404 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11405 | |
| 11406 | fi |
| 11407 | |
| 11408 | POSUB=po |
| 11409 | fi |
| 11410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11411 | |
| 11412 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11413 | BUILD_INCLUDED_LIBINTL=yes |
| 11414 | fi |
| 11415 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11416 | |
| 11417 | |
| 11418 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11419 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11420 | nls_cv_header_intl= |
| 11421 | nls_cv_header_libgt= |
| 11422 | |
| 11423 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11425 | |
| 11426 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11427 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11428 | |
| 11429 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11430 | |
| 11431 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11432 | INTLOBJS= |
| 11433 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11434 | INTLOBJS="\$(GETTOBJS)" |
| 11435 | fi |
| 11436 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11437 | |
| 11438 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11439 | |
| 11440 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11441 | |
| 11442 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11443 | |
| 11444 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11445 | |
| 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11450 | { $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] | 11451 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11452 | set x ${MAKE-make} |
| 11453 | 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] | 11454 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11455 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11456 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11457 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11458 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11459 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11460 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11461 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11462 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11463 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11464 | *@@@%%%=?*=@@@%%%*) |
| 11465 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11466 | *) |
| 11467 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11468 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11471 | 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] | 11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11473 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11474 | SET_MAKE= |
| 11475 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11477 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11478 | SET_MAKE="MAKE=${MAKE-make}" |
| 11479 | fi |
| 11480 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11481 | { $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] | 11482 | $as_echo_n "checking for GNU make... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11483 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11484 | $as_echo_n "(cached) " >&6 |
| 11485 | else |
| 11486 | _cv_gnu_make_command='' ; |
| 11487 | for a in "$MAKE" make gmake gnumake ; do |
| 11488 | if test -z "$a" ; then continue ; fi ; |
| 11489 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11490 | _cv_gnu_make_command=$a ; |
| 11491 | break; |
| 11492 | fi |
| 11493 | done ; |
| 11494 | |
| 11495 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11496 | { $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] | 11497 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11498 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11499 | ifGNUmake='' ; |
| 11500 | ifNotGNUmake='#' ; |
| 11501 | else |
| 11502 | ifGNUmake='#' ; |
| 11503 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11505 | $as_echo "\"Not found\"" >&6; }; |
| 11506 | fi |
| 11507 | |
| 11508 | |
| 11509 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | # Extract the first word of "ln", so it can be a program name with args. |
| 11511 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11512 | { $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] | 11513 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11514 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11515 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11516 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11517 | case $LN in |
| 11518 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11519 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11520 | ;; |
| 11521 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11523 | for as_dir in $PATH |
| 11524 | do |
| 11525 | IFS=$as_save_IFS |
| 11526 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11527 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11528 | 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] | 11529 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11530 | $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] | 11531 | break 2 |
| 11532 | fi |
| 11533 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11534 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11535 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11536 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11537 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11538 | ;; |
| 11539 | esac |
| 11540 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11541 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11542 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11544 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11545 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11547 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11548 | fi |
| 11549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11550 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11551 | { $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] | 11552 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11553 | LN_S=$as_ln_s |
| 11554 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11556 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11557 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11558 | { $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] | 11559 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11560 | fi |
| 11561 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11562 | # Extract the first word of "mv", so it can be a program name with args. |
| 11563 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11564 | { $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] | 11565 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11566 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11567 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11568 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11569 | case $MV in |
| 11570 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11571 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11572 | ;; |
| 11573 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11575 | for as_dir in $PATH |
| 11576 | do |
| 11577 | IFS=$as_save_IFS |
| 11578 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11579 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11580 | 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] | 11581 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11582 | $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] | 11583 | break 2 |
| 11584 | fi |
| 11585 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11586 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11587 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11589 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11590 | ;; |
| 11591 | esac |
| 11592 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11593 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11596 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11597 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11599 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11600 | fi |
| 11601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11602 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11603 | # Extract the first word of "cp", so it can be a program name with args. |
| 11604 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11605 | { $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] | 11606 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11607 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11608 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11609 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11610 | case $CP in |
| 11611 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11612 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11613 | ;; |
| 11614 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11616 | for as_dir in $PATH |
| 11617 | do |
| 11618 | IFS=$as_save_IFS |
| 11619 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11620 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11621 | 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] | 11622 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11623 | $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] | 11624 | break 2 |
| 11625 | fi |
| 11626 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11627 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11628 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11629 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11630 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11631 | ;; |
| 11632 | esac |
| 11633 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11634 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11635 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11637 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11638 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11640 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11641 | fi |
| 11642 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11643 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11644 | # Extract the first word of "rm", so it can be a program name with args. |
| 11645 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11646 | { $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] | 11647 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11648 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11649 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11650 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11651 | case $RM in |
| 11652 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11653 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11654 | ;; |
| 11655 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11657 | for as_dir in $PATH |
| 11658 | do |
| 11659 | IFS=$as_save_IFS |
| 11660 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11661 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11662 | 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] | 11663 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11664 | $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] | 11665 | break 2 |
| 11666 | fi |
| 11667 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11668 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11669 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11670 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11671 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11672 | ;; |
| 11673 | esac |
| 11674 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11675 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11676 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11678 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11679 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11681 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11682 | fi |
| 11683 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11684 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11685 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11686 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11687 | { $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] | 11688 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11689 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11690 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11691 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11692 | case $CHMOD in |
| 11693 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11694 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11695 | ;; |
| 11696 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11698 | for as_dir in $PATH |
| 11699 | do |
| 11700 | IFS=$as_save_IFS |
| 11701 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11702 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11703 | 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] | 11704 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11705 | $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] | 11706 | break 2 |
| 11707 | fi |
| 11708 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11709 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11710 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11711 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11712 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11713 | ;; |
| 11714 | esac |
| 11715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11716 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11717 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11719 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11720 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11722 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11723 | fi |
| 11724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11725 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11726 | for ac_prog in gawk mawk nawk awk |
| 11727 | do |
| 11728 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11729 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11730 | { $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] | 11731 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11732 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11733 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11734 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11735 | if test -n "$AWK"; then |
| 11736 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11737 | else |
| 11738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11739 | for as_dir in $PATH |
| 11740 | do |
| 11741 | IFS=$as_save_IFS |
| 11742 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11744 | 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] | 11745 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11746 | $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] | 11747 | break 2 |
| 11748 | fi |
| 11749 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11750 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11751 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11752 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11753 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11754 | fi |
| 11755 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11756 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11758 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11759 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11761 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11762 | fi |
| 11763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11764 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11765 | test -n "$AWK" && break |
| 11766 | done |
| 11767 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11769 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11770 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11771 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11772 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11773 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11774 | then ac_cv_path_EGREP="$GREP -E" |
| 11775 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11776 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11777 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11778 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11780 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11781 | do |
| 11782 | IFS=$as_save_IFS |
| 11783 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11784 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11786 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11787 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11788 | # 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] | 11789 | # Check for GNU $ac_path_EGREP |
| 11790 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11791 | *GNU*) |
| 11792 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11793 | *) |
| 11794 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11795 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11796 | while : |
| 11797 | do |
| 11798 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11799 | mv "conftest.tmp" "conftest.in" |
| 11800 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11801 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11802 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11803 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11804 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11805 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11806 | # Best one so far, save it but keep looking for a better one |
| 11807 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11808 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11809 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11810 | # 10*(2^10) chars as input seems more than enough |
| 11811 | test $ac_count -gt 10 && break |
| 11812 | done |
| 11813 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11814 | esac |
| 11815 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11816 | $ac_path_EGREP_found && break 3 |
| 11817 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11818 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11819 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11820 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11821 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11822 | 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] | 11823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11824 | else |
| 11825 | ac_cv_path_EGREP=$EGREP |
| 11826 | fi |
| 11827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | fi |
| 11829 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11830 | { $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] | 11831 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11832 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11833 | |
| 11834 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11835 | # Extract the first word of "sed", so it can be a program name with args. |
| 11836 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11837 | { $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] | 11838 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11839 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11840 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11841 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11842 | case $SED in |
| 11843 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11844 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11845 | ;; |
| 11846 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11848 | for as_dir in $PATH |
| 11849 | do |
| 11850 | IFS=$as_save_IFS |
| 11851 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11852 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11853 | 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] | 11854 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11855 | $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] | 11856 | break 2 |
| 11857 | fi |
| 11858 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11859 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11860 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11861 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11862 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11863 | ;; |
| 11864 | esac |
| 11865 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11866 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11867 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11869 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11870 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11872 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11873 | fi |
| 11874 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11875 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11876 | # Extract the first word of "perl", so it can be a program name with args. |
| 11877 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11878 | { $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] | 11879 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11880 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11881 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11882 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11883 | case $PERL in |
| 11884 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11885 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11886 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11887 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11889 | for as_dir in $PATH |
| 11890 | do |
| 11891 | IFS=$as_save_IFS |
| 11892 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11893 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11894 | 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] | 11895 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11896 | $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] | 11897 | break 2 |
| 11898 | fi |
| 11899 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11900 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11901 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11903 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11904 | ;; |
| 11905 | esac |
| 11906 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11907 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11908 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11910 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11911 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11913 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11914 | fi |
| 11915 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11916 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11917 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11918 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11919 | { $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] | 11920 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11921 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11922 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11923 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11924 | case $LDCONFIG in |
| 11925 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11926 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11927 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11928 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11930 | for as_dir in $PATH |
| 11931 | do |
| 11932 | IFS=$as_save_IFS |
| 11933 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11934 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11935 | 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] | 11936 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11937 | $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] | 11938 | break 2 |
| 11939 | fi |
| 11940 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11941 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11942 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11944 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11945 | ;; |
| 11946 | esac |
| 11947 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11948 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11949 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11951 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11952 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11954 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11955 | fi |
| 11956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11957 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11958 | if test -n "$ac_tool_prefix"; then |
| 11959 | # 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] | 11960 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11961 | { $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] | 11962 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11963 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11964 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11965 | else |
| 11966 | if test -n "$AR"; then |
| 11967 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11968 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11970 | for as_dir in $PATH |
| 11971 | do |
| 11972 | IFS=$as_save_IFS |
| 11973 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11974 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11975 | 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] | 11976 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11977 | $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] | 11978 | break 2 |
| 11979 | fi |
| 11980 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11981 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11982 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11983 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11984 | fi |
| 11985 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11986 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11987 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11989 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11990 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11992 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11993 | fi |
| 11994 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11997 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11998 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11999 | # Extract the first word of "ar", so it can be a program name with args. |
| 12000 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12001 | { $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] | 12002 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12003 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12004 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12005 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12006 | if test -n "$ac_ct_AR"; then |
| 12007 | 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] | 12008 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12010 | for as_dir in $PATH |
| 12011 | do |
| 12012 | IFS=$as_save_IFS |
| 12013 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12015 | 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] | 12016 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12017 | $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] | 12018 | break 2 |
| 12019 | fi |
| 12020 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12021 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12022 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12024 | fi |
| 12025 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12026 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12027 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12028 | { $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] | 12029 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12030 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12032 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12033 | fi |
| 12034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | if test "x$ac_ct_AR" = x; then |
| 12036 | AR="ar" |
| 12037 | else |
| 12038 | case $cross_compiling:$ac_tool_warned in |
| 12039 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12040 | { $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] | 12041 | $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] | 12042 | ac_tool_warned=yes ;; |
| 12043 | esac |
| 12044 | AR=$ac_ct_AR |
| 12045 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12046 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12047 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12048 | fi |
| 12049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12050 | if test -n "$ac_tool_prefix"; then |
| 12051 | # 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] | 12052 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12053 | { $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] | 12054 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12055 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12056 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12057 | else |
| 12058 | if test -n "$RANLIB"; then |
| 12059 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12060 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12062 | for as_dir in $PATH |
| 12063 | do |
| 12064 | IFS=$as_save_IFS |
| 12065 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12066 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12067 | 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] | 12068 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12069 | $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] | 12070 | break 2 |
| 12071 | fi |
| 12072 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12073 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12074 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12075 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12076 | fi |
| 12077 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12078 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12079 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12081 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12082 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12084 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12085 | fi |
| 12086 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12089 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12090 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12091 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12092 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12093 | { $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] | 12094 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12095 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12096 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12097 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12098 | if test -n "$ac_ct_RANLIB"; then |
| 12099 | 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] | 12100 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12102 | for as_dir in $PATH |
| 12103 | do |
| 12104 | IFS=$as_save_IFS |
| 12105 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12107 | 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] | 12108 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12109 | $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] | 12110 | break 2 |
| 12111 | fi |
| 12112 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12113 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12114 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12115 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12116 | fi |
| 12117 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12118 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12119 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12120 | { $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] | 12121 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12122 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12124 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12125 | fi |
| 12126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12127 | if test "x$ac_ct_RANLIB" = x; then |
| 12128 | RANLIB=":" |
| 12129 | else |
| 12130 | case $cross_compiling:$ac_tool_warned in |
| 12131 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12132 | { $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] | 12133 | $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] | 12134 | ac_tool_warned=yes ;; |
| 12135 | esac |
| 12136 | RANLIB=$ac_ct_RANLIB |
| 12137 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12139 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12140 | fi |
| 12141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12142 | if test -n "$ac_tool_prefix"; then |
| 12143 | # 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] | 12144 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12145 | { $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] | 12146 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12147 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12148 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12149 | else |
| 12150 | if test -n "$STRIP"; then |
| 12151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12152 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12154 | for as_dir in $PATH |
| 12155 | do |
| 12156 | IFS=$as_save_IFS |
| 12157 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12158 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12159 | 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] | 12160 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12161 | $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] | 12162 | break 2 |
| 12163 | fi |
| 12164 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12165 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12167 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12168 | fi |
| 12169 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12170 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12171 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12173 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12174 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12176 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12177 | fi |
| 12178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12180 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12181 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12182 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12183 | # Extract the first word of "strip", so it can be a program name with args. |
| 12184 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12185 | { $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] | 12186 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12187 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12188 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | if test -n "$ac_ct_STRIP"; then |
| 12191 | 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] | 12192 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12194 | for as_dir in $PATH |
| 12195 | do |
| 12196 | IFS=$as_save_IFS |
| 12197 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12198 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12199 | 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] | 12200 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12201 | $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] | 12202 | break 2 |
| 12203 | fi |
| 12204 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12205 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12206 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12207 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12208 | fi |
| 12209 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12210 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12211 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12212 | { $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] | 12213 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12214 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12216 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12217 | fi |
| 12218 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12219 | if test "x$ac_ct_STRIP" = x; then |
| 12220 | STRIP=":" |
| 12221 | else |
| 12222 | case $cross_compiling:$ac_tool_warned in |
| 12223 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12224 | { $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] | 12225 | $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] | 12226 | ac_tool_warned=yes ;; |
| 12227 | esac |
| 12228 | STRIP=$ac_ct_STRIP |
| 12229 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12230 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12231 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12232 | fi |
| 12233 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12234 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12235 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12236 | { $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] | 12237 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12238 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12239 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12240 | else |
| 12241 | if test -n "$MAKEINFO"; then |
| 12242 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12243 | else |
| 12244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12245 | for as_dir in $PATH |
| 12246 | do |
| 12247 | IFS=$as_save_IFS |
| 12248 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12249 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12250 | 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] | 12251 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12252 | $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] | 12253 | break 2 |
| 12254 | fi |
| 12255 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12256 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12257 | IFS=$as_save_IFS |
| 12258 | |
| 12259 | fi |
| 12260 | fi |
| 12261 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12262 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12264 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12265 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12267 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12268 | fi |
| 12269 | |
| 12270 | |
| 12271 | if test "_$MAKEINFO" = "_"; then |
| 12272 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12273 | else |
| 12274 | case "$MAKEINFO" in |
| 12275 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12277 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12278 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12279 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12280 | ;; |
| 12281 | *) |
| 12282 | ;; |
| 12283 | esac |
| 12284 | fi |
| 12285 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12286 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12287 | # See if we need a separate native compiler. |
| 12288 | if test $cross_compiling = no; then |
| 12289 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12290 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12291 | else |
| 12292 | for ac_prog in gcc cc |
| 12293 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12294 | # 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] | 12295 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12296 | { $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] | 12297 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12298 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12299 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12300 | else |
| 12301 | if test -n "$BUILD_CC"; then |
| 12302 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12303 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12305 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12306 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12307 | IFS=$as_save_IFS |
| 12308 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12309 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12310 | 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] | 12311 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12312 | $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] | 12313 | break 2 |
| 12314 | fi |
| 12315 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12316 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12317 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12318 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12319 | fi |
| 12320 | fi |
| 12321 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12322 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12324 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12325 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12327 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12328 | fi |
| 12329 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12330 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12331 | test -n "$BUILD_CC" && break |
| 12332 | done |
| 12333 | |
| 12334 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 12335 | 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] | 12336 | do : |
| 12337 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12338 | 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] | 12339 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12340 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12341 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12342 | _ACEOF |
| 12343 | |
| 12344 | fi |
| 12345 | |
| 12346 | done |
| 12347 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12348 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12349 | do : |
| 12350 | 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] | 12351 | #if HAVE_SYS_TYPES_H |
| 12352 | #include <sys/types.h> |
| 12353 | #endif |
| 12354 | #if HAVE_SYS_SOCKET |
| 12355 | #include <sys/socket.h> |
| 12356 | #endif |
| 12357 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12358 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12359 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12360 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12361 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12362 | _ACEOF |
| 12363 | |
| 12364 | fi |
| 12365 | |
| 12366 | done |
| 12367 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12368 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12369 | do : |
| 12370 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12371 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12372 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12373 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12374 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12375 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12376 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12377 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12378 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12379 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12380 | |
| 12381 | fi |
| 12382 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12383 | fi |
| 12384 | done |
| 12385 | |
| 12386 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12387 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12388 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12389 | 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] | 12390 | |
| 12391 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12392 | |
| 12393 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12394 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12395 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12396 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12397 | |
| 12398 | cat >>confdefs.h <<_ACEOF |
| 12399 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12400 | _ACEOF |
| 12401 | |
| 12402 | |
| 12403 | fi |
| 12404 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12405 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12406 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12407 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12408 | |
| 12409 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12410 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12411 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12413 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12414 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12415 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12416 | |
| 12417 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12418 | |
| 12419 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12421 | 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] | 12422 | #define _LARGEFILE64_SOURCE |
| 12423 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12424 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12425 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12426 | |
| 12427 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12428 | |
| 12429 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12430 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12431 | # The cast to long int works around a bug in the HP C Compiler |
| 12432 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12433 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12434 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12435 | { $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] | 12436 | $as_echo_n "checking size of short... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12437 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12438 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12439 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12440 | 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] | 12441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12442 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12443 | if test "$ac_cv_type_short" = yes; then |
| 12444 | { { $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] | 12445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12446 | as_fn_error 77 "cannot compute sizeof (short) |
| 12447 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12448 | else |
| 12449 | ac_cv_sizeof_short=0 |
| 12450 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12451 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12453 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12454 | { $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] | 12455 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12456 | |
| 12457 | |
| 12458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12460 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12461 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12462 | |
| 12463 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12464 | # The cast to long int works around a bug in the HP C Compiler |
| 12465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12467 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12468 | { $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] | 12469 | $as_echo_n "checking size of int... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12470 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12471 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12472 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12473 | 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] | 12474 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12475 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12476 | if test "$ac_cv_type_int" = yes; then |
| 12477 | { { $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] | 12478 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12479 | as_fn_error 77 "cannot compute sizeof (int) |
| 12480 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12481 | else |
| 12482 | ac_cv_sizeof_int=0 |
| 12483 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12484 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12486 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12487 | { $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] | 12488 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12489 | |
| 12490 | |
| 12491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12492 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12493 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12494 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12495 | |
| 12496 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12497 | # The cast to long int works around a bug in the HP C Compiler |
| 12498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12500 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12501 | { $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] | 12502 | $as_echo_n "checking size of long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12503 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12504 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12506 | 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] | 12507 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12508 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12509 | if test "$ac_cv_type_long" = yes; then |
| 12510 | { { $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] | 12511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12512 | as_fn_error 77 "cannot compute sizeof (long) |
| 12513 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12514 | else |
| 12515 | ac_cv_sizeof_long=0 |
| 12516 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12517 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12520 | { $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] | 12521 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12522 | |
| 12523 | |
| 12524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12525 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12526 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12527 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12528 | |
| 12529 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12530 | # The cast to long int works around a bug in the HP C Compiler |
| 12531 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12532 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12533 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12534 | { $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] | 12535 | $as_echo_n "checking size of long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12536 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12537 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12538 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12539 | 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] | 12540 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12542 | if test "$ac_cv_type_long_long" = yes; then |
| 12543 | { { $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] | 12544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12545 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12546 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12547 | else |
| 12548 | ac_cv_sizeof_long_long=0 |
| 12549 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12550 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12552 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12553 | { $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] | 12554 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12555 | |
| 12556 | |
| 12557 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12558 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12559 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12560 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12561 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12562 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12563 | # The cast to long int works around a bug in the HP C Compiler |
| 12564 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12565 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12566 | # This bug is HP SR number 8606223364. |
| 12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12568 | $as_echo_n "checking size of off_t... " >&6; } |
| 12569 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12570 | $as_echo_n "(cached) " >&6 |
| 12571 | else |
| 12572 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12573 | |
| 12574 | else |
| 12575 | if test "$ac_cv_type_off_t" = yes; then |
| 12576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12578 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12579 | See \`config.log' for more details" "$LINENO" 5; } |
| 12580 | else |
| 12581 | ac_cv_sizeof_off_t=0 |
| 12582 | fi |
| 12583 | fi |
| 12584 | |
| 12585 | fi |
| 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12587 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12588 | |
| 12589 | |
| 12590 | |
| 12591 | cat >>confdefs.h <<_ACEOF |
| 12592 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12593 | _ACEOF |
| 12594 | |
| 12595 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12596 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12597 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12598 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12599 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12600 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 12601 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12602 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12603 | |
| 12604 | |
| 12605 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12606 | { $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] | 12607 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12608 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12609 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12610 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12611 | ac_cv_c_bigendian=unknown |
| 12612 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12614 | /* end confdefs.h. */ |
| 12615 | #ifndef __APPLE_CC__ |
| 12616 | not a universal capable compiler |
| 12617 | #endif |
| 12618 | typedef int dummy; |
| 12619 | |
| 12620 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12621 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12622 | |
| 12623 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12624 | # there are at least two -arch flags with different values. |
| 12625 | ac_arch= |
| 12626 | ac_prev= |
| 12627 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12628 | if test -n "$ac_prev"; then |
| 12629 | case $ac_word in |
| 12630 | i?86 | x86_64 | ppc | ppc64) |
| 12631 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12632 | ac_arch=$ac_word |
| 12633 | else |
| 12634 | ac_cv_c_bigendian=universal |
| 12635 | break |
| 12636 | fi |
| 12637 | ;; |
| 12638 | esac |
| 12639 | ac_prev= |
| 12640 | elif test "x$ac_word" = "x-arch"; then |
| 12641 | ac_prev=arch |
| 12642 | fi |
| 12643 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12644 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12646 | if test $ac_cv_c_bigendian = unknown; then |
| 12647 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12649 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12650 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12651 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12652 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12653 | int |
| 12654 | main () |
| 12655 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12656 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12657 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12658 | && LITTLE_ENDIAN) |
| 12659 | bogus endian macros |
| 12660 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12661 | |
| 12662 | ; |
| 12663 | return 0; |
| 12664 | } |
| 12665 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12666 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12667 | # 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] | 12668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12669 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12670 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12671 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12672 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12673 | int |
| 12674 | main () |
| 12675 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12676 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12677 | not big endian |
| 12678 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12679 | |
| 12680 | ; |
| 12681 | return 0; |
| 12682 | } |
| 12683 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12684 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12685 | ac_cv_c_bigendian=yes |
| 12686 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12687 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12688 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12690 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12692 | fi |
| 12693 | if test $ac_cv_c_bigendian = unknown; then |
| 12694 | # 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] | 12695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12696 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12697 | #include <limits.h> |
| 12698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12699 | int |
| 12700 | main () |
| 12701 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12702 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12703 | bogus endian macros |
| 12704 | #endif |
| 12705 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12706 | ; |
| 12707 | return 0; |
| 12708 | } |
| 12709 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12710 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12711 | # 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] | 12712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12713 | /* end confdefs.h. */ |
| 12714 | #include <limits.h> |
| 12715 | |
| 12716 | int |
| 12717 | main () |
| 12718 | { |
| 12719 | #ifndef _BIG_ENDIAN |
| 12720 | not big endian |
| 12721 | #endif |
| 12722 | |
| 12723 | ; |
| 12724 | return 0; |
| 12725 | } |
| 12726 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12727 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12728 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12729 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12730 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12731 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12733 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12735 | fi |
| 12736 | if test $ac_cv_c_bigendian = unknown; then |
| 12737 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12738 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12739 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12741 | /* end confdefs.h. */ |
| 12742 | short int ascii_mm[] = |
| 12743 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12744 | short int ascii_ii[] = |
| 12745 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12746 | int use_ascii (int i) { |
| 12747 | return ascii_mm[i] + ascii_ii[i]; |
| 12748 | } |
| 12749 | short int ebcdic_ii[] = |
| 12750 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12751 | short int ebcdic_mm[] = |
| 12752 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12753 | int use_ebcdic (int i) { |
| 12754 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12755 | } |
| 12756 | extern int foo; |
| 12757 | |
| 12758 | int |
| 12759 | main () |
| 12760 | { |
| 12761 | return use_ascii (foo) == use_ebcdic (foo); |
| 12762 | ; |
| 12763 | return 0; |
| 12764 | } |
| 12765 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12766 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12767 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12768 | ac_cv_c_bigendian=yes |
| 12769 | fi |
| 12770 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12771 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12772 | ac_cv_c_bigendian=no |
| 12773 | else |
| 12774 | # finding both strings is unlikely to happen, but who knows? |
| 12775 | ac_cv_c_bigendian=unknown |
| 12776 | fi |
| 12777 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12778 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12780 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12782 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12783 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12784 | int |
| 12785 | main () |
| 12786 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12787 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12788 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12789 | union |
| 12790 | { |
| 12791 | long int l; |
| 12792 | char c[sizeof (long int)]; |
| 12793 | } u; |
| 12794 | u.l = 1; |
| 12795 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12796 | |
| 12797 | ; |
| 12798 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12799 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12800 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12801 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12802 | ac_cv_c_bigendian=no |
| 12803 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12804 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12807 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12809 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12810 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12811 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12812 | { $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] | 12813 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12814 | case $ac_cv_c_bigendian in #( |
| 12815 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12816 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12817 | ;; #( |
| 12818 | no) |
| 12819 | ;; #( |
| 12820 | universal) |
| 12821 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12822 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12823 | |
| 12824 | ;; #( |
| 12825 | *) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12826 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12827 | 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] | 12828 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12829 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12830 | if test $cross_compiling = no; then |
| 12831 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12832 | else |
| 12833 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12834 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12835 | ASM_TYPES_HEADER=./asm_types.h |
| 12836 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 12837 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 12838 | > public_config.h |
| 12839 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 12840 | uniq tmp_config.$$ >> public_config.h |
| 12841 | else |
| 12842 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 12843 | fi |
| 12844 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 12845 | uniq tmp_config.$$ >> public_config.h |
| 12846 | else |
| 12847 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 12848 | fi |
| 12849 | rm -f tmp_config.$$ |
| 12850 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 12851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12852 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12853 | do : |
| 12854 | 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] | 12855 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12856 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12857 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12858 | _ACEOF |
| 12859 | |
| 12860 | fi |
| 12861 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 12862 | done |
| 12863 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12864 | 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] | 12865 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12866 | |
| 12867 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12868 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12869 | _ACEOF |
| 12870 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12872 | fi |
| 12873 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12874 | { $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] | 12875 | $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] | 12876 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12877 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12880 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12881 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12882 | int |
| 12883 | main () |
| 12884 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12885 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12886 | ; |
| 12887 | return 0; |
| 12888 | } |
| 12889 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12890 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12891 | e2fsprogs_cv_struct_st_flags=yes |
| 12892 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12893 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12894 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12896 | fi |
| 12897 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12898 | { $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] | 12899 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12900 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12901 | { $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] | 12902 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12903 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12904 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12905 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12907 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12908 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12909 | int |
| 12910 | main () |
| 12911 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12912 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12913 | ; |
| 12914 | return 0; |
| 12915 | } |
| 12916 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12917 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12918 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 12919 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12920 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12923 | fi |
| 12924 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12925 | { $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] | 12926 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12927 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12928 | |
| 12929 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12930 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12931 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12932 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12933 | 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] | 12934 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12935 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12936 | 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] | 12937 | |
| 12938 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12939 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12940 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12941 | |
| 12942 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12944 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12945 | { $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] | 12946 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12947 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12948 | $as_echo_n "(cached) " >&6 |
| 12949 | else |
| 12950 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12952 | /* end confdefs.h. */ |
| 12953 | |
| 12954 | /* Override any GCC internal prototype to avoid an error. |
| 12955 | Use char because int might match the return type of a GCC |
| 12956 | builtin and then its argument prototype would still apply. */ |
| 12957 | #ifdef __cplusplus |
| 12958 | extern "C" |
| 12959 | #endif |
| 12960 | char blkid_probe_all (); |
| 12961 | int |
| 12962 | main () |
| 12963 | { |
| 12964 | return blkid_probe_all (); |
| 12965 | ; |
| 12966 | return 0; |
| 12967 | } |
| 12968 | _ACEOF |
| 12969 | for ac_lib in '' blkid; do |
| 12970 | if test -z "$ac_lib"; then |
| 12971 | ac_res="none required" |
| 12972 | else |
| 12973 | ac_res=-l$ac_lib |
| 12974 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12975 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12976 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12977 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12978 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12979 | rm -f core conftest.err conftest.$ac_objext \ |
| 12980 | conftest$ac_exeext |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12981 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12982 | break |
| 12983 | fi |
| 12984 | done |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12985 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12986 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12987 | else |
| 12988 | ac_cv_search_blkid_probe_all=no |
| 12989 | fi |
| 12990 | rm conftest.$ac_ext |
| 12991 | LIBS=$ac_func_search_save_LIBS |
| 12992 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12993 | { $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] | 12994 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 12995 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12996 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12997 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12998 | |
| 12999 | fi |
| 13000 | |
| 13001 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 13002 | 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] | 13003 | do : |
| 13004 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13005 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13006 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13007 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13008 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13009 | _ACEOF |
| 13010 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13011 | fi |
| 13012 | done |
| 13013 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13014 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13015 | { $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] | 13016 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13017 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13018 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13020 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13021 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13023 | /* end confdefs.h. */ |
| 13024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13025 | /* Override any GCC internal prototype to avoid an error. |
| 13026 | Use char because int might match the return type of a GCC |
| 13027 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13028 | #ifdef __cplusplus |
| 13029 | extern "C" |
| 13030 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13031 | char socket (); |
| 13032 | int |
| 13033 | main () |
| 13034 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13035 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | ; |
| 13037 | return 0; |
| 13038 | } |
| 13039 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13040 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13041 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13042 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13043 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13044 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13045 | rm -f core conftest.err conftest.$ac_objext \ |
| 13046 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13047 | LIBS=$ac_check_lib_save_LIBS |
| 13048 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13049 | { $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] | 13050 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13051 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13052 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13053 | fi |
| 13054 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13055 | |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
| 13057 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } |
| 13058 | if ${ac_cv_lib_magic_magic_file+:} false; then : |
| 13059 | $as_echo_n "(cached) " >&6 |
| 13060 | else |
| 13061 | ac_check_lib_save_LIBS=$LIBS |
| 13062 | LIBS="-lmagic $LIBS" |
| 13063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13064 | /* end confdefs.h. */ |
| 13065 | |
| 13066 | /* Override any GCC internal prototype to avoid an error. |
| 13067 | Use char because int might match the return type of a GCC |
| 13068 | builtin and then its argument prototype would still apply. */ |
| 13069 | #ifdef __cplusplus |
| 13070 | extern "C" |
| 13071 | #endif |
| 13072 | char magic_file (); |
| 13073 | int |
| 13074 | main () |
| 13075 | { |
| 13076 | return magic_file (); |
| 13077 | ; |
| 13078 | return 0; |
| 13079 | } |
| 13080 | _ACEOF |
| 13081 | if ac_fn_c_try_link "$LINENO"; then : |
| 13082 | ac_cv_lib_magic_magic_file=yes |
| 13083 | else |
| 13084 | ac_cv_lib_magic_magic_file=no |
| 13085 | fi |
| 13086 | rm -f core conftest.err conftest.$ac_objext \ |
| 13087 | conftest$ac_exeext conftest.$ac_ext |
| 13088 | LIBS=$ac_check_lib_save_LIBS |
| 13089 | fi |
| 13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
| 13091 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } |
| 13092 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : |
| 13093 | MAGIC_LIB=-lmagic |
| 13094 | for ac_header in magic.h |
| 13095 | do : |
| 13096 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
| 13097 | if test "x$ac_cv_header_magic_h" = xyes; then : |
| 13098 | cat >>confdefs.h <<_ACEOF |
| 13099 | #define HAVE_MAGIC_H 1 |
| 13100 | _ACEOF |
| 13101 | |
| 13102 | fi |
| 13103 | |
| 13104 | done |
| 13105 | |
| 13106 | fi |
| 13107 | |
Theodore Ts'o | d2e3c0d | 2014-09-21 01:25:58 -0400 | [diff] [blame] | 13108 | if test "$ac_cv_lib_dl_dlopen" = yes ; then |
| 13109 | MAGIC_LIB=$DLOPEN_LIB |
| 13110 | fi |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13111 | |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 13112 | FUSE_CMT= |
| 13113 | FUSE_LIB= |
| 13114 | # Check whether --enable-fuse2fs was given. |
| 13115 | if test "${enable_fuse2fs+set}" = set; then : |
| 13116 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
| 13117 | then |
| 13118 | FUSE_CMT="#" |
| 13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
| 13120 | $as_echo "Disabling fuse2fs" >&6; } |
| 13121 | else |
| 13122 | for ac_header in pthread.h fuse.h |
| 13123 | do : |
| 13124 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13125 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13126 | #define FUSE_USE_VERSION 29 |
| 13127 | " |
| 13128 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13129 | cat >>confdefs.h <<_ACEOF |
| 13130 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13131 | _ACEOF |
| 13132 | |
| 13133 | else |
| 13134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13136 | as_fn_error $? "Cannot find fuse2fs headers. |
| 13137 | See \`config.log' for more details" "$LINENO" 5; } |
| 13138 | fi |
| 13139 | |
| 13140 | done |
| 13141 | |
| 13142 | |
| 13143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13144 | /* end confdefs.h. */ |
| 13145 | #define FUSE_USE_VERSION 29 |
| 13146 | #ifdef __linux__ |
| 13147 | #include <linux/fs.h> |
| 13148 | #include <linux/falloc.h> |
| 13149 | #include <linux/xattr.h> |
| 13150 | #endif |
| 13151 | |
| 13152 | int |
| 13153 | main () |
| 13154 | { |
| 13155 | |
| 13156 | ; |
| 13157 | return 0; |
| 13158 | } |
| 13159 | _ACEOF |
| 13160 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 13161 | |
| 13162 | else |
| 13163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13165 | as_fn_error $? "Cannot find fuse2fs Linux headers. |
| 13166 | See \`config.log' for more details" "$LINENO" 5; } |
| 13167 | fi |
| 13168 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13169 | |
| 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13171 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13172 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13173 | $as_echo_n "(cached) " >&6 |
| 13174 | else |
| 13175 | ac_check_lib_save_LIBS=$LIBS |
| 13176 | LIBS="-losxfuse $LIBS" |
| 13177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13178 | /* end confdefs.h. */ |
| 13179 | |
| 13180 | /* Override any GCC internal prototype to avoid an error. |
| 13181 | Use char because int might match the return type of a GCC |
| 13182 | builtin and then its argument prototype would still apply. */ |
| 13183 | #ifdef __cplusplus |
| 13184 | extern "C" |
| 13185 | #endif |
| 13186 | char fuse_main (); |
| 13187 | int |
| 13188 | main () |
| 13189 | { |
| 13190 | return fuse_main (); |
| 13191 | ; |
| 13192 | return 0; |
| 13193 | } |
| 13194 | _ACEOF |
| 13195 | if ac_fn_c_try_link "$LINENO"; then : |
| 13196 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13197 | else |
| 13198 | ac_cv_lib_osxfuse_fuse_main=no |
| 13199 | fi |
| 13200 | rm -f core conftest.err conftest.$ac_objext \ |
| 13201 | conftest$ac_exeext conftest.$ac_ext |
| 13202 | LIBS=$ac_check_lib_save_LIBS |
| 13203 | fi |
| 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13205 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13206 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13207 | FUSE_LIB=-losxfuse |
| 13208 | else |
| 13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13210 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13211 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13212 | $as_echo_n "(cached) " >&6 |
| 13213 | else |
| 13214 | ac_check_lib_save_LIBS=$LIBS |
| 13215 | LIBS="-lfuse $LIBS" |
| 13216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13217 | /* end confdefs.h. */ |
| 13218 | |
| 13219 | /* Override any GCC internal prototype to avoid an error. |
| 13220 | Use char because int might match the return type of a GCC |
| 13221 | builtin and then its argument prototype would still apply. */ |
| 13222 | #ifdef __cplusplus |
| 13223 | extern "C" |
| 13224 | #endif |
| 13225 | char fuse_main (); |
| 13226 | int |
| 13227 | main () |
| 13228 | { |
| 13229 | return fuse_main (); |
| 13230 | ; |
| 13231 | return 0; |
| 13232 | } |
| 13233 | _ACEOF |
| 13234 | if ac_fn_c_try_link "$LINENO"; then : |
| 13235 | ac_cv_lib_fuse_fuse_main=yes |
| 13236 | else |
| 13237 | ac_cv_lib_fuse_fuse_main=no |
| 13238 | fi |
| 13239 | rm -f core conftest.err conftest.$ac_objext \ |
| 13240 | conftest$ac_exeext conftest.$ac_ext |
| 13241 | LIBS=$ac_check_lib_save_LIBS |
| 13242 | fi |
| 13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13244 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13245 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13246 | FUSE_LIB=-lfuse |
| 13247 | else |
| 13248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13250 | as_fn_error $? "Cannot find fuse library. |
| 13251 | See \`config.log' for more details" "$LINENO" 5; } |
| 13252 | fi |
| 13253 | |
| 13254 | fi |
| 13255 | |
| 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
| 13257 | $as_echo "Enabling fuse2fs" >&6; } |
| 13258 | fi |
| 13259 | |
| 13260 | else |
| 13261 | for ac_header in pthread.h fuse.h |
| 13262 | do : |
| 13263 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13264 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13265 | #define FUSE_USE_VERSION 29 |
| 13266 | #ifdef __linux__ |
| 13267 | # include <linux/fs.h> |
| 13268 | # include <linux/falloc.h> |
| 13269 | # include <linux/xattr.h> |
| 13270 | #endif |
| 13271 | " |
| 13272 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13273 | cat >>confdefs.h <<_ACEOF |
| 13274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13275 | _ACEOF |
| 13276 | |
| 13277 | else |
| 13278 | FUSE_CMT="#" |
| 13279 | fi |
| 13280 | |
| 13281 | done |
| 13282 | |
| 13283 | if test -z "$FUSE_CMT" |
| 13284 | then |
| 13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13286 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13287 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13288 | $as_echo_n "(cached) " >&6 |
| 13289 | else |
| 13290 | ac_check_lib_save_LIBS=$LIBS |
| 13291 | LIBS="-losxfuse $LIBS" |
| 13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13293 | /* end confdefs.h. */ |
| 13294 | |
| 13295 | /* Override any GCC internal prototype to avoid an error. |
| 13296 | Use char because int might match the return type of a GCC |
| 13297 | builtin and then its argument prototype would still apply. */ |
| 13298 | #ifdef __cplusplus |
| 13299 | extern "C" |
| 13300 | #endif |
| 13301 | char fuse_main (); |
| 13302 | int |
| 13303 | main () |
| 13304 | { |
| 13305 | return fuse_main (); |
| 13306 | ; |
| 13307 | return 0; |
| 13308 | } |
| 13309 | _ACEOF |
| 13310 | if ac_fn_c_try_link "$LINENO"; then : |
| 13311 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13312 | else |
| 13313 | ac_cv_lib_osxfuse_fuse_main=no |
| 13314 | fi |
| 13315 | rm -f core conftest.err conftest.$ac_objext \ |
| 13316 | conftest$ac_exeext conftest.$ac_ext |
| 13317 | LIBS=$ac_check_lib_save_LIBS |
| 13318 | fi |
| 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13320 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13321 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13322 | FUSE_LIB=-losxfuse |
| 13323 | else |
| 13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13325 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13326 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13327 | $as_echo_n "(cached) " >&6 |
| 13328 | else |
| 13329 | ac_check_lib_save_LIBS=$LIBS |
| 13330 | LIBS="-lfuse $LIBS" |
| 13331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13332 | /* end confdefs.h. */ |
| 13333 | |
| 13334 | /* Override any GCC internal prototype to avoid an error. |
| 13335 | Use char because int might match the return type of a GCC |
| 13336 | builtin and then its argument prototype would still apply. */ |
| 13337 | #ifdef __cplusplus |
| 13338 | extern "C" |
| 13339 | #endif |
| 13340 | char fuse_main (); |
| 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | return fuse_main (); |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | if ac_fn_c_try_link "$LINENO"; then : |
| 13350 | ac_cv_lib_fuse_fuse_main=yes |
| 13351 | else |
| 13352 | ac_cv_lib_fuse_fuse_main=no |
| 13353 | fi |
| 13354 | rm -f core conftest.err conftest.$ac_objext \ |
| 13355 | conftest$ac_exeext conftest.$ac_ext |
| 13356 | LIBS=$ac_check_lib_save_LIBS |
| 13357 | fi |
| 13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13359 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13360 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13361 | FUSE_LIB=-lfuse |
| 13362 | else |
| 13363 | FUSE_CMT="#" |
| 13364 | fi |
| 13365 | |
| 13366 | fi |
| 13367 | |
| 13368 | fi |
| 13369 | if test -z "$FUSE_CMT" |
| 13370 | then |
| 13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
| 13372 | $as_echo "Enabling fuse2fs by default." >&6; } |
| 13373 | fi |
| 13374 | |
| 13375 | fi |
| 13376 | |
| 13377 | |
| 13378 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13380 | $as_echo_n "checking for optreset... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13381 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13382 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13383 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13385 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13386 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13387 | |
| 13388 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13389 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13390 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13391 | ac_cv_have_optreset=yes |
| 13392 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13393 | ac_cv_have_optreset=no |
| 13394 | fi |
| 13395 | rm -f conftest* |
| 13396 | |
| 13397 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13398 | { $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] | 13399 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13400 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13401 | |
| 13402 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13403 | |
| 13404 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13405 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13406 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13407 | 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] | 13408 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13409 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13410 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13411 | { $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] | 13412 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13413 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13414 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13415 | else |
| 13416 | ac_check_lib_save_LIBS=$LIBS |
| 13417 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13419 | /* end confdefs.h. */ |
| 13420 | |
| 13421 | /* Override any GCC internal prototype to avoid an error. |
| 13422 | Use char because int might match the return type of a GCC |
| 13423 | builtin and then its argument prototype would still apply. */ |
| 13424 | #ifdef __cplusplus |
| 13425 | extern "C" |
| 13426 | #endif |
| 13427 | char sem_init (); |
| 13428 | int |
| 13429 | main () |
| 13430 | { |
| 13431 | return sem_init (); |
| 13432 | ; |
| 13433 | return 0; |
| 13434 | } |
| 13435 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13436 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13437 | ac_cv_lib_pthread_sem_init=yes |
| 13438 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13439 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13440 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13441 | rm -f core conftest.err conftest.$ac_objext \ |
| 13442 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13443 | LIBS=$ac_check_lib_save_LIBS |
| 13444 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13445 | { $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] | 13446 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13447 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13448 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13449 | |
| 13450 | SEM_INIT_LIB=-lpthread |
| 13451 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13452 | { $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] | 13453 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13454 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13455 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13456 | else |
| 13457 | ac_check_lib_save_LIBS=$LIBS |
| 13458 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13460 | /* end confdefs.h. */ |
| 13461 | |
| 13462 | /* Override any GCC internal prototype to avoid an error. |
| 13463 | Use char because int might match the return type of a GCC |
| 13464 | builtin and then its argument prototype would still apply. */ |
| 13465 | #ifdef __cplusplus |
| 13466 | extern "C" |
| 13467 | #endif |
| 13468 | char sem_init (); |
| 13469 | int |
| 13470 | main () |
| 13471 | { |
| 13472 | return sem_init (); |
| 13473 | ; |
| 13474 | return 0; |
| 13475 | } |
| 13476 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13477 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13478 | ac_cv_lib_rt_sem_init=yes |
| 13479 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13480 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13481 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13482 | rm -f core conftest.err conftest.$ac_objext \ |
| 13483 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13484 | LIBS=$ac_check_lib_save_LIBS |
| 13485 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13486 | { $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] | 13487 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13488 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13489 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13490 | |
| 13491 | SEM_INIT_LIB=-lrt |
| 13492 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13493 | { $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] | 13494 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13495 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13496 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13497 | else |
| 13498 | ac_check_lib_save_LIBS=$LIBS |
| 13499 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13501 | /* end confdefs.h. */ |
| 13502 | |
| 13503 | /* Override any GCC internal prototype to avoid an error. |
| 13504 | Use char because int might match the return type of a GCC |
| 13505 | builtin and then its argument prototype would still apply. */ |
| 13506 | #ifdef __cplusplus |
| 13507 | extern "C" |
| 13508 | #endif |
| 13509 | char sem_init (); |
| 13510 | int |
| 13511 | main () |
| 13512 | { |
| 13513 | return sem_init (); |
| 13514 | ; |
| 13515 | return 0; |
| 13516 | } |
| 13517 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13518 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13519 | ac_cv_lib_posix4_sem_init=yes |
| 13520 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13521 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13522 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13523 | rm -f core conftest.err conftest.$ac_objext \ |
| 13524 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13525 | LIBS=$ac_check_lib_save_LIBS |
| 13526 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13527 | { $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] | 13528 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13529 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13530 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13531 | |
| 13532 | SEM_INIT_LIB=-lposix4 |
| 13533 | fi |
| 13534 | |
| 13535 | fi |
| 13536 | |
| 13537 | fi |
| 13538 | |
| 13539 | fi |
| 13540 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13541 | { $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] | 13542 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13543 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13544 | UNI_DIFF_OPTS=-u |
| 13545 | else |
| 13546 | UNI_DIFF_OPTS=-c |
| 13547 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13548 | { $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] | 13549 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13550 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13551 | case "$host_os" in |
| 13552 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13553 | |
| 13554 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13555 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13556 | ;; |
| 13557 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13558 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13559 | CYGWIN_CMT="#" |
| 13560 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13561 | case "$host_os" in |
| 13562 | linux*) |
| 13563 | LINUX_CMT= |
| 13564 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13565 | cygwin) |
| 13566 | CYGWIN_CMT= |
| 13567 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13568 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13569 | esac |
| 13570 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13571 | |
| 13572 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13573 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13574 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13575 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13576 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13577 | { $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] | 13578 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13579 | fi |
| 13580 | ;; |
| 13581 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13582 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13583 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13584 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13585 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13586 | { $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] | 13587 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13588 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13589 | { $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] | 13590 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13591 | mandir=/usr/share/man |
| 13592 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13593 | fi |
| 13594 | ;; |
| 13595 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13596 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13597 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13598 | root_prefix="$ac_default_prefix" |
| 13599 | else |
| 13600 | root_prefix="$prefix" |
| 13601 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13602 | root_bindir=$bindir |
| 13603 | root_sbindir=$sbindir |
| 13604 | root_libdir=$libdir |
| 13605 | root_sysconfdir=$sysconfdir |
| 13606 | else |
| 13607 | root_bindir='${root_prefix}/bin' |
| 13608 | root_sbindir='${root_prefix}/sbin' |
| 13609 | root_libdir='${root_prefix}/lib' |
| 13610 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13611 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13612 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13613 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13614 | { $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] | 13615 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13616 | fi |
| 13617 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13618 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13619 | { $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] | 13620 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13621 | fi |
| 13622 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13623 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13624 | { $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] | 13625 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13626 | fi |
| 13627 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13628 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13629 | { $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] | 13630 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13631 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13633 | |
| 13634 | |
| 13635 | |
| 13636 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13637 | |
| 13638 | # Check whether --with-multiarch was given. |
| 13639 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13640 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13641 | libdir=/usr/lib64 |
| 13642 | root_libdir=/lib64 |
| 13643 | else |
| 13644 | libdir=$libdir/$withval |
| 13645 | root_libdir=$root_libdir/$withval |
| 13646 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13647 | |
| 13648 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13650 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13651 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13652 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13653 | else |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 13654 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13656 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13657 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13658 | int |
| 13659 | main () |
| 13660 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13661 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13662 | ; |
| 13663 | return 0; |
| 13664 | } |
| 13665 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13666 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13667 | ac_cv_e2fsprogs_use_static=yes |
| 13668 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13669 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13670 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13671 | rm -f core conftest.err conftest.$ac_objext \ |
| 13672 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13673 | LDFLAGS=$SAVE_LDFLAGS |
| 13674 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13675 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13676 | case "$host_os" in |
| 13677 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13678 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13679 | ;; |
| 13680 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13681 | { $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] | 13682 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13683 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 13684 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13685 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13686 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13687 | case "$host_os" in |
| 13688 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13689 | { $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] | 13690 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13691 | |
| 13692 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13693 | |
| 13694 | ;; |
| 13695 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13696 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13697 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13698 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13699 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13700 | if test "$cross_compiling" = yes ; then |
| 13701 | DO_TEST_SUITE= |
| 13702 | else |
| 13703 | DO_TEST_SUITE=check |
| 13704 | fi |
| 13705 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13706 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13707 | if test -n "$CPPFLAGS" ; then |
| 13708 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13709 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13710 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13711 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13712 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13713 | if test -n "$WITH_DIET_LIBC" ; then |
| 13714 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13715 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13716 | |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 13717 | |
| 13718 | MKINSTALLDIRS= |
| 13719 | if test -n "$ac_aux_dir"; then |
| 13720 | case "$ac_aux_dir" in |
| 13721 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 13722 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 13723 | esac |
| 13724 | fi |
| 13725 | if test -z "$MKINSTALLDIRS"; then |
| 13726 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 13727 | fi |
| 13728 | |
| 13729 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13730 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13731 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13732 | BUILD_LDFLAGS="$LDFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13733 | fi |
| 13734 | |
| 13735 | |
Theodore Ts'o | fd1677e | 2016-05-21 23:51:19 -0400 | [diff] [blame^] | 13736 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
| 13737 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} |
| 13738 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} |
| 13739 | |
| 13740 | |
| 13741 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13742 | test -d lib || mkdir lib |
| 13743 | test -d include || mkdir include |
| 13744 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13745 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13746 | if test -z "$UUID_CMT" ; then |
| 13747 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ |
| 13748 | lib/uuid/uuid_types.h" |
| 13749 | fi |
| 13750 | if test -z "$BLKID_CMT" ; then |
| 13751 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ |
| 13752 | lib/blkid/blkid_types.h" |
| 13753 | fi |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13754 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13755 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13756 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13757 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | f34af41 | 2015-07-11 23:05:57 -0400 | [diff] [blame] | 13758 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
Theodore Ts'o | 44dfb37 | 2015-07-01 19:42:05 -0400 | [diff] [blame] | 13759 | 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] | 13760 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13761 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13762 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13763 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13764 | if test -d `dirname ${srcdir}/$i` ; then |
| 13765 | outlist="$outlist $i" |
| 13766 | fi |
| 13767 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13768 | ac_config_files="$ac_config_files $outlist" |
| 13769 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13770 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13771 | # This file is a shell script that caches the results of configure |
| 13772 | # 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] | 13773 | # scripts and configure runs, see configure's option --config-cache. |
| 13774 | # It is not useful on other systems. If it contains results you don't |
| 13775 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13776 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13777 | # config.status only pays attention to the cache file if you give it |
| 13778 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13779 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13780 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13781 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13782 | # following values. |
| 13783 | |
| 13784 | _ACEOF |
| 13785 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13786 | # The following way of writing the cache mishandles newlines in values, |
| 13787 | # 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] | 13788 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13789 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13790 | # 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] | 13791 | ( |
| 13792 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13793 | eval ac_val=\$$ac_var |
| 13794 | case $ac_val in #( |
| 13795 | *${as_nl}*) |
| 13796 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13797 | *_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] | 13798 | $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] | 13799 | esac |
| 13800 | case $ac_var in #( |
| 13801 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13802 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13803 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | esac ;; |
| 13805 | esac |
| 13806 | done |
| 13807 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13808 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13809 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13810 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13811 | # `set' does not quote correctly, so add quotes: double-quote |
| 13812 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | sed -n \ |
| 13814 | "s/'/'\\\\''/g; |
| 13815 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13816 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13817 | *) |
| 13818 | # `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] | 13819 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13820 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13821 | esac | |
| 13822 | sort |
| 13823 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13824 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13825 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13826 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13827 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13828 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13829 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13830 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13831 | :end' >>confcache |
| 13832 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13833 | if test -w "$cache_file"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13834 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13835 | { $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] | 13836 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13837 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13838 | cat confcache >"$cache_file" |
| 13839 | else |
| 13840 | case $cache_file in #( |
| 13841 | */* | ?:*) |
| 13842 | mv -f confcache "$cache_file"$$ && |
| 13843 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13844 | *) |
| 13845 | mv -f confcache "$cache_file" ;; |
| 13846 | esac |
| 13847 | fi |
| 13848 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13850 | { $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] | 13851 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13852 | fi |
| 13853 | fi |
| 13854 | rm -f confcache |
| 13855 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13856 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13857 | # Let make expand exec_prefix. |
| 13858 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13859 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13860 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13861 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13862 | ac_libobjs= |
| 13863 | ac_ltlibobjs= |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13864 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13865 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13866 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13867 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13868 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13869 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13870 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13871 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13872 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13873 | done |
| 13874 | LIBOBJS=$ac_libobjs |
| 13875 | |
| 13876 | LTLIBOBJS=$ac_ltlibobjs |
| 13877 | |
| 13878 | |
| 13879 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13880 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13881 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13882 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13883 | ac_clean_files_save=$ac_clean_files |
| 13884 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13886 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13887 | as_write_fail=0 |
| 13888 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13889 | #! $SHELL |
| 13890 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13891 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13892 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13893 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13894 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13895 | debug=false |
| 13896 | ac_cs_recheck=false |
| 13897 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13898 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13899 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13900 | export SHELL |
| 13901 | _ASEOF |
| 13902 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13903 | ## -------------------- ## |
| 13904 | ## M4sh Initialization. ## |
| 13905 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13906 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13907 | # Be more Bourne compatible |
| 13908 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13909 | 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] | 13910 | emulate sh |
| 13911 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13912 | # 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] | 13913 | # is contrary to our usage. Disable this feature. |
| 13914 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13915 | setopt NO_GLOB_SUBST |
| 13916 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13917 | case `(set -o) 2>/dev/null` in #( |
| 13918 | *posix*) : |
| 13919 | set -o posix ;; #( |
| 13920 | *) : |
| 13921 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13922 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13923 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13924 | |
| 13925 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13926 | as_nl=' |
| 13927 | ' |
| 13928 | export as_nl |
| 13929 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13930 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13931 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13932 | 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] | 13933 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13934 | # but without wasting forks for bash or zsh. |
| 13935 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13936 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13937 | as_echo='print -r --' |
| 13938 | as_echo_n='print -rn --' |
| 13939 | 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] | 13940 | as_echo='printf %s\n' |
| 13941 | as_echo_n='printf %s' |
| 13942 | else |
| 13943 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13944 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13945 | as_echo_n='/usr/ucb/echo -n' |
| 13946 | else |
| 13947 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13948 | as_echo_n_body='eval |
| 13949 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13950 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13951 | *"$as_nl"*) |
| 13952 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13953 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13954 | esac; |
| 13955 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13956 | ' |
| 13957 | export as_echo_n_body |
| 13958 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13959 | fi |
| 13960 | export as_echo_body |
| 13961 | as_echo='sh -c $as_echo_body as_echo' |
| 13962 | fi |
| 13963 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13964 | # The user is always right. |
| 13965 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13966 | PATH_SEPARATOR=: |
| 13967 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13968 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13969 | PATH_SEPARATOR=';' |
| 13970 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13971 | fi |
| 13972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13973 | |
| 13974 | # IFS |
| 13975 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13976 | # there to prevent editors from complaining about space-tab. |
| 13977 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13978 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13979 | IFS=" "" $as_nl" |
| 13980 | |
| 13981 | # 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] | 13982 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13983 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13984 | *[\\/]* ) as_myself=$0 ;; |
| 13985 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13986 | for as_dir in $PATH |
| 13987 | do |
| 13988 | IFS=$as_save_IFS |
| 13989 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13990 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13991 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13992 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13994 | ;; |
| 13995 | esac |
| 13996 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13997 | # in which case we are not to be found in the path. |
| 13998 | if test "x$as_myself" = x; then |
| 13999 | as_myself=$0 |
| 14000 | fi |
| 14001 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14002 | $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] | 14003 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14004 | fi |
| 14005 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14006 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14007 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14008 | # suppresses any "Segmentation fault" message there. '((' could |
| 14009 | # trigger a bug in pdksh 5.2.14. |
| 14010 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14011 | do eval test x\${$as_var+set} = xset \ |
| 14012 | && ( (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] | 14013 | done |
| 14014 | PS1='$ ' |
| 14015 | PS2='> ' |
| 14016 | PS4='+ ' |
| 14017 | |
| 14018 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14019 | LC_ALL=C |
| 14020 | export LC_ALL |
| 14021 | LANGUAGE=C |
| 14022 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14023 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14024 | # CDPATH. |
| 14025 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14026 | |
| 14027 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14028 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14029 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14030 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14031 | # 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] | 14032 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14033 | as_fn_error () |
| 14034 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14035 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14036 | if test "$4"; then |
| 14037 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14038 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14039 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14040 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14041 | as_fn_exit $as_status |
| 14042 | } # as_fn_error |
| 14043 | |
| 14044 | |
| 14045 | # as_fn_set_status STATUS |
| 14046 | # ----------------------- |
| 14047 | # Set $? to STATUS, without forking. |
| 14048 | as_fn_set_status () |
| 14049 | { |
| 14050 | return $1 |
| 14051 | } # as_fn_set_status |
| 14052 | |
| 14053 | # as_fn_exit STATUS |
| 14054 | # ----------------- |
| 14055 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14056 | as_fn_exit () |
| 14057 | { |
| 14058 | set +e |
| 14059 | as_fn_set_status $1 |
| 14060 | exit $1 |
| 14061 | } # as_fn_exit |
| 14062 | |
| 14063 | # as_fn_unset VAR |
| 14064 | # --------------- |
| 14065 | # Portably unset VAR. |
| 14066 | as_fn_unset () |
| 14067 | { |
| 14068 | { eval $1=; unset $1;} |
| 14069 | } |
| 14070 | as_unset=as_fn_unset |
| 14071 | # as_fn_append VAR VALUE |
| 14072 | # ---------------------- |
| 14073 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14074 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14075 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14076 | # implementations. |
| 14077 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14078 | eval 'as_fn_append () |
| 14079 | { |
| 14080 | eval $1+=\$2 |
| 14081 | }' |
| 14082 | else |
| 14083 | as_fn_append () |
| 14084 | { |
| 14085 | eval $1=\$$1\$2 |
| 14086 | } |
| 14087 | fi # as_fn_append |
| 14088 | |
| 14089 | # as_fn_arith ARG... |
| 14090 | # ------------------ |
| 14091 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14092 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14093 | # must be portable across $(()) and expr. |
| 14094 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14095 | eval 'as_fn_arith () |
| 14096 | { |
| 14097 | as_val=$(( $* )) |
| 14098 | }' |
| 14099 | else |
| 14100 | as_fn_arith () |
| 14101 | { |
| 14102 | as_val=`expr "$@" || test $? -eq 1` |
| 14103 | } |
| 14104 | fi # as_fn_arith |
| 14105 | |
| 14106 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14107 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14108 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14109 | as_expr=expr |
| 14110 | else |
| 14111 | as_expr=false |
| 14112 | fi |
| 14113 | |
| 14114 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14115 | as_basename=basename |
| 14116 | else |
| 14117 | as_basename=false |
| 14118 | fi |
| 14119 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14120 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14121 | as_dirname=dirname |
| 14122 | else |
| 14123 | as_dirname=false |
| 14124 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14126 | as_me=`$as_basename -- "$0" || |
| 14127 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14128 | X"$0" : 'X\(//\)$' \| \ |
| 14129 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14130 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14131 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14132 | s//\1/ |
| 14133 | q |
| 14134 | } |
| 14135 | /^X\/\(\/\/\)$/{ |
| 14136 | s//\1/ |
| 14137 | q |
| 14138 | } |
| 14139 | /^X\/\(\/\).*/{ |
| 14140 | s//\1/ |
| 14141 | q |
| 14142 | } |
| 14143 | s/.*/./; q'` |
| 14144 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14145 | # Avoid depending upon Character Ranges. |
| 14146 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14147 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14148 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14149 | as_cr_digits='0123456789' |
| 14150 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14151 | |
| 14152 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14153 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14154 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14155 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14156 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14157 | xy) ECHO_C='\c';; |
| 14158 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14159 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14160 | esac;; |
| 14161 | *) |
| 14162 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14163 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14164 | |
| 14165 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14166 | if test -d conf$$.dir; then |
| 14167 | rm -f conf$$.dir/conf$$.file |
| 14168 | else |
| 14169 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14170 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14171 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14172 | if (echo >conf$$.file) 2>/dev/null; then |
| 14173 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14174 | as_ln_s='ln -s' |
| 14175 | # ... but there are two gotchas: |
| 14176 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14177 | # 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] | 14178 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14179 | 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] | 14180 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14181 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14182 | as_ln_s=ln |
| 14183 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14184 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14185 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14186 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14187 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14188 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14189 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14190 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14191 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14192 | |
| 14193 | # as_fn_mkdir_p |
| 14194 | # ------------- |
| 14195 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14196 | as_fn_mkdir_p () |
| 14197 | { |
| 14198 | |
| 14199 | case $as_dir in #( |
| 14200 | -*) as_dir=./$as_dir;; |
| 14201 | esac |
| 14202 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14203 | as_dirs= |
| 14204 | while :; do |
| 14205 | case $as_dir in #( |
| 14206 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14207 | *) as_qdir=$as_dir;; |
| 14208 | esac |
| 14209 | as_dirs="'$as_qdir' $as_dirs" |
| 14210 | as_dir=`$as_dirname -- "$as_dir" || |
| 14211 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14212 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14213 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14214 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14215 | $as_echo X"$as_dir" | |
| 14216 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14217 | s//\1/ |
| 14218 | q |
| 14219 | } |
| 14220 | /^X\(\/\/\)[^/].*/{ |
| 14221 | s//\1/ |
| 14222 | q |
| 14223 | } |
| 14224 | /^X\(\/\/\)$/{ |
| 14225 | s//\1/ |
| 14226 | q |
| 14227 | } |
| 14228 | /^X\(\/\).*/{ |
| 14229 | s//\1/ |
| 14230 | q |
| 14231 | } |
| 14232 | s/.*/./; q'` |
| 14233 | test -d "$as_dir" && break |
| 14234 | done |
| 14235 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14236 | } || 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] | 14237 | |
| 14238 | |
| 14239 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14240 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14241 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14242 | else |
| 14243 | test -d ./-p && rmdir ./-p |
| 14244 | as_mkdir_p=false |
| 14245 | fi |
| 14246 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14247 | |
| 14248 | # as_fn_executable_p FILE |
| 14249 | # ----------------------- |
| 14250 | # Test if FILE is an executable regular file. |
| 14251 | as_fn_executable_p () |
| 14252 | { |
| 14253 | test -f "$1" && test -x "$1" |
| 14254 | } # as_fn_executable_p |
| 14255 | as_test_x='test -x' |
| 14256 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14257 | |
| 14258 | # Sed expression to map a string onto a valid CPP name. |
| 14259 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14260 | |
| 14261 | # Sed expression to map a string onto a valid variable name. |
| 14262 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14263 | |
| 14264 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14265 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14266 | ## ----------------------------------- ## |
| 14267 | ## Main body of $CONFIG_STATUS script. ## |
| 14268 | ## ----------------------------------- ## |
| 14269 | _ASEOF |
| 14270 | 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] | 14271 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14273 | # 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] | 14274 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14275 | # values after options handling. |
| 14276 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14277 | This file was extended by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14278 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14279 | |
| 14280 | CONFIG_FILES = $CONFIG_FILES |
| 14281 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14282 | CONFIG_LINKS = $CONFIG_LINKS |
| 14283 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14284 | $ $0 $@ |
| 14285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14286 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14287 | " |
| 14288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14289 | _ACEOF |
| 14290 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14291 | case $ac_config_files in *" |
| 14292 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14293 | esac |
| 14294 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14295 | case $ac_config_headers in *" |
| 14296 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14297 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14298 | |
| 14299 | |
| 14300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14301 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14302 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14303 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14304 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14305 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14306 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14307 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14309 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14310 | \`$as_me' instantiates files and other configuration actions |
| 14311 | from templates according to the current configuration. Unless the files |
| 14312 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14313 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14314 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14315 | |
| 14316 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14317 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14318 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14319 | -q, --quiet, --silent |
| 14320 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14321 | -d, --debug don't remove temporary files |
| 14322 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14323 | --file=FILE[:TEMPLATE] |
| 14324 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14325 | --header=FILE[:TEMPLATE] |
| 14326 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14327 | |
| 14328 | Configuration files: |
| 14329 | $config_files |
| 14330 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14331 | Configuration headers: |
| 14332 | $config_headers |
| 14333 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14334 | Configuration commands: |
| 14335 | $config_commands |
| 14336 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14337 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14339 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14341 | 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] | 14342 | ac_cs_version="\\ |
| 14343 | config.status |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14344 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14345 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14346 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14347 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14348 | This config.status script is free software; the Free Software Foundation |
| 14349 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14350 | |
| 14351 | ac_pwd='$ac_pwd' |
| 14352 | srcdir='$srcdir' |
| 14353 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14354 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14355 | AWK='$AWK' |
| 14356 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14357 | _ACEOF |
| 14358 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14360 | # 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] | 14361 | ac_need_defaults=: |
| 14362 | while test $# != 0 |
| 14363 | do |
| 14364 | case $1 in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14365 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14366 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14367 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14368 | ac_shift=: |
| 14369 | ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14370 | --*=) |
| 14371 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14372 | ac_optarg= |
| 14373 | ac_shift=: |
| 14374 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14375 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | ac_option=$1 |
| 14377 | ac_optarg=$2 |
| 14378 | ac_shift=shift |
| 14379 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14380 | esac |
| 14381 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14382 | case $ac_option in |
| 14383 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14384 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14385 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14386 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14387 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14388 | --config | --confi | --conf | --con | --co | --c ) |
| 14389 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14391 | debug=: ;; |
| 14392 | --file | --fil | --fi | --f ) |
| 14393 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14394 | case $ac_optarg in |
| 14395 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14396 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14397 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14398 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14399 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14400 | --header | --heade | --head | --hea ) |
| 14401 | $ac_shift |
| 14402 | case $ac_optarg in |
| 14403 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14404 | esac |
| 14405 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14406 | ac_need_defaults=false;; |
| 14407 | --he | --h) |
| 14408 | # Conflict between --help and --header |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14409 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14410 | Try \`$0 --help' for more information.";; |
| 14411 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14412 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14413 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14414 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14415 | ac_cs_silent=: ;; |
| 14416 | |
| 14417 | # This is an error. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14418 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14419 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14421 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14422 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14423 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14424 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14425 | shift |
| 14426 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14427 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14428 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14430 | if $ac_cs_silent; then |
| 14431 | exec 6>/dev/null |
| 14432 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14433 | fi |
| 14434 | |
| 14435 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14437 | if \$ac_cs_recheck; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14438 | 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] | 14439 | shift |
| 14440 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14441 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14442 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14443 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14444 | fi |
| 14445 | |
| 14446 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14448 | exec 5>>config.log |
| 14449 | { |
| 14450 | echo |
| 14451 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14452 | ## Running $as_me. ## |
| 14453 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14454 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14455 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14456 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14457 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14458 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14459 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14460 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14461 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14462 | # 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] | 14463 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14464 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14465 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14466 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14467 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14468 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14470 | _ACEOF |
| 14471 | |
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 | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14473 | |
| 14474 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14475 | for ac_config_target in $ac_config_targets |
| 14476 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14477 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14478 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14479 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14480 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14481 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14482 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14483 | esac |
| 14484 | done |
| 14485 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14487 | # If the user did not use the arguments to specify the items to instantiate, |
| 14488 | # then the envvar interface is used. Set only those that are not. |
| 14489 | # We use the long form for the default assignment because of an extremely |
| 14490 | # bizarre bug on SunOS 4.1.3. |
| 14491 | if $ac_need_defaults; then |
| 14492 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14493 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14494 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14495 | fi |
| 14496 | |
| 14497 | # 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] | 14498 | # 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] | 14499 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14500 | # Hook for its removal unless debugging. |
| 14501 | # Note that there is a small window in which the directory will not be cleaned: |
| 14502 | # 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] | 14503 | $debug || |
| 14504 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14505 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14506 | trap 'exit_status=$? |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14507 | : "${ac_tmp:=$tmp}" |
| 14508 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14509 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14510 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14511 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14512 | # Create a (secure) tmp directory for tmp files. |
| 14513 | |
| 14514 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14515 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14516 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14517 | } || |
| 14518 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14519 | tmp=./conf$$-$RANDOM |
| 14520 | (umask 077 && mkdir "$tmp") |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14521 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14522 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14523 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14524 | # Set up the scripts for CONFIG_FILES section. |
| 14525 | # No need to generate them if there are no CONFIG_FILES. |
| 14526 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14527 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14528 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14529 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14530 | ac_cs_awk_getline=: |
| 14531 | ac_cs_awk_pipe_init= |
| 14532 | ac_cs_awk_read_file=' |
| 14533 | while ((getline aline < (F[key])) > 0) |
| 14534 | print(aline) |
| 14535 | close(F[key])' |
| 14536 | ac_cs_awk_pipe_fini= |
| 14537 | else |
| 14538 | ac_cs_awk_getline=false |
| 14539 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14540 | ac_cs_awk_read_file=' |
| 14541 | print "|#_!!_#|" |
| 14542 | print "cat " F[key] " &&" |
| 14543 | '$ac_cs_awk_pipe_init |
| 14544 | # The final `:' finishes the AND list. |
| 14545 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14546 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14547 | ac_cr=`echo X | tr X '\015'` |
| 14548 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14549 | # But we know of no other shell where ac_cr would be empty at this |
| 14550 | # point, so we can use a bashism as a fallback. |
| 14551 | if test "x$ac_cr" = x; then |
| 14552 | eval ac_cr=\$\'\\r\' |
| 14553 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14554 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14555 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14556 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14557 | else |
| 14558 | ac_cs_awk_cr=$ac_cr |
| 14559 | fi |
| 14560 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14561 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14562 | _ACEOF |
| 14563 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14564 | # Create commands to substitute file output variables. |
| 14565 | { |
| 14566 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14567 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14568 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14569 | echo "_ACAWK" && |
| 14570 | echo "_ACEOF" |
| 14571 | } >conf$$files.sh && |
| 14572 | . ./conf$$files.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14573 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14574 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14575 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14576 | { |
| 14577 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14578 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14579 | echo "_ACEOF" |
| 14580 | } >conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14581 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14582 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14583 | ac_delim='%!_!# ' |
| 14584 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14585 | . ./conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14586 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14587 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14588 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14589 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14590 | break |
| 14591 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14592 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14593 | else |
| 14594 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14596 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14597 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14598 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14600 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14601 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14602 | sed -n ' |
| 14603 | h |
| 14604 | s/^/S["/; s/!.*/"]=/ |
| 14605 | p |
| 14606 | g |
| 14607 | s/^[^!]*!// |
| 14608 | :repl |
| 14609 | t repl |
| 14610 | s/'"$ac_delim"'$// |
| 14611 | t delim |
| 14612 | :nl |
| 14613 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14614 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14615 | t more1 |
| 14616 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14617 | p |
| 14618 | n |
| 14619 | b repl |
| 14620 | :more1 |
| 14621 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14622 | p |
| 14623 | g |
| 14624 | s/.\{148\}// |
| 14625 | t nl |
| 14626 | :delim |
| 14627 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14628 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14629 | t more2 |
| 14630 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14631 | p |
| 14632 | b |
| 14633 | :more2 |
| 14634 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14635 | p |
| 14636 | g |
| 14637 | s/.\{148\}// |
| 14638 | t delim |
| 14639 | ' <conf$$subs.awk | sed ' |
| 14640 | /^[^""]/{ |
| 14641 | N |
| 14642 | s/\n// |
| 14643 | } |
| 14644 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14645 | rm -f conf$$subs.awk |
| 14646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14647 | _ACAWK |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14648 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14649 | for (key in S) S_is_set[key] = 1 |
| 14650 | FS = "" |
| 14651 | \$ac_cs_awk_pipe_init |
| 14652 | } |
| 14653 | { |
| 14654 | line = $ 0 |
| 14655 | nfields = split(line, field, "@") |
| 14656 | substed = 0 |
| 14657 | len = length(field[1]) |
| 14658 | for (i = 2; i < nfields; i++) { |
| 14659 | key = field[i] |
| 14660 | keylen = length(key) |
| 14661 | if (S_is_set[key]) { |
| 14662 | value = S[key] |
| 14663 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14664 | len += length(value) + length(field[++i]) |
| 14665 | substed = 1 |
| 14666 | } else |
| 14667 | len += 1 + keylen |
| 14668 | } |
| 14669 | if (nfields == 3 && !substed) { |
| 14670 | key = field[2] |
| 14671 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14672 | \$ac_cs_awk_read_file |
| 14673 | next |
| 14674 | } |
| 14675 | } |
| 14676 | print line |
| 14677 | } |
| 14678 | \$ac_cs_awk_pipe_fini |
| 14679 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14680 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14681 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14682 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14683 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14684 | else |
| 14685 | cat |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14686 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14687 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14688 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14689 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14690 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14691 | # ${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] | 14692 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14693 | # (actually we leave an empty line to preserve line numbers). |
| 14694 | if test "x$srcdir" = x.; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14695 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14696 | h |
| 14697 | s/// |
| 14698 | s/^/:/ |
| 14699 | s/[ ]*$/:/ |
| 14700 | s/:\$(srcdir):/:/g |
| 14701 | s/:\${srcdir}:/:/g |
| 14702 | s/:@srcdir@:/:/g |
| 14703 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14704 | s/:*$// |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14705 | x |
| 14706 | s/\(=[ ]*\).*/\1/ |
| 14707 | G |
| 14708 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14709 | s/^[^=]*=[ ]*$// |
| 14710 | }' |
| 14711 | fi |
| 14712 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14713 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14714 | fi # test -n "$CONFIG_FILES" |
| 14715 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14716 | # Set up the scripts for CONFIG_HEADERS section. |
| 14717 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14718 | # This happens for instance with `./config.status Makefile'. |
| 14719 | if test -n "$CONFIG_HEADERS"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14720 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14721 | BEGIN { |
| 14722 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14723 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14724 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14725 | # here-document in config.status, that substitutes the proper values into |
| 14726 | # config.h.in to produce config.h. |
| 14727 | |
| 14728 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14729 | # handling of long lines. |
| 14730 | ac_delim='%!_!# ' |
| 14731 | for ac_last_try in false false :; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14732 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14733 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14734 | break |
| 14735 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14736 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14737 | else |
| 14738 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14739 | fi |
| 14740 | done |
| 14741 | |
| 14742 | # For the awk script, D is an array of macro values keyed by name, |
| 14743 | # likewise P contains macro parameters if any. Preserve backslash |
| 14744 | # newline sequences. |
| 14745 | |
| 14746 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14747 | sed -n ' |
| 14748 | s/.\{148\}/&'"$ac_delim"'/g |
| 14749 | t rset |
| 14750 | :rset |
| 14751 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14752 | t def |
| 14753 | d |
| 14754 | :def |
| 14755 | s/\\$// |
| 14756 | t bsnl |
| 14757 | s/["\\]/\\&/g |
| 14758 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14759 | D["\1"]=" \3"/p |
| 14760 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14761 | d |
| 14762 | :bsnl |
| 14763 | s/["\\]/\\&/g |
| 14764 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14765 | D["\1"]=" \3\\\\\\n"\\/p |
| 14766 | t cont |
| 14767 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14768 | t cont |
| 14769 | d |
| 14770 | :cont |
| 14771 | n |
| 14772 | s/.\{148\}/&'"$ac_delim"'/g |
| 14773 | t clear |
| 14774 | :clear |
| 14775 | s/\\$// |
| 14776 | t bsnlc |
| 14777 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14778 | d |
| 14779 | :bsnlc |
| 14780 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14781 | b cont |
| 14782 | ' <confdefs.h | sed ' |
| 14783 | s/'"$ac_delim"'/"\\\ |
| 14784 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14785 | |
| 14786 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14787 | for (key in D) D_is_set[key] = 1 |
| 14788 | FS = "" |
| 14789 | } |
| 14790 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14791 | line = \$ 0 |
| 14792 | split(line, arg, " ") |
| 14793 | if (arg[1] == "#") { |
| 14794 | defundef = arg[2] |
| 14795 | mac1 = arg[3] |
| 14796 | } else { |
| 14797 | defundef = substr(arg[1], 2) |
| 14798 | mac1 = arg[2] |
| 14799 | } |
| 14800 | split(mac1, mac2, "(") #) |
| 14801 | macro = mac2[1] |
| 14802 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14803 | if (D_is_set[macro]) { |
| 14804 | # Preserve the white space surrounding the "#". |
| 14805 | print prefix "define", macro P[macro] D[macro] |
| 14806 | next |
| 14807 | } else { |
| 14808 | # Replace #undef with comments. This is necessary, for example, |
| 14809 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14810 | # on some systems where configure will not decide to define it. |
| 14811 | if (defundef == "undef") { |
| 14812 | print "/*", prefix defundef, macro, "*/" |
| 14813 | next |
| 14814 | } |
| 14815 | } |
| 14816 | } |
| 14817 | { print } |
| 14818 | _ACAWK |
| 14819 | _ACEOF |
| 14820 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14821 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14822 | fi # test -n "$CONFIG_HEADERS" |
| 14823 | |
| 14824 | |
| 14825 | 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] | 14826 | shift |
| 14827 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14828 | do |
| 14829 | case $ac_tag in |
| 14830 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14831 | esac |
| 14832 | case $ac_mode$ac_tag in |
| 14833 | :[FHL]*:*);; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14834 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14835 | :[FH]-) ac_tag=-:-;; |
| 14836 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14837 | esac |
| 14838 | ac_save_IFS=$IFS |
| 14839 | IFS=: |
| 14840 | set x $ac_tag |
| 14841 | IFS=$ac_save_IFS |
| 14842 | shift |
| 14843 | ac_file=$1 |
| 14844 | shift |
| 14845 | |
| 14846 | case $ac_mode in |
| 14847 | :L) ac_source=$1;; |
| 14848 | :[FH]) |
| 14849 | ac_file_inputs= |
| 14850 | for ac_f |
| 14851 | do |
| 14852 | case $ac_f in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14853 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14854 | *) # Look for the file first in the build tree, then in the source tree |
| 14855 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14856 | # because $ac_f cannot contain `:'. |
| 14857 | test -f "$ac_f" || |
| 14858 | case $ac_f in |
| 14859 | [\\/$]*) false;; |
| 14860 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14861 | esac || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14862 | 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] | 14863 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14864 | 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] | 14865 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14866 | done |
| 14867 | |
| 14868 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14869 | # use $as_me), people would be surprised to read: |
| 14870 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14871 | configure_input='Generated from '` |
| 14872 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14873 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14874 | if test x"$ac_file" != x-; then |
| 14875 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14877 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14878 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14879 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14880 | case $configure_input in #( |
| 14881 | *\&* | *\|* | *\\* ) |
| 14882 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14883 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14884 | *) ac_sed_conf_input=$configure_input;; |
| 14885 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14886 | |
| 14887 | case $ac_tag in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14888 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14889 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14890 | esac |
| 14891 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14892 | esac |
| 14893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14894 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14895 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14896 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14897 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14898 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14899 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14900 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14901 | s//\1/ |
| 14902 | q |
| 14903 | } |
| 14904 | /^X\(\/\/\)[^/].*/{ |
| 14905 | s//\1/ |
| 14906 | q |
| 14907 | } |
| 14908 | /^X\(\/\/\)$/{ |
| 14909 | s//\1/ |
| 14910 | q |
| 14911 | } |
| 14912 | /^X\(\/\).*/{ |
| 14913 | s//\1/ |
| 14914 | q |
| 14915 | } |
| 14916 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14917 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14918 | ac_builddir=. |
| 14919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14920 | case "$ac_dir" in |
| 14921 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14922 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14923 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14924 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14925 | 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] | 14926 | case $ac_top_builddir_sub in |
| 14927 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14928 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14929 | esac ;; |
| 14930 | esac |
| 14931 | ac_abs_top_builddir=$ac_pwd |
| 14932 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14933 | # for backward compatibility: |
| 14934 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14935 | |
| 14936 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14937 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14938 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14939 | ac_top_srcdir=$ac_top_builddir_sub |
| 14940 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14941 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14942 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14943 | ac_top_srcdir=$srcdir |
| 14944 | ac_abs_top_srcdir=$srcdir ;; |
| 14945 | *) # Relative name. |
| 14946 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14947 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14948 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14949 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14950 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14951 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14952 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14953 | case $ac_mode in |
| 14954 | :F) |
| 14955 | # |
| 14956 | # CONFIG_FILE |
| 14957 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14958 | |
| 14959 | case $INSTALL in |
| 14960 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14961 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14962 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14963 | ac_MKDIR_P=$MKDIR_P |
| 14964 | case $MKDIR_P in |
| 14965 | [\\/$]* | ?:[\\/]* ) ;; |
| 14966 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14967 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14968 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14969 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14970 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14971 | # If the template does not know about datarootdir, expand it. |
| 14972 | # FIXME: This hack should be removed a few years after 2.60. |
| 14973 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14974 | ac_sed_dataroot=' |
| 14975 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14976 | p |
| 14977 | q |
| 14978 | } |
| 14979 | /@datadir@/p |
| 14980 | /@docdir@/p |
| 14981 | /@infodir@/p |
| 14982 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14983 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14984 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14985 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14986 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14987 | { $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] | 14988 | $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] | 14989 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14991 | ac_datarootdir_hack=' |
| 14992 | s&@datadir@&$datadir&g |
| 14993 | s&@docdir@&$docdir&g |
| 14994 | s&@infodir@&$infodir&g |
| 14995 | s&@localedir@&$localedir&g |
| 14996 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14997 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14998 | esac |
| 14999 | _ACEOF |
| 15000 | |
| 15001 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15002 | # Shell code in configure.ac might set extrasub. |
| 15003 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15004 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15005 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15006 | $extrasub |
| 15007 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15008 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15009 | :t |
| 15010 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15011 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15012 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15013 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15014 | s&@srcdir@&$ac_srcdir&;t t |
| 15015 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15016 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15017 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15018 | s&@builddir@&$ac_builddir&;t t |
| 15019 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15020 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15021 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15022 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15023 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15024 | " |
| 15025 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 15026 | if $ac_cs_awk_getline; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15027 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15028 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15029 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 15030 | fi \ |
| 15031 | >$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] | 15032 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15033 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15034 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15035 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15036 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15037 | { $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] | 15038 | 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] | 15039 | $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] | 15040 | 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] | 15041 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15042 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15043 | case $ac_file in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15044 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15045 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15046 | esac \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15047 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15048 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15049 | :H) |
| 15050 | # |
| 15051 | # CONFIG_HEADER |
| 15052 | # |
| 15053 | if test x"$ac_file" != x-; then |
| 15054 | { |
| 15055 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15056 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15057 | } >"$ac_tmp/config.h" \ |
| 15058 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 15059 | 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] | 15060 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15061 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15062 | else |
| 15063 | rm -f "$ac_file" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15064 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 15065 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15066 | fi |
| 15067 | else |
| 15068 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15069 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 15070 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15071 | fi |
| 15072 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15073 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15074 | :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] | 15075 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15076 | ;; |
| 15077 | esac |
| 15078 | |
| 15079 | |
| 15080 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15081 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15082 | for ac_file in $CONFIG_FILES; do |
| 15083 | # Support "outfile[:infile[:infile...]]" |
| 15084 | case "$ac_file" in |
| 15085 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 15086 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15087 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 15088 | case "$ac_file" in */Makefile.in) |
| 15089 | # Adjust a relative srcdir. |
| 15090 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15091 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15092 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 15093 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 15094 | # In autoconf-2.50 it is called $srcdir. |
| 15095 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 15096 | case "$ac_given_srcdir" in |
| 15097 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 15098 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 15099 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 15100 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15101 | # Treat a directory as a PO directory if and only if it has a |
| 15102 | # POTFILES.in file. This allows packages to have multiple PO |
| 15103 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15104 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 15105 | rm -f "$ac_dir/POTFILES" |
| 15106 | 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] | 15107 | gt_tab=`printf '\t'` |
| 15108 | 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] | 15109 | POMAKEFILEDEPS="POTFILES.in" |
| 15110 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15111 | # on $ac_dir but don't depend on user-specified configuration |
| 15112 | # parameters. |
| 15113 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 15114 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15115 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15116 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 15117 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15118 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 15119 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15120 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15121 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 15122 | else |
| 15123 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15124 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15125 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15126 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15127 | # Compute POFILES |
| 15128 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 15129 | # Compute UPDATEPOFILES |
| 15130 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 15131 | # Compute DUMMYPOFILES |
| 15132 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 15133 | # Compute GMOFILES |
| 15134 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15135 | case "$ac_given_srcdir" in |
| 15136 | .) srcdirpre= ;; |
| 15137 | *) srcdirpre='$(srcdir)/' ;; |
| 15138 | esac |
| 15139 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15140 | UPDATEPOFILES= |
| 15141 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15142 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15143 | for lang in $ALL_LINGUAS; do |
| 15144 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15145 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 15146 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15147 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15148 | done |
| 15149 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 15150 | # environment variable. |
| 15151 | INST_LINGUAS= |
| 15152 | if test -n "$ALL_LINGUAS"; then |
| 15153 | for presentlang in $ALL_LINGUAS; do |
| 15154 | useit=no |
| 15155 | if test "%UNSET%" != "$LINGUAS"; then |
| 15156 | desiredlanguages="$LINGUAS" |
| 15157 | else |
| 15158 | desiredlanguages="$ALL_LINGUAS" |
| 15159 | fi |
| 15160 | for desiredlang in $desiredlanguages; do |
| 15161 | # Use the presentlang catalog if desiredlang is |
| 15162 | # a. equal to presentlang, or |
| 15163 | # b. a variant of presentlang (because in this case, |
| 15164 | # presentlang can be used as a fallback for messages |
| 15165 | # which are not translated in the desiredlang catalog). |
| 15166 | case "$desiredlang" in |
| 15167 | "$presentlang"*) useit=yes;; |
| 15168 | esac |
| 15169 | done |
| 15170 | if test $useit = yes; then |
| 15171 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 15172 | fi |
| 15173 | done |
| 15174 | fi |
| 15175 | CATALOGS= |
| 15176 | if test -n "$INST_LINGUAS"; then |
| 15177 | for lang in $INST_LINGUAS; do |
| 15178 | CATALOGS="$CATALOGS $lang.gmo" |
| 15179 | done |
| 15180 | fi |
| 15181 | 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] | 15182 | 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] | 15183 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 15184 | if test -f "$f"; then |
| 15185 | case "$f" in |
| 15186 | *.orig | *.bak | *~) ;; |
| 15187 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 15188 | esac |
| 15189 | fi |
| 15190 | done |
| 15191 | fi |
| 15192 | ;; |
| 15193 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15194 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15196 | esac |
| 15197 | done # for ac_tag |
| 15198 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15199 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15200 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15201 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15202 | ac_clean_files=$ac_clean_files_save |
| 15203 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15204 | test $ac_write_fail = 0 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15205 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15206 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15207 | |
| 15208 | # configure is writing to config.log, and then calls config.status. |
| 15209 | # config.status does its own redirection, appending to config.log. |
| 15210 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15211 | # by configure, so config.status won't be able to write to it; its |
| 15212 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15213 | # effectively closing config.log, so it can be properly (re)opened and |
| 15214 | # appended to by config.status. When coming back to configure, we |
| 15215 | # need to make the FD available again. |
| 15216 | if test "$no_create" != yes; then |
| 15217 | ac_cs_success=: |
| 15218 | ac_config_status_args= |
| 15219 | test "$silent" = yes && |
| 15220 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15221 | exec 5>/dev/null |
| 15222 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15223 | exec 5>>config.log |
| 15224 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15225 | # would make configure fail if this is the last instruction. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15226 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15227 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15228 | 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] | 15229 | { $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] | 15230 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15231 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15232 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 15233 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |